Comparing version 0.0.19 to 0.0.20
@@ -88,3 +88,3 @@ 'use strict'; | ||
(!Array.isArray(obj))) { | ||
obj[components[i]] = (setAndLast ? newValue : {}); | ||
obj[components[i]] = (setAndLast ? newValue : ((components[i+1] === '0' || components[i+1] === '-') ? [] : {})); | ||
obj = obj[components[i]]; | ||
@@ -91,0 +91,0 @@ } |
{ | ||
"name": "reftools", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"description": "Utility functions to deal with references in objects", | ||
@@ -5,0 +5,0 @@ "main": "lib/recurse.js", |
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
32804