Socket
Socket
Sign inDemoInstall

json-refs

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-refs - npm Package Compare versions

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",

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