Socket
Socket
Sign inDemoInstall

bs58check

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bs58check - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

9

index.js

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc