Socket
Socket
Sign inDemoInstall

zetta-base58

Package Overview
Dependencies
2
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"name": "zetta-base58",
"description": "Zetta Toolkit - Base58 Encoding",
"version": "0.0.2",
"version": "0.0.3",
"author": {

@@ -6,0 +6,0 @@ "name": "ASPECTRON Inc.",

@@ -8,16 +8,21 @@ var base58 = require("bs58");

var result = base58.encodeSync(input);
callback(null, result);
callback && callback(null, result);
return result;
}
base58.decode = function(input, callback) {
if(!callback)
throw new Error("decode(input, callback) requires callback argument (old sync version deprecated)");
var result = null;
try {
var result = base58.decodeSync(input);
callback(null, result);
result = base58.decodeSync(input);
} catch(ex) {
console.log(ex);
return callback({ error : ex });
}
callback(null, result);
}
module.exports = base58;
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc