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

json-dry

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-dry - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

25

lib/json-dry.js

@@ -141,6 +141,23 @@ /**

function retrieveFromPath(current, keys) {
for(var i = 0, length = keys.length; i < length; current = current[
// keys should be normalized back here
keys[i++].replace(safeSpecialCharRG, specialChar)
]);
var length = keys.length,
key,
i;
for (i = 0; i < length; i++) {
// Normalize the key
key = keys[i].replace(safeSpecialCharRG, specialChar);
if (current) {
current = current[key];
} else {
if (console) {
console.error('Could not find path ' + keys.join('.'));
}
return undefined;
}
}
return current;

@@ -147,0 +164,0 @@ }

2

package.json
{
"name": "json-dry",
"description": "JSON generator & parser with circular, date and regex support",
"version": "0.1.4",
"version": "0.1.5",
"author": "Jelle De Loecker <jelle@codedor.be>",

@@ -6,0 +6,0 @@ "keywords": ["json", "circular", "serialization", "deserialization"],

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