Comparing version 1.2.0 to 1.3.0
@@ -23,3 +23,3 @@ 'use strict' | ||
// Decode a base58-check encoded string to a buffer, no result if checksum is wrong | ||
function decodeRaw (string) { | ||
function decodeUnsafe (string) { | ||
var buffer = new Buffer(base58.decode(string)) | ||
@@ -40,3 +40,3 @@ | ||
function decode (string) { | ||
var payload = decodeRaw(string) | ||
var payload = decodeUnsafe(string) | ||
if (!payload) throw new Error('Invalid checksum') | ||
@@ -49,3 +49,6 @@ return payload | ||
decode: decode, | ||
decodeRaw: decodeRaw | ||
decodeUnsafe: decodeUnsafe, | ||
// FIXME: remove in 2.0.0 | ||
decodeRaw: decodeUnsafe | ||
} |
{ | ||
"name": "bs58check", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "A straightforward implementation of base58-check encoding", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
4463
40
0