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
13
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 1.5.2 to 1.5.3

2

package.json
{
"name": "@stoplight/json-ref-resolver",
"version": "1.5.2",
"version": "1.5.3",
"description": "Recursively resolve JSON pointers and remote authorities.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -55,18 +55,3 @@ "use strict";

}
let result = yield reader.read(ref, this.ctx);
if (this.parseAuthorityResult) {
try {
const parsed = yield this.parseAuthorityResult({
authorityResult: result,
result,
targetAuthority: ref,
parentAuthority: this.authority,
parentPath: [],
});
result = parsed.result;
}
catch (e) {
throw new Error(`Could not parse remote reference response for '${ref.toString()}' - ${String(e)}`);
}
}
const result = yield reader.read(ref, this.ctx);
return new ResolveRunner(result, {

@@ -146,2 +131,25 @@ depth: this.depth + 1,

}
if (this.parseAuthorityResult) {
try {
const parsed = yield this.parseAuthorityResult({
authorityResult: lookupResult,
result: lookupResult.resolved.result,
targetAuthority: ref,
parentAuthority: this.authority,
parentPath,
});
lookupResult.resolved.result = parsed.result;
}
catch (e) {
lookupResult.resolved.result = val;
lookupResult.error = {
code: 'PARSE_AUTHORITY',
message: `Error parsing lookup result for '${ref.toString()}': ${String(e)}`,
authority: ref,
authorityStack: this.authorityStack,
pointerStack,
path: parentPath,
};
}
}
}

@@ -148,0 +156,0 @@ }

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