Socket
Socket
Sign inDemoInstall

clout-js

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clout-js - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

23

lib/utils.js

@@ -32,1 +32,24 @@ /*!

};
/**
* Get value from object using string
* @param {String} key string representing path
* @param {Object} obj Object to travel
* @return {Object} value
*/
utils.getValue = function getValue(key, obj) {
var nodes = key.split('.'),
key = obj;
do {
var node = nodes.shift();
if (key && key.hasOwnProperty(node)) {
key = key[node];
continue;
}
(key = undefined) && delete key;
(nodes = null) && delete nodes;
} while (nodes && nodes.length > 0);
return key;
};

2

package.json
{
"name": "clout-js",
"version": "1.0.6",
"version": "1.0.7",
"description": "Clean, simplistic, enterprise grade full-stack NodeJS framework",

@@ -5,0 +5,0 @@ "main": "index.js",

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