Socket
Socket
Sign inDemoInstall

base-x

Package Overview
Dependencies
Maintainers
0
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base-x - npm Package Compare versions

Comparing version 4.0.0 to 5.0.0

src/cjs/index.cjs

28

package.json
{
"name": "base-x",
"version": "4.0.0",
"version": "5.0.0",
"description": "Fast base encoding / decoding of any given alphabet",
"type": "module",
"keywords": [

@@ -26,4 +27,12 @@ "base-x",

],
"main": "src/index.js",
"types": "src/index.d.ts",
"main": "src/cjs/index.cjs",
"module": "src/esm/index.js",
"types": "src/cjs/index.d.ts",
"exports": {
".": {
"require": "./src/cjs/index.cjs",
"import": "./src/esm/index.js",
"types": "./src/cjs/index.d.ts"
}
},
"repository": {

@@ -34,6 +43,8 @@ "type": "git",

"scripts": {
"build": "tsc -p ./tsconfig.json ; standard --fix",
"build": "npm run clean && tsc -p ./tsconfig.json && tsc -p ./tsconfig.cjs.json; npm run standard -- --fix",
"clean": "rimraf src",
"postbuild": "find src/cjs -type f -name \"*.js\" -exec bash -c 'mv \"$0\" \"${0%.js}.cjs\"' {} \\;",
"gitdiff": "npm run build && git diff --exit-code",
"prepublish": "npm run gitdiff",
"standard": "standard",
"standard": "standard --ignore test",
"test": "npm run unit && npm run standard",

@@ -44,6 +55,7 @@ "unit": "tape test/*.js"

"@types/node": "12.0.10",
"standard": "^10.0.3",
"tape": "^4.5.1",
"typescript": "3.5.2"
"rimraf": "^3.0.2",
"standard": "^17.1.0",
"tape": "^5.3.0",
"typescript": "^5.4.5"
}
}

@@ -19,3 +19,4 @@ # base-x

var BASE58 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
var bs58 = require('base-x')(BASE58)
import basex from 'base-x'
var bs58 = basex(BASE58)

@@ -22,0 +23,0 @@ var decoded = bs58.decode('5Kd3NBUAdUnhyzenEwVLy9pBKxSwXvE9FMPyR4UKZvpe6E3AgLr')

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