Comparing version 4.0.0 to 5.0.0
{ | ||
"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') |
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
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
14043
6
251
75
Yes
5
1