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

multiformats

Package Overview
Dependencies
Maintainers
1
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multiformats - npm Package Compare versions

Comparing version 2.3.0 to 3.0.0

cjs/src/bases/base16.js

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"
}
}
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