Socket
Socket
Sign inDemoInstall

@stoplight/json

Package Overview
Dependencies
Maintainers
10
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoplight/json - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc