mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-03-16 07:30:51 +00:00
* fix: store provider multiaddrs during find providers Changes the behaviour of `libp2p.contentRouting.findProviders` to store the multiaddrs reported by the routers before yielding results to the caller, so when they try to dial the provider, the multiaddrs are already in the peer store's address book. Also dedupes providers reported by routers but keeps all of the addresses reported, even for duplicates. Also, also fixes a performance bug where the previous implementation would wait for any router to completely finish finding providers before sending any results to the caller. It'll now yield results as they come in which makes it much, much faster.
192 lines
5.9 KiB
JSON
192 lines
5.9 KiB
JSON
{
|
|
"name": "libp2p",
|
|
"version": "0.30.1",
|
|
"description": "JavaScript implementation of libp2p, a modular peer to peer network stack",
|
|
"leadMaintainer": "Jacob Heun <jacobheun@gmail.com>",
|
|
"main": "src/index.js",
|
|
"types": "dist/src/index.d.ts",
|
|
"typesVersions": {
|
|
"*": {
|
|
"src/*": [
|
|
"dist/src/*",
|
|
"dist/src/*/index"
|
|
]
|
|
}
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"src"
|
|
],
|
|
"scripts": {
|
|
"lint": "aegir lint",
|
|
"build": "aegir build",
|
|
"test": "npm run test:node && npm run test:browser",
|
|
"test:node": "aegir test -t node -f \"./test/**/*.{node,spec}.js\"",
|
|
"test:browser": "aegir test -t browser",
|
|
"test:examples": "cd examples && npm run test:all",
|
|
"release": "aegir release -t node -t browser",
|
|
"release-minor": "aegir release --type minor -t node -t browser",
|
|
"release-major": "aegir release --type major -t node -t browser",
|
|
"coverage": "nyc --reporter=text --reporter=lcov npm run test:node"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/libp2p/js-libp2p.git"
|
|
},
|
|
"keywords": [
|
|
"libp2p",
|
|
"network",
|
|
"p2p",
|
|
"peer",
|
|
"peer-to-peer",
|
|
"IPFS"
|
|
],
|
|
"bugs": {
|
|
"url": "https://github.com/libp2p/js-libp2p/issues"
|
|
},
|
|
"homepage": "https://libp2p.io",
|
|
"license": "MIT",
|
|
"engines": {
|
|
"node": ">=12.0.0",
|
|
"npm": ">=6.0.0"
|
|
},
|
|
"dependencies": {
|
|
"abort-controller": "^3.0.0",
|
|
"aggregate-error": "^3.0.1",
|
|
"any-signal": "^1.1.0",
|
|
"bignumber.js": "^9.0.0",
|
|
"cids": "^1.0.0",
|
|
"class-is": "^1.1.0",
|
|
"debug": "^4.1.1",
|
|
"err-code": "^2.0.0",
|
|
"events": "^3.1.0",
|
|
"hashlru": "^2.3.0",
|
|
"interface-datastore": "^2.0.0",
|
|
"ipfs-utils": "^5.0.1",
|
|
"it-all": "^1.0.1",
|
|
"it-buffer": "^0.1.2",
|
|
"it-drain": "^1.0.3",
|
|
"it-filter": "^1.0.1",
|
|
"it-first": "^1.0.4",
|
|
"it-handshake": "^1.0.1",
|
|
"it-length-prefixed": "^3.0.1",
|
|
"it-map": "^1.0.4",
|
|
"it-merge": "1.0.0",
|
|
"it-pipe": "^1.1.0",
|
|
"it-protocol-buffers": "^0.2.0",
|
|
"it-take": "1.0.0",
|
|
"libp2p-crypto": "^0.18.0",
|
|
"libp2p-interfaces": "^0.8.1",
|
|
"libp2p-utils": "^0.2.2",
|
|
"mafmt": "^8.0.0",
|
|
"merge-options": "^2.0.0",
|
|
"moving-average": "^1.0.0",
|
|
"multiaddr": "^8.1.0",
|
|
"multicodec": "^2.0.0",
|
|
"multihashing-async": "^2.0.1",
|
|
"multistream-select": "^1.0.0",
|
|
"mutable-proxy": "^1.0.0",
|
|
"node-forge": "^0.9.1",
|
|
"p-any": "^3.0.0",
|
|
"p-fifo": "^1.0.0",
|
|
"p-settle": "^4.0.1",
|
|
"peer-id": "^0.14.2",
|
|
"protons": "^2.0.0",
|
|
"retimer": "^2.0.0",
|
|
"sanitize-filename": "^1.6.3",
|
|
"set-delayed-interval": "^1.0.0",
|
|
"streaming-iterables": "^5.0.2",
|
|
"timeout-abort-controller": "^1.1.1",
|
|
"varint": "^5.0.0",
|
|
"xsalsa20": "^1.0.2"
|
|
},
|
|
"devDependencies": {
|
|
"@nodeutils/defaults-deep": "^1.1.0",
|
|
"abortable-iterator": "^3.0.0",
|
|
"aegir": "^29.2.0",
|
|
"chai-bytes": "^0.1.2",
|
|
"chai-string": "^1.5.0",
|
|
"delay": "^4.3.0",
|
|
"interop-libp2p": "^0.3.0",
|
|
"into-stream": "^6.0.0",
|
|
"ipfs-http-client": "^47.0.1",
|
|
"it-concat": "^1.0.0",
|
|
"it-pair": "^1.0.0",
|
|
"it-pushable": "^1.4.0",
|
|
"libp2p": ".",
|
|
"libp2p-bootstrap": "^0.12.0",
|
|
"libp2p-delegated-content-routing": "^0.8.0",
|
|
"libp2p-delegated-peer-routing": "^0.8.0",
|
|
"libp2p-floodsub": "^0.24.0",
|
|
"libp2p-gossipsub": "^0.7.0",
|
|
"libp2p-kad-dht": "^0.20.0",
|
|
"libp2p-mdns": "^0.15.0",
|
|
"libp2p-mplex": "^0.10.1",
|
|
"libp2p-noise": "^2.0.0",
|
|
"libp2p-secio": "^0.13.1",
|
|
"libp2p-tcp": "^0.15.1",
|
|
"libp2p-webrtc-star": "^0.20.0",
|
|
"libp2p-websockets": "^0.15.0",
|
|
"multihashes": "^3.0.1",
|
|
"nock": "^13.0.3",
|
|
"p-defer": "^3.0.0",
|
|
"p-times": "^3.0.0",
|
|
"p-wait-for": "^3.1.0",
|
|
"promisify-es6": "^1.0.3",
|
|
"rimraf": "^3.0.2",
|
|
"sinon": "^9.0.2",
|
|
"uint8arrays": "^1.1.0"
|
|
},
|
|
"contributors": [
|
|
"David Dias <daviddias.p@gmail.com>",
|
|
"Jacob Heun <jacobheun@gmail.com>",
|
|
"Vasco Santos <vasco.santos@moxy.studio>",
|
|
"Alan Shaw <alan@tableflip.io>",
|
|
"Alex Potsides <alex@achingbrain.net>",
|
|
"Cayman <caymannava@gmail.com>",
|
|
"Pedro Teixeira <i@pgte.me>",
|
|
"Friedel Ziegelmayer <dignifiedquire@gmail.com>",
|
|
"Maciej Krüger <mkg20001@gmail.com>",
|
|
"Hugo Dias <mail@hugodias.me>",
|
|
"dirkmc <dirkmdev@gmail.com>",
|
|
"Volker Mische <volker.mische@gmail.com>",
|
|
"Richard Littauer <richard.littauer@gmail.com>",
|
|
"a1300 <matthias-knopp@gmx.net>",
|
|
"Elven <mon.samuel@qq.com>",
|
|
"Andrew Nesbitt <andrewnez@gmail.com>",
|
|
"Giovanni T. Parra <fiatjaf@gmail.com>",
|
|
"Ryan Bell <ryan@piing.net>",
|
|
"Thomas Eizinger <thomas@eizinger.io>",
|
|
"ᴠɪᴄᴛᴏʀ ʙᴊᴇʟᴋʜᴏʟᴍ <victorbjelkholm@gmail.com>",
|
|
"Didrik Nordström <didrik@betamos.se>",
|
|
"Fei Liu <liu.feiwood@gmail.com>",
|
|
"Ethan Lam <elmemphis2000@gmail.com>",
|
|
"Joel Gustafson <joelg@mit.edu>",
|
|
"Julien Bouquillon <contact@revolunet.com>",
|
|
"Kevin Kwok <antimatter15@gmail.com>",
|
|
"Nuno Nogueira <nunofmn@gmail.com>",
|
|
"Dmitriy Ryajov <dryajov@gmail.com>",
|
|
"RasmusErik Voel Jensen <github@solsort.com>",
|
|
"Diogo Silva <fsdiogo@gmail.com>",
|
|
"Samlior <samlior@foxmail.com>",
|
|
"Smite Chow <xiaopengyou@live.com>",
|
|
"Soeren <nikorpoulsen@gmail.com>",
|
|
"Sönke Hahn <soenkehahn@gmail.com>",
|
|
"Tiago Alves <alvesjtiago@gmail.com>",
|
|
"Daijiro Wachi <daijiro.wachi@gmail.com>",
|
|
"Yusef Napora <yusef@napora.org>",
|
|
"Zane Starr <zcstarr@gmail.com>",
|
|
"robertkiel <robert.kiel@validitylabs.org>",
|
|
"Cindy Wu <ciindy.wu@gmail.com>",
|
|
"Chris Bratlien <chrisbratlien@gmail.com>",
|
|
"ebinks <elizabethjbinks@gmail.com>",
|
|
"Florian-Merle <florian.david.merle@gmail.com>",
|
|
"Francis Gulotta <wizard@roborooter.com>",
|
|
"Felipe Martins <felipebrasil93@gmail.com>",
|
|
"Bernd Strehl <bernd.strehl@gmail.com>",
|
|
"Henrique Dias <hacdias@gmail.com>",
|
|
"isan_rivkin <isanrivkin@gmail.com>",
|
|
"Irakli Gozalishvili <rfobic@gmail.com>"
|
|
]
|
|
}
|