multihashes
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "multihashes", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "multihash implementation", | ||
@@ -22,3 +22,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"invert-hash": "0.0.0" | ||
"invert-hash": "0.0.0", | ||
"buffer-equal": "0.0.1" | ||
}, | ||
@@ -25,0 +26,0 @@ "devDependencies": { |
@@ -0,1 +1,2 @@ | ||
var bufeq = require('buffer-equal') | ||
var multihash = require('./'); | ||
@@ -84,3 +85,3 @@ var invert = require('invert-hash'); | ||
var m = 'test encoding ' + test[0][1] + ' ' + hex; | ||
t.ok(r >= test[1] && r <= test[1], m); | ||
t.ok(bufeq(r, test[1]), m); | ||
} | ||
@@ -106,3 +107,3 @@ t.end(); | ||
t.is(r.length, length, 'length must be ' + length); | ||
t.ok(d1 <= d2 && d1 >= d2, 'digest decoding ' + test[0][0]); | ||
t.ok(bufeq(d1, d2), 'digest decoding ' + test[0][0]); | ||
} | ||
@@ -109,0 +110,0 @@ t.end(); |
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
7774
208
2
+ Addedbuffer-equal@0.0.1
+ Addedbuffer-equal@0.0.1(transitive)