summaryrefslogtreecommitdiff
path: root/node_modules/param-case/dist
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-08-30 17:21:18 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-08-30 17:21:18 +0800
commitefbc2ffe6a1ee5ec38a4396305561d6515d0943e (patch)
tree2b4c94f18f2c792dfda813050755d5c0273fae22 /node_modules/param-case/dist
parent43acceb75957c880a5ba5a31aae221394a36d5f6 (diff)
node fixes, updates
Diffstat (limited to 'node_modules/param-case/dist')
-rw-r--r--node_modules/param-case/dist/index.d.ts3
-rw-r--r--node_modules/param-case/dist/index.js11
-rw-r--r--node_modules/param-case/dist/index.js.map1
-rw-r--r--node_modules/param-case/dist/index.spec.d.ts1
-rw-r--r--node_modules/param-case/dist/index.spec.js24
-rw-r--r--node_modules/param-case/dist/index.spec.js.map1
6 files changed, 41 insertions, 0 deletions
diff --git a/node_modules/param-case/dist/index.d.ts b/node_modules/param-case/dist/index.d.ts
new file mode 100644
index 00000000..b90ba474
--- /dev/null
+++ b/node_modules/param-case/dist/index.d.ts
@@ -0,0 +1,3 @@
+import { Options } from "dot-case";
+export { Options };
+export declare function paramCase(input: string, options?: Options): string;
diff --git a/node_modules/param-case/dist/index.js b/node_modules/param-case/dist/index.js
new file mode 100644
index 00000000..479c693b
--- /dev/null
+++ b/node_modules/param-case/dist/index.js
@@ -0,0 +1,11 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.paramCase = void 0;
+var tslib_1 = require("tslib");
+var dot_case_1 = require("dot-case");
+function paramCase(input, options) {
+ if (options === void 0) { options = {}; }
+ return dot_case_1.dotCase(input, tslib_1.__assign({ delimiter: "-" }, options));
+}
+exports.paramCase = paramCase;
+//# sourceMappingURL=index.js.map \ No newline at end of file
diff --git a/node_modules/param-case/dist/index.js.map b/node_modules/param-case/dist/index.js.map
new file mode 100644
index 00000000..be5f1123
--- /dev/null
+++ b/node_modules/param-case/dist/index.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,qCAA4C;AAI5C,SAAgB,SAAS,CAAC,KAAa,EAAE,OAAqB;IAArB,wBAAA,EAAA,YAAqB;IAC5D,OAAO,kBAAO,CAAC,KAAK,qBAClB,SAAS,EAAE,GAAG,IACX,OAAO,EACV,CAAC;AACL,CAAC;AALD,8BAKC","sourcesContent":["import { dotCase, Options } from \"dot-case\";\n\nexport { Options };\n\nexport function paramCase(input: string, options: Options = {}) {\n return dotCase(input, {\n delimiter: \"-\",\n ...options,\n });\n}\n"]} \ No newline at end of file
diff --git a/node_modules/param-case/dist/index.spec.d.ts b/node_modules/param-case/dist/index.spec.d.ts
new file mode 100644
index 00000000..cb0ff5c3
--- /dev/null
+++ b/node_modules/param-case/dist/index.spec.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/node_modules/param-case/dist/index.spec.js b/node_modules/param-case/dist/index.spec.js
new file mode 100644
index 00000000..e68df7cb
--- /dev/null
+++ b/node_modules/param-case/dist/index.spec.js
@@ -0,0 +1,24 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var _1 = require(".");
+var TEST_CASES = [
+ ["", ""],
+ ["test", "test"],
+ ["test string", "test-string"],
+ ["Test String", "test-string"],
+ ["TestV2", "test-v2"],
+ ["version 1.2.10", "version-1-2-10"],
+ ["version 1.21.0", "version-1-21-0"],
+];
+describe("param case", function () {
+ var _loop_1 = function (input, result) {
+ it(input + " -> " + result, function () {
+ expect(_1.paramCase(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);
+ }
+});
+//# sourceMappingURL=index.spec.js.map \ No newline at end of file
diff --git a/node_modules/param-case/dist/index.spec.js.map b/node_modules/param-case/dist/index.spec.js.map
new file mode 100644
index 00000000..52bb5da2
--- /dev/null
+++ b/node_modules/param-case/dist/index.spec.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../src/index.spec.ts"],"names":[],"mappings":";;AAAA,sBAA8B;AAE9B,IAAM,UAAU,GAAuB;IACrC,CAAC,EAAE,EAAE,EAAE,CAAC;IACR,CAAC,MAAM,EAAE,MAAM,CAAC;IAChB,CAAC,aAAa,EAAE,aAAa,CAAC;IAC9B,CAAC,aAAa,EAAE,aAAa,CAAC;IAC9B,CAAC,QAAQ,EAAE,SAAS,CAAC;IACrB,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IACpC,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;CACrC,CAAC;AAEF,QAAQ,CAAC,YAAY,EAAE;4BACT,KAAK,EAAE,MAAM;QACvB,EAAE,CAAI,KAAK,YAAO,MAAQ,EAAE;YAC1B,MAAM,CAAC,YAAS,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAC3C,CAAC,CAAC,CAAC;;IAHL,KAA8B,UAAU,EAAV,yBAAU,EAAV,wBAAU,EAAV,IAAU;QAA7B,IAAA,qBAAe,EAAd,KAAK,QAAA,EAAE,MAAM,QAAA;gBAAb,KAAK,EAAE,MAAM;KAIxB;AACH,CAAC,CAAC,CAAC","sourcesContent":["import { paramCase } from \".\";\n\nconst TEST_CASES: [string, string][] = [\n [\"\", \"\"],\n [\"test\", \"test\"],\n [\"test string\", \"test-string\"],\n [\"Test String\", \"test-string\"],\n [\"TestV2\", \"test-v2\"],\n [\"version 1.2.10\", \"version-1-2-10\"],\n [\"version 1.21.0\", \"version-1-21-0\"],\n];\n\ndescribe(\"param case\", () => {\n for (const [input, result] of TEST_CASES) {\n it(`${input} -> ${result}`, () => {\n expect(paramCase(input)).toEqual(result);\n });\n }\n});\n"]} \ No newline at end of file