Comparing version 0.1.4 to 0.1.5
@@ -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 @@ } |
{ | ||
"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"], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8862
250