@stoplight/json-ref-resolver
Advanced tools
Comparing version 3.0.5 to 3.0.6
{ | ||
"name": "@stoplight/json-ref-resolver", | ||
"version": "3.0.5", | ||
"version": "3.0.6", | ||
"description": "Recursively resolve JSON pointers and remote authorities.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -121,2 +121,4 @@ "use strict"; | ||
let uriResolver; | ||
const currentAuthority = this.baseUri.toString(); | ||
const newUriStack = currentAuthority && this.depth !== 0 ? currentAuthority : null; | ||
try { | ||
@@ -132,5 +134,4 @@ if (this.atMaxUriDepth()) { | ||
}); | ||
const currentAuthority = this.baseUri.toString(); | ||
if (currentAuthority && this.depth !== 0) { | ||
uriResolver.uriStack = uriResolver.uriStack.concat([currentAuthority]); | ||
if (newUriStack) { | ||
uriResolver.uriStack = uriResolver.uriStack.concat(newUriStack); | ||
} | ||
@@ -143,3 +144,3 @@ } | ||
uri: ref, | ||
uriStack: this.uriStack, | ||
uriStack: newUriStack ? this.uriStack.concat(newUriStack) : this.uriStack, | ||
pointerStack, | ||
@@ -146,0 +147,0 @@ path: parentPath, |
Sorry, the diff of this file is not supported yet
80695
902