Comparing version 1.0.4 to 1.0.5
14
index.js
@@ -473,8 +473,12 @@ /* | ||
// If the remote value is itself a reference, update the reference to be replaced with its reference value. | ||
// Otherwise, replace the remote reference. | ||
if (value.$ref) { | ||
value = value.$ref; | ||
if (_.isUndefined(value)) { | ||
refMetadata.missing = true; | ||
} else { | ||
refPath.pop(); | ||
// If the remote value is itself a reference, update the reference to be replaced with its reference value. | ||
// Otherwise, replace the remote reference. | ||
if (value.$ref) { | ||
value = value.$ref; | ||
} else { | ||
refPath.pop(); | ||
} | ||
} | ||
@@ -481,0 +485,0 @@ } |
{ | ||
"name": "json-refs", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Various utilities for JSON References (http://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03).", | ||
@@ -5,0 +5,0 @@ "main": "index.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
29632
677