Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.3.1 to 2.0.0

8

index.js

@@ -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 @@ },

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