multiformats
Advanced tools
Comparing version 2.3.0 to 3.0.0
147
package.json
{ | ||
"name": "multiformats", | ||
"version": "2.3.0", | ||
"version": "3.0.0", | ||
"description": "Interface for multihash, multicodec, multibase and CID.", | ||
"main": "index.js", | ||
"type": "module", | ||
"scripts": { | ||
"build": "npx @mikeal/limbo test/test-*.js", | ||
"prepublishOnly": "npm run build", | ||
"build": "npx ipjs@latest build --tests", | ||
"publish": "npx ipjs@latest build && cd dist && npm publish", | ||
"lint": "standard", | ||
"test:cjs": "rm -rf dist && npm run build && mocha dist/cjs-node/test/test-*.cjs && npm run test:cjs:browser", | ||
"test:cjs": "npm run build && mocha dist/cjs/node-test/test-*.js && npm run test:cjs:browser", | ||
"test:node": "hundreds mocha test/test-*.js", | ||
"test:cjs:browser": "polendina --cleanup dist/cjs-browser/test/test-*.js", | ||
"test:cjs:browser": "polendina --cleanup dist/cjs/browser-test/test-*.js", | ||
"test": "npm run lint && npm run test:node && npm run test:cjs", | ||
@@ -20,89 +18,64 @@ "coverage": "c8 --reporter=html mocha test/test-*.js && npx st -d coverage -p 8080" | ||
"license": "(Apache-2.0 AND MIT)", | ||
"browser": { | ||
"./bases/_base64-browser.js": "./dist/cjs-browser/bases/_base64-browser.js", | ||
"./bases/base16.js": "./dist/cjs-browser/bases/base16.js", | ||
"./bases/base32.js": "./dist/cjs-browser/bases/base32.js", | ||
"./bases/base58.js": "./dist/cjs-browser/bases/base58.js", | ||
"./bases/base64.js": "./dist/cjs-browser/bases/base64.js", | ||
"./basics.js": "./dist/cjs-browser/basics.js", | ||
"./bytes.js": "./dist/cjs-browser/bytes.js", | ||
"./cid.js": "./dist/cjs-browser/cid.js", | ||
"./codecs/json.js": "./dist/cjs-browser/codecs/json.js", | ||
"./codecs/raw.js": "./dist/cjs-browser/codecs/raw.js", | ||
"./hashes/sha2-browser.js": "./dist/cjs-browser/hashes/sha2-browser.js", | ||
"./index.js": "./dist/cjs-browser/index.js", | ||
"./": "./dist/cjs-browser/index.js", | ||
"./legacy.js": "./dist/cjs-browser/legacy.js" | ||
}, | ||
"exports": { | ||
".": { | ||
"import": "./index.js", | ||
"require": "./dist/cjs-node/index.cjs" | ||
"require": "./cjs/src/index.js", | ||
"import": "./esm/src/index.js", | ||
"browser": "./esm/src/index.js" | ||
}, | ||
"./index.js": { | ||
"import": "./index.js", | ||
"require": "./dist/cjs-node/index.cjs" | ||
"./basics": { | ||
"require": "./cjs/src/basics-import.js", | ||
"import": "./esm/src/basics-import.js", | ||
"browser": "./esm/src/basics-browser.js" | ||
}, | ||
"./basics.js": { | ||
"import": "./basics.js", | ||
"require": "./dist/cjs-node/basics.cjs" | ||
"./cid": { | ||
"require": "./cjs/src/cid.js", | ||
"import": "./esm/src/cid.js", | ||
"browser": "./esm/src/cid.js" | ||
}, | ||
"./bytes.js": { | ||
"import": "./bytes.js", | ||
"require": "./dist/cjs-node/bytes.cjs" | ||
"./legacy": { | ||
"require": "./cjs/src/legacy.js", | ||
"import": "./esm/src/legacy.js", | ||
"browser": "./esm/src/legacy.js" | ||
}, | ||
"./cid.js": { | ||
"import": "./cid.js", | ||
"require": "./dist/cjs-node/cid.cjs" | ||
"./bases/base16": { | ||
"require": "./cjs/src/bases/base16.js", | ||
"import": "./esm/src/bases/base16.js", | ||
"browser": "./esm/src/bases/base16.js" | ||
}, | ||
"./legacy.js": { | ||
"import": "./legacy.js", | ||
"require": "./dist/cjs-node/legacy.cjs" | ||
"./bases/base32": { | ||
"require": "./cjs/src/bases/base32.js", | ||
"import": "./esm/src/bases/base32.js", | ||
"browser": "./esm/src/bases/base32.js" | ||
}, | ||
"./bases/_base64.js": { | ||
"browser": "./bases/_base64-browser.js", | ||
"import": "./bases/_base64.js", | ||
"require": "./dist/cjs-node/bases/_base64.cjs" | ||
"./bases/base58": { | ||
"require": "./cjs/src/bases/base58.js", | ||
"import": "./esm/src/bases/base58.js", | ||
"browser": "./esm/src/bases/base58.js" | ||
}, | ||
"./bases/base16.js": { | ||
"import": "./bases/base16.js", | ||
"require": "./dist/cjs-node/bases/base16.cjs" | ||
"./bases/base64": { | ||
"require": "./cjs/src/bases/base64-import.js", | ||
"import": "./esm/src/bases/base64-import.js", | ||
"browser": "./esm/src/bases/base64-browser.js" | ||
}, | ||
"./bases/base32.js": { | ||
"import": "./bases/base32.js", | ||
"require": "./dist/cjs-node/bases/base32.cjs" | ||
"./hashes/sha2": { | ||
"require": "./cjs/src/hashes/sha2.js", | ||
"import": "./esm/src/hashes/sha2.js", | ||
"browser": "./esm/src/hashes/sha2-browser.js" | ||
}, | ||
"./bases/base58.js": { | ||
"import": "./bases/base58.js", | ||
"require": "./dist/cjs-node/bases/base58.cjs" | ||
"./codecs/json": { | ||
"require": "./cjs/src/codecs/json.js", | ||
"import": "./esm/src/codecs/json.js", | ||
"browser": "./esm/src/codecs/json.js" | ||
}, | ||
"./bases/base64.js": { | ||
"import": "./bases/base64.js", | ||
"require": "./dist/cjs-node/bases/base64.cjs" | ||
}, | ||
"./hashes/sha2.js": { | ||
"browser": "./hashes/sha2-browser.js", | ||
"import": "./hashes/sha2.js", | ||
"require": "./dist/cjs-node/hashes/sha2.cjs" | ||
}, | ||
"./codecs/json.js": { | ||
"import": "./codecs/json.js", | ||
"require": "./dist/cjs-node/codecs/json.cjs" | ||
}, | ||
"./codecs/raw.js": { | ||
"import": "./codecs/raw.js", | ||
"require": "./dist/cjs-node/codecs/raw.cjs" | ||
}, | ||
"./": { | ||
"import": "./", | ||
"require": "./dist/cjs-node/index.cjs" | ||
"./codecs/raw": { | ||
"require": "./cjs/src/codecs/raw.js", | ||
"import": "./esm/src/codecs/raw.js", | ||
"browser": "./esm/src/codecs/raw.js" | ||
} | ||
}, | ||
"devDependencies": { | ||
"c8": "^7.2.0", | ||
"globby": "^11.0.1", | ||
"c8": "^7.3.0", | ||
"hundreds": "0.0.7", | ||
"mocha": "^8.0.1", | ||
"mocha": "^8.1.1", | ||
"polendina": "^1.0.0", | ||
"rollup": "^2.18.0", | ||
"standard": "^14.3.4" | ||
@@ -116,6 +89,5 @@ }, | ||
"dependencies": { | ||
"@rollup/plugin-alias": "^3.1.1", | ||
"base-x": "^3.0.8", | ||
"buffer": "^5.6.0", | ||
"cids": "^0.8.3", | ||
"cids": "^1.0.0", | ||
"varint": "^5.0.0" | ||
@@ -133,3 +105,16 @@ }, | ||
}, | ||
"homepage": "https://github.com/multiformats/js-multiformats#readme" | ||
} | ||
"homepage": "https://github.com/multiformats/js-multiformats#readme", | ||
"browser": { | ||
".": "./cjs/src/index.js", | ||
"./basics": "./cjs/src/basics-browser.js", | ||
"./cid": "./cjs/src/cid.js", | ||
"./legacy": "./cjs/src/legacy.js", | ||
"./bases/base16": "./cjs/src/bases/base16.js", | ||
"./bases/base32": "./cjs/src/bases/base32.js", | ||
"./bases/base58": "./cjs/src/bases/base58.js", | ||
"./bases/base64": "./cjs/src/bases/base64-browser.js", | ||
"./hashes/sha2": "./cjs/src/hashes/sha2-browser.js", | ||
"./codecs/json": "./cjs/src/codecs/json.js", | ||
"./codecs/raw": "./cjs/src/codecs/raw.js" | ||
} | ||
} |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
4
5
0
53311
36
1751
1
0
1
No
+ Added@multiformats/base-x@4.0.1(transitive)
+ Addedcids@1.1.9(transitive)
+ Addedmultibase@4.0.6(transitive)
+ Addedmulticodec@3.2.1(transitive)
+ Addedmultiformats@9.9.0(transitive)
+ Addedmultihashes@4.0.3(transitive)
+ Addeduint8arrays@3.1.1(transitive)
+ Addedvarint@6.0.0(transitive)
- Removed@rollup/plugin-alias@^3.1.1
- Removed@rollup/plugin-alias@3.1.9(transitive)
- Removedcids@0.8.3(transitive)
- Removedclass-is@1.1.0(transitive)
- Removedfsevents@2.3.3(transitive)
- Removedmultibase@1.0.1(transitive)
- Removedmulticodec@1.0.4(transitive)
- Removedmultihashes@1.0.1(transitive)
- Removedrollup@2.79.2(transitive)
- Removedslash@3.0.0(transitive)
Updatedcids@^1.0.0