dot-case
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -0,5 +1,7 @@ | ||
import { __assign } from "tslib"; | ||
import { noCase } from "no-case"; | ||
export function dotCase(input, options = {}) { | ||
return noCase(input, Object.assign({ delimiter: "." }, options)); | ||
export function dotCase(input, options) { | ||
if (options === void 0) { options = {}; } | ||
return noCase(input, __assign({ delimiter: "." }, options)); | ||
} | ||
//# sourceMappingURL=index.js.map |
import { dotCase } from "."; | ||
const TEST_CASES = [ | ||
var TEST_CASES = [ | ||
["", ""], | ||
@@ -13,9 +13,13 @@ ["test", "test"], | ||
]; | ||
describe("dot case", () => { | ||
for (const [input, result] of TEST_CASES) { | ||
it(`${input} -> ${result}`, () => { | ||
describe("dot case", function () { | ||
var _loop_1 = function (input, result) { | ||
it(input + " -> " + result, function () { | ||
expect(dotCase(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 |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const no_case_1 = require("no-case"); | ||
function dotCase(input, options = {}) { | ||
return no_case_1.noCase(input, Object.assign({ delimiter: "." }, options)); | ||
var tslib_1 = require("tslib"); | ||
var no_case_1 = require("no-case"); | ||
function dotCase(input, options) { | ||
if (options === void 0) { options = {}; } | ||
return no_case_1.noCase(input, tslib_1.__assign({ delimiter: "." }, options)); | ||
} | ||
exports.dotCase = dotCase; | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const _1 = require("."); | ||
const TEST_CASES = [ | ||
var _1 = require("."); | ||
var TEST_CASES = [ | ||
["", ""], | ||
@@ -15,9 +15,13 @@ ["test", "test"], | ||
]; | ||
describe("dot case", () => { | ||
for (const [input, result] of TEST_CASES) { | ||
it(`${input} -> ${result}`, () => { | ||
describe("dot case", function () { | ||
var _loop_1 = function (input, result) { | ||
it(input + " -> " + result, function () { | ||
expect(_1.dotCase(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 |
{ | ||
"name": "dot-case", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Transform into a lower case string with a period between words", | ||
@@ -19,3 +19,3 @@ "main": "dist/index.js", | ||
"specs": "jest --coverage", | ||
"test": "npm run build && npm run lint && npm run specs && npm run size", | ||
"test": "npm run build && npm run lint && npm run specs", | ||
"size": "size-limit", | ||
@@ -50,3 +50,3 @@ "prepare": "npm run build" | ||
"path": "dist/index.js", | ||
"limit": "350 B" | ||
"limit": "450 B" | ||
} | ||
@@ -75,3 +75,4 @@ ], | ||
"dependencies": { | ||
"no-case": "^3.0.1" | ||
"no-case": "^3.0.2", | ||
"tslib": "^1.10.0" | ||
}, | ||
@@ -90,3 +91,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "a3df3a43bfd3d8e3386d0fb09b69454b91516d18" | ||
"gitHead": "07b68e1a696a1a34090d4f1fc136b1bd467aaa3f" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
10429
71
2
+ Addedtslib@^1.10.0
+ Addedtslib@1.14.1(transitive)
Updatedno-case@^3.0.2