@stoplight/json-ref-resolver
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -5,3 +5,3 @@ "use strict"; | ||
const dependency_graph_1 = require("dependency-graph"); | ||
const lodash_1 = require("lodash"); | ||
const get = require("lodash.get"); | ||
const Utils = require("./utils"); | ||
@@ -128,3 +128,3 @@ class ResolveCrawler { | ||
pointerStack.push(targetPointer); | ||
this.computeGraph(lodash_1.get(this._runner.source, targetPath), targetPath, targetPointer, pointerStack); | ||
this.computeGraph(get(this._runner.source, targetPath), targetPath, targetPointer, pointerStack); | ||
pointerStack.pop(); | ||
@@ -131,0 +131,0 @@ } |
{ | ||
"name": "@stoplight/json-ref-resolver", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Recursively resolve JSON pointers and remote authorities.", | ||
@@ -33,14 +33,15 @@ "keywords": [ | ||
"dependencies": { | ||
"@stoplight/json": "^3.4.0", | ||
"@stoplight/path": "^1.3.1", | ||
"@stoplight/types": "^11.6.0", | ||
"@types/urijs": "^1.19.9", | ||
"dependency-graph": "~0.8.0", | ||
"fast-memoize": "^2.5.1", | ||
"immer": "^5.3.2", | ||
"lodash": "^4.17.15", | ||
"tslib": "^1.13.0", | ||
"urijs": "^1.19.2" | ||
"@stoplight/json": "^3.10.2", | ||
"@stoplight/path": "^1.3.2", | ||
"@stoplight/types": "^11.9.0", | ||
"@types/urijs": "^1.19.14", | ||
"dependency-graph": "~0.10.0", | ||
"fast-memoize": "^2.5.2", | ||
"immer": "^8.0.1", | ||
"lodash.get": "^4.4.2", | ||
"lodash.set": "^4.3.2", | ||
"tslib": "^2.1.0", | ||
"urijs": "^1.19.5" | ||
}, | ||
"typings": "index.d.ts" | ||
} |
@@ -8,3 +8,4 @@ "use strict"; | ||
const immer_1 = require("immer"); | ||
const lodash_1 = require("lodash"); | ||
const get = require("lodash.get"); | ||
const set = require("lodash.set"); | ||
const URI = require("urijs"); | ||
@@ -161,3 +162,3 @@ const cache_1 = require("./cache"); | ||
if (errorPathInResult && errorPathInResult.length) { | ||
lodash_1.set(lookupResult.resolved.result, errorPathInResult, val); | ||
set(lookupResult.resolved.result, errorPathInResult, val); | ||
} | ||
@@ -244,3 +245,3 @@ else if (lookupResult.resolved.result) { | ||
} | ||
resolved.result = lodash_1.get(resolved.result, targetPath); | ||
resolved.result = get(resolved.result, targetPath); | ||
} | ||
@@ -287,3 +288,3 @@ if (resolved.result === void 0) { | ||
else { | ||
lodash_1.set(draft, resolvedTargetPath, r.resolved.result); | ||
set(draft, resolvedTargetPath, r.resolved.result); | ||
this._setGraphNodeData(String(r.uri), r.resolved.result); | ||
@@ -306,3 +307,3 @@ } | ||
const pointerPath = json_1.pointerToPath(pointer); | ||
const val = pointerPath.length === 0 ? immer_1.original(draft) : lodash_1.get(draft, pointerPath); | ||
const val = pointerPath.length === 0 ? immer_1.original(draft) : get(draft, pointerPath); | ||
for (const dependant of dependants) { | ||
@@ -323,4 +324,4 @@ let isCircular; | ||
if (val !== void 0) { | ||
lodash_1.set(draft, dependantPath, val); | ||
this._setGraphNodeData(json_1.pathToPointer(pointerPath), immer_1.original(val)); | ||
set(draft, dependantPath, val); | ||
this._setGraphNodeData(json_1.pathToPointer(pointerPath), val); | ||
} | ||
@@ -345,3 +346,3 @@ else { | ||
if (targetPath) { | ||
resolved.result = lodash_1.get(this._source, targetPath); | ||
resolved.result = get(this._source, targetPath); | ||
} | ||
@@ -348,0 +349,0 @@ else { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
912
81019
11
+ Addedlodash.get@^4.4.2
+ Addedlodash.set@^4.3.2
+ Addeddependency-graph@0.10.0(transitive)
+ Addedimmer@8.0.4(transitive)
+ Addedlodash.get@4.4.2(transitive)
+ Addedlodash.set@4.3.2(transitive)
+ Addedtslib@2.8.1(transitive)
- Removedlodash@^4.17.15
- Removeddependency-graph@0.8.1(transitive)
- Removedimmer@5.3.6(transitive)
- Removedtslib@1.14.1(transitive)
Updated@stoplight/json@^3.10.2
Updated@stoplight/path@^1.3.2
Updated@stoplight/types@^11.9.0
Updated@types/urijs@^1.19.14
Updateddependency-graph@~0.10.0
Updatedfast-memoize@^2.5.2
Updatedimmer@^8.0.1
Updatedtslib@^2.1.0
Updatedurijs@^1.19.5