diff --git a/node_modules/locale-includes/LICENSE b/node_modules/locale-includes/LICENSE deleted file mode 100755 index a8c4352..0000000 --- a/node_modules/locale-includes/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2020 idmadj - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/node_modules/locale-includes/README.md b/node_modules/locale-includes/README.md deleted file mode 100755 index cef10f5..0000000 --- a/node_modules/locale-includes/README.md +++ /dev/null @@ -1,59 +0,0 @@ -# localeIncludes() -[![npm](https://img.shields.io/npm/v/locale-includes.svg)](https://www.npmjs.com/package/locale-includes) -![npm bundle size (minified)](https://img.shields.io/bundlephobia/min/locale-includes.svg) - -[`String.prototype.includes()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes) but using [`localeCompare`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare). - - -## Install -```sh -npm i locale-includes -``` - - -## Syntax -```js -localeIncludes(string, searchString[, options]) -``` - -### Parameters -+ `string` (string) - A string to be searched within. - -+ `searchString` (string) - A string to be searched for within `string`. - -+ `options` (object) - *Optional* - An object with some or all of the following properties: - - + `position` (number) - *Default: 0* - The position within `string` at which to begin searching for `searchString`. - - + `locales` (string|array) - Passed through as the `locales` parameter to [`String.prototype.localeCompare()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare#Parameters). - - + *Any other property* - Passed through in the `options` parameter to [`String.prototype.localeCompare()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare#Parameters). - -### Return value -+ (bool) - Whether the search string is found anywhere within the given string or not. - - -## Examples -```js -import {localeIncludes} from `locale-includes`; - -localeIncludes("Abcdef", "cde"); -// true - -localeIncludes("Abcdef", "cde", {position: 3}); -// false - -localeIncludes("àḃḉdÉf", "bCde", {usage: "search", sensitivity: "base"}); -// true -``` - -## See also -[`String.prototype.includes()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes) -[`String.prototype.localeCompare()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare) \ No newline at end of file diff --git a/node_modules/locale-includes/lib/index.js b/node_modules/locale-includes/lib/index.js deleted file mode 100755 index b37ddc2..0000000 --- a/node_modules/locale-includes/lib/index.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.localeIncludes=void 0;var _excluded=["position","locales"];function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key]}}return target}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={};var sourceKeys=Object.keys(source);var key,i;for(i=0;i=0)continue;target[key]=source[key]}return target}var localeIncludes=function localeIncludes(string,searchString){var _ref=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},_ref$position=_ref.position,position=_ref$position===void 0?0:_ref$position,locales=_ref.locales,options=_objectWithoutProperties(_ref,_excluded);if(string===undefined||string===null||searchString===undefined||searchString===null){throw new Error("localeIncludes requires at least 2 parameters")}var stringLength=string.length;var searchStringLength=searchString.length;var lengthDiff=stringLength-searchStringLength;for(var i=position;i<=lengthDiff;i++){if(string.substring(i,i+searchStringLength).localeCompare(searchString,locales,options)===0){return true}}return false};exports.localeIncludes=localeIncludes; \ No newline at end of file diff --git a/node_modules/locale-includes/package.json b/node_modules/locale-includes/package.json deleted file mode 100755 index f2fd0f4..0000000 --- a/node_modules/locale-includes/package.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "locale-includes", - "version": "1.0.5", - "description": "String.prototype.includes() but using localeCompare.", - "main": "lib/index.js", - "directories": { - "lib": "lib" - }, - "scripts": { - "build": "babel src -d lib", - "build:watch": "babel src -d lib -w", - "prepublishOnly": "npm run build" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/idmadj/locale-includes.git" - }, - "license": "MIT", - "bugs": { - "url": "https://github.com/idmadj/locale-includes/issues" - }, - "homepage": "https://github.com/idmadj/locale-includes#readme", - "keywords": [ - "localeincludes", - "locale", - "includes", - "contains", - "string", - "localecompare", - "search", - "filter", - "match", - "diacritics", - "accents", - "case", - "insensitive", - "i18n", - "esm", - "module" - ], - "devDependencies": { - "@babel/cli": "^7.20.7", - "@babel/core": "^7.20.12", - "@babel/preset-env": "^7.20.2" - } -}