Socket
Socket
Sign inDemoInstall

cac

Package Overview
Dependencies
Maintainers
3
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cac - npm Package Compare versions

Comparing version 6.2.3 to 6.2.4

5

dist/index.js

@@ -136,3 +136,6 @@ "use strict";

for (const key of Object.keys(parsed)) {
options[utils_1.camelcase(key)] = parsed[key];
const keys = key.split('.').map((v, i) => {
return i === 0 ? utils_1.camelcase(v) : v;
});
utils_1.setDotProp(options, keys, parsed[key]);
}

@@ -139,0 +142,0 @@ return {

@@ -76,1 +76,18 @@ "use strict";

};
exports.setDotProp = (obj, keys, val) => {
let i = 0;
let length = keys.length;
let t = obj;
let x;
for (; i < length; ++i) {
x = t[keys[i]];
t = t[keys[i]] =
i === length - 1
? val
: x != null
? x
: !!~keys[i + 1].indexOf('.') || !(+keys[i + 1] > -1)
? {}
: [];
}
};

2

package.json
{
"name": "cac",
"version": "6.2.3",
"version": "6.2.4",
"description": "Simple yet powerful framework for building command-line apps.",

@@ -5,0 +5,0 @@ "repository": {

@@ -16,1 +16,4 @@ import Command from './Command';

export declare const camelcase: (input: string) => string;
export declare const setDotProp: (obj: {
[k: string]: any;
}, keys: string[], val: any) => void;
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