@ridi/object-case-converter
Advanced tools
Comparing version 2.0.2 to 2.0.4
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var camelCase_1 = require("lodash/camelCase"); | ||
var snakeCase_1 = require("lodash/snakeCase"); | ||
var camelCase = require("lodash/camelCase"); | ||
var snakeCase = require("lodash/snakeCase"); | ||
var CaseEnum; | ||
@@ -11,7 +11,7 @@ (function (CaseEnum) { | ||
var converters = { | ||
camelCase: camelCase_1.default, | ||
snakeCase: snakeCase_1.default, | ||
camelCase: camelCase, | ||
snakeCase: snakeCase, | ||
}; | ||
var isRegExp = function (obj) { return obj instanceof RegExp; }; | ||
var isCamelCase = function (str) { return str === camelCase_1.default(str); }; | ||
var isCamelCase = function (str) { return str === camelCase(str); }; | ||
function core(target, options) { | ||
@@ -18,0 +18,0 @@ var style = options.style, _a = options.recursive, recursive = _a === void 0 ? false : _a, excludes = options.excludes, exception = options.exception, _b = options.force, force = _b === void 0 ? false : _b; |
{ | ||
"name": "@ridi/object-case-converter", | ||
"version": "2.0.2", | ||
"version": "2.0.4", | ||
"description": "Convert keys in an javascript object for some cases(camelCase, snake_case, etc.)", | ||
"main": "dist/camelize.js", | ||
"typings": "dist/camelize.d.ts", | ||
"types": "dist/camelize.d.ts", | ||
"directories": { | ||
@@ -28,4 +28,4 @@ "test": "tests" | ||
"@types/jest": "^22.0.1", | ||
"@types/lodash": "^4.14.109", | ||
"jest": "^20.0.4", | ||
"@types/lodash": "^4.14.110", | ||
"jest": "^23.2.0", | ||
"ts-jest": "^22.0.1", | ||
@@ -42,4 +42,5 @@ "tslint": "^5.9.1", | ||
"lint": "tslint --config .tslintrc.js 'src/**/*.ts' --fix", | ||
"test": "jest --no-cache" | ||
"test": "jest --no-cache", | ||
"prepublishOnly": "npm run build" | ||
} | ||
} |
@@ -5,3 +5,3 @@ { | ||
"declaration": true, | ||
"lib": ["esnext", "dom"], | ||
"lib": ["ES2017", "DOM"], | ||
"module": "commonjs", | ||
@@ -13,3 +13,2 @@ "outDir": "dist", | ||
"noImplicitReturns": true, | ||
"allowSyntheticDefaultImports": true, | ||
"removeComments": true, | ||
@@ -16,0 +15,0 @@ "target": "es5" |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
140964
8
134
1