From fc87c009806dcc98867f6b58efe29b042aa01dee Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 18 May 2026 23:10:59 +0800 Subject: node: update --- node_modules/lower-case/dist.es2015/index.d.ts | 8 ---- node_modules/lower-case/dist.es2015/index.js | 48 ---------------------- node_modules/lower-case/dist.es2015/index.js.map | 1 - .../lower-case/dist.es2015/index.spec.d.ts | 1 - node_modules/lower-case/dist.es2015/index.spec.js | 34 --------------- .../lower-case/dist.es2015/index.spec.js.map | 1 - 6 files changed, 93 deletions(-) delete mode 100644 node_modules/lower-case/dist.es2015/index.d.ts delete mode 100644 node_modules/lower-case/dist.es2015/index.js delete mode 100644 node_modules/lower-case/dist.es2015/index.js.map delete mode 100644 node_modules/lower-case/dist.es2015/index.spec.d.ts delete mode 100644 node_modules/lower-case/dist.es2015/index.spec.js delete mode 100644 node_modules/lower-case/dist.es2015/index.spec.js.map (limited to 'node_modules/lower-case/dist.es2015') diff --git a/node_modules/lower-case/dist.es2015/index.d.ts b/node_modules/lower-case/dist.es2015/index.d.ts deleted file mode 100644 index d563e2f9..00000000 --- a/node_modules/lower-case/dist.es2015/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Localized lower case. - */ -export declare function localeLowerCase(str: string, locale: string): string; -/** - * Lower case as a function. - */ -export declare function lowerCase(str: string): string; diff --git a/node_modules/lower-case/dist.es2015/index.js b/node_modules/lower-case/dist.es2015/index.js deleted file mode 100644 index 2be99779..00000000 --- a/node_modules/lower-case/dist.es2015/index.js +++ /dev/null @@ -1,48 +0,0 @@ -/** - * Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt - */ -var SUPPORTED_LOCALE = { - tr: { - regexp: /\u0130|\u0049|\u0049\u0307/g, - map: { - İ: "\u0069", - I: "\u0131", - İ: "\u0069", - }, - }, - az: { - regexp: /\u0130/g, - map: { - İ: "\u0069", - I: "\u0131", - İ: "\u0069", - }, - }, - lt: { - regexp: /\u0049|\u004A|\u012E|\u00CC|\u00CD|\u0128/g, - map: { - I: "\u0069\u0307", - J: "\u006A\u0307", - Į: "\u012F\u0307", - Ì: "\u0069\u0307\u0300", - Í: "\u0069\u0307\u0301", - Ĩ: "\u0069\u0307\u0303", - }, - }, -}; -/** - * Localized lower case. - */ -export function localeLowerCase(str, locale) { - var lang = SUPPORTED_LOCALE[locale.toLowerCase()]; - if (lang) - return lowerCase(str.replace(lang.regexp, function (m) { return lang.map[m]; })); - return lowerCase(str); -} -/** - * Lower case as a function. - */ -export function lowerCase(str) { - return str.toLowerCase(); -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/lower-case/dist.es2015/index.js.map b/node_modules/lower-case/dist.es2015/index.js.map deleted file mode 100644 index 73fb240c..00000000 --- a/node_modules/lower-case/dist.es2015/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,IAAM,gBAAgB,GAA2B;IAC/C,EAAE,EAAE;QACF,MAAM,EAAE,6BAA6B;QACrC,GAAG,EAAE;YACH,CAAC,EAAE,QAAQ;YACX,CAAC,EAAE,QAAQ;YACX,EAAE,EAAE,QAAQ;SACb;KACF;IACD,EAAE,EAAE;QACF,MAAM,EAAE,SAAS;QACjB,GAAG,EAAE;YACH,CAAC,EAAE,QAAQ;YACX,CAAC,EAAE,QAAQ;YACX,EAAE,EAAE,QAAQ;SACb;KACF;IACD,EAAE,EAAE;QACF,MAAM,EAAE,4CAA4C;QACpD,GAAG,EAAE;YACH,CAAC,EAAE,cAAc;YACjB,CAAC,EAAE,cAAc;YACjB,CAAC,EAAE,cAAc;YACjB,CAAC,EAAE,oBAAoB;YACvB,CAAC,EAAE,oBAAoB;YACvB,CAAC,EAAE,oBAAoB;SACxB;KACF;CACF,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,GAAW,EAAE,MAAc;IACzD,IAAM,IAAI,GAAG,gBAAgB,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC;IACpD,IAAI,IAAI;QAAE,OAAO,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,UAAC,CAAC,IAAK,OAAA,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAX,CAAW,CAAC,CAAC,CAAC;IACzE,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;AACxB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,SAAS,CAAC,GAAW;IACnC,OAAO,GAAG,CAAC,WAAW,EAAE,CAAC;AAC3B,CAAC","sourcesContent":["/**\n * Locale character mapping rules.\n */\ninterface Locale {\n regexp: RegExp;\n map: Record;\n}\n\n/**\n * Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt\n */\nconst SUPPORTED_LOCALE: Record = {\n tr: {\n regexp: /\\u0130|\\u0049|\\u0049\\u0307/g,\n map: {\n İ: \"\\u0069\",\n I: \"\\u0131\",\n İ: \"\\u0069\",\n },\n },\n az: {\n regexp: /\\u0130/g,\n map: {\n İ: \"\\u0069\",\n I: \"\\u0131\",\n İ: \"\\u0069\",\n },\n },\n lt: {\n regexp: /\\u0049|\\u004A|\\u012E|\\u00CC|\\u00CD|\\u0128/g,\n map: {\n I: \"\\u0069\\u0307\",\n J: \"\\u006A\\u0307\",\n Į: \"\\u012F\\u0307\",\n Ì: \"\\u0069\\u0307\\u0300\",\n Í: \"\\u0069\\u0307\\u0301\",\n Ĩ: \"\\u0069\\u0307\\u0303\",\n },\n },\n};\n\n/**\n * Localized lower case.\n */\nexport function localeLowerCase(str: string, locale: string) {\n const lang = SUPPORTED_LOCALE[locale.toLowerCase()];\n if (lang) return lowerCase(str.replace(lang.regexp, (m) => lang.map[m]));\n return lowerCase(str);\n}\n\n/**\n * Lower case as a function.\n */\nexport function lowerCase(str: string) {\n return str.toLowerCase();\n}\n"]} \ No newline at end of file diff --git a/node_modules/lower-case/dist.es2015/index.spec.d.ts b/node_modules/lower-case/dist.es2015/index.spec.d.ts deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/lower-case/dist.es2015/index.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/lower-case/dist.es2015/index.spec.js b/node_modules/lower-case/dist.es2015/index.spec.js deleted file mode 100644 index 1211f742..00000000 --- a/node_modules/lower-case/dist.es2015/index.spec.js +++ /dev/null @@ -1,34 +0,0 @@ -import { lowerCase, localeLowerCase } from "."; -var TEST_CASES = [ - ["", ""], - ["test", "test"], - ["TEST", "test"], - ["test string", "test string"], - ["TEST STRING", "test string"], -]; -var LOCALE_TEST_CASES = [ - ["STRING", "strıng", "tr"], -]; -describe("lower case", function () { - var _loop_1 = function (input, result) { - it(input + " -> " + result, function () { - expect(lowerCase(input)).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]; - _loop_1(input, result); - } -}); -describe("locale lower case", function () { - var _loop_2 = function (input, result, locale) { - it(locale + ": " + input + " -> " + result, function () { - expect(localeLowerCase(input, locale)).toEqual(result); - }); - }; - for (var _i = 0, LOCALE_TEST_CASES_1 = LOCALE_TEST_CASES; _i < LOCALE_TEST_CASES_1.length; _i++) { - var _a = LOCALE_TEST_CASES_1[_i], input = _a[0], result = _a[1], locale = _a[2]; - _loop_2(input, result, locale); - } -}); -//# sourceMappingURL=index.spec.js.map \ No newline at end of file diff --git a/node_modules/lower-case/dist.es2015/index.spec.js.map b/node_modules/lower-case/dist.es2015/index.spec.js.map deleted file mode 100644 index 0639121e..00000000 --- a/node_modules/lower-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,SAAS,EAAE,eAAe,EAAE,MAAM,GAAG,CAAC;AAE/C,IAAM,UAAU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TEST\", \"test\"],\n [\"test string\", \"test string\"],\n [\"TEST STRING\", \"test string\"],\n];\n\nconst LOCALE_TEST_CASES: [string, string, string][] = [\n [\"STRING\", \"strıng\", \"tr\"],\n];\n\ndescribe(\"lower case\", () => {\n for (const [input, result] of TEST_CASES) {\n it(`${input} -> ${result}`, () => {\n expect(lowerCase(input)).toEqual(result);\n });\n }\n});\n\ndescribe(\"locale lower case\", () => {\n for (const [input, result, locale] of LOCALE_TEST_CASES) {\n it(`${locale}: ${input} -> ${result}`, () => {\n expect(localeLowerCase(input, locale)).toEqual(result);\n });\n }\n});\n"]} \ No newline at end of file -- cgit v1.2.3