@digix/multi-hash
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -39,3 +39,3 @@ "use strict"; | ||
decode: function (hash) { | ||
if (hash && hash.constructor === String && hash.slice(0, 2) === "Dg") { | ||
if (hash && hash.constructor === String && (hash.slice(0, 2) === "Dg" || hash.slice(0, 2) === "Qm")) { | ||
if (hash.length !== 46) { | ||
@@ -42,0 +42,0 @@ throw new Error("length error: expected hash+tag length of 46"); |
{ | ||
"name": "@digix/multi-hash", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Digix Fork of Multi-hash encoder/decoder", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
96422