diff --git a/package-lock.json b/package-lock.json index a54ada1633..cd418521ef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1525,9 +1525,9 @@ "dev": true }, "node_modules/@chainsafe/is-ip": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@chainsafe/is-ip/-/is-ip-2.0.1.tgz", - "integrity": "sha512-nqSJ8u2a1Rv9FYbyI8qpDhTYujaKEyLknNrTejLYoSWmdeg+2WB7R6BZqPZYfrJzDxVi3rl6ZQuoaEvpKRZWgQ==" + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@chainsafe/is-ip/-/is-ip-2.0.2.tgz", + "integrity": "sha512-ndGqEMG1W5WkGagaqOZHpPU172AGdxr+LD15sv3WIUvT5oCFUrG1Y0CW/v2Egwj4JXEvSibaIIIqImsm98y1nA==" }, "node_modules/@chainsafe/libp2p-gossipsub": { "version": "9.1.0", @@ -2930,11 +2930,11 @@ } }, "node_modules/@libp2p/interface": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@libp2p/interface/-/interface-0.1.1.tgz", - "integrity": "sha512-Uk+4YnEShx4gfzweYdJCHdLxcA1gAnTiZ8vlvr5DnSHJrg8yUN6VYkk96W3iJQ7H7hqV/ULIoIRQLHjLtDDCkw==", + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@libp2p/interface/-/interface-0.1.2.tgz", + "integrity": "sha512-Q5t27434Mvn+R6AUJlRH+q/jSXarDpP+KXVkyGY7S1fKPI2berqoFPqT61bRRBYsCH2OPZiKBB53VUzxL9uEvg==", "dependencies": { - "@multiformats/multiaddr": "^12.1.3", + "@multiformats/multiaddr": "^12.1.5", "abortable-iterator": "^5.0.1", "it-pushable": "^3.2.0", "it-stream-types": "^2.0.1", @@ -3647,31 +3647,91 @@ } }, "node_modules/@libp2p/websockets": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/@libp2p/websockets/-/websockets-6.0.3.tgz", - "integrity": "sha512-pwOr3iAbczWmmCg1nHnC2Dl0Ek81Y6LE8ptImiUbuZ08q1E/fTumM8pRNmrrsogSshG4lugebArIO9SNMylJZg==", + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/websockets/-/websockets-7.0.3.tgz", + "integrity": "sha512-AdMo1xVAk3xTG6hlR14DVmPdAo7qExBWm4sDT5enndLAbgTC2SbTE8/BFsqt5duidGK7yP1vawXFLSDpN252Zg==", "dependencies": { - "@libp2p/interface-connection": "^5.0.0", - "@libp2p/interface-transport": "^4.0.0", - "@libp2p/interfaces": "^3.0.3", - "@libp2p/logger": "^2.0.0", - "@libp2p/utils": "^3.0.2", - "@multiformats/mafmt": "^12.0.0", - "@multiformats/multiaddr": "^12.0.0", + "@libp2p/interface": "^0.1.2", + "@libp2p/logger": "^3.0.2", + "@libp2p/utils": "^4.0.2", + "@multiformats/mafmt": "^12.1.2", + "@multiformats/multiaddr": "^12.1.5", "@multiformats/multiaddr-to-uri": "^9.0.2", "@types/ws": "^8.5.4", - "abortable-iterator": "^5.0.0", + "abortable-iterator": "^5.0.1", "it-ws": "^6.0.0", "p-defer": "^4.0.0", - "p-timeout": "^6.0.0", "wherearewe": "^2.0.1", "ws": "^8.12.1" + } + }, + "node_modules/@libp2p/websockets/node_modules/@libp2p/logger": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@libp2p/logger/-/logger-3.0.2.tgz", + "integrity": "sha512-2JtRGBXiGfm1t5XneUIXQ2JusW7QwyYmxsW7hSAYS5J73RQJUicpt5le5obVRt7+OM39ei+nWEuC6Xvm1ugHkw==", + "dependencies": { + "@libp2p/interface": "^0.1.2", + "@multiformats/multiaddr": "^12.1.5", + "debug": "^4.3.4", + "interface-datastore": "^8.2.0", + "multiformats": "^12.0.1" + } + }, + "node_modules/@libp2p/websockets/node_modules/@libp2p/utils": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@libp2p/utils/-/utils-4.0.2.tgz", + "integrity": "sha512-M6ARf4NhzFqpw15BOG0FQVXanjWdnta/s91OzhtdZhsp1A/FmUDlxwdIeshs2x/6TfNhyrMtR8Wid/BYsPpBow==", + "dependencies": { + "@chainsafe/is-ip": "^2.0.2", + "@libp2p/interface": "^0.1.2", + "@libp2p/logger": "^3.0.2", + "@multiformats/multiaddr": "^12.1.5", + "is-loopback-addr": "^2.0.1", + "it-stream-types": "^2.0.1", + "private-ip": "^3.0.0", + "uint8arraylist": "^2.4.3" + } + }, + "node_modules/@libp2p/websockets/node_modules/interface-datastore": { + "version": "8.2.4", + "resolved": "https://registry.npmjs.org/interface-datastore/-/interface-datastore-8.2.4.tgz", + "integrity": "sha512-5ng8eSfuynvywa6/5FHbYdyBMrzMdRqcH+xk48hZMr1F+wmLM5Qkh9QuLtYIlTkpUn5INB4vNBONC+swHiLgpA==", + "dependencies": { + "interface-store": "^5.0.0", + "nanoid": "^4.0.0", + "uint8arrays": "^4.0.2" }, "engines": { "node": ">=16.0.0", "npm": ">=7.0.0" } }, + "node_modules/@libp2p/websockets/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/websockets/node_modules/nanoid": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-4.0.2.tgz", + "integrity": "sha512-7ZtY5KTCNheRGfEFxnedV5zFiORN1+Y1N6zvPTnHQd8ENUvfaDBeuJDZb2bN/oXwXxu3qkTXDzy57W5vAmDTBw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.js" + }, + "engines": { + "node": "^14 || ^16 || >=18" + } + }, "node_modules/@libp2p/websockets/node_modules/ws": { "version": "8.13.0", "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", @@ -30224,7 +30284,7 @@ "dependencies": { "@chainsafe/libp2p-noise": "^12.0.1", "@libp2p/mplex": "^8.0.4", - "@libp2p/websockets": "^6.0.3", + "@libp2p/websockets": "^7.0.3", "@waku/core": "0.0.22", "@waku/dns-discovery": "0.0.16", "@waku/interfaces": "0.0.17", @@ -31412,9 +31472,9 @@ "dev": true }, "@chainsafe/is-ip": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@chainsafe/is-ip/-/is-ip-2.0.1.tgz", - "integrity": "sha512-nqSJ8u2a1Rv9FYbyI8qpDhTYujaKEyLknNrTejLYoSWmdeg+2WB7R6BZqPZYfrJzDxVi3rl6ZQuoaEvpKRZWgQ==" + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@chainsafe/is-ip/-/is-ip-2.0.2.tgz", + "integrity": "sha512-ndGqEMG1W5WkGagaqOZHpPU172AGdxr+LD15sv3WIUvT5oCFUrG1Y0CW/v2Egwj4JXEvSibaIIIqImsm98y1nA==" }, "@chainsafe/libp2p-gossipsub": { "version": "9.1.0", @@ -32438,11 +32498,11 @@ } }, "@libp2p/interface": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@libp2p/interface/-/interface-0.1.1.tgz", - "integrity": "sha512-Uk+4YnEShx4gfzweYdJCHdLxcA1gAnTiZ8vlvr5DnSHJrg8yUN6VYkk96W3iJQ7H7hqV/ULIoIRQLHjLtDDCkw==", + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@libp2p/interface/-/interface-0.1.2.tgz", + "integrity": "sha512-Q5t27434Mvn+R6AUJlRH+q/jSXarDpP+KXVkyGY7S1fKPI2berqoFPqT61bRRBYsCH2OPZiKBB53VUzxL9uEvg==", "requires": { - "@multiformats/multiaddr": "^12.1.3", + "@multiformats/multiaddr": "^12.1.5", "abortable-iterator": "^5.0.1", "it-pushable": "^3.2.0", "it-stream-types": "^2.0.1", @@ -32963,27 +33023,71 @@ } }, "@libp2p/websockets": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/@libp2p/websockets/-/websockets-6.0.3.tgz", - "integrity": "sha512-pwOr3iAbczWmmCg1nHnC2Dl0Ek81Y6LE8ptImiUbuZ08q1E/fTumM8pRNmrrsogSshG4lugebArIO9SNMylJZg==", + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/websockets/-/websockets-7.0.3.tgz", + "integrity": "sha512-AdMo1xVAk3xTG6hlR14DVmPdAo7qExBWm4sDT5enndLAbgTC2SbTE8/BFsqt5duidGK7yP1vawXFLSDpN252Zg==", "requires": { - "@libp2p/interface-connection": "^5.0.0", - "@libp2p/interface-transport": "^4.0.0", - "@libp2p/interfaces": "^3.0.3", - "@libp2p/logger": "^2.0.0", - "@libp2p/utils": "^3.0.2", - "@multiformats/mafmt": "^12.0.0", - "@multiformats/multiaddr": "^12.0.0", + "@libp2p/interface": "^0.1.2", + "@libp2p/logger": "^3.0.2", + "@libp2p/utils": "^4.0.2", + "@multiformats/mafmt": "^12.1.2", + "@multiformats/multiaddr": "^12.1.5", "@multiformats/multiaddr-to-uri": "^9.0.2", "@types/ws": "^8.5.4", - "abortable-iterator": "^5.0.0", + "abortable-iterator": "^5.0.1", "it-ws": "^6.0.0", "p-defer": "^4.0.0", - "p-timeout": "^6.0.0", "wherearewe": "^2.0.1", "ws": "^8.12.1" }, "dependencies": { + "@libp2p/logger": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@libp2p/logger/-/logger-3.0.2.tgz", + "integrity": "sha512-2JtRGBXiGfm1t5XneUIXQ2JusW7QwyYmxsW7hSAYS5J73RQJUicpt5le5obVRt7+OM39ei+nWEuC6Xvm1ugHkw==", + "requires": { + "@libp2p/interface": "^0.1.2", + "@multiformats/multiaddr": "^12.1.5", + "debug": "^4.3.4", + "interface-datastore": "^8.2.0", + "multiformats": "^12.0.1" + } + }, + "@libp2p/utils": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@libp2p/utils/-/utils-4.0.2.tgz", + "integrity": "sha512-M6ARf4NhzFqpw15BOG0FQVXanjWdnta/s91OzhtdZhsp1A/FmUDlxwdIeshs2x/6TfNhyrMtR8Wid/BYsPpBow==", + "requires": { + "@chainsafe/is-ip": "^2.0.2", + "@libp2p/interface": "^0.1.2", + "@libp2p/logger": "^3.0.2", + "@multiformats/multiaddr": "^12.1.5", + "is-loopback-addr": "^2.0.1", + "it-stream-types": "^2.0.1", + "private-ip": "^3.0.0", + "uint8arraylist": "^2.4.3" + } + }, + "interface-datastore": { + "version": "8.2.4", + "resolved": "https://registry.npmjs.org/interface-datastore/-/interface-datastore-8.2.4.tgz", + "integrity": "sha512-5ng8eSfuynvywa6/5FHbYdyBMrzMdRqcH+xk48hZMr1F+wmLM5Qkh9QuLtYIlTkpUn5INB4vNBONC+swHiLgpA==", + "requires": { + "interface-store": "^5.0.0", + "nanoid": "^4.0.0", + "uint8arrays": "^4.0.2" + } + }, + "multiformats": { + "version": "12.0.1", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.0.1.tgz", + "integrity": "sha512-s01wijBJoDUqESWSzePY0lvTw7J3PVO9x2Cc6ASI5AMZM2Gnhh7BC17+nlFhHKU7dDzaCaRfb+NiqNzOsgPUoQ==" + }, + "nanoid": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-4.0.2.tgz", + "integrity": "sha512-7ZtY5KTCNheRGfEFxnedV5zFiORN1+Y1N6zvPTnHQd8ENUvfaDBeuJDZb2bN/oXwXxu3qkTXDzy57W5vAmDTBw==" + }, "ws": { "version": "8.13.0", "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", @@ -35201,7 +35305,7 @@ "@libp2p/interface-registrar": "^2.0.12", "@libp2p/interface-transport": "^4.0.3", "@libp2p/mplex": "^8.0.4", - "@libp2p/websockets": "^6.0.3", + "@libp2p/websockets": "^7.0.3", "@rollup/plugin-commonjs": "^24.0.1", "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^15.0.2", diff --git a/packages/sdk/package.json b/packages/sdk/package.json index fd19763ab1..b129cd576a 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -50,7 +50,7 @@ "dependencies": { "@chainsafe/libp2p-noise": "^12.0.1", "@libp2p/mplex": "^8.0.4", - "@libp2p/websockets": "^6.0.3", + "@libp2p/websockets": "^7.0.3", "@waku/utils": "0.0.10", "@waku/relay": "0.0.5", "@waku/core": "0.0.22",