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

@stoplight/json-schema-ref-parser

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoplight/json-schema-ref-parser - npm Package Compare versions

Comparing version 9.2.4 to 9.2.5

2

lib/index.d.ts

@@ -493,3 +493,3 @@ import { JSONSchema4, JSONSchema4Type, JSONSchema6, JSONSchema6Type } from "json-schema";

export class MissingPointerError extends JSONParserError {
public constructor(token: string | number, source: string);
public constructor(token: string | number, source: string, unresolvableRefValue?: string, pathToUnresolvableRef?: string);

@@ -496,0 +496,0 @@ public readonly name = "MissingPointerError";

@@ -100,3 +100,3 @@ "use strict";

this.value = null;
throw new MissingPointerError(token, this.originalPath);
throw new MissingPointerError(token, this.originalPath, this.path, pathFromRoot);
}

@@ -103,0 +103,0 @@ else {

@@ -5,3 +5,3 @@ "use strict";

const { stripHash, toFileSystemPath } = require("./url");
const { getHash, stripHash, toFileSystemPath } = require("./url");

@@ -97,4 +97,4 @@ const JSONParserError = exports.JSONParserError = class JSONParserError extends Error {

const MissingPointerError = exports.MissingPointerError = class MissingPointerError extends JSONParserError {
constructor (token, path) {
super(`Token "${token}" does not exist.`, stripHash(path));
constructor (unresolvableTokenInRef, path, unresolvableRefValue, pathToUnresolvableRef) {
super(`at "${getHash(pathToUnresolvableRef)}", token "${unresolvableTokenInRef}" in "${getHash(unresolvableRefValue)}" does not exist`, stripHash(path));

@@ -101,0 +101,0 @@ this.code = "EMISSINGPOINTER";

{
"name": "@stoplight/json-schema-ref-parser",
"version": "9.2.4",
"version": "9.2.5",
"description": "Parse, Resolve, and Dereference JSON Schema $ref pointers",

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

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