Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 0.2.0 to 0.2.1

test/hash.js

4

index.js

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

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