Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ridi/object-case-converter

Package Overview
Dependencies
Maintainers
12
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ridi/object-case-converter - npm Package Compare versions

Comparing version 2.0.2 to 2.0.4

10

dist/camelize.js
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc