diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-05-18 23:10:59 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-05-18 23:41:44 +0800 |
| commit | fc87c009806dcc98867f6b58efe29b042aa01dee (patch) | |
| tree | 8f59b3f4a5b66e9dfef2d40c8d318e258a521228 /node_modules/pascal-case/dist | |
| parent | 3336b2356ee6152d9c6ae59bd9b87ccbc0958407 (diff) | |
node: updatemain
Diffstat (limited to 'node_modules/pascal-case/dist')
| -rw-r--r-- | node_modules/pascal-case/dist/index.d.ts | 5 | ||||
| -rw-r--r-- | node_modules/pascal-case/dist/index.js | 24 | ||||
| -rw-r--r-- | node_modules/pascal-case/dist/index.js.map | 1 | ||||
| -rw-r--r-- | node_modules/pascal-case/dist/index.spec.d.ts | 1 | ||||
| -rw-r--r-- | node_modules/pascal-case/dist/index.spec.js | 25 | ||||
| -rw-r--r-- | node_modules/pascal-case/dist/index.spec.js.map | 1 |
6 files changed, 0 insertions, 57 deletions
diff --git a/node_modules/pascal-case/dist/index.d.ts b/node_modules/pascal-case/dist/index.d.ts deleted file mode 100644 index 4b44a415..00000000 --- a/node_modules/pascal-case/dist/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Options } from "no-case"; -export { Options }; -export declare function pascalCaseTransform(input: string, index: number): string; -export declare function pascalCaseTransformMerge(input: string): string; -export declare function pascalCase(input: string, options?: Options): string; diff --git a/node_modules/pascal-case/dist/index.js b/node_modules/pascal-case/dist/index.js deleted file mode 100644 index 521e45cd..00000000 --- a/node_modules/pascal-case/dist/index.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pascalCase = exports.pascalCaseTransformMerge = exports.pascalCaseTransform = void 0; -var tslib_1 = require("tslib"); -var no_case_1 = require("no-case"); -function pascalCaseTransform(input, index) { - var firstChar = input.charAt(0); - var lowerChars = input.substr(1).toLowerCase(); - if (index > 0 && firstChar >= "0" && firstChar <= "9") { - return "_" + firstChar + lowerChars; - } - return "" + firstChar.toUpperCase() + lowerChars; -} -exports.pascalCaseTransform = pascalCaseTransform; -function pascalCaseTransformMerge(input) { - return input.charAt(0).toUpperCase() + input.slice(1).toLowerCase(); -} -exports.pascalCaseTransformMerge = pascalCaseTransformMerge; -function pascalCase(input, options) { - if (options === void 0) { options = {}; } - return no_case_1.noCase(input, tslib_1.__assign({ delimiter: "", transform: pascalCaseTransform }, options)); -} -exports.pascalCase = pascalCase; -//# sourceMappingURL=index.js.map
\ No newline at end of file diff --git a/node_modules/pascal-case/dist/index.js.map b/node_modules/pascal-case/dist/index.js.map deleted file mode 100644 index 52e8d048..00000000 --- a/node_modules/pascal-case/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,mCAA0C;AAI1C,SAAgB,mBAAmB,CAAC,KAAa,EAAE,KAAa;IAC9D,IAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAClC,IAAM,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IACjD,IAAI,KAAK,GAAG,CAAC,IAAI,SAAS,IAAI,GAAG,IAAI,SAAS,IAAI,GAAG,EAAE;QACrD,OAAO,MAAI,SAAS,GAAG,UAAY,CAAC;KACrC;IACD,OAAO,KAAG,SAAS,CAAC,WAAW,EAAE,GAAG,UAAY,CAAC;AACnD,CAAC;AAPD,kDAOC;AAED,SAAgB,wBAAwB,CAAC,KAAa;IACpD,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;AACtE,CAAC;AAFD,4DAEC;AAED,SAAgB,UAAU,CAAC,KAAa,EAAE,OAAqB;IAArB,wBAAA,EAAA,YAAqB;IAC7D,OAAO,gBAAM,CAAC,KAAK,qBACjB,SAAS,EAAE,EAAE,EACb,SAAS,EAAE,mBAAmB,IAC3B,OAAO,EACV,CAAC;AACL,CAAC;AAND,gCAMC","sourcesContent":["import { noCase, Options } from \"no-case\";\n\nexport { Options };\n\nexport function pascalCaseTransform(input: string, index: number) {\n const firstChar = input.charAt(0);\n const lowerChars = input.substr(1).toLowerCase();\n if (index > 0 && firstChar >= \"0\" && firstChar <= \"9\") {\n return `_${firstChar}${lowerChars}`;\n }\n return `${firstChar.toUpperCase()}${lowerChars}`;\n}\n\nexport function pascalCaseTransformMerge(input: string) {\n return input.charAt(0).toUpperCase() + input.slice(1).toLowerCase();\n}\n\nexport function pascalCase(input: string, options: Options = {}) {\n return noCase(input, {\n delimiter: \"\",\n transform: pascalCaseTransform,\n ...options,\n });\n}\n"]}
\ No newline at end of file diff --git a/node_modules/pascal-case/dist/index.spec.d.ts b/node_modules/pascal-case/dist/index.spec.d.ts deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/pascal-case/dist/index.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/pascal-case/dist/index.spec.js b/node_modules/pascal-case/dist/index.spec.js deleted file mode 100644 index 0deda2e3..00000000 --- a/node_modules/pascal-case/dist/index.spec.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var _1 = require("."); -var TEST_CASES = [ - ["", ""], - ["test", "Test"], - ["test string", "TestString"], - ["Test String", "TestString"], - ["TestV2", "TestV2"], - ["version 1.2.10", "Version_1_2_10"], - ["version 1.21.0", "Version_1_21_0"], - ["version 1.21.0", "Version1210", { transform: _1.pascalCaseTransformMerge }], -]; -describe("pascal case", function () { - var _loop_1 = function (input, result, options) { - it(input + " -> " + result, function () { - expect(_1.pascalCase(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/pascal-case/dist/index.spec.js.map b/node_modules/pascal-case/dist/index.spec.js.map deleted file mode 100644 index 2f6f5c9d..00000000 --- a/node_modules/pascal-case/dist/index.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../src/index.spec.ts"],"names":[],"mappings":";;AAAA,sBAAkE;AAElE,IAAM,UAAU,GAAiC;IAC/C,CAAC,EAAE,EAAE,EAAE,CAAC;IACR,CAAC,MAAM,EAAE,MAAM,CAAC;IAChB,CAAC,aAAa,EAAE,YAAY,CAAC;IAC7B,CAAC,aAAa,EAAE,YAAY,CAAC;IAC7B,CAAC,QAAQ,EAAE,QAAQ,CAAC;IACpB,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IACpC,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IACpC,CAAC,gBAAgB,EAAE,aAAa,EAAE,EAAE,SAAS,EAAE,2BAAwB,EAAE,CAAC;CAC3E,CAAC;AAEF,QAAQ,CAAC,aAAa,EAAE;4BACV,KAAK,EAAE,MAAM,EAAE,OAAO;QAChC,EAAE,CAAI,KAAK,YAAO,MAAQ,EAAE;YAC1B,MAAM,CAAC,aAAU,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACrD,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 { pascalCase, pascalCaseTransformMerge, Options } from \".\";\n\nconst TEST_CASES: [string, string, Options?][] = [\n [\"\", \"\"],\n [\"test\", \"Test\"],\n [\"test string\", \"TestString\"],\n [\"Test String\", \"TestString\"],\n [\"TestV2\", \"TestV2\"],\n [\"version 1.2.10\", \"Version_1_2_10\"],\n [\"version 1.21.0\", \"Version_1_21_0\"],\n [\"version 1.21.0\", \"Version1210\", { transform: pascalCaseTransformMerge }],\n];\n\ndescribe(\"pascal case\", () => {\n for (const [input, result, options] of TEST_CASES) {\n it(`${input} -> ${result}`, () => {\n expect(pascalCase(input, options)).toEqual(result);\n });\n }\n});\n"]}
\ No newline at end of file |
