New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

to-function

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

to-function - npm Package Compare versions

Comparing version 0.0.1 to 1.0.0

History.md

2

component.json

@@ -5,3 +5,3 @@ {

"description": "Convert property access strings into functions",
"version": "0.0.1",
"version": "1.0.0",
"keywords": ["utility"],

@@ -8,0 +8,0 @@ "dependencies": {},

@@ -11,2 +11,4 @@

*
* TODO: consider compiling to functions.
*
* @param {Mixed} obj

@@ -41,3 +43,8 @@ * @return {Function}

if (null == obj) return;
obj = obj[props[i]];
var name = props[i];
if ('function' == typeof obj[name]) {
obj = obj[name]();
} else {
obj = obj[name];
}
}

@@ -44,0 +51,0 @@ return obj;

@@ -5,6 +5,9 @@ {

"description": "Convert property access strings into functions",
"version": "0.0.1",
"version": "1.0.0",
"keywords": ["utility"],
"dependencies": {},
"development": {},
"devDependencies": {
"mocha": "*",
"should": "*"
},
"component": {

@@ -11,0 +14,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

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