reftools
Advanced tools
Comparing version 1.1.8 to 1.1.9
@@ -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" | ||
} |
32799