Comparing version 5.2.1 to 5.2.2
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RebaserError = exports.ParserError = exports.RetrieverError = void 0; | ||
class RetrieverError extends Error { | ||
@@ -4,0 +5,0 @@ constructor(uri, originalError) { |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.parse = exports.scope = void 0; | ||
const errors_1 = require("./errors"); | ||
const meta = require("./meta"); | ||
const ref_1 = require("./ref"); | ||
__export(require("./errors")); | ||
__exportStar(require("./errors"), exports); | ||
var meta_1 = require("./meta"); | ||
exports.getMeta = meta_1.getMeta; | ||
exports.isAnnotated = meta_1.isAnnotated; | ||
exports.isRef = meta_1.isRef; | ||
exports.normalize = meta_1.normalize; | ||
exports.normalizeUri = meta_1.normalizeUri; | ||
Object.defineProperty(exports, "getMeta", { enumerable: true, get: function () { return meta_1.getMeta; } }); | ||
Object.defineProperty(exports, "isAnnotated", { enumerable: true, get: function () { return meta_1.isAnnotated; } }); | ||
Object.defineProperty(exports, "isRef", { enumerable: true, get: function () { return meta_1.isRef; } }); | ||
Object.defineProperty(exports, "normalize", { enumerable: true, get: function () { return meta_1.normalize; } }); | ||
Object.defineProperty(exports, "normalizeUri", { enumerable: true, get: function () { return meta_1.normalizeUri; } }); | ||
var pointer_1 = require("./pointer"); | ||
exports.pointer = pointer_1.resolve; | ||
__export(require("./rebase")); | ||
Object.defineProperty(exports, "pointer", { enumerable: true, get: function () { return pointer_1.resolve; } }); | ||
__exportStar(require("./rebase"), exports); | ||
function scope(data) { | ||
@@ -20,0 +28,0 @@ if (meta.isAnnotated(data)) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.normalize = exports.missingRefs = exports.annotate = exports.getById = exports.getKey = exports.getMeta = exports.isDerefd = exports.isAnnotated = exports.isRef = exports.normalizeUri = exports.LII_RE = void 0; | ||
const utils_1 = require("./utils"); | ||
@@ -8,5 +9,4 @@ const __meta = Symbol(); | ||
const uri = new URL(input, scope); | ||
if (!uri.hash) | ||
uri.hash = '#'; | ||
return uri.toString(); | ||
const out = uri.toString(); | ||
return out + (!uri.hash && out[out.length - 1] !== '#' ? '#' : ''); | ||
} | ||
@@ -13,0 +13,0 @@ exports.normalizeUri = normalizeUri; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.resolve = exports.getPointer = void 0; | ||
const meta = require("./meta"); | ||
@@ -4,0 +5,0 @@ const utils_1 = require("./utils"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.rebase = void 0; | ||
const errors_1 = require("./errors"); | ||
@@ -4,0 +5,0 @@ /** |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.resolve = void 0; | ||
const meta = require("./meta"); | ||
@@ -4,0 +5,0 @@ const pointer = require("./pointer"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.unescape = exports.escape = void 0; | ||
const TILDE_RE = /~/g; | ||
@@ -4,0 +5,0 @@ const SLASH_RE = /\//g; |
{ | ||
"name": "jsonref", | ||
"version": "5.2.1", | ||
"version": "5.2.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
28495
551