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", |
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
31565