@stoplight/json
Advanced tools
Comparing version 1.3.0 to 1.4.0
export * from './decycle'; | ||
export * from './decodePointer'; | ||
export * from './decodePointerFragment'; | ||
export * from './encodePointer'; | ||
export * from './encodePointerFragment'; | ||
export * from './pathToPointer'; | ||
@@ -5,0 +7,0 @@ export * from './pointerToPath'; |
@@ -6,3 +6,5 @@ "use strict"; | ||
tslib_1.__exportStar(require("./decodePointer"), exports); | ||
tslib_1.__exportStar(require("./decodePointerFragment"), exports); | ||
tslib_1.__exportStar(require("./encodePointer"), exports); | ||
tslib_1.__exportStar(require("./encodePointerFragment"), exports); | ||
tslib_1.__exportStar(require("./pathToPointer"), exports); | ||
@@ -9,0 +11,0 @@ tslib_1.__exportStar(require("./pointerToPath"), exports); |
{ | ||
"name": "@stoplight/json", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Useful functions when working with JSON.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const encodePointer_1 = require("./encodePointer"); | ||
const encodePointerFragment_1 = require("./encodePointerFragment"); | ||
exports.pathToPointer = (path) => { | ||
@@ -14,4 +14,4 @@ return encodeUriFragmentIdentifier(path); | ||
} | ||
return `#/${encodePointer_1.encodePointer(path.join('/'))}`; | ||
return `#/${path.map(encodePointerFragment_1.encodePointerFragment).join('/')}`; | ||
}; | ||
//# sourceMappingURL=pathToPointer.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
32467
45
261