Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stoplight/json-ref-resolver

Package Overview
Dependencies
Maintainers
22
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoplight/json-ref-resolver - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

4

crawler.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc