@stoplight/json-ref-resolver
Advanced tools
Comparing version 3.0.6 to 3.0.7
{ | ||
"name": "@stoplight/json-ref-resolver", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"description": "Recursively resolve JSON pointers and remote authorities.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -27,3 +27,3 @@ "use strict"; | ||
exports.uriToJSONPointer = (uri) => { | ||
return uri.fragment() ? `#${uri.fragment()}` : '#'; | ||
return uri.fragment() !== '' ? `#${uri.fragment()}` : uri.href() === '' ? '#' : ''; | ||
}; | ||
@@ -30,0 +30,0 @@ exports.uriIsJSONPointer = (ref) => { |
Sorry, the diff of this file is not supported yet
80802