From a0978b85162c0e23d7dd7d4d7ebba602c3518a2a Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Fri, 12 Apr 2019 12:44:20 +0200 Subject: [PATCH] fix(brave): robust ipfs.cat + content-type sniff This applies cherry-picked patches from: https://github.com/ipfs/js-ipfs/pull/1989 https://github.com/ipfs/js-ipfs/pull/1950 and solves stream issues on page refresh. Content-type sniffing is now done over a meaningful amount of bytes instead of arbitrary number. --- add-on/src/lib/on-installed.js | 2 +- package.json | 4 +- yarn.lock | 494 +++++++++++++++------------------ 3 files changed, 232 insertions(+), 268 deletions(-) diff --git a/add-on/src/lib/on-installed.js b/add-on/src/lib/on-installed.js index 7fc5ede7e..cfc708005 100644 --- a/add-on/src/lib/on-installed.js +++ b/add-on/src/lib/on-installed.js @@ -15,7 +15,7 @@ exports.showPendingLandingPages = async () => { const hint = await browser.storage.local.get('showLandingPage') switch (hint.showLandingPage) { case 'onInstallWelcome': - // TODO:restore await browser.storage.local.remove('showLandingPage') + await browser.storage.local.remove('showLandingPage') return browser.tabs.create({ url: '/dist/landing-pages/welcome/index.html' }) diff --git a/package.json b/package.json index cbd33d10e..039df342e 100644 --- a/package.json +++ b/package.json @@ -121,9 +121,9 @@ "filesize": "4.1.2", "http-dns": "3.0.1", "http-node": "1.2.0", - "ipfs": "https://github.com/lidel/js-ipfs/tarball/5a6327879a03aac95eb008f746455d7e22891a53/js-ipfs.tar.gz", + "ipfs": "https://github.com/lidel/js-ipfs/tarball/6197ced20dbcf5e4d699b67fbd6510d671a4dc52/js-ipfs.tar.gz", "ipfs-css": "0.12.0", - "ipfs-http-client": "30.1.0", + "ipfs-http-client": "30.1.2", "ipfs-http-response": "0.2.2", "ipfs-postmsg-proxy": "3.1.1", "ipfsx": "0.17.0", diff --git a/yarn.lock b/yarn.lock index 83c645f38..de2cbf9ac 100644 --- a/yarn.lock +++ b/yarn.lock @@ -747,13 +747,6 @@ dependencies: "@material/feature-targeting" "^0.44.1" -"@nodeutils/defaults-deep@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@nodeutils/defaults-deep/-/defaults-deep-1.1.0.tgz#bb1124dc8d7ce0bc5da1d668ace58149258ef20b" - integrity sha1-uxEk3I184LxdodZorOWBSSWO8gs= - dependencies: - lodash "^4.15.0" - "@samverschueren/stream-to-observable@^0.3.0": version "0.3.0" resolved "https://registry.yarnpkg.com/@samverschueren/stream-to-observable/-/stream-to-observable-0.3.0.tgz#ecdf48d532c58ea477acfcab80348424f8d0662f" @@ -1524,6 +1517,11 @@ asap@~2.0.6: resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" integrity sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY= +asmcrypto.js@^2.3.2: + version "2.3.2" + resolved "https://registry.yarnpkg.com/asmcrypto.js/-/asmcrypto.js-2.3.2.tgz#b9f84bd0a1fb82f21f8c29cc284a707ad17bba2e" + integrity sha512-3FgFARf7RupsZETQ1nHnhLUUvpcttcCq1iZCaVAbJZbCZ5VNRrNyvpDyHTOb0KC3llFcsyOT/a99NZcCbeiEsA== + asn1.js@1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/asn1.js/-/asn1.js-1.0.3.tgz#281ba3ec1f2448fe765f92a4eecf883fe1364b54" @@ -1816,6 +1814,11 @@ bignumber.js@^8.0.1, bignumber.js@^8.0.2: resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-8.0.2.tgz#d8c4e1874359573b1ef03011a2d861214aeef137" integrity sha512-EiuvFrnbv0jFixEQ9f58jo7X0qI2lNGIr/MxntmVzQc5JUweDSh8y8hbTCAomFtqwUPIOWcLXP0VEOSZTG7FFw== +bignumber.js@^8.1.1: + version "8.1.1" + resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-8.1.1.tgz#4b072ae5aea9c20f6730e4e5d529df1271c4d885" + integrity sha512-QD46ppGintwPGuL1KqmwhR0O+N2cZUg8JG/VzwI2e28sM9TqHjQB10lI4QAaMHVbLzwVLLAwEglpKPViWX+5NQ== + binary-extensions@^1.0.0: version "1.12.0" resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.12.0.tgz#c2d780f53d45bba8317a8902d4ceeaf3a6385b14" @@ -2708,6 +2711,16 @@ cids@^0.5.3, cids@^0.5.4, cids@~0.5.2, cids@~0.5.4, cids@~0.5.5, cids@~0.5.6, ci multicodec "~0.2.7" multihashes "~0.4.14" +cids@~0.5.8: + version "0.5.8" + resolved "https://registry.yarnpkg.com/cids/-/cids-0.5.8.tgz#3d5000c3856a2d3c00967b21265aa57142611aa0" + integrity sha512-Ye8TZP3YQfy0j+i5k+LPHdTY3JOvTwN1pxds44p6BRUv8PTMOAF/Vt4Bc+oiIQ0Sktn0iftkUHgqKNHIMwhshA== + dependencies: + class-is "^1.1.0" + multibase "~0.6.0" + multicodec "~0.5.0" + multihashes "~0.4.14" + cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: version "1.0.4" resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" @@ -2940,16 +2953,6 @@ concat-stream@^1.4.7, concat-stream@^1.5.0, concat-stream@^1.5.2, concat-stream@ readable-stream "^2.2.2" typedarray "^0.0.6" -concat-stream@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-2.0.0.tgz#414cf5af790a48c60ab9be4527d56d5e41133cb1" - integrity sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A== - dependencies: - buffer-from "^1.0.0" - inherits "^2.0.3" - readable-stream "^3.0.2" - typedarray "^0.0.6" - concat-stream@hugomrdias/concat-stream#feat/smaller: version "2.0.0" resolved "https://codeload.github.com/hugomrdias/concat-stream/tar.gz/057bc7b5d6d8df26c8cf00a3f151b6721a0a8034" @@ -3647,6 +3650,11 @@ dispensary@0.30.0: source-map-support "~0.5.4" yargs "~12.0.1" +dlv@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/dlv/-/dlv-1.1.2.tgz#270f6737b30d25b6657a7e962c784403f85137e5" + integrity sha512-xxD4VSH67GbRvSGUrckvha94RD7hjgOH7rqGxiytLpkaeMvixOHFZTGFK6EkIm3T761OVHT8ABHmGkq9gXgu6Q== + dns-packet@^4.0.0: version "4.2.0" resolved "https://registry.yarnpkg.com/dns-packet/-/dns-packet-4.2.0.tgz#3fd6f5ff5a4ec3194ed0b15312693ffe8776b343" @@ -5531,7 +5539,7 @@ gzip-size@^5.0.0: duplexer "^0.1.1" pify "^3.0.0" -hamt-sharding@~0.0.2: +hamt-sharding@0.0.2, hamt-sharding@~0.0.2: version "0.0.2" resolved "https://registry.yarnpkg.com/hamt-sharding/-/hamt-sharding-0.0.2.tgz#53691f72122f1929a92a4688c7bb59545a8998ac" integrity sha512-0pUBRvsdM1G6RgXfJASUMLwk++LQMNoXx2n2iMZiSzV43lBNesSz130wkGSP2D6d/8DYIWABLL1Vqb4PpcUcvQ== @@ -6162,20 +6170,20 @@ ipaddr.js@1.8.0: resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.8.0.tgz#eaa33d6ddd7ace8f7f6fe0c9ca0440e706738b1e" integrity sha1-6qM9bd16zo9/b+DJygRA5wZzix4= -ipfs-bitswap@~0.22.0: - version "0.22.0" - resolved "https://registry.yarnpkg.com/ipfs-bitswap/-/ipfs-bitswap-0.22.0.tgz#ce205487003b8cc0c01dcddebf1782c40f5ff454" - integrity sha512-hgLwX1PUTMgVFbjWjSdasZLhj6ODEuJ/65xwkQGXSDZCrLIyKILp9kH2ZMspSBeSWzeQF4B5QDpB5FxKg6J2PA== +ipfs-bitswap@~0.23.0: + version "0.23.0" + resolved "https://registry.yarnpkg.com/ipfs-bitswap/-/ipfs-bitswap-0.23.0.tgz#911bdf898afdbd7353fde42a16047deaa8373a04" + integrity sha512-6gim1Y3WUk4hh+EmrWFiPwtHdeVXCr0QwAHOs2Y8mLLpuYF29Y2weugO3Ggkjcx1t+0wiQFIj7SMwsBBUNe8FA== dependencies: async "^2.6.1" bignumber.js "^8.0.1" - cids "~0.5.5" + cids "~0.5.8" debug "^4.1.0" ipfs-block "~0.8.0" just-debounce-it "^1.1.0" lodash.isequalwith "^4.4.0" moving-average "^1.0.0" - multicodec "~0.2.7" + multicodec "~0.5.0" multihashing-async "~0.5.1" protons "^1.0.1" pull-length-prefixed "^1.3.1" @@ -6210,10 +6218,10 @@ ipfs-css@0.12.0: resolved "https://registry.yarnpkg.com/ipfs-css/-/ipfs-css-0.12.0.tgz#becf48dbdfb1c913006ff0c6dc6c56752a2cb6b3" integrity sha512-bU72aEG1LR1MVUnHIXsCxdZqJwKpQrh0Wod2aI1o940hVxobZqHEVw5PISdhVdtK42IaHhtq25wAl0zZlUwyiA== -ipfs-http-client@30.1.0: - version "30.1.0" - resolved "https://registry.yarnpkg.com/ipfs-http-client/-/ipfs-http-client-30.1.0.tgz#1fe9cd3cec3db13b86ee7d936d03299f5755d465" - integrity sha512-yon0JgvXDXxy90x6R+Ut7nBoXEgSQI4cSmlV3KOhzMO9cIdUSDBflEWBGBSVciDBu9xxPASOh7umYV6XPz8Xlw== +ipfs-http-client@30.1.2, ipfs-http-client@^30.1.1: + version "30.1.2" + resolved "https://registry.yarnpkg.com/ipfs-http-client/-/ipfs-http-client-30.1.2.tgz#63aa99e54e846e77412902810fb9e3d87216fb06" + integrity sha512-WhK9kzUw8+mYgZoidplxUAy5C3XJNfrfDsWREg11PT+XFeyROsMByRlcKkW/xDwOZsu0+wBuFGRkIKBoETTdLg== dependencies: async "^2.6.1" bignumber.js "^8.0.2" @@ -6233,7 +6241,7 @@ ipfs-http-client@30.1.0: is-ipfs "~0.6.0" is-pull-stream "0.0.0" is-stream "^1.1.0" - iso-stream-http "~0.1.1" + iso-stream-http "~0.1.2" iso-url "~0.4.6" just-kebab-case "^1.1.0" just-map-keys "^1.1.0" @@ -6257,53 +6265,6 @@ ipfs-http-client@30.1.0: tar-stream "^2.0.1" through2 "^3.0.1" -ipfs-http-client@^29.0.0: - version "29.0.0" - resolved "https://registry.yarnpkg.com/ipfs-http-client/-/ipfs-http-client-29.0.0.tgz#651179933a23febdc1c3419622f553c3573e4a05" - integrity sha512-XO3M5a/8H3WT/12byvrq9KluFpuzLp0u2sET3/VblBC6PSyQoV+vwRP4Op4Doeq5i5VATXgV4wAVWeAt28URpQ== - dependencies: - async "^2.6.1" - bignumber.js "^8.0.2" - bl "^2.1.2" - bs58 "^4.0.1" - cids "~0.5.5" - concat-stream "^2.0.0" - debug "^4.1.0" - detect-node "^2.0.4" - end-of-stream "^1.4.1" - err-code "^1.1.2" - flatmap "0.0.3" - glob "^7.1.3" - ipfs-block "~0.8.0" - ipfs-unixfs "~0.1.16" - ipld-dag-cbor "~0.13.0" - ipld-dag-pb "~0.15.0" - is-ipfs "~0.4.7" - is-pull-stream "0.0.0" - is-stream "^1.1.0" - libp2p-crypto "~0.16.0" - lodash "^4.17.11" - lru-cache "^5.1.1" - multiaddr "^6.0.0" - multibase "~0.6.0" - multihashes "~0.4.14" - ndjson "^1.5.0" - once "^1.4.0" - peer-id "~0.12.1" - peer-info "~0.15.0" - promisify-es6 "^1.0.3" - pull-defer "~0.2.3" - pull-pushable "^2.2.0" - pull-stream-to-stream "^1.3.4" - pump "^3.0.0" - qs "^6.5.2" - readable-stream "^3.0.6" - stream-http "^3.0.0" - stream-to-pull-stream "^1.7.2" - streamifier "~0.1.1" - tar-stream "^1.6.2" - through2 "^3.0.0" - ipfs-http-response@0.2.2: version "0.2.2" resolved "https://registry.yarnpkg.com/ipfs-http-response/-/ipfs-http-response-0.2.2.tgz#40f1dad22c73b4d64fcfad8a2cbe55f634f4a2ec" @@ -6338,10 +6299,10 @@ ipfs-http-response@~0.2.1: promisify-es6 "^1.0.3" stream-to-blob "^1.0.1" -ipfs-mfs@~0.9.1: - version "0.9.2" - resolved "https://registry.npmjs.org/ipfs-mfs/-/ipfs-mfs-0.9.2.tgz#336cefcc84e0f637d143bfda575ab3124213673f" - integrity sha512-QYPM5vtuI67+wz+RyoLZytfN3+aAbFkElq2uORAYf83iVkUT7fx9dQHmHBOLelGzL/VorGGfUCFiZQHBMG4BdQ== +ipfs-mfs@~0.10.2: + version "0.10.4" + resolved "https://registry.yarnpkg.com/ipfs-mfs/-/ipfs-mfs-0.10.4.tgz#44244f732a35e7031783b6ab7bdde276a724de01" + integrity sha512-WFGSkbSdpUcHXstLhhK1Tn/CFXtQTtRH6zPGvjGoZ+Zmap3LXc4gwVkIlaswllZhzP9lOYhPULC3rLZc/IuUUw== dependencies: async "^2.6.1" cids "~0.5.5" @@ -6351,8 +6312,8 @@ ipfs-mfs@~0.9.1: interface-datastore "~0.6.0" ipfs-multipart "~0.1.0" ipfs-unixfs "~0.1.16" - ipfs-unixfs-exporter "~0.35.5" - ipfs-unixfs-importer "~0.38.0" + ipfs-unixfs-exporter "~0.36.1" + ipfs-unixfs-importer "~0.38.5" ipld-dag-pb "~0.15.2" is-pull-stream "~0.0.0" is-stream "^1.1.0" @@ -6423,24 +6384,18 @@ ipfs-repo@~0.26.1: pull-stream "^3.6.9" sort-keys "^2.0.0" -ipfs-unixfs-engine@~0.35.3: - version "0.35.4" - resolved "https://registry.yarnpkg.com/ipfs-unixfs-engine/-/ipfs-unixfs-engine-0.35.4.tgz#b399eddde920d89891257bbb079100239fd6e426" - integrity sha512-6DkrJgPDAWJc1zZSnOqYp6gxe525pnyg2qCxE+PF1KoBz989WWogBrw1h1AfozMrbR5GSrL+peSgg34WAlE8ew== - dependencies: - ipfs-unixfs-exporter "~0.35.4" - ipfs-unixfs-importer "~0.38.0" - -ipfs-unixfs-exporter@~0.35.4, ipfs-unixfs-exporter@~0.35.5: - version "0.35.7" - resolved "https://registry.yarnpkg.com/ipfs-unixfs-exporter/-/ipfs-unixfs-exporter-0.35.7.tgz#453b8ec7313123f6f9e8c5b6c47b52e4b0950c26" - integrity sha512-fJ2PHddZgMhfvhGGRcnBARbP8eE8CtfSrrccwP63J3pZUa9WG+eDalZC2GTLvslf8uupOe0+NKqsXWfL48431A== +ipfs-unixfs-exporter@~0.36.1: + version "0.36.1" + resolved "https://registry.yarnpkg.com/ipfs-unixfs-exporter/-/ipfs-unixfs-exporter-0.36.1.tgz#43a5d0781d14b90be40bd9df367ff455d634ce6f" + integrity sha512-J8vrUFcREYSovUm6fdwxM3X2lgumg40YDc/oKsfFxPV0K5xzfmrj+aU2AUCik8W5GBhFH24DJwwfLAY7FkwytQ== dependencies: async "^2.6.1" cids "~0.5.5" + hamt-sharding "0.0.2" ipfs-unixfs "~0.1.16" ipfs-unixfs-importer "~0.38.0" pull-cat "^1.1.11" + pull-defer "~0.2.3" pull-paramap "^1.2.2" pull-stream "^3.6.9" pull-traverse "^1.0.3" @@ -6472,6 +6427,32 @@ ipfs-unixfs-importer@~0.38.0: optionalDependencies: rabin "^1.6.0" +ipfs-unixfs-importer@~0.38.5: + version "0.38.5" + resolved "https://registry.yarnpkg.com/ipfs-unixfs-importer/-/ipfs-unixfs-importer-0.38.5.tgz#e11f7829743dc3b144247adc43bae8a7a9c07d3d" + integrity sha512-OGTxagHLzlsz8QXe/Z+pmTohS75F/s0X/Yjopnsbxok3yGX2pYk6UX3XLOpq5l/E26bcsVprdHiA4AmiV+yQ9Q== + dependencies: + async "^2.6.1" + async-iterator-to-pull-stream "^1.1.0" + bl "^3.0.0" + deep-extend "~0.6.0" + hamt-sharding "~0.0.2" + ipfs-unixfs "~0.1.16" + ipld-dag-pb "~0.15.2" + left-pad "^1.3.0" + multihashing-async "~0.5.1" + pull-batch "^1.0.0" + pull-pair "^1.1.0" + pull-paramap "^1.2.2" + pull-pause "0.0.2" + pull-pushable "^2.2.0" + pull-stream "^3.6.9" + pull-through "^1.0.18" + pull-write "^1.1.4" + stream-to-pull-stream "^1.7.2" + optionalDependencies: + rabin "^1.6.0" + ipfs-unixfs@~0.1.14, ipfs-unixfs@~0.1.16: version "0.1.16" resolved "https://registry.yarnpkg.com/ipfs-unixfs/-/ipfs-unixfs-0.1.16.tgz#41140f4359f1b8fe7a970052663331091c5f54c4" @@ -6479,25 +6460,25 @@ ipfs-unixfs@~0.1.14, ipfs-unixfs@~0.1.16: dependencies: protons "^1.0.1" -"ipfs@https://github.com/lidel/js-ipfs/tarball/5a6327879a03aac95eb008f746455d7e22891a53/js-ipfs.tar.gz": - version "0.35.0-rc.0" - resolved "https://github.com/lidel/js-ipfs/tarball/5a6327879a03aac95eb008f746455d7e22891a53/js-ipfs.tar.gz#289b62de19cc69fd2779a53a26073b20fccd49cd" +"ipfs@https://github.com/lidel/js-ipfs/tarball/6197ced20dbcf5e4d699b67fbd6510d671a4dc52/js-ipfs.tar.gz": + version "0.35.0-rc.5" + resolved "https://github.com/lidel/js-ipfs/tarball/6197ced20dbcf5e4d699b67fbd6510d671a4dc52/js-ipfs.tar.gz#8a0b8073971b70e022869f07ad399628ac5dbded" dependencies: - "@nodeutils/defaults-deep" "^1.1.0" async "^2.6.1" bignumber.js "^8.0.2" binary-querystring "~0.1.2" - bl "^2.1.2" + bl "^3.0.0" boom "^7.2.0" bs58 "^4.0.1" buffer-peek-stream "^1.0.1" byteman "^1.3.5" cid-tool "~0.2.0" - cids "~0.5.5" + cids "~0.5.8" class-is "^1.1.0" datastore-core "~0.6.0" datastore-pubsub "~0.1.1" debug "^4.1.0" + dlv "^1.1.2" err-code "^1.1.2" file-type "^10.2.0" fnv1a "^1.0.1" @@ -6506,37 +6487,38 @@ ipfs-unixfs@~0.1.14, ipfs-unixfs@~0.1.16: glob "^7.1.3" hapi "^18.0.0" hapi-pino "^5.2.0" - hoek "^6.1.2" human-to-milliseconds "^1.0.0" interface-datastore "~0.6.0" - ipfs-bitswap "~0.22.0" + ipfs-bitswap "~0.23.0" ipfs-block "~0.8.0" ipfs-block-service "~0.15.1" - ipfs-http-client "^29.0.0" + ipfs-http-client "^30.1.1" ipfs-http-response "~0.2.1" - ipfs-mfs "~0.9.1" + ipfs-mfs "~0.10.2" ipfs-multipart "~0.1.0" ipfs-repo "~0.26.1" ipfs-unixfs "~0.1.16" - ipfs-unixfs-engine "~0.35.3" + ipfs-unixfs-exporter "~0.36.1" + ipfs-unixfs-importer "~0.38.5" ipld "~0.21.1" ipld-bitcoin "~0.1.8" - ipld-dag-pb "~0.15.0" + ipld-dag-pb "~0.15.3" ipld-ethereum "^2.0.1" - ipld-git "~0.2.2" + ipld-git "~0.3.0" ipld-zcash "~0.1.6" ipns "~0.5.0" - is-ipfs "~0.4.8" + is-ipfs "~0.6.0" is-pull-stream "~0.0.0" is-stream "^1.1.0" + iso-url "~0.4.6" joi "^14.3.0" - joi-browser "^13.4.0" - joi-multiaddr "^4.0.0" - libp2p "~0.25.0-rc.3" + just-flatten-it "^2.1.0" + just-safe-set "^2.1.0" + libp2p "~0.25.0-rc.5" libp2p-bootstrap "~0.9.3" libp2p-crypto "~0.16.0" - libp2p-kad-dht "~0.14.7" - libp2p-keychain "~0.3.3" + libp2p-kad-dht "~0.14.12" + libp2p-keychain "~0.4.1" libp2p-mdns "~0.12.0" libp2p-mplex "~0.8.4" libp2p-record "~0.6.1" @@ -6547,6 +6529,7 @@ ipfs-unixfs@~0.1.14, ipfs-unixfs@~0.1.16: libp2p-websockets "~0.12.2" lodash "^4.17.11" mafmt "^6.0.2" + merge-options "^1.0.1" mime-types "^2.1.21" mkdirp "~0.5.1" multiaddr "^6.0.0" @@ -6556,7 +6539,6 @@ ipfs-unixfs@~0.1.14, ipfs-unixfs@~0.1.16: multihashes "~0.4.14" multihashing-async "~0.5.1" node-fetch "^2.3.0" - once "^1.4.0" peer-book "~0.9.0" peer-id "~0.12.0" peer-info "~0.15.0" @@ -6572,16 +6554,16 @@ ipfs-unixfs@~0.1.14, ipfs-unixfs@~0.1.16: pull-sort "^1.0.1" pull-stream "^3.6.9" pull-stream-to-stream "^1.3.4" - pump "^3.0.0" readable-stream "^3.1.1" receptacle "^1.3.2" - stream-to-pull-stream "^1.7.2" + stream-to-pull-stream "^1.7.3" + superstruct "~0.6.0" tar-stream "^2.0.0" temp "~0.9.0" update-notifier "^2.5.0" uri-to-multiaddr "^3.0.1" varint "^5.0.0" - yargs "^12.0.5" + yargs "^13.2.2" yargs-promise "^1.1.0" optionalDependencies: prom-client "^11.1.3" @@ -6658,22 +6640,6 @@ ipld-dag-pb@^0.14.11, ipld-dag-pb@^0.14.4: pull-traverse "^1.0.3" stable "~0.1.8" -ipld-dag-pb@~0.15.0: - version "0.15.1" - resolved "https://registry.yarnpkg.com/ipld-dag-pb/-/ipld-dag-pb-0.15.1.tgz#e7a0d2b4096e5ba5d66b07e7b3c8683ade465188" - integrity sha512-/5JnKnEqSN6A7wLsW6lr7Ktxm5/NFZEdNzWFTTKQaPgyG4EL/FhnDnNqJm9m8XNZdBAGxqzGGxoDv+EzmeVkIQ== - dependencies: - async "^2.6.1" - bs58 "^4.0.1" - cids "~0.5.4" - class-is "^1.1.0" - is-ipfs "~0.4.2" - multihashing-async "~0.5.1" - protons "^1.0.1" - pull-stream "^3.6.9" - pull-traverse "^1.0.3" - stable "~0.1.8" - ipld-dag-pb@~0.15.2: version "0.15.2" resolved "https://registry.yarnpkg.com/ipld-dag-pb/-/ipld-dag-pb-0.15.2.tgz#33156e2891bacdf538dd0193ba44661b37c8e705" @@ -6722,17 +6688,18 @@ ipld-ethereum@^2.0.1: multihashing-async "~0.5.1" rlp "^2.0.0" -ipld-git@~0.2.2: - version "0.2.2" - resolved "https://registry.yarnpkg.com/ipld-git/-/ipld-git-0.2.2.tgz#1a066412b4c5b22f7c605c8ee66493250b95b513" - integrity sha512-YHS3X9nyyrPeKZZ8S8oui3OysFo3NGyJ9lb4sjXa+hwcuFUHqkfZnQN/NtYuiEixONSoXhZTr6ZAALOccKvShw== +ipld-git@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/ipld-git/-/ipld-git-0.3.0.tgz#a21701ef802370a959d80864a20d1449e39b2673" + integrity sha512-4ZqMHkKr7f2v9rizVpI9ax+2sNmYyWV48Snsf88b2DIZ/FrnukrTcRGS5NNw8f86lAkphICcczrkwhGifDtp4Q== dependencies: - async "^2.6.0" - cids "~0.5.2" - multicodec "~0.2.5" - multihashes "~0.4.12" - multihashing-async "~0.5.1" - smart-buffer "^4.0.0" + async "^2.6.2" + cids "~0.5.8" + multicodec "~0.5.0" + multihashes "~0.4.14" + multihashing-async "~0.5.2" + smart-buffer "^4.0.2" + strftime "~0.10.0" traverse "~0.6.6" ipld-raw@^2.0.1: @@ -7003,7 +6970,7 @@ is-ipfs@0.6.0, is-ipfs@~0.6.0: multibase "~0.6.0" multihashes "~0.4.13" -is-ipfs@~0.4.2, is-ipfs@~0.4.7, is-ipfs@~0.4.8: +is-ipfs@~0.4.2: version "0.4.8" resolved "https://registry.yarnpkg.com/is-ipfs/-/is-ipfs-0.4.8.tgz#ea229aef6230433ad1e8df930c49c5e773422c3f" integrity sha512-xIKUeA24IFMfkmeAPEOZL448X7a08c/KzAGQp1e/QxC9bx/NNEdT/ohob3SW6eJO2UwJNjsbfMeNZ2B+Dk2Fdg== @@ -7215,7 +7182,7 @@ iso-random-stream@^1.1.0: resolved "https://registry.yarnpkg.com/iso-random-stream/-/iso-random-stream-1.1.0.tgz#c1dc1bb43dd8da6524df9cbc6253b010806585c8" integrity sha512-ywSWt0KrWcsaK0jVoVJIR30rLyjg9Rw3k2Sm/qp+3tdtSV0SNH7L7KilKnENcENOSoJxDFvpt2idvuMMQohdCQ== -iso-stream-http@0.1.2, iso-stream-http@~0.1.1, stream-http@^2.7.2, stream-http@^3.0.0, "stream-http@npm:iso-stream-http@0.1.2": +iso-stream-http@0.1.2, iso-stream-http@~0.1.2, stream-http@^2.7.2, "stream-http@npm:iso-stream-http@0.1.2": version "0.1.2" resolved "https://registry.yarnpkg.com/iso-stream-http/-/iso-stream-http-0.1.2.tgz#b3dfea4c9f23ff26d078d40c539cfc0dfebacd37" integrity sha512-oHEDNOysIMTNypbg2f1SlydqRBvjl4ZbSE9+0awVxnkx3K2stGTFwB/kpVqnB6UEfF8QD36kAjDwZvqyXBLMnQ== @@ -7331,14 +7298,6 @@ joi-browser@^13.4.0: resolved "https://registry.yarnpkg.com/joi-browser/-/joi-browser-13.4.0.tgz#b72ba61b610e3f58e51b563a14e0f5225cfb6896" integrity sha512-TfzJd2JaJ/lg/gU+q5j9rLAjnfUNF9DUmXTP9w+GfmG79LjFOXFeM7hIFuXCBcZCivUDFwd9l1btTV9rhHumtQ== -joi-multiaddr@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/joi-multiaddr/-/joi-multiaddr-4.0.0.tgz#1b8440e3c983a520d2637ce10b5fe9443833eab3" - integrity sha512-c/QaICFM2nscoHfltv5XBfNBcUNMDBCus5arSwIrMIMJ/yRcKMrzDL1vCtckhtDczajMGkcu1vyRg17rPJsd6g== - dependencies: - mafmt "^6.0.0" - multiaddr "^6.0.2" - joi@10.x.x: version "10.6.0" resolved "https://registry.yarnpkg.com/joi/-/joi-10.6.0.tgz#52587f02d52b8b75cdb0c74f0b164a191a0e1fc2" @@ -7569,6 +7528,11 @@ just-extend@^4.0.2: resolved "https://registry.yarnpkg.com/just-extend/-/just-extend-4.0.2.tgz#f3f47f7dfca0f989c55410a7ebc8854b07108afc" integrity sha512-FrLwOgm+iXrPV+5zDU6Jqu4gCRXbWEQg2O3SKONsWE4w7AXFRkryS53bpWdaL9cNol+AmR3AEYz6kn+o0fCPnw== +just-flatten-it@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/just-flatten-it/-/just-flatten-it-2.1.0.tgz#2514337cc77ee3462869fee3d939b06ec1fd7986" + integrity sha512-mX3NUt/LF6EzohLJZXhywCwz2zqdhx6wVkEu6UfUx00lVQlSB6SBV1O+/Le15NfsimrWRD82H69ZkSVQZffhmw== + just-kebab-case@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/just-kebab-case/-/just-kebab-case-1.1.0.tgz#ebe854fde84b0afa4e597fcd870b12eb3c026755" @@ -7579,6 +7543,11 @@ just-map-keys@^1.1.0: resolved "https://registry.yarnpkg.com/just-map-keys/-/just-map-keys-1.1.0.tgz#9663c9f971ba46e17f2b05e66fec81149375f230" integrity sha512-oNKi+4y7fr8lXnhKYpBbCkiwHRVkAnx0VDkCeTDtKKMzGr1Lz1Yym+RSieKUTKim68emC5Yxrb4YmiF9STDO+g== +just-safe-set@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/just-safe-set/-/just-safe-set-2.1.0.tgz#237234e681a4f330b5dfa71a5251f34962813ef9" + integrity sha512-wSTg/2bQpzyivBYbWPqQgafdfxW0tr3hX9qYGDRS2ws+AXwc7tvn8ABqkp8iPQHChjj4F5JvL3t0FQLbcNuKig== + jwa@^1.1.5: version "1.1.6" resolved "https://registry.yarnpkg.com/jwa/-/jwa-1.1.6.tgz#87240e76c9808dbde18783cf2264ef4929ee50e6" @@ -7649,7 +7618,7 @@ klaw@^1.0.0: optionalDependencies: graceful-fs "^4.1.9" -latency-monitor@^0.2.1: +latency-monitor@~0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/latency-monitor/-/latency-monitor-0.2.1.tgz#4043d5f23de86e2bfcef6ced4a3b5b922e1dd7ed" integrity sha1-QEPV8j3obiv872ztSjtbki4d1+0= @@ -7825,10 +7794,10 @@ libp2p-bootstrap@~0.9.3: peer-id "~0.12.0" peer-info "~0.14.1" -libp2p-circuit@~0.3.4: - version "0.3.5" - resolved "https://registry.npmjs.org/libp2p-circuit/-/libp2p-circuit-0.3.5.tgz#fe4553ceb58eb9b25ea3407ebc0b3a8480011009" - integrity sha512-uQy4wbpTFyl5YIEpooz1nYISrZj/WLf4R6m/cqhhdCHTFUSAyQsZaeNwxzGqG6dU4APq503+EoPVbQZdjSSw7Q== +libp2p-circuit@~0.3.6: + version "0.3.6" + resolved "https://registry.yarnpkg.com/libp2p-circuit/-/libp2p-circuit-0.3.6.tgz#cab020526dba73dcde3a95c0d9334be0058368ab" + integrity sha512-aeLAyQKIvWOxD5AWJ5M6z9XNUWerfBmUNQEEOoGDVW91PW95BrxqtOmaCXOXiMct7qpT4gz2RtAPES55dDwbIQ== dependencies: async "^2.6.2" debug "^4.1.1" @@ -7844,13 +7813,13 @@ libp2p-circuit@~0.3.4: pull-pair "^1.1.0" pull-stream "^3.6.9" -libp2p-connection-manager@~0.0.2: - version "0.0.2" - resolved "https://registry.yarnpkg.com/libp2p-connection-manager/-/libp2p-connection-manager-0.0.2.tgz#ea3db3efce8b7bb3c55af9002b8edbf65244fb1e" - integrity sha512-G/OzMfxQe0lHx7ujibPqpFLCeMN9I5vNH0+Rs9zat6+uIT51Saupx95lyoyh5J8nh93ui2cNH7PQnwJMZVKa1A== +libp2p-connection-manager@~0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/libp2p-connection-manager/-/libp2p-connection-manager-0.1.0.tgz#1807d8dcdb27619d69899a38c43f842f66b25652" + integrity sha512-Md5UERlkD+KUsdUQRJE+B+UBq/KwOTo650z8Bl0zEfKjfnv/yMeFhucnf14suYBnzIIdGsckYn66xbeki31BLw== dependencies: - debug "^3.1.0" - latency-monitor "^0.2.1" + debug "^4.1.1" + latency-monitor "~0.2.1" libp2p-crypto-secp256k1@~0.2.2: version "0.2.2" @@ -7874,6 +7843,18 @@ libp2p-crypto-secp256k1@~0.2.3: safe-buffer "^5.1.2" secp256k1 "^3.6.1" +libp2p-crypto-secp256k1@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/libp2p-crypto-secp256k1/-/libp2p-crypto-secp256k1-0.3.0.tgz#47ce694fa3c9f2a8b61b11e66d29f1b101d9e985" + integrity sha512-+rF3S5p2pzS4JLDwVE6gLWZeaKkpl4NkYwG+0knV6ot29UcRSb73OyCWl07r1h5+g9E3KZC3wpsu+RIK5w8zQA== + dependencies: + async "^2.6.1" + bs58 "^4.0.1" + multihashing-async "~0.5.1" + nodeify "^1.0.1" + safe-buffer "^5.1.2" + secp256k1 "^3.6.1" + libp2p-crypto@~0.12.1: version "0.12.1" resolved "https://registry.yarnpkg.com/libp2p-crypto/-/libp2p-crypto-0.12.1.tgz#4a870d269ba3150dfe014e4f9aea1e55076015c8" @@ -7912,38 +7893,40 @@ libp2p-crypto@~0.13.0: tweetnacl "^1.0.0" webcrypto-shim "github:dignifiedquire/webcrypto-shim#master" -libp2p-crypto@~0.15.0: - version "0.15.0" - resolved "https://registry.yarnpkg.com/libp2p-crypto/-/libp2p-crypto-0.15.0.tgz#2bcd2fea244a955dbac90c0bd70e78539d7472c3" - integrity sha512-irShh05ojCy6MauvlMggxX3Rda2eGgO7R4swqTaAQpX4vPnj1lBo5x8RxiqgqenzFx9ldF1pUor/SU/UevS66g== +libp2p-crypto@~0.16.0: + version "0.16.0" + resolved "https://registry.yarnpkg.com/libp2p-crypto/-/libp2p-crypto-0.16.0.tgz#717d7cfa1b48cf8f01ede9f8dede6fe798ab8ece" + integrity sha512-Msu7PIumcVRO8LajSGs6uVZpC7bOiJVWu0a8iFMZ6mdbasI+A6accAmP/NjJ5WBcEdxzwjzQGNP23bQQzPoqqg== dependencies: asn1.js "^5.0.1" async "^2.6.1" browserify-aes "^1.2.0" bs58 "^4.0.1" + iso-random-stream "^1.1.0" keypair "^1.0.1" - libp2p-crypto-secp256k1 "~0.2.2" + libp2p-crypto-secp256k1 "~0.2.3" multihashing-async "~0.5.1" node-forge "~0.7.6" - pem-jwk "^1.5.1" + pem-jwk "^2.0.0" protons "^1.0.1" rsa-pem-to-jwk "^1.1.3" tweetnacl "^1.0.0" - ursa-optional "~0.9.9" - webcrypto-shim "github:dignifiedquire/webcrypto-shim#master" + ursa-optional "~0.9.10" -libp2p-crypto@~0.16.0: - version "0.16.0" - resolved "https://registry.yarnpkg.com/libp2p-crypto/-/libp2p-crypto-0.16.0.tgz#717d7cfa1b48cf8f01ede9f8dede6fe798ab8ece" - integrity sha512-Msu7PIumcVRO8LajSGs6uVZpC7bOiJVWu0a8iFMZ6mdbasI+A6accAmP/NjJ5WBcEdxzwjzQGNP23bQQzPoqqg== +libp2p-crypto@~0.16.1: + version "0.16.1" + resolved "https://registry.yarnpkg.com/libp2p-crypto/-/libp2p-crypto-0.16.1.tgz#40aa07e95a0a7fe6887ea3868625e74c81c34d75" + integrity sha512-+fxqy+cDjwOKK4KTj44WQmjPE5ep2eR5uAIQWHl/+RKvRSor3+RAY53VWkAecgAEvjX2AswxBsoCIJK1Qk5aIQ== dependencies: + asmcrypto.js "^2.3.2" asn1.js "^5.0.1" async "^2.6.1" + bn.js "^4.11.8" browserify-aes "^1.2.0" bs58 "^4.0.1" iso-random-stream "^1.1.0" keypair "^1.0.1" - libp2p-crypto-secp256k1 "~0.2.3" + libp2p-crypto-secp256k1 "~0.3.0" multihashing-async "~0.5.1" node-forge "~0.7.6" pem-jwk "^2.0.0" @@ -7952,9 +7935,9 @@ libp2p-crypto@~0.16.0: tweetnacl "^1.0.0" ursa-optional "~0.9.10" -libp2p-floodsub@~0.15.7: +libp2p-floodsub@~0.15.8: version "0.15.8" - resolved "https://registry.npmjs.org/libp2p-floodsub/-/libp2p-floodsub-0.15.8.tgz#ecfd94162825ed7b5431ccbe672f5bf58f7efab2" + resolved "https://registry.yarnpkg.com/libp2p-floodsub/-/libp2p-floodsub-0.15.8.tgz#ecfd94162825ed7b5431ccbe672f5bf58f7efab2" integrity sha512-tsRTRRz9vg3iPqhSgkn4gotX635Hp/VMxPd4VQZlRvO8pZsfZwd61Qn9Vx8bES881RhRX0YpGM4Sa0izInHEWA== dependencies: async "^2.6.1" @@ -7969,24 +7952,23 @@ libp2p-floodsub@~0.15.7: pull-stream "^3.6.9" time-cache "~0.3.0" -libp2p-identify@~0.7.5: - version "0.7.5" - resolved "https://registry.npmjs.org/libp2p-identify/-/libp2p-identify-0.7.5.tgz#53038a1b0cf42e8feefd6a5ccc59d3df6c1da7a2" - integrity sha512-sOhCLGjvA8rUa0IqN1BRpm4cfSFTy3VAo0iOBhaOAficNbzSG2bdn9pCCy5F/wXfgEGjByQldMxyNa6eHNyQjg== +libp2p-identify@~0.7.6: + version "0.7.6" + resolved "https://registry.yarnpkg.com/libp2p-identify/-/libp2p-identify-0.7.6.tgz#b17fad2ec0df76d6ca6b5b0a7e58b04620b8dbe9" + integrity sha512-QleYqI6f8ah6G6sQU9uaIa9FVOtyp6LtiqopfjrmAIO5Oz22Zw+dpT7FcEXvYP7kL036Es2vzZm0js0pOWw1MA== dependencies: - multiaddr "^6.0.3" + multiaddr "^6.0.4" peer-id "~0.12.2" peer-info "~0.15.1" protons "^1.0.1" pull-length-prefixed "^1.3.1" pull-stream "^3.6.9" -libp2p-kad-dht@~0.14.7: - version "0.14.7" - resolved "https://registry.yarnpkg.com/libp2p-kad-dht/-/libp2p-kad-dht-0.14.7.tgz#3b199a5a48bdfeb34cb934fdd5ceaa1f4ab6287d" - integrity sha512-FM7eZnyPnTtXANDiY9JlG60jyE/2RjukCoV8o44l+3fY9mDguIIx2rjKK9+f0P9OhXEi0hR5w+SLmD5J7DSugQ== +libp2p-kad-dht@~0.14.12: + version "0.14.12" + resolved "https://registry.yarnpkg.com/libp2p-kad-dht/-/libp2p-kad-dht-0.14.12.tgz#a13187d30fe4ab428363bbab83ea40565800b0e8" + integrity sha512-wE1jb+lbGQ80ZksK9OSFwU8tECmcrLLGl1wRWn1fXWFgVqgpoKbA1GzotB34IAXAsP4g4RM8MDqG5/dFs59w+g== dependencies: - "@nodeutils/defaults-deep" "^1.1.0" async "^2.6.2" base32.js "~0.1.0" chai-checkmark "^1.0.1" @@ -7999,6 +7981,7 @@ libp2p-kad-dht@~0.14.7: k-bucket "^5.0.0" libp2p-crypto "~0.16.0" libp2p-record "~0.6.2" + merge-options "^1.0.1" multihashes "~0.4.14" multihashing-async "~0.5.2" peer-id "~0.12.2" @@ -8008,17 +7991,18 @@ libp2p-kad-dht@~0.14.7: pull-length-prefixed "^1.3.1" pull-stream "^3.6.9" varint "^5.0.0" - xor-distance "^1.0.0" + xor-distance "^2.0.0" -libp2p-keychain@~0.3.3: - version "0.3.3" - resolved "https://registry.yarnpkg.com/libp2p-keychain/-/libp2p-keychain-0.3.3.tgz#d71cb744e8f38f94dc057207fd60c0a841d070f1" - integrity sha512-l8HNCowIvyoYiLa0IAJcx48OXlf4KweDaJDbJHeDMuXxOjcGbpuZJfENRuJgNLScjq+eyH8Z52l68IiRJjJCeQ== +libp2p-keychain@~0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/libp2p-keychain/-/libp2p-keychain-0.4.1.tgz#d721709e7346481ee99bf2e337e7f51fbeae8e89" + integrity sha512-ZEEIBICSkWqbJEs3hAr/gAGjkoQb/H0VpJnK34w1xAyiTL+uZEAFmQUM6XaMMpuwZk4S+J3rbWXfVEGEYs94Pw== dependencies: async "^2.6.1" interface-datastore "~0.6.0" - libp2p-crypto "~0.13.0" - lodash "^4.6.1" + libp2p-crypto "~0.16.1" + merge-options "^1.0.1" + node-forge "~0.7.6" pull-stream "^3.6.8" sanitize-filename "^1.6.1" @@ -8118,23 +8102,23 @@ libp2p-secio@~0.11.0: pull-length-prefixed "^1.3.1" pull-stream "^3.6.9" -libp2p-switch@~0.41.5: - version "0.41.5" - resolved "https://registry.npmjs.org/libp2p-switch/-/libp2p-switch-0.41.5.tgz#f1d0be14cbfe2c3929bb539a3b1e661875b6c8a4" - integrity sha512-bKfkFsEiRXfc3+2Fcbep9WtuuNzKKQziHH5PkQWihn+BVh5UrUGXoWCip/YwsGV7CcGI2zhp3qAmBJ+Cde9EDg== +libp2p-switch@~0.42.9: + version "0.42.9" + resolved "https://registry.yarnpkg.com/libp2p-switch/-/libp2p-switch-0.42.9.tgz#bd6a322014615d6f9a3a89bc064e793d0f127721" + integrity sha512-wzI4KoyD/BtQURUk1n3hmtu94Yx7xje6IzhBeHTLJuczxyvDPc+djGWpYMK3aqqCmoxRxZ5SkW04YMKNLpDtCg== dependencies: - async "^2.6.1" - bignumber.js "^8.0.1" + async "^2.6.2" + bignumber.js "^8.1.1" class-is "^1.1.0" debug "^4.1.1" err-code "^1.1.2" fsm-event "^2.1.0" hashlru "^2.3.0" interface-connection "~0.3.3" - libp2p-circuit "~0.3.4" - libp2p-identify "~0.7.5" + libp2p-circuit "~0.3.6" + libp2p-identify "~0.7.6" moving-average "^1.0.0" - multiaddr "^6.0.3" + multiaddr "^6.0.6" multistream-select "~0.14.4" once "^1.4.0" peer-id "~0.12.2" @@ -8216,7 +8200,7 @@ libp2p-websocket-star@~0.10.2: socket.io-client "^2.1.1" socket.io-pull-stream "~0.1.5" -libp2p-websockets@~0.12.1, libp2p-websockets@~0.12.2: +libp2p-websockets@~0.12.2: version "0.12.2" resolved "https://registry.npmjs.org/libp2p-websockets/-/libp2p-websockets-0.12.2.tgz#eecf25564cbe6b0e9017bb411c2a8abec8c9f29b" integrity sha512-K/Jg/fWFfP5NyiLx01EJcoAcYQO00RSHpZfPQDR3May6ABvOseAjq45SrUDdDCW5mCS0502Vz1VjRrZdOXw8zQ== @@ -8228,22 +8212,22 @@ libp2p-websockets@~0.12.1, libp2p-websockets@~0.12.2: multiaddr-to-uri "^4.0.1" pull-ws hugomrdias/pull-ws#fix/bundle-size -libp2p@~0.25.0-rc.3: - version "0.25.0-rc.4" - resolved "https://registry.yarnpkg.com/libp2p/-/libp2p-0.25.0-rc.4.tgz#77c5cfadf2101a7c34b2a1552c8afaa6084343d0" - integrity sha512-JYJnGxgrMMF9QtQfJzj7ue+iT5wuLavbFioUPHLNYetWX7JN3mCcnEZNXKl3Yp0u0wS9B0aH3hrZM1JTkQxDdQ== +libp2p@~0.25.0-rc.5: + version "0.25.0-rc.6" + resolved "https://registry.yarnpkg.com/libp2p/-/libp2p-0.25.0-rc.6.tgz#bd68ebda66bcb73461c876c46746fbfc9ec9e4df" + integrity sha512-gIKOFN40xkI3FGjaZ/7fsZCxuoAORHNIiOMkJYacsFKfVzaf0mVaTsbnKsz8OEigTTj5ua4k7wJV6xQK8osIRQ== dependencies: - async "^2.6.1" - debug "^4.1.0" + async "^2.6.2" + debug "^4.1.1" err-code "^1.1.2" fsm-event "^2.1.0" - libp2p-connection-manager "~0.0.2" - libp2p-floodsub "~0.15.7" + libp2p-connection-manager "~0.1.0" + libp2p-floodsub "~0.15.8" libp2p-ping "~0.8.5" - libp2p-switch "~0.41.5" - libp2p-websockets "~0.12.1" - mafmt "^6.0.4" - multiaddr "^6.0.3" + libp2p-switch "~0.42.9" + libp2p-websockets "~0.12.2" + mafmt "^6.0.7" + multiaddr "^6.0.6" once "^1.4.0" peer-book "~0.9.1" peer-id "~0.12.2" @@ -8465,7 +8449,7 @@ lodash.uniqby@^4.7.0: resolved "https://registry.yarnpkg.com/lodash.uniqby/-/lodash.uniqby-4.7.0.tgz#d99c07a669e9e6d24e1362dfe266c67616af1302" integrity sha1-2ZwHpmnp5tJOE2Lf4mbGdhavEwI= -lodash@4.17.11, lodash@^4.0.0, lodash@^4.14.0, lodash@^4.15.0, lodash@^4.16.3, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.2, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.3.0, lodash@^4.6.1, lodash@^4.8.0, lodash@~4.17.2: +lodash@4.17.11, lodash@^4.0.0, lodash@^4.14.0, lodash@^4.15.0, lodash@^4.16.3, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.2, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.3.0, lodash@^4.8.0, lodash@~4.17.2: version "4.17.11" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d" integrity sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg== @@ -8577,7 +8561,7 @@ mafmt@^6.0.4: dependencies: multiaddr "^6.0.3" -mafmt@^6.0.6, mafmt@^v6.0.7: +mafmt@^6.0.6, mafmt@^6.0.7, mafmt@^v6.0.7: version "6.0.7" resolved "https://registry.npmjs.org/mafmt/-/mafmt-6.0.7.tgz#80312e08bfba0f89e2daa403525f33e07d9b97fa" integrity sha512-2OG/EGAJZmpZBl7YRT1hD83sZa2gKsUEdegRuURreIOe7B4VeHU1rYYmhgk7BkLzknGL3xGYsDx3bbSgEEzE7g== @@ -9062,7 +9046,7 @@ multiaddr-to-uri@4.0.1, multiaddr-to-uri@^4.0.1: dependencies: multiaddr "^6.0.3" -multiaddr@6.0.6, multiaddr@^4.0.0, multiaddr@^5.0.0, multiaddr@^5.0.2, multiaddr@^6.0.0, multiaddr@^6.0.2, multiaddr@^6.0.3, multiaddr@^6.0.4, multiaddr@^6.0.6: +multiaddr@6.0.6, multiaddr@^4.0.0, multiaddr@^5.0.0, multiaddr@^5.0.2, multiaddr@^6.0.0, multiaddr@^6.0.3, multiaddr@^6.0.4, multiaddr@^6.0.6: version "6.0.6" resolved "https://registry.yarnpkg.com/multiaddr/-/multiaddr-6.0.6.tgz#99296d219d4f21b6520c7eaf43fd3ef9306d7a63" integrity sha512-nR4s91mi7IKed1jrqUj/4OhZ1VKdAjUG79IuVB5PS6b+qxOZLKPW8nsskHhrfGn4o1Rn1NJWl7znidF/NVQpEA== @@ -9088,7 +9072,7 @@ multicast-dns@^7.2.0: dns-packet "^4.0.0" thunky "^1.0.2" -multicodec@~0.2.5, multicodec@~0.2.7: +multicodec@~0.2.7: version "0.2.7" resolved "https://registry.yarnpkg.com/multicodec/-/multicodec-0.2.7.tgz#44dcb902b7ccd8065c4c348fe9987acf14a0679d" integrity sha512-96xc9zs7bsclMW0Po9ERnRFqcsWHY8OZ8JW/I8DeHG58YYJZy3cBGI00Ze7hz9Ix56DNHMTSxEj9cgoZByruMg== @@ -9377,16 +9361,6 @@ ncp@~2.0.0: resolved "https://registry.yarnpkg.com/ncp/-/ncp-2.0.0.tgz#195a21d6c46e361d2fb1281ba38b91e9df7bdbb3" integrity sha1-GVoh1sRuNh0vsSgbo4uR6d9727M= -ndjson@^1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/ndjson/-/ndjson-1.5.0.tgz#ae603b36b134bcec347b452422b0bf98d5832ec8" - integrity sha1-rmA7NrE0vOw0e0UkIrC/mNWDLsg= - dependencies: - json-stringify-safe "^5.0.1" - minimist "^1.2.0" - split2 "^2.1.0" - through2 "^2.0.3" - ndjson@hugomrdias/ndjson#feat/readable-stream3: version "1.5.0" resolved "https://codeload.github.com/hugomrdias/ndjson/tar.gz/4db16da6b42e5b39bf300c3a7cde62abb3fa3a11" @@ -10274,17 +10248,6 @@ peer-id@~0.12.0: lodash "^4.17.10" multihashes "~0.4.13" -peer-id@~0.12.1: - version "0.12.1" - resolved "https://registry.yarnpkg.com/peer-id/-/peer-id-0.12.1.tgz#517e940654f93c39972eb14f24f9b5da6e09e2eb" - integrity sha512-KGFVGETtpahdsH7oQoScq7IMZ1hPx1VR0+DOol7bkmU5xbue+cWC4LAYfGHVnqW88WP1Jn4ZZdPbmEMGYTdINg== - dependencies: - async "^2.6.1" - class-is "^1.1.0" - libp2p-crypto "~0.15.0" - lodash "^4.17.11" - multihashes "~0.4.14" - peer-id@~0.12.2: version "0.12.2" resolved "https://registry.yarnpkg.com/peer-id/-/peer-id-0.12.2.tgz#0d1b876ebf21a528be9948c9cb7d30266342b2fd" @@ -12118,10 +12081,10 @@ slugid@^1.1.0: dependencies: uuid "^2.0.1" -smart-buffer@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/smart-buffer/-/smart-buffer-4.0.1.tgz#07ea1ca8d4db24eb4cac86537d7d18995221ace3" - integrity sha512-RFqinRVJVcCAL9Uh1oVqE6FZkqsyLiVOYEZ20TqIOjuX7iFVJ+zsbs4RIghnw/pTs7mZvt8ZHhvm1ZUrR4fykg== +smart-buffer@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/smart-buffer/-/smart-buffer-4.0.2.tgz#5207858c3815cc69110703c6b94e46c15634395d" + integrity sha512-JDhEpTKzXusOqXZ0BUIdH+CjFdO/CR3tLlf5CN34IypI+xMmXW1uB16OOY8z3cICbJlDAVJzNbwBhNO0wt9OAw== snapdragon-node@^2.0.1: version "2.1.1" @@ -12384,13 +12347,6 @@ split-string@^3.0.1, split-string@^3.0.2: dependencies: extend-shallow "^3.0.0" -split2@^2.1.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/split2/-/split2-2.2.0.tgz#186b2575bcf83e85b7d18465756238ee4ee42493" - integrity sha512-RAb22TG39LhI31MbreBgIuKiIKhVsawfTgEGqKHTK87aG+ul/PB8Sqoi3I7kVdRWiCfrKxK3uo4/YUkpNvhPbw== - dependencies: - through2 "^2.0.2" - split2@^3.0.0: version "3.1.0" resolved "https://registry.npmjs.org/split2/-/split2-3.1.0.tgz#064bbfac70cdb66f77827870d42f159a8b442201" @@ -12564,16 +12520,24 @@ stream-to-pull-stream@^1.7.2: looper "^3.0.0" pull-stream "^3.2.3" -streamifier@~0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/streamifier/-/streamifier-0.1.1.tgz#97e98d8fa4d105d62a2691d1dc07e820db8dfc4f" - integrity sha1-l+mNj6TRBdYqJpHR3AfoINuN/E8= +stream-to-pull-stream@^1.7.3: + version "1.7.3" + resolved "https://registry.yarnpkg.com/stream-to-pull-stream/-/stream-to-pull-stream-1.7.3.tgz#4161aa2d2eb9964de60bfa1af7feaf917e874ece" + integrity sha512-6sNyqJpr5dIOQdgNy/xcDWwDuzAsAwVzhzrWlAPAQ7Lkjx/rv0wgvxEyKwTq6FmNd5rjTrELt/CLmaSw7crMGg== + dependencies: + looper "^3.0.0" + pull-stream "^3.2.3" streamsearch@0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/streamsearch/-/streamsearch-0.1.2.tgz#808b9d0e56fc273d809ba57338e929919a1a9f1a" integrity sha1-gIudDlb8Jz2Am6VzOOkpkZoanxo= +strftime@~0.10.0: + version "0.10.0" + resolved "https://registry.yarnpkg.com/strftime/-/strftime-0.10.0.tgz#b3f0fa419295202a5a289f6d6be9f4909a617193" + integrity sha1-s/D6QZKVICpaKJ9ta+n0kJphcZM= + string-width@^1.0.1, string-width@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" @@ -12850,7 +12814,7 @@ tar-fs@^1.13.0: pump "^1.0.0" tar-stream "^1.1.2" -tar-stream@^1.1.2, tar-stream@^1.5.0, tar-stream@^1.5.2, tar-stream@^1.6.2: +tar-stream@^1.1.2, tar-stream@^1.5.0, tar-stream@^1.5.2: version "1.6.2" resolved "https://registry.yarnpkg.com/tar-stream/-/tar-stream-1.6.2.tgz#8ea55dab37972253d9a9af90fdcd559ae435c555" integrity sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A== @@ -13037,7 +13001,7 @@ throttleit@^1.0.0: resolved "https://registry.yarnpkg.com/throttleit/-/throttleit-1.0.0.tgz#9e785836daf46743145a5984b6268d828528ac6c" integrity sha1-nnhYNtr0Z0MUWlmEtiaNgoUorGw= -through2@^2.0.0, through2@^2.0.2, through2@^2.0.3: +through2@^2.0.0, through2@^2.0.3: version "2.0.5" resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd" integrity sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ== @@ -13555,7 +13519,7 @@ url@^0.11.0: punycode "1.3.2" querystring "0.2.0" -ursa-optional@~0.9.10, ursa-optional@~0.9.9: +ursa-optional@~0.9.10: version "0.9.10" resolved "https://registry.yarnpkg.com/ursa-optional/-/ursa-optional-0.9.10.tgz#f2eabfe0b6001dbf07a78740cd0a6e5ba6eb2554" integrity sha512-RvEbhnxlggX4MXon7KQulTFiJQtLJZpSb9ZSa7ZTkOW0AzqiVTaLjI4vxaSzJBDH9dwZ3ltZadFiBaZslp6haA== @@ -14036,10 +14000,10 @@ xmlhttprequest-ssl@~1.5.4: resolved "https://registry.yarnpkg.com/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.5.tgz#c2876b06168aadc40e57d97e81191ac8f4398b3e" integrity sha1-wodrBhaKrcQOV9l+gRkayPQ5iz4= -xor-distance@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/xor-distance/-/xor-distance-1.0.0.tgz#da735d9b24fcca8dbcd9b374d16d2a01ee9541c6" - integrity sha1-2nNdmyT8yo282bN00W0qAe6VQcY= +xor-distance@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/xor-distance/-/xor-distance-2.0.0.tgz#cad3920d3a1e3d73eeedc61a554e51972dae0798" + integrity sha512-AsAqZfPAuWx7qB/0kyRDUEvoU3QKsHWzHU9smFlkaiprEpGfJ/NBbLze2Uq0rdkxCxkNM9uOLvz/KoNBCbZiLQ== xregexp@4.0.0: version "4.0.0"