Socket
Socket
Sign inDemoInstall

reftools

Package Overview
Dependencies
0
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.8 to 1.1.9

6

lib/dereference.js

@@ -71,3 +71,3 @@ 'use strict';

entry.data = state.parent[state.pkey] = dereference(jptr(entry.source,entry.key),entry.source,options);
if ((options.$ref) && (typeof state.parent[state.pkey] === 'object')) state.parent[state.pkey][options.$ref] = $ref;
if (options.$ref && (typeof state.parent[state.pkey] === 'object') && (state.parent[state.pkey] !== null)) state.parent[state.pkey][options.$ref] = $ref;
entry.resolved = true;

@@ -81,3 +81,3 @@ }

state.parent[state.pkey] = entry.data;
if ((options.$ref) && (typeof state.parent[state.pkey] === 'object')) state.parent[state.pkey][options.$ref] = $ref;
if (options.$ref && (typeof state.parent[state.pkey] === 'object') && (state.parent[state.pkey] !== null)) state.parent[state.pkey][options.$ref] = $ref;
}

@@ -95,3 +95,3 @@ else if ($ref === entry.path) {

}
if ((options.$ref) && (typeof state.parent[state.pkey] === 'object')) state.parent[options.$ref] = $ref;
if (options.$ref && (typeof state.parent[state.pkey] === 'object') && (state.parent[state.pkey] !== null)) state.parent[options.$ref] = $ref;
}

@@ -98,0 +98,0 @@ }

{
"name": "reftools",
"version": "1.1.8",
"version": "1.1.9",
"description": "Utility functions to deal with references in objects",

@@ -36,3 +36,3 @@ "main": "lib/recurse.js",

"homepage": "https://github.com/mermade/oas-kit#readme",
"gitHead": "e6bea8e0b913045153b276ab23e203ece3129c88"
"gitHead": "b1bba3fc5007e96a991bf2a015cf0534ac36b88b"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc