node-object-hash
Advanced tools
Comparing version 1.4.1 to 1.4.2
@@ -34,6 +34,4 @@ // / <reference types="node" /> | ||
case 'Map': | ||
case 'WeakMap': | ||
return 'map'; | ||
case 'Set': | ||
case 'WeakSet': | ||
return 'set'; | ||
@@ -40,0 +38,0 @@ case 'Date': |
{ | ||
"name": "node-object-hash", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "Node.js object hash library with properties/arrays sorting to provide constant hashes", | ||
@@ -21,3 +21,4 @@ "main": "index.js", | ||
"mocha": "^5.2.0", | ||
"object-hash": "^1.3.0" | ||
"object-hash": "^1.3.0", | ||
"typescript": "^3.2.4" | ||
}, | ||
@@ -24,0 +25,0 @@ "scripts": { |
@@ -18,3 +18,3 @@ # node-object-hash | ||
- Supports object property sorting for constant hashes for objects with same properties, but different order. | ||
- Supports ES6 (Weak)Maps and (Weak)Sets. | ||
- Supports ES6 Maps and Sets. | ||
- Supports type coercion (see table below) | ||
@@ -45,6 +45,4 @@ - Supports all hashes and encodings of crypto library | ||
| Set | | | ||
| WeakSet | | | ||
| | | | ||
| Map | array[array] | | ||
| WeakMap | | | ||
| | | | ||
@@ -416,2 +414,9 @@ | string ('') | string | string | | ||
| Library (node v10) | Perf (ops/s) | | ||
|------------------------|--------------| | ||
| node-object-hash-0.X.X | 758 ±1.40% | | ||
| node-object-hash-1.4.X | 1266 ±1.44% | | ||
| object-hash-1.3.0 | 132 ±4.08% | | ||
| hash-object-0.1.7 | 378 ±1.36% | | ||
## Links | ||
@@ -418,0 +423,0 @@ |
Sorry, the diff of this file is not supported yet
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
52662
427
12
449