New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@stoplight/json-schema-ref-parser

Package Overview
Dependencies
Maintainers
23
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoplight/json-schema-ref-parser - npm Package Compare versions

Comparing version 9.0.5 to 9.1.0-beta.1

lib/bundle/defaults.js

26

lib/index.d.ts

@@ -235,2 +235,28 @@ import { JSONSchema4, JSONSchema4Type, JSONSchema6, JSONSchema6Type } from "json-schema";

};
bundle?: {
/**
* Used to generate $ref.
* If null is returned, the default logic applies.
*
* @param {*} value
* @param {string} file
* @param {string|null} hash
* @return {string|null}
*/
generateKey?(value: unknown, file: string, hash: string | null): string | null;
/**
* Determines whether a value of given reference should be inlined in the resulting output.
*
* @param {string} pathFromRoot
* @return boolean
*/
shouldInline?(pathFromRoot: string): boolean;
/**
* The default root to optimize for.
*/
defaultRoot?: string;
};
}

@@ -237,0 +263,0 @@

@@ -78,2 +78,30 @@ /* eslint lines-around-comment: [2, {beforeBlockComment: false}] */

},
bundle: {
/**
* Used to generate $ref.
* If null is returned, the default logic applies.
*
* @param {*} value
* @param {string} file
* @param {string|null} hash
*/
// eslint-disable-next-line no-unused-vars
generateKey (value, file, hash) { return null; },
/**
* Determines whether a value of given reference should be inlined in the resulting output
*
* @param {string} pathFromRoot
*/
// eslint-disable-next-line no-unused-vars
shouldInline (pathFromRoot) { return false; },
/**
* The default root to optimize for.
*
* @type {string}
*/
defaultRoot: "#/definitions"
}
};

@@ -80,0 +108,0 @@

4

package.json
{
"name": "@stoplight/json-schema-ref-parser",
"version": "9.0.5",
"version": "9.1.0-beta.1",
"description": "Parse, Resolve, and Dereference JSON Schema $ref pointers",

@@ -67,2 +67,3 @@ "keywords": [

"mocha": "^8.0.1",
"nock": "^12.0.3",
"npm-check": "^5.9.0",

@@ -75,2 +76,3 @@ "nyc": "^15.0.1",

"@jsdevtools/ono": "^7.1.3",
"@stoplight/path": "^1.3.2",
"@stoplight/yaml": "^4.0.2",

@@ -77,0 +79,0 @@ "call-me-maybe": "^1.0.1"

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