2015-08-25 11:00:19 +01:00
|
|
|
{
|
|
|
|
"name": "libp2p",
|
2020-01-28 13:06:11 +01:00
|
|
|
"version": "0.27.0",
|
2019-06-12 14:18:34 +02:00
|
|
|
"description": "JavaScript implementation of libp2p, a modular peer to peer network stack",
|
2018-07-27 15:59:52 +02:00
|
|
|
"leadMaintainer": "Jacob Heun <jacobheun@gmail.com>",
|
2016-11-25 20:08:05 +00:00
|
|
|
"main": "src/index.js",
|
2018-11-15 18:58:40 +01:00
|
|
|
"files": [
|
|
|
|
"dist",
|
|
|
|
"src"
|
|
|
|
],
|
2015-08-25 11:00:19 +01:00
|
|
|
"scripts": {
|
2017-10-26 04:51:36 -07:00
|
|
|
"lint": "aegir lint",
|
|
|
|
"build": "aegir build",
|
2019-12-06 12:42:36 +01:00
|
|
|
"test": "npm run test:node && npm run test:browser",
|
2019-12-06 14:28:52 +01:00
|
|
|
"test:node": "aegir test -t node -f \"./test/**/*.{node,spec}.js\"",
|
2017-11-12 10:49:46 +00:00
|
|
|
"test:browser": "aegir test -t browser",
|
|
|
|
"release": "aegir release -t node -t browser",
|
|
|
|
"release-minor": "aegir release --type minor -t node -t browser",
|
2019-08-16 17:30:03 +02:00
|
|
|
"release-major": "aegir release --type major -t node -t browser",
|
|
|
|
"coverage": "nyc --reporter=text --reporter=lcov npm run test:node"
|
2015-08-25 11:00:19 +01:00
|
|
|
},
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
2016-11-25 20:08:05 +00:00
|
|
|
"url": "https://github.com/libp2p/js-libp2p.git"
|
2015-08-25 11:00:19 +01:00
|
|
|
},
|
|
|
|
"keywords": [
|
2019-06-12 14:18:34 +02:00
|
|
|
"libp2p",
|
|
|
|
"network",
|
|
|
|
"p2p",
|
|
|
|
"peer",
|
|
|
|
"peer-to-peer",
|
2015-08-25 11:00:19 +01:00
|
|
|
"IPFS"
|
|
|
|
],
|
|
|
|
"bugs": {
|
2016-11-25 20:08:05 +00:00
|
|
|
"url": "https://github.com/libp2p/js-libp2p/issues"
|
2015-08-25 11:00:19 +01:00
|
|
|
},
|
2019-06-12 14:18:34 +02:00
|
|
|
"homepage": "https://libp2p.io",
|
|
|
|
"license": "MIT",
|
|
|
|
"engines": {
|
|
|
|
"node": ">=10.0.0",
|
|
|
|
"npm": ">=6.0.0"
|
|
|
|
},
|
2017-07-20 10:20:10 -07:00
|
|
|
"dependencies": {
|
2019-10-21 16:53:58 +02:00
|
|
|
"abort-controller": "^3.0.0",
|
2019-12-03 10:28:52 +01:00
|
|
|
"aggregate-error": "^3.0.1",
|
2019-12-10 13:48:34 +01:00
|
|
|
"any-signal": "^1.1.0",
|
2019-08-16 17:30:03 +02:00
|
|
|
"bignumber.js": "^9.0.0",
|
2019-08-08 19:01:16 +02:00
|
|
|
"class-is": "^1.1.0",
|
2019-03-21 14:23:00 +01:00
|
|
|
"debug": "^4.1.1",
|
2018-10-19 16:28:28 +02:00
|
|
|
"err-code": "^1.1.2",
|
2019-08-08 19:01:16 +02:00
|
|
|
"hashlru": "^2.3.0",
|
2019-12-10 15:15:08 +01:00
|
|
|
"it-all": "^1.0.1",
|
2019-12-10 19:26:54 +01:00
|
|
|
"it-buffer": "^0.1.1",
|
2019-11-04 14:05:58 +01:00
|
|
|
"it-handshake": "^1.0.1",
|
2019-11-13 16:38:07 +01:00
|
|
|
"it-length-prefixed": "^3.0.0",
|
|
|
|
"it-pipe": "^1.1.0",
|
2019-11-07 12:11:50 +01:00
|
|
|
"it-protocol-buffers": "^0.2.0",
|
2019-08-16 17:30:03 +02:00
|
|
|
"latency-monitor": "~0.2.1",
|
2019-11-13 16:38:07 +01:00
|
|
|
"libp2p-crypto": "^0.17.1",
|
2020-01-22 11:47:30 +01:00
|
|
|
"libp2p-interfaces": "^0.2.3",
|
2019-10-02 13:31:28 +02:00
|
|
|
"mafmt": "^7.0.0",
|
fix: conn mngr min/max connection values (#528)
Fixes the case when options are passed with `maxConnections` and/or `minConnections` set to `undefined`:
```console
{
defaultOptions: {
maxConnections: Infinity,
minConnections: 0,
maxData: Infinity,
maxSentData: Infinity,
maxReceivedData: Infinity,
maxEventLoopDelay: Infinity,
pollInterval: 2000,
movingAverageInterval: 60000,
defaultPeerValue: 1
},
options: {
minPeers: 25,
maxConnections: undefined,
minConnections: undefined
}
}
{ maxConnections: undefined, minConnections: undefined }
1) "before all" hook in "custom config"
(node:67176) UnhandledPromiseRejectionWarning: AssertionError [ERR_ASSERTION]: Connection Manager maxConnections must be greater than minConnections
at new ConnectionManager (node_modules/libp2p/src/connection-manager/index.js:43:5)
at new Libp2p (node_modules/libp2p/src/index.js:92:30)
at Object.module.exports [as libp2p] (src/core/components/libp2p.js:27:10)
at Proxy.start (src/core/components/start.js:48:31)
at async Daemon.start (src/cli/daemon.js:63:31)
at async startHttpAPI (test/http-api/routes.js:29:5)
at async Context.<anonymous> (test/http-api/routes.js:48:7)
```
2020-01-06 14:03:07 +00:00
|
|
|
"merge-options": "^2.0.0",
|
2019-08-08 19:01:16 +02:00
|
|
|
"moving-average": "^1.0.0",
|
2019-11-29 16:41:08 +01:00
|
|
|
"multiaddr": "^7.2.1",
|
2019-10-21 16:53:58 +02:00
|
|
|
"multistream-select": "^0.15.0",
|
2019-12-11 16:05:59 +01:00
|
|
|
"mutable-proxy": "^1.0.0",
|
2019-12-01 22:54:59 +01:00
|
|
|
"p-any": "^2.1.0",
|
2019-12-04 16:27:33 +01:00
|
|
|
"p-fifo": "^1.0.0",
|
2019-10-02 13:31:28 +02:00
|
|
|
"p-settle": "^3.1.0",
|
2019-11-29 16:41:08 +01:00
|
|
|
"peer-id": "^0.13.4",
|
2019-10-02 13:31:28 +02:00
|
|
|
"peer-info": "^0.17.0",
|
|
|
|
"protons": "^1.0.1",
|
2019-08-08 19:01:16 +02:00
|
|
|
"retimer": "^2.0.0",
|
2019-12-10 13:48:34 +01:00
|
|
|
"timeout-abort-controller": "^1.0.0",
|
2019-08-16 17:30:03 +02:00
|
|
|
"xsalsa20": "^1.0.2"
|
2017-07-20 10:20:10 -07:00
|
|
|
},
|
2015-08-25 11:00:19 +01:00
|
|
|
"devDependencies": {
|
2018-06-28 10:06:25 +02:00
|
|
|
"@nodeutils/defaults-deep": "^1.1.0",
|
2019-10-21 16:53:58 +02:00
|
|
|
"abortable-iterator": "^2.1.0",
|
2020-01-22 11:47:30 +01:00
|
|
|
"aegir": "^20.5.1",
|
2018-11-06 22:52:16 +01:00
|
|
|
"chai": "^4.2.0",
|
2019-11-29 16:41:08 +01:00
|
|
|
"chai-as-promised": "^7.1.1",
|
2019-06-07 15:50:23 +02:00
|
|
|
"cids": "^0.7.1",
|
2019-09-24 13:02:07 +01:00
|
|
|
"delay": "^4.3.0",
|
2017-10-26 04:51:36 -07:00
|
|
|
"dirty-chai": "^2.0.1",
|
2019-12-11 16:05:59 +01:00
|
|
|
"it-concat": "^1.0.0",
|
2019-10-21 16:53:58 +02:00
|
|
|
"it-pair": "^1.0.0",
|
2019-12-11 16:05:59 +01:00
|
|
|
"it-pushable": "^1.4.0",
|
2019-11-28 22:50:14 +01:00
|
|
|
"libp2p-bootstrap": "^0.10.3",
|
2019-12-01 22:54:59 +01:00
|
|
|
"libp2p-delegated-content-routing": "^0.4.1",
|
|
|
|
"libp2p-delegated-peer-routing": "^0.4.0",
|
2019-12-03 11:29:20 +01:00
|
|
|
"libp2p-floodsub": "^0.20.0",
|
|
|
|
"libp2p-gossipsub": "^0.2.0",
|
2019-12-06 14:28:52 +01:00
|
|
|
"libp2p-kad-dht": "^0.18.2",
|
2019-11-28 22:50:14 +01:00
|
|
|
"libp2p-mdns": "^0.13.0",
|
2019-10-21 16:53:58 +02:00
|
|
|
"libp2p-mplex": "^0.9.1",
|
2019-11-26 07:42:37 -06:00
|
|
|
"libp2p-secio": "^0.12.1",
|
2019-10-02 13:31:28 +02:00
|
|
|
"libp2p-tcp": "^0.14.1",
|
2019-12-11 17:06:40 +01:00
|
|
|
"libp2p-webrtc-star": "^0.17.0",
|
2019-11-04 14:05:58 +01:00
|
|
|
"libp2p-websockets": "^0.13.1",
|
2019-03-21 14:23:00 +01:00
|
|
|
"nock": "^10.0.6",
|
2019-10-21 16:53:58 +02:00
|
|
|
"p-defer": "^3.0.0",
|
2019-12-01 22:54:59 +01:00
|
|
|
"p-times": "^2.1.0",
|
2019-11-15 16:48:32 +01:00
|
|
|
"p-wait-for": "^3.1.0",
|
2020-01-22 11:47:30 +01:00
|
|
|
"sinon": "^8.1.0",
|
2019-10-21 16:53:58 +02:00
|
|
|
"streaming-iterables": "^4.1.0",
|
2019-06-07 15:50:23 +02:00
|
|
|
"wrtc": "^0.4.1"
|
2016-11-26 03:07:52 +01:00
|
|
|
},
|
2016-11-27 18:41:13 +00:00
|
|
|
"contributors": [
|
2019-03-21 14:27:35 +01:00
|
|
|
"Aditya Bose <13054902+adbose@users.noreply.github.com>",
|
2019-01-04 10:15:48 -07:00
|
|
|
"Alan Shaw <alan.shaw@protocol.ai>",
|
2018-06-29 23:27:28 +01:00
|
|
|
"Alan Shaw <alan@tableflip.io>",
|
2019-07-31 09:47:06 +02:00
|
|
|
"Alex Potsides <alex@achingbrain.net>",
|
2019-03-21 14:27:35 +01:00
|
|
|
"Andrew Nesbitt <andrewnez@gmail.com>",
|
2017-07-21 10:26:12 -07:00
|
|
|
"Chris Bratlien <chrisbratlien@gmail.com>",
|
2018-02-07 08:39:08 +00:00
|
|
|
"Chris Dostert <chrisdostert@users.noreply.github.com>",
|
2017-10-26 13:02:16 +01:00
|
|
|
"Daijiro Wachi <daijiro.wachi@gmail.com>",
|
2016-11-27 18:41:13 +00:00
|
|
|
"David Dias <daviddias.p@gmail.com>",
|
2019-12-12 10:43:17 +01:00
|
|
|
"Didrik Nordström <didrik.nordstrom@gmail.com>",
|
2018-04-06 17:03:47 +01:00
|
|
|
"Diogo Silva <fsdiogo@gmail.com>",
|
2017-10-26 13:02:16 +01:00
|
|
|
"Dmitriy Ryajov <dryajov@gmail.com>",
|
2017-09-03 14:43:34 +01:00
|
|
|
"Elven <mon.samuel@qq.com>",
|
2019-09-24 14:10:57 +02:00
|
|
|
"Fei Liu <liu.feiwood@gmail.com>",
|
2018-04-30 22:41:32 +01:00
|
|
|
"Florian-Merle <florian.david.merle@gmail.com>",
|
2016-11-27 18:41:13 +00:00
|
|
|
"Friedel Ziegelmayer <dignifiedquire@gmail.com>",
|
2018-01-07 17:09:56 +00:00
|
|
|
"Giovanni T. Parra <fiatjaf@gmail.com>",
|
2019-06-07 17:10:07 +02:00
|
|
|
"Guy Sviry <32539816+guysv@users.noreply.github.com>",
|
2018-11-16 14:12:01 +01:00
|
|
|
"Henrique Dias <hacdias@gmail.com>",
|
2019-02-21 17:46:09 +01:00
|
|
|
"Hugo Dias <mail@hugodias.me>",
|
2018-06-28 10:34:11 +02:00
|
|
|
"Hugo Dias <hugomrdias@gmail.com>",
|
2018-01-16 06:16:15 -08:00
|
|
|
"Irakli Gozalishvili <rfobic@gmail.com>",
|
2018-06-29 23:27:28 +01:00
|
|
|
"Jacob Heun <jacobheun@gmail.com>",
|
2017-12-14 07:39:37 +00:00
|
|
|
"Joel Gustafson <joelg@mit.edu>",
|
2018-01-07 17:09:56 +00:00
|
|
|
"John Rees <johnrees@users.noreply.github.com>",
|
2018-06-28 10:34:11 +02:00
|
|
|
"João Santos <joaosantos15@users.noreply.github.com>",
|
2018-01-16 06:16:15 -08:00
|
|
|
"Kevin Kwok <antimatter15@gmail.com>",
|
2017-10-26 13:02:16 +01:00
|
|
|
"Lars Gierth <lgierth@users.noreply.github.com>",
|
2017-11-27 09:13:12 +00:00
|
|
|
"Maciej Krüger <mkg20001@gmail.com>",
|
2018-12-03 12:56:50 +01:00
|
|
|
"Marcin Tojek <mtojek@users.noreply.github.com>",
|
2017-10-26 13:02:16 +01:00
|
|
|
"Nuno Nogueira <nunofmn@gmail.com>",
|
2018-06-28 10:34:11 +02:00
|
|
|
"Pedro Teixeira <pedro@protocol.ai>",
|
2017-07-07 13:27:04 +01:00
|
|
|
"Pedro Teixeira <i@pgte.me>",
|
2017-09-03 14:43:34 +01:00
|
|
|
"RasmusErik Voel Jensen <github@solsort.com>",
|
2016-11-27 18:41:13 +00:00
|
|
|
"Richard Littauer <richard.littauer@gmail.com>",
|
2017-10-26 13:02:16 +01:00
|
|
|
"Ryan Bell <ryan@piing.net>",
|
2019-02-05 13:56:50 +01:00
|
|
|
"Soeren <nikorpoulsen@gmail.com>",
|
2018-03-28 15:33:59 -07:00
|
|
|
"Sönke Hahn <soenkehahn@gmail.com>",
|
2019-02-05 13:56:50 +01:00
|
|
|
"Thomas Eizinger <thomas@eizinger.io>",
|
2018-01-07 17:09:56 +00:00
|
|
|
"Tiago Alves <alvesjtiago@gmail.com>",
|
2019-02-26 15:24:55 +01:00
|
|
|
"Vasco Santos <vasco.santos@moxy.studio>",
|
2019-07-12 13:10:53 +01:00
|
|
|
"Vasco Santos <vasco.santos@ua.pt>",
|
2018-06-28 10:34:11 +02:00
|
|
|
"Volker Mische <volker.mische@gmail.com>",
|
2019-04-11 13:54:39 +02:00
|
|
|
"Yusef Napora <yusef@napora.org>",
|
2018-03-15 08:16:12 -07:00
|
|
|
"Zane Starr <zcstarr@gmail.com>",
|
2019-08-21 19:51:50 +02:00
|
|
|
"a1300 <a1300@users.noreply.github.com>",
|
2019-12-12 10:43:17 +01:00
|
|
|
"dirkmc <dirkmdev@gmail.com>",
|
2019-02-05 13:56:50 +01:00
|
|
|
"ebinks <elizabethjbinks@gmail.com>",
|
2017-01-28 21:14:26 +00:00
|
|
|
"greenkeeperio-bot <support@greenkeeper.io>",
|
2019-02-21 17:46:09 +01:00
|
|
|
"isan_rivkin <isanrivkin@gmail.com>",
|
2017-11-27 09:13:12 +00:00
|
|
|
"mayerwin <mayerwin@users.noreply.github.com>",
|
2019-12-12 10:43:17 +01:00
|
|
|
"phillmac <phillmac@users.noreply.github.com>",
|
2019-09-24 14:10:57 +02:00
|
|
|
"swedneck <40505480+swedneck@users.noreply.github.com>",
|
2017-11-27 09:13:12 +00:00
|
|
|
"ᴠɪᴄᴛᴏʀ ʙᴊᴇʟᴋʜᴏʟᴍ <victorbjelkholm@gmail.com>"
|
2016-11-27 18:41:13 +00:00
|
|
|
]
|
2017-09-10 04:52:07 +01:00
|
|
|
}
|