Socket
Socket
Sign inDemoInstall

node-object-hash

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-object-hash - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

2

objectSorter.js

@@ -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':

5

package.json
{
"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

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