diff --git a/package-lock.json b/package-lock.json index 7f9dd025d2..a76dc9d076 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1553,16 +1553,6 @@ "multiformats": "^12.0.1" } }, - "node_modules/@chainsafe/libp2p-gossipsub/node_modules/@libp2p/peer-id": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.1.tgz", - "integrity": "sha512-iR4lP9nEnIl1fW7beuB55A262lW78sOdH6r/57XcyMtsE/mCZiRhUVhGfvcM4GgLWm26vyla/UV3FVr7hIpMIQ==", - "dependencies": { - "@libp2p/interface": "^0.1.1", - "multiformats": "^12.0.1", - "uint8arrays": "^4.0.4" - } - }, "node_modules/@chainsafe/libp2p-gossipsub/node_modules/multiformats": { "version": "12.0.1", "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.0.1.tgz", @@ -1626,16 +1616,6 @@ "multiformats": "^12.0.1" } }, - "node_modules/@chainsafe/libp2p-noise/node_modules/@libp2p/peer-id": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.1.tgz", - "integrity": "sha512-iR4lP9nEnIl1fW7beuB55A262lW78sOdH6r/57XcyMtsE/mCZiRhUVhGfvcM4GgLWm26vyla/UV3FVr7hIpMIQ==", - "dependencies": { - "@libp2p/interface": "^0.1.1", - "multiformats": "^12.0.1", - "uint8arrays": "^4.0.4" - } - }, "node_modules/@chainsafe/libp2p-noise/node_modules/it-stream-types": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/it-stream-types/-/it-stream-types-2.0.1.tgz", @@ -2868,17 +2848,6 @@ "multiformats": "^12.0.1" } }, - "node_modules/@libp2p/bootstrap/node_modules/@libp2p/peer-id": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.1.tgz", - "integrity": "sha512-iR4lP9nEnIl1fW7beuB55A262lW78sOdH6r/57XcyMtsE/mCZiRhUVhGfvcM4GgLWm26vyla/UV3FVr7hIpMIQ==", - "dev": true, - "dependencies": { - "@libp2p/interface": "^0.1.1", - "multiformats": "^12.0.1", - "uint8arrays": "^4.0.4" - } - }, "node_modules/@libp2p/bootstrap/node_modules/multiformats": { "version": "12.0.1", "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.0.1.tgz", @@ -2942,25 +2911,6 @@ "@libp2p/peer-id": "^3.0.1" } }, - "node_modules/@libp2p/interface-internal/node_modules/@libp2p/peer-id": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.1.tgz", - "integrity": "sha512-iR4lP9nEnIl1fW7beuB55A262lW78sOdH6r/57XcyMtsE/mCZiRhUVhGfvcM4GgLWm26vyla/UV3FVr7hIpMIQ==", - "dependencies": { - "@libp2p/interface": "^0.1.1", - "multiformats": "^12.0.1", - "uint8arrays": "^4.0.4" - } - }, - "node_modules/@libp2p/interface-internal/node_modules/multiformats": { - "version": "12.0.1", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.0.1.tgz", - "integrity": "sha512-s01wijBJoDUqESWSzePY0lvTw7J3PVO9x2Cc6ASI5AMZM2Gnhh7BC17+nlFhHKU7dDzaCaRfb+NiqNzOsgPUoQ==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, "node_modules/@libp2p/interface-keys": { "version": "1.0.7", "license": "Apache-2.0 OR MIT", @@ -3048,16 +2998,6 @@ "multiformats": "^12.0.1" } }, - "node_modules/@libp2p/keychain/node_modules/@libp2p/peer-id": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.1.tgz", - "integrity": "sha512-iR4lP9nEnIl1fW7beuB55A262lW78sOdH6r/57XcyMtsE/mCZiRhUVhGfvcM4GgLWm26vyla/UV3FVr7hIpMIQ==", - "dependencies": { - "@libp2p/interface": "^0.1.1", - "multiformats": "^12.0.1", - "uint8arrays": "^4.0.4" - } - }, "node_modules/@libp2p/keychain/node_modules/multiformats": { "version": "12.0.1", "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.0.1.tgz", @@ -3181,17 +3121,13 @@ } }, "node_modules/@libp2p/peer-id": { - "version": "2.0.4", - "license": "Apache-2.0 OR MIT", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.2.tgz", + "integrity": "sha512-133qGXu9UBiqsYm7nBDJaAh4eiKe79DPLKF+/aRu0Z7gKcX7I0+LewEky4kBt3olhYQSF1CAnJIzD8Dmsn40Yw==", "dependencies": { - "@libp2p/interface-peer-id": "^2.0.0", - "@libp2p/interfaces": "^3.2.0", - "multiformats": "^11.0.0", - "uint8arrays": "^4.0.2" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "@libp2p/interface": "^0.1.2", + "multiformats": "^12.0.1", + "uint8arrays": "^4.0.6" } }, "node_modules/@libp2p/peer-id-factory": { @@ -3223,16 +3159,6 @@ "uint8arrays": "^4.0.6" } }, - "node_modules/@libp2p/peer-id-factory/node_modules/@libp2p/peer-id": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.2.tgz", - "integrity": "sha512-133qGXu9UBiqsYm7nBDJaAh4eiKe79DPLKF+/aRu0Z7gKcX7I0+LewEky4kBt3olhYQSF1CAnJIzD8Dmsn40Yw==", - "dependencies": { - "@libp2p/interface": "^0.1.2", - "multiformats": "^12.0.1", - "uint8arrays": "^4.0.6" - } - }, "node_modules/@libp2p/peer-id-factory/node_modules/multiformats": { "version": "12.0.1", "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.0.1.tgz", @@ -3242,6 +3168,15 @@ "npm": ">=7.0.0" } }, + "node_modules/@libp2p/peer-id/node_modules/multiformats": { + "version": "12.1.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.1.0.tgz", + "integrity": "sha512-/qTOKKnU8nwcVURjRcS+UN0QYgdS5BPZzY10Aiciu2SqncyCVMGV8KtD83EBFmsuJDsSEmT4sGvzcTkCoMw0sQ==", + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, "node_modules/@libp2p/peer-store": { "version": "9.0.2", "resolved": "https://registry.npmjs.org/@libp2p/peer-store/-/peer-store-9.0.2.tgz", @@ -3299,16 +3234,6 @@ "@libp2p/peer-id": "^3.0.1" } }, - "node_modules/@libp2p/peer-store/node_modules/@libp2p/peer-id": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.1.tgz", - "integrity": "sha512-iR4lP9nEnIl1fW7beuB55A262lW78sOdH6r/57XcyMtsE/mCZiRhUVhGfvcM4GgLWm26vyla/UV3FVr7hIpMIQ==", - "dependencies": { - "@libp2p/interface": "^0.1.1", - "multiformats": "^12.0.1", - "uint8arrays": "^4.0.4" - } - }, "node_modules/@libp2p/peer-store/node_modules/@libp2p/peer-record": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/@libp2p/peer-record/-/peer-record-6.0.2.tgz", @@ -3391,16 +3316,6 @@ "@libp2p/peer-id": "^3.0.1" } }, - "node_modules/@libp2p/pubsub/node_modules/@libp2p/peer-id": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.1.tgz", - "integrity": "sha512-iR4lP9nEnIl1fW7beuB55A262lW78sOdH6r/57XcyMtsE/mCZiRhUVhGfvcM4GgLWm26vyla/UV3FVr7hIpMIQ==", - "dependencies": { - "@libp2p/interface": "^0.1.1", - "multiformats": "^12.0.1", - "uint8arrays": "^4.0.4" - } - }, "node_modules/@libp2p/pubsub/node_modules/multiformats": { "version": "12.0.1", "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.0.1.tgz", @@ -3958,15 +3873,16 @@ "license": "BSD-3-Clause" }, "node_modules/@puppeteer/browsers": { - "version": "1.4.0", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-1.7.0.tgz", + "integrity": "sha512-sl7zI0IkbQGak/+IE3VEEZab5SSOlI5F6558WvzWGC1n3+C722rfewC1ZIkcF9dsoGSsxhsONoseVlNQG4wWvQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "debug": "4.3.4", "extract-zip": "2.0.1", "progress": "2.0.3", - "proxy-agent": "6.2.0", - "tar-fs": "2.1.1", + "proxy-agent": "6.3.0", + "tar-fs": "3.0.4", "unbzip2-stream": "1.4.3", "yargs": "17.7.1" }, @@ -3974,15 +3890,29 @@ "browsers": "lib/cjs/main-cli.js" }, "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "typescript": ">= 4.7.4" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "node": ">=16.3.0" + } + }, + "node_modules/@puppeteer/browsers/node_modules/tar-fs": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.0.4.tgz", + "integrity": "sha512-5AFQU8b9qLfZCX9zp2duONhPmZv0hGYiBPJsyUdqMjzq/mqVpy/rEUSeHk1+YitmxugaptgBh5oDGU3VsAJq4w==", + "dev": true, + "dependencies": { + "mkdirp-classic": "^0.5.2", + "pump": "^3.0.0", + "tar-stream": "^3.1.5" + } + }, + "node_modules/@puppeteer/browsers/node_modules/tar-stream": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.6.tgz", + "integrity": "sha512-B/UyjYwPpMBv+PaFSWAmtYjwdrlEaZQEhMIBFNC5oEG8lpiW8XjcSdmEaClj28ArfKScKHs2nshz3k2le6crsg==", + "dev": true, + "dependencies": { + "b4a": "^1.6.4", + "fast-fifo": "^1.2.0", + "streamx": "^2.15.0" } }, "node_modules/@rollup/plugin-commonjs": { @@ -4884,6 +4814,12 @@ "node": ">=10" } }, + "node_modules/@tootallnate/quickjs-emscripten": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz", + "integrity": "sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==", + "dev": true + }, "node_modules/@tsconfig/node10": { "version": "1.0.9", "dev": true, @@ -7467,8 +7403,9 @@ }, "node_modules/ast-types": { "version": "0.13.4", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz", + "integrity": "sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "^2.0.1" }, @@ -7509,6 +7446,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/b4a": { + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.4.tgz", + "integrity": "sha512-fpWrvyVHEKyeEvbKZTVOeZF3VSKKWtJxFIxX/jaVPf+cLbGUSitjb49pHLqPV2BUNNZ0LcoeEGfE/YCpyDYHIw==", + "dev": true + }, "node_modules/babel-plugin-polyfill-corejs2": { "version": "0.4.5", "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.5.tgz", @@ -7596,8 +7539,9 @@ }, "node_modules/basic-ftp": { "version": "5.0.3", + "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.3.tgz", + "integrity": "sha512-QHX8HLlncOLpy54mh+k/sWIFd0ThmRqwe9ZjELybGZK+tZ8rUb9VO0saKJUROTbE+KhzDUT7xziGpGrW8Kmd+g==", "dev": true, - "license": "MIT", "engines": { "node": ">=10.0.0" } @@ -8442,11 +8386,12 @@ } }, "node_modules/chromium-bidi": { - "version": "0.4.10", + "version": "0.4.22", + "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.22.tgz", + "integrity": "sha512-wR7Y9Ioez+cNXT4ZP7VNM1HRTljpNnMSLw4/RnwhhZUP4yCU7kIQND00YiktuHekch68jklGPK1q9Jkb29+fQg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "mitt": "3.0.0" + "mitt": "3.0.1" }, "peerDependencies": { "devtools-protocol": "*" @@ -8969,9 +8914,10 @@ } }, "node_modules/cosmiconfig": { - "version": "8.1.3", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.2.0.tgz", + "integrity": "sha512-3rTMnFJA1tCOPwRxtgF4wd7Ab2qvDbL8jX+3smjIbS4HlZBagTlpERbdN7iAbWlrfxE3M8c27kTwTawQ7st+OQ==", "dev": true, - "license": "MIT", "dependencies": { "import-fresh": "^3.2.1", "js-yaml": "^4.1.0", @@ -9534,8 +9480,9 @@ }, "node_modules/data-uri-to-buffer": { "version": "5.0.1", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-5.0.1.tgz", + "integrity": "sha512-a9l6T1qqDogvvnw0nKlfZzqsyikEBZBClF39V3TFoKhDtGBqHu2HkuomJc02j5zft8zrUaXEuoicLeW54RkzPg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 14" } @@ -9937,19 +9884,49 @@ } }, "node_modules/degenerator": { - "version": "4.0.2", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-5.0.1.tgz", + "integrity": "sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==", "dev": true, - "license": "MIT", "dependencies": { - "ast-types": "^0.13.2", - "escodegen": "^1.8.1", - "esprima": "^4.0.0", - "vm2": "^3.9.17" + "ast-types": "^0.13.4", + "escodegen": "^2.1.0", + "esprima": "^4.0.1" }, "engines": { "node": ">= 14" } }, + "node_modules/degenerator/node_modules/escodegen": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", + "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", + "dev": true, + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/degenerator/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, "node_modules/del": { "version": "6.1.1", "resolved": "https://registry.npmjs.org/del/-/del-6.1.1.tgz", @@ -12450,7 +12427,9 @@ } }, "node_modules/fast-check": { - "version": "3.8.1", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/fast-check/-/fast-check-3.12.0.tgz", + "integrity": "sha512-SqahE9mlL3+lhjJ39joMLwcj6F+24hfZdf/tchlNO8sHcTdrUUdA5P/ZbSFZM9Xpzs36XaneGwE0FWepm/zyOA==", "funding": [ { "type": "individual", @@ -12461,7 +12440,6 @@ "url": "https://opencollective.com/fast-check" } ], - "license": "MIT", "dependencies": { "pure-rand": "^6.0.0" }, @@ -12488,6 +12466,12 @@ "node": ">=6.0.0" } }, + "node_modules/fast-fifo": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", + "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==", + "dev": true + }, "node_modules/fast-glob": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", @@ -13003,8 +12987,9 @@ }, "node_modules/get-uri": { "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.1.tgz", + "integrity": "sha512-7ZqONUVqaabogsYNWlYj0t3YZaL6dhuEueZXGF+/YVmf6dHmaFg8/6psJKqhx9QykIDKzpGcy2cn4oV4YC7V/Q==", "dev": true, - "license": "MIT", "dependencies": { "basic-ftp": "^5.0.2", "data-uri-to-buffer": "^5.0.1", @@ -13814,8 +13799,9 @@ }, "node_modules/ip": { "version": "1.1.8", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", + "integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==", + "dev": true }, "node_modules/ip-regex": { "version": "5.0.0", @@ -15538,16 +15524,6 @@ "@libp2p/peer-id": "^3.0.1" } }, - "node_modules/libp2p/node_modules/@libp2p/peer-id": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.1.tgz", - "integrity": "sha512-iR4lP9nEnIl1fW7beuB55A262lW78sOdH6r/57XcyMtsE/mCZiRhUVhGfvcM4GgLWm26vyla/UV3FVr7hIpMIQ==", - "dependencies": { - "@libp2p/interface": "^0.1.1", - "multiformats": "^12.0.1", - "uint8arrays": "^4.0.4" - } - }, "node_modules/libp2p/node_modules/@libp2p/peer-record": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/@libp2p/peer-record/-/peer-record-6.0.2.tgz", @@ -17908,9 +17884,10 @@ } }, "node_modules/mitt": { - "version": "3.0.0", - "dev": true, - "license": "MIT" + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", + "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==", + "dev": true }, "node_modules/mkdirp": { "version": "0.5.6", @@ -18790,24 +18767,6 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/npm-package-json-lint/node_modules/cosmiconfig": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.2.0.tgz", - "integrity": "sha512-3rTMnFJA1tCOPwRxtgF4wd7Ab2qvDbL8jX+3smjIbS4HlZBagTlpERbdN7iAbWlrfxE3M8c27kTwTawQ7st+OQ==", - "dev": true, - "dependencies": { - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "parse-json": "^5.0.0", - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/d-fischer" - } - }, "node_modules/npm-package-json-lint/node_modules/globby": { "version": "11.1.0", "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", @@ -22957,16 +22916,18 @@ } }, "node_modules/pac-proxy-agent": { - "version": "6.0.3", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.0.0.tgz", + "integrity": "sha512-t4tRAMx0uphnZrio0S0Jw9zg3oDbz1zVhQ/Vy18FjLfP1XOLNUEjaVxYCYRI6NS+BsMBXKIzV6cTLOkO9AtywA==", "dev": true, - "license": "MIT", "dependencies": { + "@tootallnate/quickjs-emscripten": "^0.23.0", "agent-base": "^7.0.2", "debug": "^4.3.4", "get-uri": "^6.0.1", "http-proxy-agent": "^7.0.0", "https-proxy-agent": "^7.0.0", - "pac-resolver": "^6.0.1", + "pac-resolver": "^7.0.0", "socks-proxy-agent": "^8.0.1" }, "engines": { @@ -22975,8 +22936,9 @@ }, "node_modules/pac-proxy-agent/node_modules/agent-base": { "version": "7.1.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", + "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", "dev": true, - "license": "MIT", "dependencies": { "debug": "^4.3.4" }, @@ -22985,9 +22947,10 @@ } }, "node_modules/pac-proxy-agent/node_modules/https-proxy-agent": { - "version": "7.0.0", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.1.tgz", + "integrity": "sha512-Eun8zV0kcYS1g19r78osiQLEFIRspRUDd9tIfBCTBPBeMieF/EsJNL8VI3xOIdYRDEkjQnqOYPsZ2DsWsVsFwQ==", "dev": true, - "license": "MIT", "dependencies": { "agent-base": "^7.0.2", "debug": "4" @@ -22997,12 +22960,13 @@ } }, "node_modules/pac-resolver": { - "version": "6.0.1", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.0.tgz", + "integrity": "sha512-Fd9lT9vJbHYRACT8OhCbZBbxr6KRSawSovFpy8nDGshaK99S/EBhVIHp9+crhxrsZOuvLpgL1n23iyPg6Rl2hg==", "dev": true, - "license": "MIT", "dependencies": { - "degenerator": "^4.0.1", - "ip": "^1.1.5", + "degenerator": "^5.0.0", + "ip": "^1.1.8", "netmask": "^2.0.2" }, "engines": { @@ -24932,16 +24896,17 @@ } }, "node_modules/proxy-agent": { - "version": "6.2.0", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.3.0.tgz", + "integrity": "sha512-0LdR757eTj/JfuU7TL2YCuAZnxWXu3tkJbg4Oq3geW/qFNT/32T0sp2HnZ9O0lMR4q3vwAt0+xCA8SR0WAD0og==", "dev": true, - "license": "MIT", "dependencies": { - "agent-base": "^7.0.1", + "agent-base": "^7.0.2", "debug": "^4.3.4", - "http-proxy-agent": "^6.0.1", - "https-proxy-agent": "^6.1.0", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.0", "lru-cache": "^7.14.1", - "pac-proxy-agent": "^6.0.2", + "pac-proxy-agent": "^7.0.0", "proxy-from-env": "^1.1.0", "socks-proxy-agent": "^8.0.1" }, @@ -24951,8 +24916,9 @@ }, "node_modules/proxy-agent/node_modules/agent-base": { "version": "7.1.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", + "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", "dev": true, - "license": "MIT", "dependencies": { "debug": "^4.3.4" }, @@ -24960,22 +24926,11 @@ "node": ">= 14" } }, - "node_modules/proxy-agent/node_modules/http-proxy-agent": { - "version": "6.1.1", - "dev": true, - "license": "MIT", - "dependencies": { - "agent-base": "^7.1.0", - "debug": "^4.3.4" - }, - "engines": { - "node": ">= 14" - } - }, "node_modules/proxy-agent/node_modules/https-proxy-agent": { - "version": "6.2.1", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.1.tgz", + "integrity": "sha512-Eun8zV0kcYS1g19r78osiQLEFIRspRUDd9tIfBCTBPBeMieF/EsJNL8VI3xOIdYRDEkjQnqOYPsZ2DsWsVsFwQ==", "dev": true, - "license": "MIT", "dependencies": { "agent-base": "^7.0.2", "debug": "4" @@ -24986,8 +24941,9 @@ }, "node_modules/proxy-agent/node_modules/lru-cache": { "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", "dev": true, - "license": "ISC", "engines": { "node": ">=12" } @@ -25035,14 +24991,18 @@ } }, "node_modules/puppeteer": { - "version": "20.4.0", + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-21.1.1.tgz", + "integrity": "sha512-2TLntjGA4qLrI9/8N0UK/5OoZJ2Ue7QgphN2SD+RsaHiha12AEiVyMGsB+i6LY1IoPAtEgYIjblQ7lw3kWDNRw==", "dev": true, "hasInstallScript": true, - "license": "Apache-2.0", "dependencies": { - "@puppeteer/browsers": "1.4.0", - "cosmiconfig": "8.1.3", - "puppeteer-core": "20.4.0" + "@puppeteer/browsers": "1.7.0", + "cosmiconfig": "8.2.0", + "puppeteer-core": "21.1.1" + }, + "engines": { + "node": ">=16.3.0" } }, "node_modules/puppeteer-core": { @@ -25068,22 +25028,25 @@ } }, "node_modules/puppeteer/node_modules/cross-fetch": { - "version": "3.1.6", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.0.0.tgz", + "integrity": "sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g==", "dev": true, - "license": "MIT", "dependencies": { - "node-fetch": "^2.6.11" + "node-fetch": "^2.6.12" } }, "node_modules/puppeteer/node_modules/devtools-protocol": { - "version": "0.0.1120988", - "dev": true, - "license": "BSD-3-Clause" + "version": "0.0.1159816", + "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1159816.tgz", + "integrity": "sha512-2cZlHxC5IlgkIWe2pSDmCrDiTzbSJWywjbDDnupOImEBcG31CQgBLV8wWE+5t+C4rimcjHsbzy7CBzf9oFjboA==", + "dev": true }, "node_modules/puppeteer/node_modules/node-fetch": { - "version": "2.6.11", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", "dev": true, - "license": "MIT", "dependencies": { "whatwg-url": "^5.0.0" }, @@ -25100,33 +25063,27 @@ } }, "node_modules/puppeteer/node_modules/puppeteer-core": { - "version": "20.4.0", + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-21.1.1.tgz", + "integrity": "sha512-Tlcajcf44zwfa9Sbwv3T8BtaNMJ69wtpHIxwl2NOBTyTK3D1wppQovXTjfw0TDOm3a16eCfQ+5BMi3vRQ4kuAQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@puppeteer/browsers": "1.4.0", - "chromium-bidi": "0.4.10", - "cross-fetch": "3.1.6", + "@puppeteer/browsers": "1.7.0", + "chromium-bidi": "0.4.22", + "cross-fetch": "4.0.0", "debug": "4.3.4", - "devtools-protocol": "0.0.1120988", + "devtools-protocol": "0.0.1159816", "ws": "8.13.0" }, "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "typescript": ">= 4.7.4" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "node": ">=16.3.0" } }, "node_modules/puppeteer/node_modules/ws": { "version": "8.13.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", + "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", "dev": true, - "license": "MIT", "engines": { "node": ">=10.0.0" }, @@ -25208,6 +25165,12 @@ ], "license": "MIT" }, + "node_modules/queue-tick": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/queue-tick/-/queue-tick-1.0.1.tgz", + "integrity": "sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==", + "dev": true + }, "node_modules/quick-lru": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", @@ -27687,8 +27650,9 @@ }, "node_modules/smart-buffer": { "version": "4.2.0", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 6.0.0", "npm": ">= 3.0.0" @@ -27752,8 +27716,9 @@ }, "node_modules/socks": { "version": "2.7.1", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz", + "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==", "dev": true, - "license": "MIT", "dependencies": { "ip": "^2.0.0", "smart-buffer": "^4.2.0" @@ -27765,8 +27730,9 @@ }, "node_modules/socks-proxy-agent": { "version": "8.0.1", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.1.tgz", + "integrity": "sha512-59EjPbbgg8U3x62hhKOFVAmySQUcfRQ4C7Q/D5sEHnZTQRrQlNKINks44DMR1gwXp0p4LaVIeccX2KHTTcHVqQ==", "dev": true, - "license": "MIT", "dependencies": { "agent-base": "^7.0.1", "debug": "^4.3.4", @@ -27778,8 +27744,9 @@ }, "node_modules/socks-proxy-agent/node_modules/agent-base": { "version": "7.1.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", + "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", "dev": true, - "license": "MIT", "dependencies": { "debug": "^4.3.4" }, @@ -27789,8 +27756,9 @@ }, "node_modules/socks/node_modules/ip": { "version": "2.0.0", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", + "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==", + "dev": true }, "node_modules/source-map": { "version": "0.6.1", @@ -28052,6 +28020,16 @@ "node": ">=10.0.0" } }, + "node_modules/streamx": { + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.15.1.tgz", + "integrity": "sha512-fQMzy2O/Q47rgwErk/eGeLu/roaFWV0jVsogDmrszM9uIw8L5OA+t+V93MgYlufNptfjmYR1tOMWhei/Eh7TQA==", + "dev": true, + "dependencies": { + "fast-fifo": "^1.1.0", + "queue-tick": "^1.0.1" + } + }, "node_modules/string_decoder": { "version": "1.3.0", "license": "MIT", @@ -29828,21 +29806,6 @@ "node": ">= 0.8" } }, - "node_modules/vm2": { - "version": "3.9.19", - "dev": true, - "license": "MIT", - "dependencies": { - "acorn": "^8.7.0", - "acorn-walk": "^8.2.0" - }, - "bin": { - "vm2": "bin/vm2" - }, - "engines": { - "node": ">=6.0" - } - }, "node_modules/void-elements": { "version": "2.0.1", "dev": true, @@ -30528,7 +30491,7 @@ "@waku/build-utils": "*", "chai": "^4.3.7", "cspell": "^7.0.1", - "fast-check": "^3.8.1", + "fast-check": "^3.12.0", "ignore-loader": "^0.1.2", "isomorphic-fetch": "^3.0.0", "karma": "^6.4.1", @@ -30538,7 +30501,7 @@ "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^20.4.0", + "puppeteer": "^21.1.1", "rollup": "^3.28.0", "ts-loader": "^9.4.2", "ts-node": "^10.9.1", @@ -30577,7 +30540,7 @@ "uint8arrays": "^4.0.4" }, "devDependencies": { - "@libp2p/peer-id": "^2.0.4", + "@libp2p/peer-id": "^3.0.2", "@libp2p/peer-id-factory": "^3.0.3", "@multiformats/multiaddr": "^12.0.0", "@rollup/plugin-commonjs": "^24.0.1", @@ -30609,7 +30572,7 @@ "dependencies": { "@ethersproject/rlp": "^5.7.0", "@libp2p/crypto": "^1.0.17", - "@libp2p/peer-id": "^2.0.4", + "@libp2p/peer-id": "^3.0.2", "@multiformats/multiaddr": "^12.0.0", "@noble/secp256k1": "^1.7.1", "@waku/utils": "0.0.10", @@ -30634,7 +30597,7 @@ "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^20.4.0", + "puppeteer": "^21.1.1", "rollup": "^3.28.0", "ts-loader": "^9.4.2", "typescript": "^5.0.4", @@ -30682,7 +30645,7 @@ "@waku/build-utils": "*", "chai": "^4.3.7", "cspell": "^7.0.1", - "fast-check": "^3.8.1", + "fast-check": "^3.12.0", "karma": "^6.4.1", "karma-chrome-launcher": "^3.2.0", "karma-mocha": "^2.0.1", @@ -30690,7 +30653,7 @@ "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^20.4.0", + "puppeteer": "^21.1.1", "rollup": "^3.28.0", "ts-loader": "^9.4.2", "typescript": "^5.0.4" @@ -30718,7 +30681,7 @@ "@waku/interfaces": "0.0.17", "chai": "^4.3.7", "cspell": "^7.0.1", - "fast-check": "^3.7.0", + "fast-check": "^3.12.0", "ignore-loader": "^0.1.2", "isomorphic-fetch": "^3.0.0", "karma": "^6.4.1", @@ -30728,7 +30691,7 @@ "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^20.4.0", + "puppeteer": "^21.1.1", "rollup": "^3.28.0", "ts-loader": "^9.4.2", "ts-node": "^10.9.1", @@ -30807,7 +30770,7 @@ "@waku/utils": "0.0.10", "chai": "^4.3.7", "debug": "^4.3.4", - "fast-check": "^3.8.1" + "fast-check": "^3.12.0" }, "devDependencies": { "@rollup/plugin-commonjs": "^24.1.0", @@ -30903,7 +30866,7 @@ "license": "MIT OR Apache-2.0", "dependencies": { "@libp2p/interface-compliance-tests": "^4.0.2", - "@libp2p/peer-id": "^2.0.4", + "@libp2p/peer-id": "^3.0.2", "@waku/core": "*", "@waku/enr": "*", "@waku/interfaces": "*", @@ -30983,16 +30946,6 @@ "uint8arrays": "^4.0.4" } }, - "packages/tests/node_modules/@libp2p/interface-compliance-tests/node_modules/@libp2p/peer-id": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.1.tgz", - "integrity": "sha512-iR4lP9nEnIl1fW7beuB55A262lW78sOdH6r/57XcyMtsE/mCZiRhUVhGfvcM4GgLWm26vyla/UV3FVr7hIpMIQ==", - "dependencies": { - "@libp2p/interface": "^0.1.1", - "multiformats": "^12.0.1", - "uint8arrays": "^4.0.4" - } - }, "packages/tests/node_modules/@libp2p/logger": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/@libp2p/logger/-/logger-3.0.1.tgz", @@ -31014,16 +30967,6 @@ "@libp2p/peer-id": "^3.0.1" } }, - "packages/tests/node_modules/@libp2p/peer-collections/node_modules/@libp2p/peer-id": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.1.tgz", - "integrity": "sha512-iR4lP9nEnIl1fW7beuB55A262lW78sOdH6r/57XcyMtsE/mCZiRhUVhGfvcM4GgLWm26vyla/UV3FVr7hIpMIQ==", - "dependencies": { - "@libp2p/interface": "^0.1.1", - "multiformats": "^12.0.1", - "uint8arrays": "^4.0.4" - } - }, "packages/tests/node_modules/@typescript-eslint/eslint-plugin": { "version": "5.62.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz", @@ -32437,16 +32380,6 @@ "multiformats": "^12.0.1" } }, - "@libp2p/peer-id": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.1.tgz", - "integrity": "sha512-iR4lP9nEnIl1fW7beuB55A262lW78sOdH6r/57XcyMtsE/mCZiRhUVhGfvcM4GgLWm26vyla/UV3FVr7hIpMIQ==", - "requires": { - "@libp2p/interface": "^0.1.1", - "multiformats": "^12.0.1", - "uint8arrays": "^4.0.4" - } - }, "multiformats": { "version": "12.0.1", "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.0.1.tgz", @@ -32504,16 +32437,6 @@ "multiformats": "^12.0.1" } }, - "@libp2p/peer-id": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.1.tgz", - "integrity": "sha512-iR4lP9nEnIl1fW7beuB55A262lW78sOdH6r/57XcyMtsE/mCZiRhUVhGfvcM4GgLWm26vyla/UV3FVr7hIpMIQ==", - "requires": { - "@libp2p/interface": "^0.1.1", - "multiformats": "^12.0.1", - "uint8arrays": "^4.0.4" - } - }, "it-stream-types": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/it-stream-types/-/it-stream-types-2.0.1.tgz", @@ -33388,17 +33311,6 @@ "multiformats": "^12.0.1" } }, - "@libp2p/peer-id": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.1.tgz", - "integrity": "sha512-iR4lP9nEnIl1fW7beuB55A262lW78sOdH6r/57XcyMtsE/mCZiRhUVhGfvcM4GgLWm26vyla/UV3FVr7hIpMIQ==", - "dev": true, - "requires": { - "@libp2p/interface": "^0.1.1", - "multiformats": "^12.0.1", - "uint8arrays": "^4.0.4" - } - }, "multiformats": { "version": "12.0.1", "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.0.1.tgz", @@ -33466,21 +33378,6 @@ "@libp2p/interface": "^0.1.1", "@libp2p/peer-id": "^3.0.1" } - }, - "@libp2p/peer-id": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.1.tgz", - "integrity": "sha512-iR4lP9nEnIl1fW7beuB55A262lW78sOdH6r/57XcyMtsE/mCZiRhUVhGfvcM4GgLWm26vyla/UV3FVr7hIpMIQ==", - "requires": { - "@libp2p/interface": "^0.1.1", - "multiformats": "^12.0.1", - "uint8arrays": "^4.0.4" - } - }, - "multiformats": { - "version": "12.0.1", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.0.1.tgz", - "integrity": "sha512-s01wijBJoDUqESWSzePY0lvTw7J3PVO9x2Cc6ASI5AMZM2Gnhh7BC17+nlFhHKU7dDzaCaRfb+NiqNzOsgPUoQ==" } } }, @@ -33538,16 +33435,6 @@ "multiformats": "^12.0.1" } }, - "@libp2p/peer-id": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.1.tgz", - "integrity": "sha512-iR4lP9nEnIl1fW7beuB55A262lW78sOdH6r/57XcyMtsE/mCZiRhUVhGfvcM4GgLWm26vyla/UV3FVr7hIpMIQ==", - "requires": { - "@libp2p/interface": "^0.1.1", - "multiformats": "^12.0.1", - "uint8arrays": "^4.0.4" - } - }, "multiformats": { "version": "12.0.1", "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.0.1.tgz", @@ -33652,12 +33539,20 @@ } }, "@libp2p/peer-id": { - "version": "2.0.4", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.2.tgz", + "integrity": "sha512-133qGXu9UBiqsYm7nBDJaAh4eiKe79DPLKF+/aRu0Z7gKcX7I0+LewEky4kBt3olhYQSF1CAnJIzD8Dmsn40Yw==", "requires": { - "@libp2p/interface-peer-id": "^2.0.0", - "@libp2p/interfaces": "^3.2.0", - "multiformats": "^11.0.0", - "uint8arrays": "^4.0.2" + "@libp2p/interface": "^0.1.2", + "multiformats": "^12.0.1", + "uint8arrays": "^4.0.6" + }, + "dependencies": { + "multiformats": { + "version": "12.1.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.1.0.tgz", + "integrity": "sha512-/qTOKKnU8nwcVURjRcS+UN0QYgdS5BPZzY10Aiciu2SqncyCVMGV8KtD83EBFmsuJDsSEmT4sGvzcTkCoMw0sQ==" + } } }, "@libp2p/peer-id-factory": { @@ -33689,16 +33584,6 @@ "uint8arrays": "^4.0.6" } }, - "@libp2p/peer-id": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.2.tgz", - "integrity": "sha512-133qGXu9UBiqsYm7nBDJaAh4eiKe79DPLKF+/aRu0Z7gKcX7I0+LewEky4kBt3olhYQSF1CAnJIzD8Dmsn40Yw==", - "requires": { - "@libp2p/interface": "^0.1.2", - "multiformats": "^12.0.1", - "uint8arrays": "^4.0.6" - } - }, "multiformats": { "version": "12.0.1", "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.0.1.tgz", @@ -33763,16 +33648,6 @@ "@libp2p/peer-id": "^3.0.1" } }, - "@libp2p/peer-id": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.1.tgz", - "integrity": "sha512-iR4lP9nEnIl1fW7beuB55A262lW78sOdH6r/57XcyMtsE/mCZiRhUVhGfvcM4GgLWm26vyla/UV3FVr7hIpMIQ==", - "requires": { - "@libp2p/interface": "^0.1.1", - "multiformats": "^12.0.1", - "uint8arrays": "^4.0.4" - } - }, "@libp2p/peer-record": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/@libp2p/peer-record/-/peer-record-6.0.2.tgz", @@ -33853,16 +33728,6 @@ "@libp2p/peer-id": "^3.0.1" } }, - "@libp2p/peer-id": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.1.tgz", - "integrity": "sha512-iR4lP9nEnIl1fW7beuB55A262lW78sOdH6r/57XcyMtsE/mCZiRhUVhGfvcM4GgLWm26vyla/UV3FVr7hIpMIQ==", - "requires": { - "@libp2p/interface": "^0.1.1", - "multiformats": "^12.0.1", - "uint8arrays": "^4.0.4" - } - }, "multiformats": { "version": "12.0.1", "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.0.1.tgz", @@ -34272,16 +34137,42 @@ "version": "1.1.0" }, "@puppeteer/browsers": { - "version": "1.4.0", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-1.7.0.tgz", + "integrity": "sha512-sl7zI0IkbQGak/+IE3VEEZab5SSOlI5F6558WvzWGC1n3+C722rfewC1ZIkcF9dsoGSsxhsONoseVlNQG4wWvQ==", "dev": true, "requires": { "debug": "4.3.4", "extract-zip": "2.0.1", "progress": "2.0.3", - "proxy-agent": "6.2.0", - "tar-fs": "2.1.1", + "proxy-agent": "6.3.0", + "tar-fs": "3.0.4", "unbzip2-stream": "1.4.3", "yargs": "17.7.1" + }, + "dependencies": { + "tar-fs": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.0.4.tgz", + "integrity": "sha512-5AFQU8b9qLfZCX9zp2duONhPmZv0hGYiBPJsyUdqMjzq/mqVpy/rEUSeHk1+YitmxugaptgBh5oDGU3VsAJq4w==", + "dev": true, + "requires": { + "mkdirp-classic": "^0.5.2", + "pump": "^3.0.0", + "tar-stream": "^3.1.5" + } + }, + "tar-stream": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.6.tgz", + "integrity": "sha512-B/UyjYwPpMBv+PaFSWAmtYjwdrlEaZQEhMIBFNC5oEG8lpiW8XjcSdmEaClj28ArfKScKHs2nshz3k2le6crsg==", + "dev": true, + "requires": { + "b4a": "^1.6.4", + "fast-fifo": "^1.2.0", + "streamx": "^2.15.0" + } + } } }, "@rollup/plugin-commonjs": { @@ -34876,6 +34767,12 @@ "defer-to-connect": "^2.0.0" } }, + "@tootallnate/quickjs-emscripten": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz", + "integrity": "sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==", + "dev": true + }, "@tsconfig/node10": { "version": "1.0.9", "dev": true @@ -35738,7 +35635,7 @@ "chai": "^4.3.7", "cspell": "^7.0.1", "debug": "^4.3.4", - "fast-check": "^3.8.1", + "fast-check": "^3.12.0", "ignore-loader": "^0.1.2", "isomorphic-fetch": "^3.0.0", "it-all": "^3.0.2", @@ -35752,7 +35649,7 @@ "npm-run-all": "^4.1.5", "p-event": "^5.0.1", "process": "^0.11.10", - "puppeteer": "^20.4.0", + "puppeteer": "^21.1.1", "rollup": "^3.28.0", "ts-loader": "^9.4.2", "ts-node": "^10.9.1", @@ -35769,7 +35666,7 @@ "@waku/dns-discovery": { "version": "file:packages/dns-discovery", "requires": { - "@libp2p/peer-id": "^2.0.4", + "@libp2p/peer-id": "^3.0.2", "@libp2p/peer-id-factory": "^3.0.3", "@multiformats/multiaddr": "^12.0.0", "@rollup/plugin-commonjs": "^24.0.1", @@ -35802,7 +35699,7 @@ "requires": { "@ethersproject/rlp": "^5.7.0", "@libp2p/crypto": "^1.0.17", - "@libp2p/peer-id": "^2.0.4", + "@libp2p/peer-id": "^3.0.2", "@libp2p/peer-id-factory": "^3.0.3", "@multiformats/multiaddr": "^12.0.0", "@noble/secp256k1": "^1.7.1", @@ -35825,7 +35722,7 @@ "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^20.4.0", + "puppeteer": "^21.1.1", "rollup": "^3.28.0", "ts-loader": "^9.4.2", "typescript": "^5.0.4", @@ -35860,7 +35757,7 @@ "chai": "^4.3.7", "cspell": "^7.0.1", "debug": "^4.3.4", - "fast-check": "^3.8.1", + "fast-check": "^3.12.0", "js-sha3": "^0.8.0", "karma": "^6.4.1", "karma-chrome-launcher": "^3.2.0", @@ -35869,7 +35766,7 @@ "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^20.4.0", + "puppeteer": "^21.1.1", "rollup": "^3.28.0", "ts-loader": "^9.4.2", "typescript": "^5.0.4" @@ -35890,7 +35787,7 @@ "@waku/utils": "0.0.10", "chai": "^4.3.7", "cspell": "^7.0.1", - "fast-check": "^3.7.0", + "fast-check": "^3.12.0", "ignore-loader": "^0.1.2", "isomorphic-fetch": "^3.0.0", "karma": "^6.4.1", @@ -35900,7 +35797,7 @@ "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^20.4.0", + "puppeteer": "^21.1.1", "rollup": "^3.28.0", "ts-loader": "^9.4.2", "ts-node": "^10.9.1", @@ -35964,7 +35861,7 @@ "@waku/utils": "0.0.10", "chai": "^4.3.7", "debug": "^4.3.4", - "fast-check": "^3.8.1", + "fast-check": "^3.12.0", "rollup": "^3.28.0", "ts-loader": "^9.4.2", "ts-node": "^10.9.1", @@ -36025,7 +35922,7 @@ "requires": { "@libp2p/bootstrap": "^9.0.2", "@libp2p/interface-compliance-tests": "^4.0.2", - "@libp2p/peer-id": "^2.0.4", + "@libp2p/peer-id": "^3.0.2", "@types/chai": "^4.3.5", "@types/dockerode": "^3.3.19", "@types/mocha": "^10.0.1", @@ -36096,18 +35993,6 @@ "ts-sinon": "^2.0.2", "uint8arraylist": "^2.4.3", "uint8arrays": "^4.0.4" - }, - "dependencies": { - "@libp2p/peer-id": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.1.tgz", - "integrity": "sha512-iR4lP9nEnIl1fW7beuB55A262lW78sOdH6r/57XcyMtsE/mCZiRhUVhGfvcM4GgLWm26vyla/UV3FVr7hIpMIQ==", - "requires": { - "@libp2p/interface": "^0.1.1", - "multiformats": "^12.0.1", - "uint8arrays": "^4.0.4" - } - } } }, "@libp2p/logger": { @@ -36129,18 +36014,6 @@ "requires": { "@libp2p/interface": "^0.1.1", "@libp2p/peer-id": "^3.0.1" - }, - "dependencies": { - "@libp2p/peer-id": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.1.tgz", - "integrity": "sha512-iR4lP9nEnIl1fW7beuB55A262lW78sOdH6r/57XcyMtsE/mCZiRhUVhGfvcM4GgLWm26vyla/UV3FVr7hIpMIQ==", - "requires": { - "@libp2p/interface": "^0.1.1", - "multiformats": "^12.0.1", - "uint8arrays": "^4.0.4" - } - } } }, "@typescript-eslint/eslint-plugin": { @@ -37270,6 +37143,8 @@ }, "ast-types": { "version": "0.13.4", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz", + "integrity": "sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==", "dev": true, "requires": { "tslib": "^2.0.1" @@ -37293,6 +37168,12 @@ "version": "1.0.5", "dev": true }, + "b4a": { + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.4.tgz", + "integrity": "sha512-fpWrvyVHEKyeEvbKZTVOeZF3VSKKWtJxFIxX/jaVPf+cLbGUSitjb49pHLqPV2BUNNZ0LcoeEGfE/YCpyDYHIw==", + "dev": true + }, "babel-plugin-polyfill-corejs2": { "version": "0.4.5", "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.5.tgz", @@ -37350,6 +37231,8 @@ }, "basic-ftp": { "version": "5.0.3", + "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.3.tgz", + "integrity": "sha512-QHX8HLlncOLpy54mh+k/sWIFd0ThmRqwe9ZjELybGZK+tZ8rUb9VO0saKJUROTbE+KhzDUT7xziGpGrW8Kmd+g==", "dev": true }, "bcrypt-pbkdf": { @@ -37905,10 +37788,12 @@ "dev": true }, "chromium-bidi": { - "version": "0.4.10", + "version": "0.4.22", + "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.22.tgz", + "integrity": "sha512-wR7Y9Ioez+cNXT4ZP7VNM1HRTljpNnMSLw4/RnwhhZUP4yCU7kIQND00YiktuHekch68jklGPK1q9Jkb29+fQg==", "dev": true, "requires": { - "mitt": "3.0.0" + "mitt": "3.0.1" } }, "ci-info": { @@ -38280,7 +38165,9 @@ } }, "cosmiconfig": { - "version": "8.1.3", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.2.0.tgz", + "integrity": "sha512-3rTMnFJA1tCOPwRxtgF4wd7Ab2qvDbL8jX+3smjIbS4HlZBagTlpERbdN7iAbWlrfxE3M8c27kTwTawQ7st+OQ==", "dev": true, "requires": { "import-fresh": "^3.2.1", @@ -38667,6 +38554,8 @@ }, "data-uri-to-buffer": { "version": "5.0.1", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-5.0.1.tgz", + "integrity": "sha512-a9l6T1qqDogvvnw0nKlfZzqsyikEBZBClF39V3TFoKhDtGBqHu2HkuomJc02j5zft8zrUaXEuoicLeW54RkzPg==", "dev": true }, "datastore-core": { @@ -38919,13 +38808,34 @@ } }, "degenerator": { - "version": "4.0.2", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-5.0.1.tgz", + "integrity": "sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==", "dev": true, "requires": { - "ast-types": "^0.13.2", - "escodegen": "^1.8.1", - "esprima": "^4.0.0", - "vm2": "^3.9.17" + "ast-types": "^0.13.4", + "escodegen": "^2.1.0", + "esprima": "^4.0.1" + }, + "dependencies": { + "escodegen": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", + "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", + "dev": true, + "requires": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2", + "source-map": "~0.6.1" + } + }, + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + } } }, "del": { @@ -40621,7 +40531,9 @@ "dev": true }, "fast-check": { - "version": "3.8.1", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/fast-check/-/fast-check-3.12.0.tgz", + "integrity": "sha512-SqahE9mlL3+lhjJ39joMLwcj6F+24hfZdf/tchlNO8sHcTdrUUdA5P/ZbSFZM9Xpzs36XaneGwE0FWepm/zyOA==", "requires": { "pure-rand": "^6.0.0" } @@ -40640,6 +40552,12 @@ "integrity": "sha512-WF1Wi8PwwSY7/6Kx0vKXtw8RwuSGoM1bvDaJbu7MxDlR1vovZjIAKrnzyrThgAjm6JDTu0fVgWXDlMGspodfoQ==", "dev": true }, + "fast-fifo": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", + "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==", + "dev": true + }, "fast-glob": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", @@ -40979,6 +40897,8 @@ }, "get-uri": { "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.1.tgz", + "integrity": "sha512-7ZqONUVqaabogsYNWlYj0t3YZaL6dhuEueZXGF+/YVmf6dHmaFg8/6psJKqhx9QykIDKzpGcy2cn4oV4YC7V/Q==", "dev": true, "requires": { "basic-ftp": "^5.0.2", @@ -41516,6 +41436,8 @@ }, "ip": { "version": "1.1.8", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", + "integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==", "dev": true }, "ip-regex": { @@ -42676,16 +42598,6 @@ "@libp2p/peer-id": "^3.0.1" } }, - "@libp2p/peer-id": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.1.tgz", - "integrity": "sha512-iR4lP9nEnIl1fW7beuB55A262lW78sOdH6r/57XcyMtsE/mCZiRhUVhGfvcM4GgLWm26vyla/UV3FVr7hIpMIQ==", - "requires": { - "@libp2p/interface": "^0.1.1", - "multiformats": "^12.0.1", - "uint8arrays": "^4.0.4" - } - }, "@libp2p/peer-record": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/@libp2p/peer-record/-/peer-record-6.0.2.tgz", @@ -44308,7 +44220,9 @@ } }, "mitt": { - "version": "3.0.0", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", + "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==", "dev": true }, "mkdirp": { @@ -46859,18 +46773,6 @@ "supports-color": "^7.1.0" } }, - "cosmiconfig": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.2.0.tgz", - "integrity": "sha512-3rTMnFJA1tCOPwRxtgF4wd7Ab2qvDbL8jX+3smjIbS4HlZBagTlpERbdN7iAbWlrfxE3M8c27kTwTawQ7st+OQ==", - "dev": true, - "requires": { - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "parse-json": "^5.0.0", - "path-type": "^4.0.0" - } - }, "globby": { "version": "11.1.0", "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", @@ -47653,27 +47555,34 @@ } }, "pac-proxy-agent": { - "version": "6.0.3", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.0.0.tgz", + "integrity": "sha512-t4tRAMx0uphnZrio0S0Jw9zg3oDbz1zVhQ/Vy18FjLfP1XOLNUEjaVxYCYRI6NS+BsMBXKIzV6cTLOkO9AtywA==", "dev": true, "requires": { + "@tootallnate/quickjs-emscripten": "^0.23.0", "agent-base": "^7.0.2", "debug": "^4.3.4", "get-uri": "^6.0.1", "http-proxy-agent": "^7.0.0", "https-proxy-agent": "^7.0.0", - "pac-resolver": "^6.0.1", + "pac-resolver": "^7.0.0", "socks-proxy-agent": "^8.0.1" }, "dependencies": { "agent-base": { "version": "7.1.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", + "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", "dev": true, "requires": { "debug": "^4.3.4" } }, "https-proxy-agent": { - "version": "7.0.0", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.1.tgz", + "integrity": "sha512-Eun8zV0kcYS1g19r78osiQLEFIRspRUDd9tIfBCTBPBeMieF/EsJNL8VI3xOIdYRDEkjQnqOYPsZ2DsWsVsFwQ==", "dev": true, "requires": { "agent-base": "^7.0.2", @@ -47683,11 +47592,13 @@ } }, "pac-resolver": { - "version": "6.0.1", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.0.tgz", + "integrity": "sha512-Fd9lT9vJbHYRACT8OhCbZBbxr6KRSawSovFpy8nDGshaK99S/EBhVIHp9+crhxrsZOuvLpgL1n23iyPg6Rl2hg==", "dev": true, "requires": { - "degenerator": "^4.0.1", - "ip": "^1.1.5", + "degenerator": "^5.0.0", + "ip": "^1.1.8", "netmask": "^2.0.2" } }, @@ -48899,36 +48810,34 @@ } }, "proxy-agent": { - "version": "6.2.0", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.3.0.tgz", + "integrity": "sha512-0LdR757eTj/JfuU7TL2YCuAZnxWXu3tkJbg4Oq3geW/qFNT/32T0sp2HnZ9O0lMR4q3vwAt0+xCA8SR0WAD0og==", "dev": true, "requires": { - "agent-base": "^7.0.1", + "agent-base": "^7.0.2", "debug": "^4.3.4", - "http-proxy-agent": "^6.0.1", - "https-proxy-agent": "^6.1.0", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.0", "lru-cache": "^7.14.1", - "pac-proxy-agent": "^6.0.2", + "pac-proxy-agent": "^7.0.0", "proxy-from-env": "^1.1.0", "socks-proxy-agent": "^8.0.1" }, "dependencies": { "agent-base": { "version": "7.1.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", + "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", "dev": true, "requires": { "debug": "^4.3.4" } }, - "http-proxy-agent": { - "version": "6.1.1", - "dev": true, - "requires": { - "agent-base": "^7.1.0", - "debug": "^4.3.4" - } - }, "https-proxy-agent": { - "version": "6.2.1", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.1.tgz", + "integrity": "sha512-Eun8zV0kcYS1g19r78osiQLEFIRspRUDd9tIfBCTBPBeMieF/EsJNL8VI3xOIdYRDEkjQnqOYPsZ2DsWsVsFwQ==", "dev": true, "requires": { "agent-base": "^7.0.2", @@ -48937,6 +48846,8 @@ }, "lru-cache": { "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", "dev": true } } @@ -48972,46 +48883,58 @@ } }, "puppeteer": { - "version": "20.4.0", + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-21.1.1.tgz", + "integrity": "sha512-2TLntjGA4qLrI9/8N0UK/5OoZJ2Ue7QgphN2SD+RsaHiha12AEiVyMGsB+i6LY1IoPAtEgYIjblQ7lw3kWDNRw==", "dev": true, "requires": { - "@puppeteer/browsers": "1.4.0", - "cosmiconfig": "8.1.3", - "puppeteer-core": "20.4.0" + "@puppeteer/browsers": "1.7.0", + "cosmiconfig": "8.2.0", + "puppeteer-core": "21.1.1" }, "dependencies": { "cross-fetch": { - "version": "3.1.6", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.0.0.tgz", + "integrity": "sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g==", "dev": true, "requires": { - "node-fetch": "^2.6.11" + "node-fetch": "^2.6.12" } }, "devtools-protocol": { - "version": "0.0.1120988", + "version": "0.0.1159816", + "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1159816.tgz", + "integrity": "sha512-2cZlHxC5IlgkIWe2pSDmCrDiTzbSJWywjbDDnupOImEBcG31CQgBLV8wWE+5t+C4rimcjHsbzy7CBzf9oFjboA==", "dev": true }, "node-fetch": { - "version": "2.6.11", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", "dev": true, "requires": { "whatwg-url": "^5.0.0" } }, "puppeteer-core": { - "version": "20.4.0", + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-21.1.1.tgz", + "integrity": "sha512-Tlcajcf44zwfa9Sbwv3T8BtaNMJ69wtpHIxwl2NOBTyTK3D1wppQovXTjfw0TDOm3a16eCfQ+5BMi3vRQ4kuAQ==", "dev": true, "requires": { - "@puppeteer/browsers": "1.4.0", - "chromium-bidi": "0.4.10", - "cross-fetch": "3.1.6", + "@puppeteer/browsers": "1.7.0", + "chromium-bidi": "0.4.22", + "cross-fetch": "4.0.0", "debug": "4.3.4", - "devtools-protocol": "0.0.1120988", + "devtools-protocol": "0.0.1159816", "ws": "8.13.0" } }, "ws": { "version": "8.13.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", + "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", "dev": true, "requires": {} } @@ -49063,6 +48986,12 @@ "version": "1.2.3", "dev": true }, + "queue-tick": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/queue-tick/-/queue-tick-1.0.1.tgz", + "integrity": "sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==", + "dev": true + }, "quick-lru": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", @@ -50779,6 +50708,8 @@ }, "smart-buffer": { "version": "4.2.0", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", "dev": true }, "socket.io": { @@ -50817,6 +50748,8 @@ }, "socks": { "version": "2.7.1", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz", + "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==", "dev": true, "requires": { "ip": "^2.0.0", @@ -50825,12 +50758,16 @@ "dependencies": { "ip": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", + "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==", "dev": true } } }, "socks-proxy-agent": { "version": "8.0.1", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.1.tgz", + "integrity": "sha512-59EjPbbgg8U3x62hhKOFVAmySQUcfRQ4C7Q/D5sEHnZTQRrQlNKINks44DMR1gwXp0p4LaVIeccX2KHTTcHVqQ==", "dev": true, "requires": { "agent-base": "^7.0.1", @@ -50840,6 +50777,8 @@ "dependencies": { "agent-base": { "version": "7.1.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", + "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", "dev": true, "requires": { "debug": "^4.3.4" @@ -51052,6 +50991,16 @@ "streamsearch": { "version": "1.1.0" }, + "streamx": { + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.15.1.tgz", + "integrity": "sha512-fQMzy2O/Q47rgwErk/eGeLu/roaFWV0jVsogDmrszM9uIw8L5OA+t+V93MgYlufNptfjmYR1tOMWhei/Eh7TQA==", + "dev": true, + "requires": { + "fast-fifo": "^1.1.0", + "queue-tick": "^1.0.1" + } + }, "string_decoder": { "version": "1.3.0", "requires": { @@ -52260,14 +52209,6 @@ "version": "1.1.2", "dev": true }, - "vm2": { - "version": "3.9.19", - "dev": true, - "requires": { - "acorn": "^8.7.0", - "acorn-walk": "^8.2.0" - } - }, "void-elements": { "version": "2.0.1", "dev": true diff --git a/packages/core/package.json b/packages/core/package.json index e1c3a191a5..5f45de9bb7 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -96,7 +96,7 @@ "@waku/build-utils": "*", "chai": "^4.3.7", "cspell": "^7.0.1", - "fast-check": "^3.8.1", + "fast-check": "^3.12.0", "ignore-loader": "^0.1.2", "isomorphic-fetch": "^3.0.0", "karma": "^6.4.1", @@ -106,7 +106,7 @@ "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^20.4.0", + "puppeteer": "^21.1.1", "rollup": "^3.28.0", "ts-loader": "^9.4.2", "ts-node": "^10.9.1", diff --git a/packages/core/src/lib/store/index.ts b/packages/core/src/lib/store/index.ts index 7583caac72..05068c1358 100644 --- a/packages/core/src/lib/store/index.ts +++ b/packages/core/src/lib/store/index.ts @@ -86,6 +86,54 @@ class Store extends BaseProtocol implements IStore { this.options = options ?? {}; } + /** + * Processes messages based on the provided callback and options. + * @private + */ + private async processMessages( + messages: Promise[], + callback: (message: T) => Promise | boolean | void, + options?: QueryOptions + ): Promise { + let abort = false; + const messagesOrUndef: Array = await Promise.all(messages); + let processedMessages: Array = messagesOrUndef.filter(isDefined); + + if (this.shouldReverseOrder(options)) { + processedMessages = processedMessages.reverse(); + } + + await Promise.all( + processedMessages.map(async (msg) => { + if (msg && !abort) { + abort = Boolean(await callback(msg)); + } + }) + ); + + return abort; + } + + /** + * Determines whether to reverse the order of messages based on the provided options. + * + * Messages in pages are ordered from oldest (first) to most recent (last). + * https://github.com/vacp2p/rfc/issues/533 + * + * @private + */ + private shouldReverseOrder(options?: QueryOptions): boolean { + return ( + typeof options?.pageDirection === "undefined" || + options?.pageDirection === PageDirection.BACKWARD + ); + } + + /** + * @deprecated Use `queryWithOrderedCallback` instead + **/ + queryOrderedCallback = this.queryWithOrderedCallback; + /** * Do a query to a Waku Store to retrieve historical/missed messages. * @@ -103,42 +151,20 @@ class Store extends BaseProtocol implements IStore { * or if an error is encountered when processing the reply, * or if two decoders with the same content topic are passed. */ - async queryOrderedCallback( + async queryWithOrderedCallback( decoders: IDecoder[], callback: (message: T) => Promise | boolean | void, options?: QueryOptions ): Promise { - let abort = false; for await (const promises of this.queryGenerator(decoders, options)) { - if (abort) break; - const messagesOrUndef: Array = await Promise.all(promises); - - let messages: Array = messagesOrUndef.filter(isDefined); - - // Messages in pages are ordered from oldest (first) to most recent (last). - // https://github.com/vacp2p/rfc/issues/533 - if ( - typeof options?.pageDirection === "undefined" || - options?.pageDirection === PageDirection.BACKWARD - ) { - messages = messages.reverse(); - } - - await Promise.all( - messages.map(async (msg) => { - if (msg && !abort) { - abort = Boolean(await callback(msg)); - } - }) - ); + if (await this.processMessages(promises, callback, options)) break; } } /** * Do a query to a Waku Store to retrieve historical/missed messages. - * * The callback function takes a `Promise` in input, - * useful if messages needs to be decrypted and performance matters. + * useful if messages need to be decrypted and performance matters. * * The order of the messages passed to the callback is as follows: * - within a page, messages are expected to be ordered from oldest to most recent @@ -152,7 +178,7 @@ class Store extends BaseProtocol implements IStore { * or if an error is encountered when processing the reply, * or if two decoders with the same content topic are passed. */ - async queryCallbackOnPromise( + async queryWithPromiseCallback( decoders: IDecoder[], callback: ( message: Promise @@ -160,17 +186,15 @@ class Store extends BaseProtocol implements IStore { options?: QueryOptions ): Promise { let abort = false; - let promises: Promise[] = []; for await (const page of this.queryGenerator(decoders, options)) { - const _promises = page.map(async (msg) => { - if (!abort) { - abort = Boolean(await callback(msg)); - } + const _promises = page.map(async (msgPromise) => { + if (abort) return; + abort = Boolean(await callback(msgPromise)); }); - promises = promises.concat(_promises); + await Promise.all(_promises); + if (abort) break; } - await Promise.all(promises); } /** @@ -183,9 +207,6 @@ class Store extends BaseProtocol implements IStore { * as follows: * - within a page, messages SHOULD be ordered from oldest to most recent * - pages direction depends on { @link QueryOptions.pageDirection } - * - * However, there is no way to guarantee the behavior of the remote node. - * * @throws If not able to reach a Waku Store peer to query, * or if an error is encountered when processing the reply, * or if two decoders with the same content topic are passed. diff --git a/packages/dns-discovery/package.json b/packages/dns-discovery/package.json index 2fa7542201..3300efe886 100644 --- a/packages/dns-discovery/package.json +++ b/packages/dns-discovery/package.json @@ -59,7 +59,7 @@ "uint8arrays": "^4.0.4" }, "devDependencies": { - "@libp2p/peer-id": "^2.0.4", + "@libp2p/peer-id": "^3.0.2", "@libp2p/peer-id-factory": "^3.0.3", "@multiformats/multiaddr": "^12.0.0", "@rollup/plugin-commonjs": "^24.0.1", diff --git a/packages/enr/package.json b/packages/enr/package.json index 5d91a164eb..6a02595194 100644 --- a/packages/enr/package.json +++ b/packages/enr/package.json @@ -53,7 +53,7 @@ "dependencies": { "@ethersproject/rlp": "^5.7.0", "@libp2p/crypto": "^1.0.17", - "@libp2p/peer-id": "^2.0.4", + "@libp2p/peer-id": "^3.0.2", "@multiformats/multiaddr": "^12.0.0", "@noble/secp256k1": "^1.7.1", "@waku/utils": "0.0.10", @@ -78,7 +78,7 @@ "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^20.4.0", + "puppeteer": "^21.1.1", "rollup": "^3.28.0", "ts-loader": "^9.4.2", "typescript": "^5.0.4", diff --git a/packages/interfaces/src/store.ts b/packages/interfaces/src/store.ts index e3ad74c74d..aea825b3b2 100644 --- a/packages/interfaces/src/store.ts +++ b/packages/interfaces/src/store.ts @@ -46,12 +46,12 @@ export type StoreQueryOptions = { } & ProtocolOptions; export interface IStore extends IBaseProtocol { - queryOrderedCallback: ( + queryWithOrderedCallback: ( decoders: IDecoder[], callback: (message: T) => Promise | boolean | void, options?: StoreQueryOptions ) => Promise; - queryCallbackOnPromise: ( + queryWithPromiseCallback: ( decoders: IDecoder[], callback: ( message: Promise diff --git a/packages/message-encryption/package.json b/packages/message-encryption/package.json index fd2b6bd273..8b728c057a 100644 --- a/packages/message-encryption/package.json +++ b/packages/message-encryption/package.json @@ -88,7 +88,7 @@ "@waku/build-utils": "*", "chai": "^4.3.7", "cspell": "^7.0.1", - "fast-check": "^3.8.1", + "fast-check": "^3.12.0", "karma": "^6.4.1", "karma-chrome-launcher": "^3.2.0", "karma-mocha": "^2.0.1", @@ -96,7 +96,7 @@ "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^20.4.0", + "puppeteer": "^21.1.1", "rollup": "^3.28.0", "ts-loader": "^9.4.2", "typescript": "^5.0.4" diff --git a/packages/message-hash/package.json b/packages/message-hash/package.json index d8e112f78f..04d395f034 100644 --- a/packages/message-hash/package.json +++ b/packages/message-hash/package.json @@ -64,7 +64,7 @@ "@waku/interfaces": "0.0.17", "chai": "^4.3.7", "cspell": "^7.0.1", - "fast-check": "^3.7.0", + "fast-check": "^3.12.0", "ignore-loader": "^0.1.2", "isomorphic-fetch": "^3.0.0", "karma": "^6.4.1", @@ -74,7 +74,7 @@ "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^20.4.0", + "puppeteer": "^21.1.1", "rollup": "^3.28.0", "ts-loader": "^9.4.2", "ts-node": "^10.9.1", diff --git a/packages/relay/package.json b/packages/relay/package.json index 0dabc5c5a4..b9919ebdfa 100644 --- a/packages/relay/package.json +++ b/packages/relay/package.json @@ -57,7 +57,7 @@ "@waku/utils": "0.0.10", "chai": "^4.3.7", "debug": "^4.3.4", - "fast-check": "^3.8.1" + "fast-check": "^3.12.0" }, "devDependencies": { "@rollup/plugin-commonjs": "^24.1.0", diff --git a/packages/tests/package.json b/packages/tests/package.json index 57b5dad392..2baebffbcd 100644 --- a/packages/tests/package.json +++ b/packages/tests/package.json @@ -51,7 +51,7 @@ }, "dependencies": { "@libp2p/interface-compliance-tests": "^4.0.2", - "@libp2p/peer-id": "^2.0.4", + "@libp2p/peer-id": "^3.0.2", "@waku/core": "*", "@waku/enr": "*", "@waku/interfaces": "*", diff --git a/packages/tests/tests/store.node.spec.ts b/packages/tests/tests/store.node.spec.ts index f75d1b5935..cde93d098c 100644 --- a/packages/tests/tests/store.node.spec.ts +++ b/packages/tests/tests/store.node.spec.ts @@ -204,7 +204,7 @@ describe("Waku Store", () => { await waitForRemotePeer(waku, [Protocols.Store]); const messages: IMessage[] = []; - await waku.store.queryCallbackOnPromise( + await waku.store.queryWithPromiseCallback( [TestDecoder], async (msgPromise) => { const msg = await msgPromise; @@ -246,7 +246,7 @@ describe("Waku Store", () => { const desiredMsgs = 14; const messages: IMessage[] = []; - await waku.store.queryCallbackOnPromise( + await waku.store.queryWithPromiseCallback( [TestDecoder], async (msgPromise) => { const msg = await msgPromise; @@ -285,7 +285,7 @@ describe("Waku Store", () => { await waitForRemotePeer(waku, [Protocols.Store]); const messages: IMessage[] = []; - await waku.store.queryOrderedCallback( + await waku.store.queryWithOrderedCallback( [TestDecoder], async (msg) => { messages.push(msg); @@ -324,7 +324,7 @@ describe("Waku Store", () => { await waitForRemotePeer(waku, [Protocols.Store]); let messages: IMessage[] = []; - await waku.store.queryOrderedCallback( + await waku.store.queryWithOrderedCallback( [TestDecoder], async (msg) => { messages.push(msg); @@ -491,7 +491,7 @@ describe("Waku Store", () => { const nwakuPeerId = await nwaku.getPeerId(); const firstMessages: IMessage[] = []; - await waku.store.queryOrderedCallback( + await waku.store.queryWithOrderedCallback( [TestDecoder], (msg) => { if (msg) { @@ -505,7 +505,7 @@ describe("Waku Store", () => { ); const bothMessages: IMessage[] = []; - await waku.store.queryOrderedCallback( + await waku.store.queryWithOrderedCallback( [TestDecoder], async (msg) => { bothMessages.push(msg); @@ -552,7 +552,7 @@ describe("Waku Store", () => { const desiredMsgs = 14; const messages: IMessage[] = []; - await waku.store.queryOrderedCallback( + await waku.store.queryWithOrderedCallback( [TestDecoder], async (msg) => { messages.push(msg);