Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stoplight/json

Package Overview
Dependencies
Maintainers
7
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.3.0 to 1.4.0

decodePointerFragment.d.ts

2

index.d.ts
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);

2

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

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