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

merkle-json

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

merkle-json - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

2

package.json
{
"name": "merkle-json",
"version": "1.1.1",
"version": "1.1.2",
"description": "Compute hash of Javascript object having optional Merkle hash tags",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -69,3 +69,3 @@ # merkle-json

merkleHash: e77b735125fec27a61c6f54b17fb6221, // ignored
}); // 441e4f8dabdc6cb17dc9500cee73155b
}, useMerkleHash); // 441e4f8dabdc6cb17dc9500cee73155b
```

@@ -225,3 +225,20 @@ (typeof describe === 'function') && describe("MerkleJson", function() {

});
it("stringify(obj) honors toJSON() method of object", function() {
var mj = new MerkleJson();
class TestObj {
constructor(a) {
this.a = a;
this.random = Math.random();
}
toJSON() {
return {
a: this.a,
}
}
}
var obj = new TestObj(1,2);
should(mj.stringify(obj)).equal('{"a":1}');
});
})
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