Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "abolish", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "A javascript object validator.", | ||
@@ -17,5 +17,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"@types/lodash.has": "^4.5.6", | ||
"@types/lodash.unset": "^4.5.6", | ||
"lodash.has": "^4.5.2", | ||
"lodash.startcase": "^4.4.0", | ||
"lodash.unset": "^4.5.2" | ||
@@ -27,3 +26,6 @@ }, | ||
"ts-node-dev": "^1.1.1", | ||
"typescript": "^4.1.3" | ||
"typescript": "^4.1.3", | ||
"@types/lodash.has": "^4.5.6", | ||
"@types/lodash.startcase": "^4.4.6", | ||
"@types/lodash.unset": "^4.5.6" | ||
}, | ||
@@ -30,0 +32,0 @@ "keywords": [ |
@@ -8,2 +8,3 @@ "use strict"; | ||
const StringToRules_1 = __importDefault(require("./StringToRules")); | ||
const lodash_startcase_1 = __importDefault(require("lodash.startcase")); | ||
/** | ||
@@ -24,7 +25,3 @@ * Change to string to upperFirst | ||
function StartCase(str) { | ||
if (str.indexOf('_') >= 0) | ||
str = str.replace('_', ' '); | ||
if (str.indexOf('-') >= 0) | ||
str = str.replace('-', ' '); | ||
return str.split(' ').map(word => UpperFirst(word)).join(' '); | ||
return lodash_startcase_1.default(str); | ||
} | ||
@@ -31,0 +28,0 @@ exports.StartCase = StartCase; |
3
47018
7
1316
+ Addedlodash.startcase@^4.4.0
+ Addedlodash.startcase@4.4.0(transitive)
- Removed@types/lodash.has@^4.5.6
- Removed@types/lodash.unset@^4.5.6
- Removed@types/lodash@4.17.15(transitive)
- Removed@types/lodash.has@4.5.9(transitive)
- Removed@types/lodash.unset@4.5.9(transitive)