Socket
Socket
Sign inDemoInstall

json-refs

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-refs - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

12

index.js

@@ -181,3 +181,3 @@ /*

*
* @param {object} json - The JSON document to find references in
* @param {array|object} json - The JSON document to find references in
*

@@ -191,4 +191,4 @@ * @returns {object} An object whose keys are JSON Pointers to the '$ref' node of the JSON Reference

throw new Error('json is required');
} else if (!_.isPlainObject(json)) {
throw new Error('json must be an object');
} else if (!_.isArray(json) && !_.isPlainObject(json)) {
throw new Error('json must be an array or an object');
}

@@ -608,3 +608,3 @@

*
* @param {object} json - The JSON document having zero or more JSON References
* @param {array|object} json - The JSON document having zero or more JSON References
* @param {object} [options] - The options (All options are passed down to whitlockjc/path-loader)

@@ -693,4 +693,4 @@ * @param {number} [options.depth=1] - The depth to resolve circular references

throw new Error('json is required');
} else if (!_.isPlainObject(json)) {
throw new Error('json must be an object');
} else if (!_.isArray(json) && !_.isPlainObject(json)) {
throw new Error('json must be an array or an object');
} else if (!_.isPlainObject(options)) {

@@ -697,0 +697,0 @@ throw new Error('options must be an object');

{
"name": "json-refs",
"version": "1.2.0",
"version": "1.2.1",
"description": "Various utilities for JSON References (http://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03).",

@@ -5,0 +5,0 @@ "main": "index.js",

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