Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .aegir.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = {
}
},
build: {
bundlesizeMax: '63KB',
bundlesizeMax: '44KB',
config: esbuild
}
}
27 changes: 18 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,24 @@

## Table of Contents

- [Install](#install)
- [npm](#npm)
- [Use in Node.js](#use-in-nodejs)
- [Use in a browser with browserify, webpack or any other bundler](#use-in-a-browser-with-browserify-webpack-or-any-other-bundler)
- [Use in a browser using a script tag](#use-in-a-browser-using-a-script-tag)
- [Usage](#usage)
- [API](#api)
- [Contribute](#contribute)
- [License](#license)
- [ipfs-bitswap](#ipfs-bitswap)
- [Lead Maintainer](#lead-maintainer)
- [Table of Contents](#table-of-contents)
- [Install](#install)
- [npm](#npm)
- [Use in Node.js or in the browser with browserify, webpack or any other bundler](#use-in-nodejs-or-in-the-browser-with-browserify-webpack-or-any-other-bundler)
- [Use in a browser using a script tag](#use-in-a-browser-using-a-script-tag)
- [API](#api)
- [Stats](#stats)
- [Peer accessor:](#peer-accessor)
- [Global snapshot accessor:](#global-snapshot-accessor)
- [Moving average accessor:](#moving-average-accessor)
- [Development](#development)
- [Structure](#structure)
- [Performance tests](#performance-tests)
- [Profiling](#profiling)
- [Contribute](#contribute)
- [License](#license)

## Install

Expand Down
2 changes: 1 addition & 1 deletion benchmarks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const assert = require('assert')
const range = require('lodash.range')

const makeBlock = require('../test/utils/make-block')
const makeBlock = require('../test/utils/make-blocks')
const genBitswapNetwork = require('../test/utils/mocks').genBitswapNetwork

const nodes = [2, 5, 10, 20]
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/put-get.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const Benchmark = require('benchmark')
const assert = require('assert')
const all = require('it-all')
const drain = require('it-drain')
const makeBlock = require('../test/utils/make-block')
const makeBlock = require('../test/utils/make-blocks')
const genBitswapNetwork = require('../test/utils/mocks').genBitswapNetwork

const suite = new Benchmark.Suite('put-get')
Expand Down
50 changes: 28 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"./test/utils/create-libp2p-node": false
},
"types": "dist/src/index.d.ts",
"tsd": {
"directory": "test"
},
"typesVersions": {
"*": {
"src/*": [
Expand All @@ -22,7 +25,9 @@
"eslintConfig": {
"extends": "ipfs",
"ignorePatterns": [
"scripts/*"
"scripts/*",
"src/types/message/message.*",
"*.test-d.ts"
]
},
"files": [
Expand All @@ -38,7 +43,8 @@
"test": "aegir test",
"test:browser": "aegir test -t browser -t webworker",
"test:node": "aegir test -t node",
"lint": "aegir lint",
"test:types": "tsd",
"lint": "aegir ts -p check && aegir lint",
"check": "aegir ts -p check",
"release": "aegir release",
"release-minor": "aegir release --type minor",
Expand Down Expand Up @@ -66,57 +72,57 @@
"devDependencies": {
"@nodeutils/defaults-deep": "^1.1.0",
"@types/debug": "^4.1.5",
"aegir": "^33.1.0",
"@types/stats-lite": "^2.2.0",
"@types/varint": "^6.0.0",
"aegir": "^34.0.2",
"assert": "^2.0.0",
"benchmark": "^2.1.4",
"delay": "^5.0.0",
"interface-datastore": "^4.0.1",
"ipfs-repo": "^9.1.0",
"ipfs-utils": "^6.0.1",
"interface-datastore": "^5.0.0",
"iso-random-stream": "^2.0.0",
"it-all": "^1.0.5",
"it-drain": "^1.0.4",
"libp2p": "^0.31.2",
"libp2p-kad-dht": "^0.22.0",
"libp2p": "next",
"libp2p-kad-dht": "^0.23.1",
"libp2p-mplex": "^0.10.2",
"libp2p-noise": "^3.0.0",
"libp2p-tcp": "^0.15.3",
"libp2p-noise": "^4.0.0",
"libp2p-tcp": "^0.17.1",
"lodash.difference": "^4.5.0",
"lodash.flatten": "^4.4.0",
"lodash.range": "^3.2.0",
"lodash.without": "^4.4.0",
"p-defer": "^3.0.0",
"p-event": "^4.2.0",
"p-wait-for": "^3.2.0",
"peer-id": "^0.14.3",
"peer-id": "^0.15.0",
"process": "^0.11.10",
"promisify-es6": "^1.0.3",
"rimraf": "^3.0.2",
"sinon": "^10.0.0",
"sinon": "^11.1.1",
"stats-lite": "^2.2.0",
"uuid": "^8.3.2"
"tsd": "^0.17.0",
"url": "^0.11.0",
"util": "^0.12.3",
"uuid": "^8.3.2",
"varint": "^6.0.0"
},
"dependencies": {
"@vascosantos/moving-average": "^1.1.0",
"abort-controller": "^3.0.0",
"any-signal": "^2.1.2",
"cids": "^1.1.6",
"debug": "^4.2.0",
"ipld-block": "^0.11.0",
"err-code": "^3.0.1",
"interface-blockstore": "^1.0.0",
"it-length-prefixed": "^5.0.2",
"it-pipe": "^1.1.0",
"just-debounce-it": "^1.1.0",
"libp2p-interfaces": "^0.10.0",
"multiaddr": "^9.0.1",
"multicodec": "^3.0.1",
"multihashing-async": "^2.1.2",
"libp2p-interfaces": "^1.0.1",
"multiaddr": "^10.0.0",
"multiformats": "^9.0.4",
"native-abort-controller": "^1.0.3",
"protobufjs": "^6.10.2",
"readable-stream": "^3.6.0",
"streaming-iterables": "^5.0.4",
"uint8arrays": "^2.1.3",
"url": "^0.11.0",
"util": "^0.12.3",
"varint-decoder": "^1.0.0"
},
"pre-push": [
Expand Down
Loading