$
This commit is contained in:
3
node_modules/param-case/dist/index.d.ts
generated
vendored
Normal file
3
node_modules/param-case/dist/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import { Options } from "dot-case";
|
||||
export { Options };
|
||||
export declare function paramCase(input: string, options?: Options): string;
|
11
node_modules/param-case/dist/index.js
generated
vendored
Normal file
11
node_modules/param-case/dist/index.js
generated
vendored
Normal file
@@ -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
|
1
node_modules/param-case/dist/index.js.map
generated
vendored
Normal file
1
node_modules/param-case/dist/index.js.map
generated
vendored
Normal file
@@ -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"]}
|
1
node_modules/param-case/dist/index.spec.d.ts
generated
vendored
Normal file
1
node_modules/param-case/dist/index.spec.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
24
node_modules/param-case/dist/index.spec.js
generated
vendored
Normal file
24
node_modules/param-case/dist/index.spec.js
generated
vendored
Normal file
@@ -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
|
1
node_modules/param-case/dist/index.spec.js.map
generated
vendored
Normal file
1
node_modules/param-case/dist/index.spec.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user