Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
Socket

node-object-hash

Package Overview
Dependencies
Maintainers
1
Versions
39
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
3.1.0
to
3.1.1
+7
-1
dist/objectSorter.js

@@ -69,3 +69,9 @@ "use strict";

const constructorName = obj.constructor?.name ?? 'unknonw';
const objectName = typeof obj.toString === 'function' ? obj.toString() : 'unknown';
let objectName = 'unknown';
if (typeof obj.toString === 'function') {
objectName = obj.toString();
}
else if (Object.keys(obj).length > 0) {
objectName = JSON.stringify(obj);
}
return `<:${constructorName}>:${objectName}`;

@@ -72,0 +78,0 @@ },

+1
-1
{
"name": "node-object-hash",
"version": "3.1.0",
"version": "3.1.1",
"description": "Node.js object hash library with properties/arrays sorting to provide constant hashes",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet