Comparing version 5.1.1 to 5.1.2
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const url_1 = require("url"); | ||
const utils_1 = require("./utils"); | ||
; | ||
@@ -107,3 +108,3 @@ const __meta = Symbol(); | ||
}; | ||
_annotate(next, `${meta.scope}/${key}`); | ||
_annotate(next, `${meta.scope}/${utils_1.escape(key)}`); | ||
} | ||
@@ -110,0 +111,0 @@ } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const meta = require("./meta"); | ||
const utils_1 = require("./utils"); | ||
const PREFIX_RE = /^(0|[1-9][0-9]*?)([#]?)$/; | ||
const TILDE_0_RE = /~0/g; | ||
const TILDE_1_RE = /~1/g; | ||
const INDEX_RE = /-|0|[1-9][0-9]*/; | ||
@@ -64,3 +63,3 @@ function getPointer(obj) { | ||
} | ||
const part = parts.shift().replace(TILDE_1_RE, '/').replace(TILDE_0_RE, '~'); | ||
const part = utils_1.unescape(parts.shift()); | ||
if (Array.isArray(current)) { | ||
@@ -67,0 +66,0 @@ if (!part.match(INDEX_RE)) { |
{ | ||
"name": "jsonref", | ||
"version": "5.1.1", | ||
"version": "5.1.2", | ||
"description": "Javascript References ($ref) and Pointers library", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
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
22189
13
407