Comparing version 1.3.1 to 2.0.0
@@ -37,6 +37,5 @@ 'use strict' | ||
function decodeUnsafe (string) { | ||
var array = base58.decodeUnsafe(string) | ||
if (!array) return | ||
var buffer = base58.decodeUnsafe(string) | ||
if (!buffer) return | ||
var buffer = new Buffer(array) | ||
return decodeRaw(buffer) | ||
@@ -46,4 +45,3 @@ } | ||
function decode (string) { | ||
var array = base58.decode(string) | ||
var buffer = new Buffer(array) | ||
var buffer = base58.decode(string) | ||
var payload = decodeRaw(buffer) | ||
@@ -50,0 +48,0 @@ if (!payload) throw new Error('Invalid checksum') |
{ | ||
"name": "bs58check", | ||
"version": "1.3.1", | ||
"version": "2.0.0", | ||
"description": "A straightforward implementation of base58-check encoding", | ||
@@ -41,3 +41,3 @@ "keywords": [ | ||
"dependencies": { | ||
"bs58": "^3.1.0", | ||
"bs58": "^4.0.0", | ||
"create-hash": "^1.1.0" | ||
@@ -44,0 +44,0 @@ }, |
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
4573
45
+ Addedbase-x@3.0.10(transitive)
+ Addedbs58@4.0.1(transitive)
- Removedbase-x@1.1.0(transitive)
- Removedbs58@3.1.0(transitive)
Updatedbs58@^4.0.0