node-object-hash
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -66,3 +66,3 @@ /** | ||
* @param {Object} obj Object to hash | ||
* @param {Object} options Options | ||
* @param {Object} [options] Options | ||
* @param {string} [options.alg="sha256"] Crypto algorithm to use | ||
@@ -75,2 +75,3 @@ * @param {string} [options.enc="hex"] Hash string encoding | ||
exports.hash = (obj, options) => { | ||
options = options || {}; | ||
const alg = options.alg || 'sha256'; | ||
@@ -90,2 +91,1 @@ const enc = options.enc || 'hex'; | ||
}; | ||
{ | ||
"name": "node-object-hash", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Node.js object hash library with properties/arrays sorting to provide constant hashes", | ||
@@ -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
8788
6
173