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
19
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.0.1 to 3.0.2

2

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

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

@@ -227,3 +227,16 @@ "use strict";

if (jsonPointer && jsonPointer !== '#' && jsonPointer !== '#/') {
targetPath = json_1.pointerToPath(jsonPointer);
try {
targetPath = json_1.pointerToPath(jsonPointer);
}
catch (_a) {
resolved.errors.push({
code: 'PARSE_POINTER',
message: `'${jsonPointer}' JSON pointer is invalid`,
uri: this.baseUri,
uriStack: this.uriStack,
pointerStack: [],
path: [],
});
return resolved;
}
resolved.result = lodash_1.get(resolved.result, targetPath);

@@ -230,0 +243,0 @@ }

@@ -76,3 +76,3 @@ /// <reference types="urijs" />

}
export declare type ResolverErrorCode = 'POINTER_MISSING' | 'RESOLVE_URI' | 'PARSE_URI' | 'RESOLVE_POINTER' | 'TRANSFORM_DEREFERENCED';
export declare type ResolverErrorCode = 'POINTER_MISSING' | 'RESOLVE_URI' | 'PARSE_URI' | 'RESOLVE_POINTER' | 'PARSE_POINTER' | 'TRANSFORM_DEREFERENCED';
export interface IResolveError {

@@ -79,0 +79,0 @@ code: ResolverErrorCode;

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