@stoplight/json-ref-resolver
Advanced tools
Comparing version 2.3.1 to 2.4.0
{ | ||
"name": "@stoplight/json-ref-resolver", | ||
"version": "2.3.1", | ||
"version": "2.4.0", | ||
"description": "Recursively resolve JSON pointers and remote authorities.", | ||
@@ -34,3 +34,5 @@ "keywords": [ | ||
"@stoplight/json": "^3.1.0", | ||
"@stoplight/path": "^1.2.1", | ||
"@stoplight/types": "^11.0.0", | ||
"@types/urijs": "1.x.x", | ||
"dependency-graph": "~0.8.0", | ||
@@ -41,6 +43,5 @@ "fast-memoize": "^2.5.1", | ||
"tslib": "^1.10.0", | ||
"urijs": "~1.19.1", | ||
"vscode-uri": "^2.0.3" | ||
"urijs": "~1.19.1" | ||
}, | ||
"typings": "index.d.ts" | ||
} |
@@ -5,8 +5,7 @@ "use strict"; | ||
const json_1 = require("@stoplight/json"); | ||
const path_1 = require("@stoplight/path"); | ||
const dependency_graph_1 = require("dependency-graph"); | ||
const immer_1 = require("immer"); | ||
const lodash_1 = require("lodash"); | ||
const path_1 = require("path"); | ||
const URI = require("urijs"); | ||
const vscode_uri_1 = require("vscode-uri"); | ||
const cache_1 = require("./cache"); | ||
@@ -43,3 +42,3 @@ const crawler_1 = require("./crawler"); | ||
if (absRef) { | ||
ref = new URI(vscode_uri_1.URI.file(absRef).fsPath.replace(/\\/g, '/')).fragment(ref.fragment()); | ||
ref = new URI(path_1.toFSPath(absRef)).fragment(ref.fragment()); | ||
} | ||
@@ -181,3 +180,3 @@ } | ||
if (this.isFile(uri)) { | ||
uri = new URI(vscode_uri_1.URI.file(baseUri).fsPath.replace(/\\/g, '/')); | ||
uri = new URI(path_1.toFSPath(baseUri)); | ||
} | ||
@@ -184,0 +183,0 @@ this.baseUri = uri; |
Sorry, the diff of this file is not supported yet
76692
10
850
+ Added@stoplight/path@^1.2.1
+ Added@types/urijs@1.x.x
+ Added@types/urijs@1.19.25(transitive)
- Removedvscode-uri@^2.0.3
- Removedvscode-uri@2.1.2(transitive)