@stoplight/json
Advanced tools
Comparing version 1.5.0 to 1.5.1
{ | ||
"name": "@stoplight/json", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Useful functions when working with JSON.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -9,5 +9,14 @@ "use strict"; | ||
.map(decodePointerFragment_1.decodePointerFragment) | ||
.map(sanitize) | ||
.join('.'); | ||
} | ||
exports.toPropertyPath = toPropertyPath; | ||
function sanitize(fragment) { | ||
if (fragment.includes('.')) { | ||
return `["${fragment.replace(/"/g, '\\"')}"]`; | ||
} | ||
else { | ||
return fragment; | ||
} | ||
} | ||
//# sourceMappingURL=toPropertyPath.js.map |
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
35585
308