no-case
Advanced tools
Comparing version 3.0.3 to 3.0.4
@@ -21,7 +21,3 @@ import { lowerCase } from "lower-case"; | ||
// Transform each token independently. | ||
return result | ||
.slice(start, end) | ||
.split("\0") | ||
.map(transform) | ||
.join(delimiter); | ||
return result.slice(start, end).split("\0").map(transform).join(delimiter); | ||
} | ||
@@ -28,0 +24,0 @@ /** |
@@ -44,3 +44,3 @@ import { noCase } from "."; | ||
["camel2019", "camel 2019", { splitRegexp: /([a-z])([A-Z0-9])/g }], | ||
["minifyURLs", "minify urls", { splitRegexp: /([a-z])([A-Z0-9])/g }] | ||
["minifyURLs", "minify urls", { splitRegexp: /([a-z])([A-Z0-9])/g }], | ||
]; | ||
@@ -47,0 +47,0 @@ describe("no case", function () { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.noCase = void 0; | ||
var lower_case_1 = require("lower-case"); | ||
@@ -23,7 +24,3 @@ // Support camel case ("camelCase" -> "camel Case" and "CAMELCase" -> "CAMEL Case"). | ||
// Transform each token independently. | ||
return result | ||
.slice(start, end) | ||
.split("\0") | ||
.map(transform) | ||
.join(delimiter); | ||
return result.slice(start, end).split("\0").map(transform).join(delimiter); | ||
} | ||
@@ -30,0 +27,0 @@ exports.noCase = noCase; |
@@ -46,3 +46,3 @@ "use strict"; | ||
["camel2019", "camel 2019", { splitRegexp: /([a-z])([A-Z0-9])/g }], | ||
["minifyURLs", "minify urls", { splitRegexp: /([a-z])([A-Z0-9])/g }] | ||
["minifyURLs", "minify urls", { splitRegexp: /([a-z])([A-Z0-9])/g }], | ||
]; | ||
@@ -49,0 +49,0 @@ describe("no case", function () { |
{ | ||
"name": "no-case", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"description": "Transform into a lower cased string with spaces between words", | ||
@@ -69,4 +69,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"lower-case": "^2.0.1", | ||
"tslib": "^1.10.0" | ||
"lower-case": "^2.0.2", | ||
"tslib": "^2.0.3" | ||
}, | ||
@@ -83,5 +83,5 @@ "devDependencies": { | ||
"tslint-config-standard": "^9.0.0", | ||
"typescript": "^3.7.2" | ||
"typescript": "^4.1.2" | ||
}, | ||
"gitHead": "1c1377a692d328ae01221b2a1532bade38e1eaa3" | ||
"gitHead": "76a21a7f6f2a226521ef6abd345ff309cbd01fb0" | ||
} |
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
25128
201
- Removedtslib@1.14.1(transitive)
Updatedlower-case@^2.0.2
Updatedtslib@^2.0.3