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.2 to 1.1.4

8

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

@@ -14,3 +14,3 @@ "main": "index.js",

"devDependencies": {
"babel-core": "^6.22.1",
"babel-core": "^6.26.3",
"babel-eslint": "^8.2.1",

@@ -23,6 +23,6 @@ "babel-helper-vue-jsx-merge-props": "^2.0.3",

"babel-plugin-transform-vue-jsx": "^3.5.0",
"babel-preset-env": "^1.3.2",
"babel-preset-env": "^1.7.0",
"babel-preset-stage-2": "^6.22.0",
"babel-register": "^6.22.0",
"mocha": "^3.2.0",
"mocha": "^5.2.0",
"should": "^11.2.0"

@@ -29,0 +29,0 @@ },

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

var mj = new MerkleJson();
var t = new Date(2018,1,14);
var t = new Date(Date.UTC(2018,1,14));
var obj = {

@@ -33,8 +33,8 @@ t,

should(mj.hash(obj)).equal(mj.hash({
t: new Date(2018,1,14),
t: new Date(Date.UTC(2018,1,14)),
}));
should(mj.hash(obj)).not.equal(mj.hash({
t: new Date(2018,1,15),
t: new Date(Date.UTC(2018,1,15)),
}));
should(mj.hash(obj)).equal("bf9e3b30cb0196554ead147d78bc8c9d");
should(mj.hash(obj)).match(/b6777f0/);
should(mj.hash(obj)).equal(mj.hash({

@@ -41,0 +41,0 @@ t: t.toJSON(),

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