merkle-json
Advanced tools
Comparing version 1.1.2 to 1.1.4
{ | ||
"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(), |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32200