ipfs-bitswap
Advanced tools
Comparing version 6.0.1 to 6.0.2
{ | ||
"name": "ipfs-bitswap", | ||
"version": "6.0.1", | ||
"version": "6.0.2", | ||
"description": "Node.js implementation of the Bitswap data exchange protocol used by IPFS", | ||
"leadMaintainer": "Dirk McCormick <dirk@protocol.ai>", | ||
"main": "src/index.js", | ||
"browser": { | ||
"./test/utils/create-libp2p-node": false | ||
}, | ||
"types": "dist/src/index.d.ts", | ||
"tsd": { | ||
"directory": "test" | ||
}, | ||
"typesVersions": { | ||
"*": { | ||
"src/*": [ | ||
"dist/src/*", | ||
"dist/src/*/index" | ||
], | ||
"src/": [ | ||
"dist/src/index" | ||
] | ||
"main": "./cjs/src/index.js", | ||
"types": "types/src/index.d.ts", | ||
"files": [ | ||
"*", | ||
"!**/*.tsbuildinfo" | ||
], | ||
"exports": { | ||
".": { | ||
"browser": "./esm/src/index.js", | ||
"require": "./cjs/src/index.js", | ||
"import": "./esm/src/index.js" | ||
} | ||
@@ -27,2 +21,5 @@ }, | ||
"extends": "ipfs", | ||
"parserOptions": { | ||
"sourceType": "module" | ||
}, | ||
"ignorePatterns": [ | ||
@@ -34,24 +31,16 @@ "scripts/*", | ||
}, | ||
"files": [ | ||
"dist", | ||
"src" | ||
], | ||
"scripts": { | ||
"prepare": "npm run build", | ||
"build": "npm run build:proto && npm run build:proto-types && npm run build:bundle", | ||
"build:proto": "pbjs -t static-module -w commonjs -r ipfs-bitswap --force-number --no-verify --no-delimited --no-create --no-beautify --no-defaults --lint eslint-disable -o src/types/message/message.js src/types/message/message.proto", | ||
"build:proto-types": "pbts -o src/types/message/message.d.ts src/types/message/message.js", | ||
"build:bundle": "aegir build", | ||
"test": "aegir test", | ||
"test:browser": "aegir test -t browser -t webworker", | ||
"test:node": "aegir test -t node", | ||
"test:types": "tsd", | ||
"generate": "run-s generate:*", | ||
"generate:proto": "pbjs -t static-module -w es6 -r ipfs-bitswap --force-number --no-verify --no-delimited --no-create --no-beautify --no-defaults --lint eslint-disable -o src/types/message/message.js src/types/message/message.proto", | ||
"generate:proto-types": "pbts -o src/types/message/message.d.ts src/types/message/message.js", | ||
"build": "aegir build", | ||
"clean": "rimraf dist types", | ||
"lint": "aegir ts -p check && aegir lint", | ||
"check": "aegir ts -p check", | ||
"release": "aegir release", | ||
"release-minor": "aegir release --type minor", | ||
"release-major": "aegir release --type major", | ||
"pretest": "aegir build --esm-tests", | ||
"test": "aegir test", | ||
"dep-check": "aegir dep-check -i rimraf", | ||
"bench": "node benchmarks/index", | ||
"coverage": "aegir test -t node --cov && nyc report --reporter=html", | ||
"docs": "aegir docs", | ||
"benchmarks": "node test/benchmarks/get-many" | ||
@@ -84,8 +73,8 @@ }, | ||
"delay": "^5.0.0", | ||
"interface-datastore": "^5.0.0", | ||
"interface-datastore": "^6.0.2", | ||
"iso-random-stream": "^2.0.0", | ||
"it-all": "^1.0.5", | ||
"it-drain": "^1.0.4", | ||
"libp2p": "libp2p/js-libp2p", | ||
"libp2p-kad-dht": "^0.23.1", | ||
"libp2p": "^0.32.4", | ||
"libp2p-kad-dht": "^0.24.1", | ||
"libp2p-mplex": "^0.10.2", | ||
@@ -97,2 +86,3 @@ "libp2p-tcp": "^0.17.1", | ||
"lodash.without": "^4.4.0", | ||
"npm-run-all": "^4.1.5", | ||
"p-defer": "^3.0.0", | ||
@@ -107,3 +97,2 @@ "p-event": "^4.2.0", | ||
"stats-lite": "^2.2.0", | ||
"tsd": "^0.17.0", | ||
"url": "^0.11.0", | ||
@@ -118,5 +107,6 @@ "util": "^0.12.3", | ||
"any-signal": "^2.1.2", | ||
"blockstore-core": "^1.0.2", | ||
"debug": "^4.2.0", | ||
"err-code": "^3.0.1", | ||
"interface-blockstore": "^1.0.0", | ||
"interface-blockstore": "^2.0.2", | ||
"it-length-prefixed": "^5.0.2", | ||
@@ -134,6 +124,2 @@ "it-pipe": "^1.1.0", | ||
}, | ||
"pre-push": [ | ||
"lint", | ||
"test" | ||
], | ||
"contributors": [ | ||
@@ -163,3 +149,6 @@ "David Dias <daviddias.p@gmail.com>", | ||
"Richard Schneider <makaretu@gmail.com>" | ||
] | ||
} | ||
], | ||
"browser": { | ||
".": "./cjs/src/index.js" | ||
} | ||
} |
@@ -52,3 +52,3 @@ # ipfs-bitswap | ||
```js | ||
const Bitswap = require('ipfs-bitswap') | ||
const { createBitswap } from 'ipfs-bitswap' | ||
``` | ||
@@ -55,0 +55,0 @@ |
AI-detected potential malware
Supply chain riskAI has identified this package as malware. This is a strong signal that the package may be malicious.
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
366267
89
7094
18
1
1
2
+ Addedblockstore-core@^1.0.2
+ Addedblockstore-core@1.0.5(transitive)
+ Addedinterface-blockstore@2.0.3(transitive)
+ Addedinterface-store@2.0.2(transitive)
- Removedinterface-blockstore@1.0.2(transitive)
- Removedinterface-store@1.0.2(transitive)
Updatedinterface-blockstore@^2.0.2