diff options
Diffstat (limited to 'node_modules/no-case')
| -rw-r--r-- | node_modules/no-case/LICENSE | 21 | ||||
| -rw-r--r-- | node_modules/no-case/README.md | 37 | ||||
| -rw-r--r-- | node_modules/no-case/dist.es2015/index.d.ts | 10 | ||||
| -rw-r--r-- | node_modules/no-case/dist.es2015/index.js | 31 | ||||
| -rw-r--r-- | node_modules/no-case/dist.es2015/index.js.map | 1 | ||||
| -rw-r--r-- | node_modules/no-case/dist.es2015/index.spec.d.ts | 1 | ||||
| -rw-r--r-- | node_modules/no-case/dist.es2015/index.spec.js | 57 | ||||
| -rw-r--r-- | node_modules/no-case/dist.es2015/index.spec.js.map | 1 | ||||
| -rw-r--r-- | node_modules/no-case/dist/index.d.ts | 10 | ||||
| -rw-r--r-- | node_modules/no-case/dist/index.js | 35 | ||||
| -rw-r--r-- | node_modules/no-case/dist/index.js.map | 1 | ||||
| -rw-r--r-- | node_modules/no-case/dist/index.spec.d.ts | 1 | ||||
| -rw-r--r-- | node_modules/no-case/dist/index.spec.js | 59 | ||||
| -rw-r--r-- | node_modules/no-case/dist/index.spec.js.map | 1 | ||||
| -rw-r--r-- | node_modules/no-case/package.json | 85 |
15 files changed, 0 insertions, 351 deletions
diff --git a/node_modules/no-case/LICENSE b/node_modules/no-case/LICENSE deleted file mode 100644 index 983fbe8a..00000000 --- a/node_modules/no-case/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com) - -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/no-case/README.md b/node_modules/no-case/README.md deleted file mode 100644 index 6ce3b81f..00000000 --- a/node_modules/no-case/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# No Case - -[![NPM version][npm-image]][npm-url] -[![NPM downloads][downloads-image]][downloads-url] -[![Bundle size][bundlephobia-image]][bundlephobia-url] - -> Transform into a lower cased string with spaces between words. - -## Installation - -``` -npm install no-case --save -``` - -## Usage - -```js -import { noCase } from "no-case"; - -noCase("string"); //=> "string" -noCase("dot.case"); //=> "dot case" -noCase("PascalCase"); //=> "pascal case" -noCase("version 1.2.10"); //=> "version 1 2 10" -``` - -The function also accepts [`options`](https://github.com/blakeembrey/change-case#options). - -## License - -MIT - -[npm-image]: https://img.shields.io/npm/v/no-case.svg?style=flat -[npm-url]: https://npmjs.org/package/no-case -[downloads-image]: https://img.shields.io/npm/dm/no-case.svg?style=flat -[downloads-url]: https://npmjs.org/package/no-case -[bundlephobia-image]: https://img.shields.io/bundlephobia/minzip/no-case.svg -[bundlephobia-url]: https://bundlephobia.com/result?p=no-case diff --git a/node_modules/no-case/dist.es2015/index.d.ts b/node_modules/no-case/dist.es2015/index.d.ts deleted file mode 100644 index 4b24f804..00000000 --- a/node_modules/no-case/dist.es2015/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export interface Options { - splitRegexp?: RegExp | RegExp[]; - stripRegexp?: RegExp | RegExp[]; - delimiter?: string; - transform?: (part: string, index: number, parts: string[]) => string; -} -/** - * Normalize the string into something other libraries can manipulate easier. - */ -export declare function noCase(input: string, options?: Options): string; diff --git a/node_modules/no-case/dist.es2015/index.js b/node_modules/no-case/dist.es2015/index.js deleted file mode 100644 index 8aa0ce10..00000000 --- a/node_modules/no-case/dist.es2015/index.js +++ /dev/null @@ -1,31 +0,0 @@ -import { lowerCase } from "lower-case"; -// Support camel case ("camelCase" -> "camel Case" and "CAMELCase" -> "CAMEL Case"). -var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g]; -// Remove all non-word characters. -var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi; -/** - * Normalize the string into something other libraries can manipulate easier. - */ -export function noCase(input, options) { - if (options === void 0) { options = {}; } - var _a = options.splitRegexp, splitRegexp = _a === void 0 ? DEFAULT_SPLIT_REGEXP : _a, _b = options.stripRegexp, stripRegexp = _b === void 0 ? DEFAULT_STRIP_REGEXP : _b, _c = options.transform, transform = _c === void 0 ? lowerCase : _c, _d = options.delimiter, delimiter = _d === void 0 ? " " : _d; - var result = replace(replace(input, splitRegexp, "$1\0$2"), stripRegexp, "\0"); - var start = 0; - var end = result.length; - // Trim the delimiter from around the output string. - while (result.charAt(start) === "\0") - start++; - while (result.charAt(end - 1) === "\0") - end--; - // Transform each token independently. - return result.slice(start, end).split("\0").map(transform).join(delimiter); -} -/** - * Replace `re` in the input string with the replacement value. - */ -function replace(input, re, value) { - if (re instanceof RegExp) - return input.replace(re, value); - return re.reduce(function (input, re) { return input.replace(re, value); }, input); -} -//# sourceMappingURL=index.js.map
\ No newline at end of file diff --git a/node_modules/no-case/dist.es2015/index.js.map b/node_modules/no-case/dist.es2015/index.js.map deleted file mode 100644 index fe9541f5..00000000 --- a/node_modules/no-case/dist.es2015/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AASvC,oFAAoF;AACpF,IAAM,oBAAoB,GAAG,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IAAK,OAAA,KAAK,CAAC,OAAO,CAAC,EAAE,EAAE,KAAK,CAAC,EAAxB,CAAwB,EAAE,KAAK,CAAC,CAAC;AACnE,CAAC","sourcesContent":["import { lowerCase } from \"lower-case\";\n\nexport interface Options {\n splitRegexp?: RegExp | RegExp[];\n stripRegexp?: RegExp | RegExp[];\n delimiter?: string;\n transform?: (part: string, index: number, parts: string[]) => string;\n}\n\n// Support camel case (\"camelCase\" -> \"camel Case\" and \"CAMELCase\" -> \"CAMEL Case\").\nconst DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g];\n\n// Remove all non-word characters.\nconst DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi;\n\n/**\n * Normalize the string into something other libraries can manipulate easier.\n */\nexport function noCase(input: string, options: Options = {}) {\n const {\n splitRegexp = DEFAULT_SPLIT_REGEXP,\n stripRegexp = DEFAULT_STRIP_REGEXP,\n transform = lowerCase,\n delimiter = \" \",\n } = options;\n\n let result = replace(\n replace(input, splitRegexp, \"$1\\0$2\"),\n stripRegexp,\n \"\\0\"\n );\n let start = 0;\n let end = result.length;\n\n // Trim the delimiter from around the output string.\n while (result.charAt(start) === \"\\0\") start++;\n while (result.charAt(end - 1) === \"\\0\") end--;\n\n // Transform each token independently.\n return result.slice(start, end).split(\"\\0\").map(transform).join(delimiter);\n}\n\n/**\n * Replace `re` in the input string with the replacement value.\n */\nfunction replace(input: string, re: RegExp | RegExp[], value: string) {\n if (re instanceof RegExp) return input.replace(re, value);\n return re.reduce((input, re) => input.replace(re, value), input);\n}\n"]}
\ No newline at end of file diff --git a/node_modules/no-case/dist.es2015/index.spec.d.ts b/node_modules/no-case/dist.es2015/index.spec.d.ts deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/no-case/dist.es2015/index.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/no-case/dist.es2015/index.spec.js b/node_modules/no-case/dist.es2015/index.spec.js deleted file mode 100644 index 5fd9b15c..00000000 --- a/node_modules/no-case/dist.es2015/index.spec.js +++ /dev/null @@ -1,57 +0,0 @@ -import { noCase } from "."; -var TEST_CASES = [ - // Single words. - ["test", "test"], - ["TEST", "test"], - // Camel case. - ["testString", "test string"], - ["testString123", "test string123"], - ["testString_1_2_3", "test string 1 2 3"], - ["x_256", "x 256"], - ["anHTMLTag", "an html tag"], - ["ID123String", "id123 string"], - ["Id123String", "id123 string"], - ["foo bar123", "foo bar123"], - ["a1bStar", "a1b star"], - // Constant case. - ["CONSTANT_CASE ", "constant case"], - ["CONST123_FOO", "const123 foo"], - // Random cases. - ["FOO_bar", "foo bar"], - ["XMLHttpRequest", "xml http request"], - ["IQueryAArgs", "i query a args"], - // Non-alphanumeric separators. - ["dot.case", "dot case"], - ["path/case", "path case"], - ["snake_case", "snake case"], - ["snake_case123", "snake case123"], - ["snake_case_123", "snake case 123"], - // Punctuation. - ['"quotes"', "quotes"], - // Space between number parts. - ["version 0.45.0", "version 0 45 0"], - ["version 0..78..9", "version 0 78 9"], - ["version 4_99/4", "version 4 99 4"], - // Whitespace. - [" test ", "test"], - // Number string input. - ["something_2014_other", "something 2014 other"], - // https://github.com/blakeembrey/change-case/issues/21 - ["amazon s3 data", "amazon s3 data"], - ["foo_13_bar", "foo 13 bar"], - // Customization. - ["camel2019", "camel 2019", { splitRegexp: /([a-z])([A-Z0-9])/g }], - ["minifyURLs", "minify urls", { splitRegexp: /([a-z])([A-Z0-9])/g }], -]; -describe("no case", function () { - var _loop_1 = function (input, result, options) { - it(input + " -> " + result, function () { - expect(noCase(input, options)).toEqual(result); - }); - }; - for (var _i = 0, TEST_CASES_1 = TEST_CASES; _i < TEST_CASES_1.length; _i++) { - var _a = TEST_CASES_1[_i], input = _a[0], result = _a[1], options = _a[2]; - _loop_1(input, result, options); - } -}); -//# sourceMappingURL=index.spec.js.map
\ No newline at end of file diff --git a/node_modules/no-case/dist.es2015/index.spec.js.map b/node_modules/no-case/dist.es2015/index.spec.js.map deleted file mode 100644 index d0325524..00000000 --- a/node_modules/no-case/dist.es2015/index.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../src/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAW,MAAM,GAAG,CAAC;AAEpC,IAAM,UAAU,GAAiC;IAC/C,gBAAgB;IAChB,CAAC,MAAM,EAAE,MAAM,CAAC;IAChB,CAAC,MAAM,EAAE,MAAM,CAAC;IAEhB,cAAc;IACd,CAAC,YAAY,EAAE,aAAa,CAAC;IAC7B,CAAC,eAAe,EAAE,gBAAgB,CAAC;IACnC,CAAC,kBAAkB,EAAE,mBAAmB,CAAC;IACzC,CAAC,OAAO,EAAE,OAAO,CAAC;IAClB,CAAC,WAAW,EAAE,aAAa,CAAC;IAC5B,CAAC,aAAa,EAAE,cAAc,CAAC;IAC/B,CAAC,aAAa,EAAE,cAAc,CAAC;IAC/B,CAAC,YAAY,EAAE,YAAY,CAAC;IAC5B,CAAC,SAAS,EAAE,UAAU,CAAC;IAEvB,iBAAiB;IACjB,CAAC,gBAAgB,EAAE,eAAe,CAAC;IACnC,CAAC,cAAc,EAAE,cAAc,CAAC;IAEhC,gBAAgB;IAChB,CAAC,SAAS,EAAE,SAAS,CAAC;IACtB,CAAC,gBAAgB,EAAE,kBAAkB,CAAC;IACtC,CAAC,aAAa,EAAE,gBAAgB,CAAC;IAEjC,+BAA+B;IAC/B,CAAC,UAAU,EAAE,UAAU,CAAC;IACxB,CAAC,WAAW,EAAE,WAAW,CAAC;IAC1B,CAAC,YAAY,EAAE,YAAY,CAAC;IAC5B,CAAC,eAAe,EAAE,eAAe,CAAC;IAClC,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAEpC,eAAe;IACf,CAAC,UAAU,EAAE,QAAQ,CAAC;IAEtB,8BAA8B;IAC9B,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IACpC,CAAC,kBAAkB,EAAE,gBAAgB,CAAC;IACtC,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAEpC,cAAc;IACd,CAAC,UAAU,EAAE,MAAM,CAAC;IAEpB,uBAAuB;IACvB,CAAC,sBAAsB,EAAE,sBAAsB,CAAC;IAEhD,uDAAuD;IACvD,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IACpC,CAAC,YAAY,EAAE,YAAY,CAAC;IAE5B,iBAAiB;IACjB,CAAC,WAAW,EAAE,YAAY,EAAE,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAC;IAClE,CAAC,YAAY,EAAE,aAAa,EAAE,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAC;CACrE,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE;4BACN,KAAK,EAAE,MAAM,EAAE,OAAO;QAChC,EAAE,CAAI,KAAK,YAAO,MAAQ,EAAE;YAC1B,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACjD,CAAC,CAAC,CAAC;;IAHL,KAAuC,UAAU,EAAV,yBAAU,EAAV,wBAAU,EAAV,IAAU;QAAtC,IAAA,qBAAwB,EAAvB,KAAK,QAAA,EAAE,MAAM,QAAA,EAAE,OAAO,QAAA;gBAAtB,KAAK,EAAE,MAAM,EAAE,OAAO;KAIjC;AACH,CAAC,CAAC,CAAC","sourcesContent":["import { noCase, Options } from \".\";\n\nconst TEST_CASES: [string, string, Options?][] = [\n // Single words.\n [\"test\", \"test\"],\n [\"TEST\", \"test\"],\n\n // Camel case.\n [\"testString\", \"test string\"],\n [\"testString123\", \"test string123\"],\n [\"testString_1_2_3\", \"test string 1 2 3\"],\n [\"x_256\", \"x 256\"],\n [\"anHTMLTag\", \"an html tag\"],\n [\"ID123String\", \"id123 string\"],\n [\"Id123String\", \"id123 string\"],\n [\"foo bar123\", \"foo bar123\"],\n [\"a1bStar\", \"a1b star\"],\n\n // Constant case.\n [\"CONSTANT_CASE \", \"constant case\"],\n [\"CONST123_FOO\", \"const123 foo\"],\n\n // Random cases.\n [\"FOO_bar\", \"foo bar\"],\n [\"XMLHttpRequest\", \"xml http request\"],\n [\"IQueryAArgs\", \"i query a args\"],\n\n // Non-alphanumeric separators.\n [\"dot.case\", \"dot case\"],\n [\"path/case\", \"path case\"],\n [\"snake_case\", \"snake case\"],\n [\"snake_case123\", \"snake case123\"],\n [\"snake_case_123\", \"snake case 123\"],\n\n // Punctuation.\n ['\"quotes\"', \"quotes\"],\n\n // Space between number parts.\n [\"version 0.45.0\", \"version 0 45 0\"],\n [\"version 0..78..9\", \"version 0 78 9\"],\n [\"version 4_99/4\", \"version 4 99 4\"],\n\n // Whitespace.\n [\" test \", \"test\"],\n\n // Number string input.\n [\"something_2014_other\", \"something 2014 other\"],\n\n // https://github.com/blakeembrey/change-case/issues/21\n [\"amazon s3 data\", \"amazon s3 data\"],\n [\"foo_13_bar\", \"foo 13 bar\"],\n\n // Customization.\n [\"camel2019\", \"camel 2019\", { splitRegexp: /([a-z])([A-Z0-9])/g }],\n [\"minifyURLs\", \"minify urls\", { splitRegexp: /([a-z])([A-Z0-9])/g }],\n];\n\ndescribe(\"no case\", () => {\n for (const [input, result, options] of TEST_CASES) {\n it(`${input} -> ${result}`, () => {\n expect(noCase(input, options)).toEqual(result);\n });\n }\n});\n"]}
\ No newline at end of file diff --git a/node_modules/no-case/dist/index.d.ts b/node_modules/no-case/dist/index.d.ts deleted file mode 100644 index 4b24f804..00000000 --- a/node_modules/no-case/dist/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export interface Options { - splitRegexp?: RegExp | RegExp[]; - stripRegexp?: RegExp | RegExp[]; - delimiter?: string; - transform?: (part: string, index: number, parts: string[]) => string; -} -/** - * Normalize the string into something other libraries can manipulate easier. - */ -export declare function noCase(input: string, options?: Options): string; diff --git a/node_modules/no-case/dist/index.js b/node_modules/no-case/dist/index.js deleted file mode 100644 index 0adeaf43..00000000 --- a/node_modules/no-case/dist/index.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.noCase = void 0; -var lower_case_1 = require("lower-case"); -// Support camel case ("camelCase" -> "camel Case" and "CAMELCase" -> "CAMEL Case"). -var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g]; -// Remove all non-word characters. -var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi; -/** - * Normalize the string into something other libraries can manipulate easier. - */ -function noCase(input, options) { - if (options === void 0) { options = {}; } - var _a = options.splitRegexp, splitRegexp = _a === void 0 ? DEFAULT_SPLIT_REGEXP : _a, _b = options.stripRegexp, stripRegexp = _b === void 0 ? DEFAULT_STRIP_REGEXP : _b, _c = options.transform, transform = _c === void 0 ? lower_case_1.lowerCase : _c, _d = options.delimiter, delimiter = _d === void 0 ? " " : _d; - var result = replace(replace(input, splitRegexp, "$1\0$2"), stripRegexp, "\0"); - var start = 0; - var end = result.length; - // Trim the delimiter from around the output string. - while (result.charAt(start) === "\0") - start++; - while (result.charAt(end - 1) === "\0") - end--; - // Transform each token independently. - return result.slice(start, end).split("\0").map(transform).join(delimiter); -} -exports.noCase = noCase; -/** - * Replace `re` in the input string with the replacement value. - */ -function replace(input, re, value) { - if (re instanceof RegExp) - return input.replace(re, value); - return re.reduce(function (input, re) { return input.replace(re, value); }, input); -} -//# sourceMappingURL=index.js.map
\ No newline at end of file diff --git a/node_modules/no-case/dist/index.js.map b/node_modules/no-case/dist/index.js.map deleted file mode 100644 index 493a884e..00000000 --- a/node_modules/no-case/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,yCAAuC;AASvC,oFAAoF;AACpF,IAAM,oBAAoB,GAAG,CAAC,oBAAoB,EAAE,sBAAsB,CAAC,CAAC;AAE5E,kCAAkC;AAClC,IAAM,oBAAoB,GAAG,cAAc,C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E,KAAK,CAAC,CAAC;AACnE,CAAC","sourcesContent":["import { lowerCase } from \"lower-case\";\n\nexport interface Options {\n splitRegexp?: RegExp | RegExp[];\n stripRegexp?: RegExp | RegExp[];\n delimiter?: string;\n transform?: (part: string, index: number, parts: string[]) => string;\n}\n\n// Support camel case (\"camelCase\" -> \"camel Case\" and \"CAMELCase\" -> \"CAMEL Case\").\nconst DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g];\n\n// Remove all non-word characters.\nconst DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi;\n\n/**\n * Normalize the string into something other libraries can manipulate easier.\n */\nexport function noCase(input: string, options: Options = {}) {\n const {\n splitRegexp = DEFAULT_SPLIT_REGEXP,\n stripRegexp = DEFAULT_STRIP_REGEXP,\n transform = lowerCase,\n delimiter = \" \",\n } = options;\n\n let result = replace(\n replace(input, splitRegexp, \"$1\\0$2\"),\n stripRegexp,\n \"\\0\"\n );\n let start = 0;\n let end = result.length;\n\n // Trim the delimiter from around the output string.\n while (result.charAt(start) === \"\\0\") start++;\n while (result.charAt(end - 1) === \"\\0\") end--;\n\n // Transform each token independently.\n return result.slice(start, end).split(\"\\0\").map(transform).join(delimiter);\n}\n\n/**\n * Replace `re` in the input string with the replacement value.\n */\nfunction replace(input: string, re: RegExp | RegExp[], value: string) {\n if (re instanceof RegExp) return input.replace(re, value);\n return re.reduce((input, re) => input.replace(re, value), input);\n}\n"]}
\ No newline at end of file diff --git a/node_modules/no-case/dist/index.spec.d.ts b/node_modules/no-case/dist/index.spec.d.ts deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/no-case/dist/index.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/no-case/dist/index.spec.js b/node_modules/no-case/dist/index.spec.js deleted file mode 100644 index 199432c2..00000000 --- a/node_modules/no-case/dist/index.spec.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var _1 = require("."); -var TEST_CASES = [ - // Single words. - ["test", "test"], - ["TEST", "test"], - // Camel case. - ["testString", "test string"], - ["testString123", "test string123"], - ["testString_1_2_3", "test string 1 2 3"], - ["x_256", "x 256"], - ["anHTMLTag", "an html tag"], - ["ID123String", "id123 string"], - ["Id123String", "id123 string"], - ["foo bar123", "foo bar123"], - ["a1bStar", "a1b star"], - // Constant case. - ["CONSTANT_CASE ", "constant case"], - ["CONST123_FOO", "const123 foo"], - // Random cases. - ["FOO_bar", "foo bar"], - ["XMLHttpRequest", "xml http request"], - ["IQueryAArgs", "i query a args"], - // Non-alphanumeric separators. - ["dot.case", "dot case"], - ["path/case", "path case"], - ["snake_case", "snake case"], - ["snake_case123", "snake case123"], - ["snake_case_123", "snake case 123"], - // Punctuation. - ['"quotes"', "quotes"], - // Space between number parts. - ["version 0.45.0", "version 0 45 0"], - ["version 0..78..9", "version 0 78 9"], - ["version 4_99/4", "version 4 99 4"], - // Whitespace. - [" test ", "test"], - // Number string input. - ["something_2014_other", "something 2014 other"], - // https://github.com/blakeembrey/change-case/issues/21 - ["amazon s3 data", "amazon s3 data"], - ["foo_13_bar", "foo 13 bar"], - // Customization. - ["camel2019", "camel 2019", { splitRegexp: /([a-z])([A-Z0-9])/g }], - ["minifyURLs", "minify urls", { splitRegexp: /([a-z])([A-Z0-9])/g }], -]; -describe("no case", function () { - var _loop_1 = function (input, result, options) { - it(input + " -> " + result, function () { - expect(_1.noCase(input, options)).toEqual(result); - }); - }; - for (var _i = 0, TEST_CASES_1 = TEST_CASES; _i < TEST_CASES_1.length; _i++) { - var _a = TEST_CASES_1[_i], input = _a[0], result = _a[1], options = _a[2]; - _loop_1(input, result, options); - } -}); -//# sourceMappingURL=index.spec.js.map
\ No newline at end of file diff --git a/node_modules/no-case/dist/index.spec.js.map b/node_modules/no-case/dist/index.spec.js.map deleted file mode 100644 index 1a0d9574..00000000 --- a/node_modules/no-case/dist/index.spec.js.map +++ /dev/null @@ -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uB;IACvB,CAAC,sBAAsB,EAAE,sBAAsB,CAAC;IAEhD,uDAAuD;IACvD,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IACpC,CAAC,YAAY,EAAE,YAAY,CAAC;IAE5B,iBAAiB;IACjB,CAAC,WAAW,EAAE,YAAY,EAAE,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAC;IAClE,CAAC,YAAY,EAAE,aAAa,EAAE,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAC;CACrE,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE;4BACN,KAAK,EAAE,MAAM,EAAE,OAAO;QAChC,EAAE,CAAI,KAAK,YAAO,MAAQ,EAAE;YAC1B,MAAM,CAAC,SAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACjD,CAAC,CAAC,CAAC;;IAHL,KAAuC,UAAU,EAAV,yBAAU,EAAV,wBAAU,EAAV,IAAU;QAAtC,IAAA,qBAAwB,EAAvB,KAAK,QAAA,EAAE,MAAM,QAAA,EAAE,OAAO,QAAA;gBAAtB,KAAK,EAAE,MAAM,EAAE,OAAO;KAIjC;AACH,CAAC,CAAC,CAAC","sourcesContent":["import { noCase, Options } from \".\";\n\nconst TEST_CASES: [string, string, Options?][] = [\n // Single words.\n [\"test\", \"test\"],\n [\"TEST\", \"test\"],\n\n // Camel case.\n [\"testString\", \"test string\"],\n [\"testString123\", \"test string123\"],\n [\"testString_1_2_3\", \"test string 1 2 3\"],\n [\"x_256\", \"x 256\"],\n [\"anHTMLTag\", \"an html tag\"],\n [\"ID123String\", \"id123 string\"],\n [\"Id123String\", \"id123 string\"],\n [\"foo bar123\", \"foo bar123\"],\n [\"a1bStar\", \"a1b star\"],\n\n // Constant case.\n [\"CONSTANT_CASE \", \"constant case\"],\n [\"CONST123_FOO\", \"const123 foo\"],\n\n // Random cases.\n [\"FOO_bar\", \"foo bar\"],\n [\"XMLHttpRequest\", \"xml http request\"],\n [\"IQueryAArgs\", \"i query a args\"],\n\n // Non-alphanumeric separators.\n [\"dot.case\", \"dot case\"],\n [\"path/case\", \"path case\"],\n [\"snake_case\", \"snake case\"],\n [\"snake_case123\", \"snake case123\"],\n [\"snake_case_123\", \"snake case 123\"],\n\n // Punctuation.\n ['\"quotes\"', \"quotes\"],\n\n // Space between number parts.\n [\"version 0.45.0\", \"version 0 45 0\"],\n [\"version 0..78..9\", \"version 0 78 9\"],\n [\"version 4_99/4\", \"version 4 99 4\"],\n\n // Whitespace.\n [\" test \", \"test\"],\n\n // Number string input.\n [\"something_2014_other\", \"something 2014 other\"],\n\n // https://github.com/blakeembrey/change-case/issues/21\n [\"amazon s3 data\", \"amazon s3 data\"],\n [\"foo_13_bar\", \"foo 13 bar\"],\n\n // Customization.\n [\"camel2019\", \"camel 2019\", { splitRegexp: /([a-z])([A-Z0-9])/g }],\n [\"minifyURLs\", \"minify urls\", { splitRegexp: /([a-z])([A-Z0-9])/g }],\n];\n\ndescribe(\"no case\", () => {\n for (const [input, result, options] of TEST_CASES) {\n it(`${input} -> ${result}`, () => {\n expect(noCase(input, options)).toEqual(result);\n });\n }\n});\n"]}
\ No newline at end of file diff --git a/node_modules/no-case/package.json b/node_modules/no-case/package.json deleted file mode 100644 index b2a4d67c..00000000 --- a/node_modules/no-case/package.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "name": "no-case", - "version": "3.0.4", - "description": "Transform into a lower cased string with spaces between words", - "main": "dist/index.js", - "typings": "dist/index.d.ts", - "module": "dist.es2015/index.js", - "sideEffects": false, - "jsnext:main": "dist.es2015/index.js", - "files": [ - "dist/", - "dist.es2015/", - "LICENSE" - ], - "scripts": { - "lint": "tslint \"src/**/*\" --project tsconfig.json", - "build": "rimraf dist/ dist.es2015/ && tsc && tsc -P tsconfig.es2015.json", - "specs": "jest --coverage", - "test": "npm run build && npm run lint && npm run specs", - "size": "size-limit", - "prepare": "npm run build" - }, - "repository": { - "type": "git", - "url": "git://github.com/blakeembrey/change-case.git" - }, - "keywords": [ - "no", - "case", - "space", - "lower", - "convert", - "transform" - ], - "author": { - "name": "Blake Embrey", - "email": "hello@blakeembrey.com", - "url": "http://blakeembrey.me" - }, - "license": "MIT", - "bugs": { - "url": "https://github.com/blakeembrey/change-case/issues" - }, - "homepage": "https://github.com/blakeembrey/change-case/tree/master/packages/no-case#readme", - "size-limit": [ - { - "path": "dist/index.js", - "limit": "550 B" - } - ], - "jest": { - "roots": [ - "<rootDir>/src/" - ], - "transform": { - "\\.tsx?$": "ts-jest" - }, - "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$", - "moduleFileExtensions": [ - "ts", - "tsx", - "js", - "jsx", - "json", - "node" - ] - }, - "dependencies": { - "lower-case": "^2.0.2", - "tslib": "^2.0.3" - }, - "devDependencies": { - "@size-limit/preset-small-lib": "^2.2.1", - "@types/jest": "^24.0.23", - "@types/node": "^12.12.14", - "jest": "^24.9.0", - "rimraf": "^3.0.0", - "ts-jest": "^24.2.0", - "tslint": "^5.20.1", - "tslint-config-prettier": "^1.18.0", - "tslint-config-standard": "^9.0.0", - "typescript": "^4.1.2" - }, - "gitHead": "76a21a7f6f2a226521ef6abd345ff309cbd01fb0" -} |
