@stoplight/json-schema-ref-parser
Advanced tools
Comparing version 9.2.4 to 9.2.5
@@ -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": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
165795
2