Merge branch 'master' of github.com:waku-org/js-waku-examples into chore/bump-web-chat

This commit is contained in:
danisharora099 2023-08-01 17:33:34 +05:30
commit 751c2c0594
No known key found for this signature in database
GPG Key ID: FBD2BF500037F135
4 changed files with 183 additions and 97 deletions

1
.github/CODEOWNERS vendored Normal file
View File

@ -0,0 +1 @@
* @waku-org/js-waku-developers

View File

@ -24,6 +24,7 @@
"uint8arraylist": "^2.3.3" "uint8arraylist": "^2.3.3"
}, },
"devDependencies": { "devDependencies": {
"@libp2p/interface-peer-store": "^2.0.4",
"@types/jest": "^27.5.2", "@types/jest": "^27.5.2",
"@types/node": "^17.0.45", "@types/node": "^17.0.45",
"@types/react": "^18.0.25", "@types/react": "^18.0.25",
@ -82,27 +83,30 @@
} }
}, },
"node_modules/@achingbrain/ssdp": { "node_modules/@achingbrain/ssdp": {
"version": "4.0.1", "version": "4.0.4",
"resolved": "https://registry.npmjs.org/@achingbrain/ssdp/-/ssdp-4.0.1.tgz", "resolved": "https://registry.npmjs.org/@achingbrain/ssdp/-/ssdp-4.0.4.tgz",
"integrity": "sha512-z/CkfFI0Ksrpo8E+lu2rKahlE1KJHUn8X8ihQj2Jg6CEL+oHYGCNfttOES0+VnV7htuog70c8bYNHYhlmmqxBQ==", "integrity": "sha512-fY/ShiYJmhLdr45Vn2+f88xTqZjBSH3X3F+EJu/89cjB1JIkMCVtD5CQaaS38YknIL8cEcNhjMZM4cdE3ckSSQ==",
"dependencies": { "dependencies": {
"event-iterator": "^2.0.0", "event-iterator": "^2.0.0",
"freeport-promise": "^2.0.0", "freeport-promise": "^2.0.0",
"merge-options": "^3.0.4", "merge-options": "^3.0.4",
"uuid": "^8.3.2", "xml2js": "^0.5.0"
"xml2js": "^0.4.23"
}, },
"engines": { "engines": {
"node": ">=16.0.0", "node": ">=16.0.0",
"npm": ">=7.0.0" "npm": ">=7.0.0"
} }
}, },
"node_modules/@achingbrain/ssdp/node_modules/uuid": { "node_modules/@achingbrain/ssdp/node_modules/xml2js": {
"version": "8.3.2", "version": "0.5.0",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz",
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==",
"bin": { "dependencies": {
"uuid": "dist/bin/uuid" "sax": ">=0.6.0",
"xmlbuilder": "~11.0.0"
},
"engines": {
"node": ">=4.0.0"
} }
}, },
"node_modules/@ampproject/remapping": { "node_modules/@ampproject/remapping": {
@ -3832,9 +3836,9 @@
"integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q=="
}, },
"node_modules/@libp2p/crypto/node_modules/protobufjs": { "node_modules/@libp2p/crypto/node_modules/protobufjs": {
"version": "7.2.3", "version": "7.2.4",
"resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.3.tgz", "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.4.tgz",
"integrity": "sha512-TtpvOqwB5Gdz/PQmOjgsrGH1nHjAQVCN7JG4A6r1sXRWESL5rNMAiRcBQlCAdKxZcAbstExQePYG8xof/JVRgg==", "integrity": "sha512-AT+RJgD2sH8phPmCf7OUZR8xGdcJRga4+1cOaXJ64hvcSkVhNcRHOwIxUatPH15+nj59WAGTDv3LSGZPEQbJaQ==",
"hasInstallScript": true, "hasInstallScript": true,
"dependencies": { "dependencies": {
"@protobufjs/aspromise": "^1.1.2", "@protobufjs/aspromise": "^1.1.2",
@ -3855,17 +3859,13 @@
} }
}, },
"node_modules/@libp2p/crypto/node_modules/protons-runtime": { "node_modules/@libp2p/crypto/node_modules/protons-runtime": {
"version": "5.0.0", "version": "5.0.1",
"resolved": "https://registry.npmjs.org/protons-runtime/-/protons-runtime-5.0.0.tgz", "resolved": "https://registry.npmjs.org/protons-runtime/-/protons-runtime-5.0.1.tgz",
"integrity": "sha512-QqjGnPGkpvbzq0dITzhG9DVK10rRIHf7nePcU2QQVVpFGuYbwrOWnvGSvei1GcceAzB9syTz6vHzvTPmGRR0PA==", "integrity": "sha512-AwyAA3pQ4Ka4tEBMdIjLi/cRdpb322f7sgv3NruVq9yguLggzwu5eeLe1HuRPFYlI4UsVN/QK/AQXjLPVLCzTA==",
"dependencies": { "dependencies": {
"protobufjs": "^7.0.0", "protobufjs": "^7.0.0",
"uint8arraylist": "^2.4.3" "uint8arraylist": "^2.4.3"
}, },
"engines": {
"node": ">=16.0.0",
"npm": ">=7.0.0"
},
"peerDependencies": { "peerDependencies": {
"uint8arraylist": "^2.3.2" "uint8arraylist": "^2.3.2"
} }
@ -3910,15 +3910,15 @@
} }
}, },
"node_modules/@libp2p/interface-connection": { "node_modules/@libp2p/interface-connection": {
"version": "3.0.8", "version": "5.1.1",
"resolved": "https://registry.npmjs.org/@libp2p/interface-connection/-/interface-connection-3.0.8.tgz", "resolved": "https://registry.npmjs.org/@libp2p/interface-connection/-/interface-connection-5.1.1.tgz",
"integrity": "sha512-JiI9xVPkiSgW9hkvHWA4e599OLPNSACrpgtx6UffHG9N+Jpt0IOmM4iLic8bSIYkZJBOQFG1Sv/gVNB98Uq0Nw==", "integrity": "sha512-ytknMbuuNW72LYMmTP7wFGP5ZTaUSGBCmV9f+uQ55XPcFHtKXLtKWVU/HE8IqPmwtyU8AO7veGoJ/qStMHNRVA==",
"dependencies": { "dependencies": {
"@libp2p/interface-peer-id": "^2.0.0", "@libp2p/interface-peer-id": "^2.0.0",
"@libp2p/interfaces": "^3.0.0", "@libp2p/interfaces": "^3.0.0",
"@multiformats/multiaddr": "^11.0.0", "@multiformats/multiaddr": "^12.0.0",
"it-stream-types": "^1.0.4", "it-stream-types": "^2.0.1",
"uint8arraylist": "^2.1.2" "uint8arraylist": "^2.4.3"
}, },
"engines": { "engines": {
"node": ">=16.0.0", "node": ">=16.0.0",
@ -4100,9 +4100,9 @@
} }
}, },
"node_modules/@libp2p/interface-keys": { "node_modules/@libp2p/interface-keys": {
"version": "1.0.7", "version": "1.0.8",
"resolved": "https://registry.npmjs.org/@libp2p/interface-keys/-/interface-keys-1.0.7.tgz", "resolved": "https://registry.npmjs.org/@libp2p/interface-keys/-/interface-keys-1.0.8.tgz",
"integrity": "sha512-DRMPY9LfcnGJKrjaqIkY62U3fW2dya3VLy4x986ExtMrGn4kxIHeQ1IKk8/Vs9CJHTKmXEMID4of1Cjnw4aJpA==", "integrity": "sha512-CJ1SlrwuoHMquhEEWS77E+4vv7hwB7XORkqzGQrPQmA9MRdIEZRS64bA4JqCLUDa4ltH0l+U1vp0oZHLT67NEA==",
"engines": { "engines": {
"node": ">=16.0.0", "node": ">=16.0.0",
"npm": ">=7.0.0" "npm": ">=7.0.0"
@ -4184,9 +4184,9 @@
} }
}, },
"node_modules/@libp2p/interface-metrics": { "node_modules/@libp2p/interface-metrics": {
"version": "4.0.5", "version": "4.0.8",
"resolved": "https://registry.npmjs.org/@libp2p/interface-metrics/-/interface-metrics-4.0.5.tgz", "resolved": "https://registry.npmjs.org/@libp2p/interface-metrics/-/interface-metrics-4.0.8.tgz",
"integrity": "sha512-srBeky1ugu1Bzw9VHGg8ta15oLh+P2PEIsg0cI9qzDbtCJaWGq/IIetpfuaJNVOuBD1CGEEbITNmsk4tDwIE0w==", "integrity": "sha512-1b9HjYyJH0m35kvPHipuoz2EtYCxyq34NUhuV8VK1VNtrouMpA3uCKp5FI7yHCA6V6+ux1R3UriKgNFOSGbIXQ==",
"dependencies": { "dependencies": {
"@libp2p/interface-connection": "^3.0.0" "@libp2p/interface-connection": "^3.0.0"
}, },
@ -4781,9 +4781,9 @@
"integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q=="
}, },
"node_modules/@libp2p/peer-id-factory/node_modules/protobufjs": { "node_modules/@libp2p/peer-id-factory/node_modules/protobufjs": {
"version": "7.2.3", "version": "7.2.4",
"resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.3.tgz", "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.4.tgz",
"integrity": "sha512-TtpvOqwB5Gdz/PQmOjgsrGH1nHjAQVCN7JG4A6r1sXRWESL5rNMAiRcBQlCAdKxZcAbstExQePYG8xof/JVRgg==", "integrity": "sha512-AT+RJgD2sH8phPmCf7OUZR8xGdcJRga4+1cOaXJ64hvcSkVhNcRHOwIxUatPH15+nj59WAGTDv3LSGZPEQbJaQ==",
"hasInstallScript": true, "hasInstallScript": true,
"dependencies": { "dependencies": {
"@protobufjs/aspromise": "^1.1.2", "@protobufjs/aspromise": "^1.1.2",
@ -4804,17 +4804,13 @@
} }
}, },
"node_modules/@libp2p/peer-id-factory/node_modules/protons-runtime": { "node_modules/@libp2p/peer-id-factory/node_modules/protons-runtime": {
"version": "5.0.0", "version": "5.0.1",
"resolved": "https://registry.npmjs.org/protons-runtime/-/protons-runtime-5.0.0.tgz", "resolved": "https://registry.npmjs.org/protons-runtime/-/protons-runtime-5.0.1.tgz",
"integrity": "sha512-QqjGnPGkpvbzq0dITzhG9DVK10rRIHf7nePcU2QQVVpFGuYbwrOWnvGSvei1GcceAzB9syTz6vHzvTPmGRR0PA==", "integrity": "sha512-AwyAA3pQ4Ka4tEBMdIjLi/cRdpb322f7sgv3NruVq9yguLggzwu5eeLe1HuRPFYlI4UsVN/QK/AQXjLPVLCzTA==",
"dependencies": { "dependencies": {
"protobufjs": "^7.0.0", "protobufjs": "^7.0.0",
"uint8arraylist": "^2.4.3" "uint8arraylist": "^2.4.3"
}, },
"engines": {
"node": ">=16.0.0",
"npm": ">=7.0.0"
},
"peerDependencies": { "peerDependencies": {
"uint8arraylist": "^2.3.2" "uint8arraylist": "^2.3.2"
} }
@ -4865,9 +4861,9 @@
"integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q=="
}, },
"node_modules/@libp2p/peer-record/node_modules/protobufjs": { "node_modules/@libp2p/peer-record/node_modules/protobufjs": {
"version": "7.2.3", "version": "7.2.4",
"resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.3.tgz", "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.4.tgz",
"integrity": "sha512-TtpvOqwB5Gdz/PQmOjgsrGH1nHjAQVCN7JG4A6r1sXRWESL5rNMAiRcBQlCAdKxZcAbstExQePYG8xof/JVRgg==", "integrity": "sha512-AT+RJgD2sH8phPmCf7OUZR8xGdcJRga4+1cOaXJ64hvcSkVhNcRHOwIxUatPH15+nj59WAGTDv3LSGZPEQbJaQ==",
"hasInstallScript": true, "hasInstallScript": true,
"dependencies": { "dependencies": {
"@protobufjs/aspromise": "^1.1.2", "@protobufjs/aspromise": "^1.1.2",
@ -4888,17 +4884,13 @@
} }
}, },
"node_modules/@libp2p/peer-record/node_modules/protons-runtime": { "node_modules/@libp2p/peer-record/node_modules/protons-runtime": {
"version": "5.0.0", "version": "5.0.1",
"resolved": "https://registry.npmjs.org/protons-runtime/-/protons-runtime-5.0.0.tgz", "resolved": "https://registry.npmjs.org/protons-runtime/-/protons-runtime-5.0.1.tgz",
"integrity": "sha512-QqjGnPGkpvbzq0dITzhG9DVK10rRIHf7nePcU2QQVVpFGuYbwrOWnvGSvei1GcceAzB9syTz6vHzvTPmGRR0PA==", "integrity": "sha512-AwyAA3pQ4Ka4tEBMdIjLi/cRdpb322f7sgv3NruVq9yguLggzwu5eeLe1HuRPFYlI4UsVN/QK/AQXjLPVLCzTA==",
"dependencies": { "dependencies": {
"protobufjs": "^7.0.0", "protobufjs": "^7.0.0",
"uint8arraylist": "^2.4.3" "uint8arraylist": "^2.4.3"
}, },
"engines": {
"node": ">=16.0.0",
"npm": ">=7.0.0"
},
"peerDependencies": { "peerDependencies": {
"uint8arraylist": "^2.3.2" "uint8arraylist": "^2.3.2"
} }
@ -5083,10 +5075,67 @@
"npm": ">=7.0.0" "npm": ">=7.0.0"
} }
}, },
"node_modules/@libp2p/pubsub": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/@libp2p/pubsub/-/pubsub-7.0.3.tgz",
"integrity": "sha512-BrUBQ6ljN1tU+2Hn1Vq+ZT/foVBGUVIywqoavNrFw5CmaBBTGuVRrmqE/MUToIS8dhonpW5RNCRabz3woq/4iQ==",
"dependencies": {
"@libp2p/crypto": "^1.0.0",
"@libp2p/interface-connection": "^5.0.1",
"@libp2p/interface-peer-id": "^2.0.1",
"@libp2p/interface-pubsub": "^4.0.0",
"@libp2p/interface-registrar": "^2.0.11",
"@libp2p/interfaces": "^3.3.1",
"@libp2p/logger": "^2.0.7",
"@libp2p/peer-collections": "^3.0.1",
"@libp2p/peer-id": "^2.0.3",
"@libp2p/topology": "^4.0.1",
"abortable-iterator": "^5.0.1",
"it-length-prefixed": "^9.0.0",
"it-pipe": "^3.0.1",
"it-pushable": "^3.1.3",
"multiformats": "^11.0.0",
"p-queue": "^7.2.0",
"uint8arraylist": "^2.0.0",
"uint8arrays": "^4.0.2"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=7.0.0"
}
},
"node_modules/@libp2p/pubsub/node_modules/@libp2p/peer-id": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-2.0.4.tgz",
"integrity": "sha512-gcOsN8Fbhj6izIK+ejiWsqiqKeJ2yWPapi/m55VjOvDa52/ptQzZszxQP8jUk93u36de92ATFXDfZR/Bi6eeUQ==",
"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"
}
},
"node_modules/@libp2p/topology": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/@libp2p/topology/-/topology-4.0.3.tgz",
"integrity": "sha512-uXd9ZYpmgb+onMTypsAPUlvKKeY20HMtxwsjAMEfDa29yqshK8DiEunHZNjLmtXaMIIO9CBl2w5ykjt5TtFsBQ==",
"dependencies": {
"@libp2p/interface-peer-id": "^2.0.0",
"@libp2p/interface-registrar": "^2.0.3"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=7.0.0"
}
},
"node_modules/@libp2p/tracked-map": { "node_modules/@libp2p/tracked-map": {
"version": "3.0.3", "version": "3.0.4",
"resolved": "https://registry.npmjs.org/@libp2p/tracked-map/-/tracked-map-3.0.3.tgz", "resolved": "https://registry.npmjs.org/@libp2p/tracked-map/-/tracked-map-3.0.4.tgz",
"integrity": "sha512-7wpIXZtZFJrN/P7PCiYaeUEALXrmqWv6s2ilHELLDGE3yziVW2fpcISNXuCbw/LLarVkS8fzHqw0cjonsgp4hQ==", "integrity": "sha512-G5ElrjFoubP10TwQo3dnRVaxhshU9wtu86qq0cIXNv12XCFpvTvx12Vbf8sV1SU5imrWgd6XQgfRKsQtjmu3Ew==",
"dependencies": { "dependencies": {
"@libp2p/interface-metrics": "^4.0.0" "@libp2p/interface-metrics": "^4.0.0"
}, },
@ -6850,6 +6899,19 @@
"node": ">=16" "node": ">=16"
} }
}, },
"node_modules/@waku/dns-discovery/node_modules/@libp2p/interface-peer-discovery": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@libp2p/interface-peer-discovery/-/interface-peer-discovery-2.0.0.tgz",
"integrity": "sha512-Mien5t3Tc+ntP5p50acKUYJN90ouMnq1lOTQDKQNvGcXoajG8A1AEYLocnzVia/MXiexuj6S/Q28WBBacoOlBg==",
"dependencies": {
"@libp2p/interface-peer-info": "^1.0.0",
"@libp2p/interfaces": "^3.0.0"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=7.0.0"
}
},
"node_modules/@waku/enr": { "node_modules/@waku/enr": {
"version": "0.0.15", "version": "0.0.15",
"resolved": "https://registry.npmjs.org/@waku/enr/-/enr-0.0.15.tgz", "resolved": "https://registry.npmjs.org/@waku/enr/-/enr-0.0.15.tgz",
@ -6915,6 +6977,19 @@
"node": ">=16" "node": ">=16"
} }
}, },
"node_modules/@waku/peer-exchange/node_modules/@libp2p/interface-peer-discovery": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@libp2p/interface-peer-discovery/-/interface-peer-discovery-2.0.0.tgz",
"integrity": "sha512-Mien5t3Tc+ntP5p50acKUYJN90ouMnq1lOTQDKQNvGcXoajG8A1AEYLocnzVia/MXiexuj6S/Q28WBBacoOlBg==",
"dependencies": {
"@libp2p/interface-peer-info": "^1.0.0",
"@libp2p/interfaces": "^3.0.0"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=7.0.0"
}
},
"node_modules/@waku/peer-exchange/node_modules/@multiformats/multiaddr": { "node_modules/@waku/peer-exchange/node_modules/@multiformats/multiaddr": {
"version": "12.1.3", "version": "12.1.3",
"resolved": "https://registry.npmjs.org/@multiformats/multiaddr/-/multiaddr-12.1.3.tgz", "resolved": "https://registry.npmjs.org/@multiformats/multiaddr/-/multiaddr-12.1.3.tgz",
@ -11584,9 +11659,9 @@
"dev": true "dev": true
}, },
"node_modules/fast-check": { "node_modules/fast-check": {
"version": "3.10.0", "version": "3.12.0",
"resolved": "https://registry.npmjs.org/fast-check/-/fast-check-3.10.0.tgz", "resolved": "https://registry.npmjs.org/fast-check/-/fast-check-3.12.0.tgz",
"integrity": "sha512-I2FldZwnCbcY6iL+H0rp9m4D+O3PotuFu9FasWjMCzUedYHMP89/37JbSt6/n7Yq/IZmJDW0B2h30sPYdzrfzw==", "integrity": "sha512-SqahE9mlL3+lhjJ39joMLwcj6F+24hfZdf/tchlNO8sHcTdrUUdA5P/ZbSFZM9Xpzs36XaneGwE0FWepm/zyOA==",
"funding": [ "funding": [
{ {
"type": "individual", "type": "individual",
@ -13115,9 +13190,9 @@
} }
}, },
"node_modules/ipaddr.js": { "node_modules/ipaddr.js": {
"version": "2.0.1", "version": "2.1.0",
"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.0.1.tgz", "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.1.0.tgz",
"integrity": "sha512-1qTgH9NG+IIJ4yfKs2e6Pp1bZg8wbDbKHT21HrLIeYBTRLgMYKnMTPAuI3Lcs61nfx5h1xlXnbJtH1kX5/d/ng==", "integrity": "sha512-LlbxQ7xKzfBusov6UMi4MFpEg0m+mAm9xyNGEduwXMEDuf4WfzB/RZwMVYEd7IKGvh4IUkEXYxtAVu9T3OelJQ==",
"engines": { "engines": {
"node": ">= 10" "node": ">= 10"
} }
@ -13805,11 +13880,11 @@
} }
}, },
"node_modules/it-pair": { "node_modules/it-pair": {
"version": "2.0.4", "version": "2.0.6",
"resolved": "https://registry.npmjs.org/it-pair/-/it-pair-2.0.4.tgz", "resolved": "https://registry.npmjs.org/it-pair/-/it-pair-2.0.6.tgz",
"integrity": "sha512-S3y3mTJ3muuxcHBGcIzNONofAN+G3iAgmSjS78qARkRWI2ImJXybjj0h52uSW+isgrJqIx2iFB/T8ZEBc8kDSw==", "integrity": "sha512-5M0t5RAcYEQYNG5BV7d7cqbdwbCAp5yLdzvkxsZmkuZsLbTdZzah6MQySYfaAQjNDCq6PUnDt0hqBZ4NwMfW6g==",
"dependencies": { "dependencies": {
"it-stream-types": "^1.0.3", "it-stream-types": "^2.0.1",
"p-defer": "^4.0.0" "p-defer": "^4.0.0"
}, },
"engines": { "engines": {
@ -13929,20 +14004,23 @@
} }
}, },
"node_modules/it-pushable": { "node_modules/it-pushable": {
"version": "3.1.3", "version": "3.2.1",
"resolved": "https://registry.npmjs.org/it-pushable/-/it-pushable-3.1.3.tgz", "resolved": "https://registry.npmjs.org/it-pushable/-/it-pushable-3.2.1.tgz",
"integrity": "sha512-f50iQ85HISS6DaWCyrqf9QJ6G/kQtKIMf9xZkgZgyOvxEQDfn8OfYcLXXquCqgoLboxQtAW1ZFZyFIAsLHDtJw==", "integrity": "sha512-sLFz2Q0oyDCJpTciZog7ipP4vSftfPy3e6JnH6YyztRa1XqkpGQaafK3Jw/JlfEBtCXfnX9uVfcpu3xpSAqCVQ==",
"dependencies": {
"p-defer": "^4.0.0"
},
"engines": { "engines": {
"node": ">=16.0.0", "node": ">=16.0.0",
"npm": ">=7.0.0" "npm": ">=7.0.0"
} }
}, },
"node_modules/it-reader": { "node_modules/it-reader": {
"version": "6.0.2", "version": "6.0.4",
"resolved": "https://registry.npmjs.org/it-reader/-/it-reader-6.0.2.tgz", "resolved": "https://registry.npmjs.org/it-reader/-/it-reader-6.0.4.tgz",
"integrity": "sha512-rQdVyml+r/2v8PQsPfJgf626tAkbA7NW1EF6zuucT2Ryy1U6YJtSuCJL8fKuDOyiR/mLzbfP0QQJlSeeoLph2A==", "integrity": "sha512-XCWifEcNFFjjBHtor4Sfaj8rcpt+FkY0L6WdhD578SCDhV4VUm7fCkF3dv5a+fTcfQqvN9BsxBTvWbYO6iCjTg==",
"dependencies": { "dependencies": {
"it-stream-types": "^1.0.4", "it-stream-types": "^2.0.1",
"uint8arraylist": "^2.0.0" "uint8arraylist": "^2.0.0"
}, },
"engines": { "engines": {
@ -13963,9 +14041,9 @@
} }
}, },
"node_modules/it-stream-types": { "node_modules/it-stream-types": {
"version": "1.0.5", "version": "2.0.1",
"resolved": "https://registry.npmjs.org/it-stream-types/-/it-stream-types-1.0.5.tgz", "resolved": "https://registry.npmjs.org/it-stream-types/-/it-stream-types-2.0.1.tgz",
"integrity": "sha512-I88Ka1nHgfX62e5mi5LLL+oueqz7Ltg0bUdtsUKDe9SoUqbQPf2Mp5kxDTe9pNhHQGs4pvYPAINwuZ1HAt42TA==", "integrity": "sha512-6DmOs5r7ERDbvS4q8yLKENcj6Yecr7QQTqWApbZdfAUTEC947d+PEha7PCqhm//9oxaLYL7TWRekwhoXl2s6fg==",
"engines": { "engines": {
"node": ">=16.0.0", "node": ">=16.0.0",
"npm": ">=7.0.0" "npm": ">=7.0.0"
@ -16095,9 +16173,15 @@
} }
}, },
"node_modules/nanoid": { "node_modules/nanoid": {
"version": "4.0.1", "version": "4.0.2",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-4.0.1.tgz", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-4.0.2.tgz",
"integrity": "sha512-udKGtCCUafD3nQtJg9wBhRP3KMbPglUsgV5JVsXhvyBs/oefqb4sqMEhKBBgqZncYowu58p1prsZQBYvAj/Gww==", "integrity": "sha512-7ZtY5KTCNheRGfEFxnedV5zFiORN1+Y1N6zvPTnHQd8ENUvfaDBeuJDZb2bN/oXwXxu3qkTXDzy57W5vAmDTBw==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/ai"
}
],
"bin": { "bin": {
"nanoid": "bin/nanoid.js" "nanoid": "bin/nanoid.js"
}, },
@ -16790,9 +16874,9 @@
} }
}, },
"node_modules/p-timeout": { "node_modules/p-timeout": {
"version": "6.1.1", "version": "6.1.2",
"resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-6.1.1.tgz", "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-6.1.2.tgz",
"integrity": "sha512-yqz2Wi4fiFRpMmK0L2pGAU49naSUaP23fFIQL2Y6YT+qDGPoFwpvgQM/wzc6F8JoenUkIlAFa4Ql7NguXBxI7w==", "integrity": "sha512-UbD77BuZ9Bc9aABo74gfXhNvzC9Tx7SxtHSh1fxvx3jTLLYvmVhiQZZrJzqqU0jKbN32kb5VOKiLEQI/3bIjgQ==",
"engines": { "engines": {
"node": ">=14.16" "node": ">=14.16"
}, },
@ -18488,13 +18572,13 @@
"dev": true "dev": true
}, },
"node_modules/private-ip": { "node_modules/private-ip": {
"version": "3.0.0", "version": "3.0.1",
"resolved": "https://registry.npmjs.org/private-ip/-/private-ip-3.0.0.tgz", "resolved": "https://registry.npmjs.org/private-ip/-/private-ip-3.0.1.tgz",
"integrity": "sha512-HkMBs4nMtrP+cvcw0bDi2BAZIGgiKI4Zq8Oc+dMqNBpHS8iGL4+WO/pRtc8Bwnv9rjnV0QwMDwEBymFtqv7Kww==", "integrity": "sha512-Ezc16ANuhSHmWAE6lbXUKburNzGpR0J5X0Zh5Um/PZ/s57Fp+HYqYe6BYPH2QbqKr/5WebfzJQ1jq6Kj5dbRmA==",
"dependencies": { "dependencies": {
"@chainsafe/is-ip": "^2.0.1", "@chainsafe/is-ip": "^2.0.1",
"ip-regex": "^5.0.0", "ip-regex": "^5.0.0",
"ipaddr.js": "^2.0.1", "ipaddr.js": "^2.1.0",
"netmask": "^2.0.2" "netmask": "^2.0.2"
}, },
"engines": { "engines": {
@ -18978,9 +19062,9 @@
} }
}, },
"node_modules/rate-limiter-flexible": { "node_modules/rate-limiter-flexible": {
"version": "2.4.1", "version": "2.4.2",
"resolved": "https://registry.npmjs.org/rate-limiter-flexible/-/rate-limiter-flexible-2.4.1.tgz", "resolved": "https://registry.npmjs.org/rate-limiter-flexible/-/rate-limiter-flexible-2.4.2.tgz",
"integrity": "sha512-dgH4T44TzKVO9CLArNto62hJOwlWJMLUjVVr/ii0uUzZXEXthDNr7/yefW5z/1vvHAfycc1tnuiYyNJ8CTRB3g==" "integrity": "sha512-rMATGGOdO1suFyf/mI5LYhts71g1sbdhmd6YvdiXO2gJnd42Tt6QS4JUKJKSWVVkMtBacm6l40FR7Trjo6Iruw=="
}, },
"node_modules/raw-body": { "node_modules/raw-body": {
"version": "2.5.1", "version": "2.5.1",
@ -22859,9 +22943,9 @@
"dev": true "dev": true
}, },
"node_modules/xml2js": { "node_modules/xml2js": {
"version": "0.4.23", "version": "0.6.2",
"resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.23.tgz", "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.6.2.tgz",
"integrity": "sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug==", "integrity": "sha512-T4rieHaC1EXcES0Kxxj4JWgaUQHDk+qwHcYOCFHfiwKz7tOVPLq7Hjq9dM1WCMhylqMEfP7hMcOIChvotiZegA==",
"dependencies": { "dependencies": {
"sax": ">=0.6.0", "sax": ">=0.6.0",
"xmlbuilder": "~11.0.0" "xmlbuilder": "~11.0.0"

View File

@ -5,13 +5,13 @@
"homepage": "/web-chat", "homepage": "/web-chat",
"dependencies": { "dependencies": {
"@libp2p/bootstrap": "^8.0.0", "@libp2p/bootstrap": "^8.0.0",
"@livechat/ui-kit": "^0.5.0-24",
"@multiformats/multiaddr": "11.0.7",
"@waku/react": "^0.0.3-7aeb24a", "@waku/react": "^0.0.3-7aeb24a",
"@waku/sdk": "^0.0.17",
"@waku/dns-discovery": "^0.0.15", "@waku/dns-discovery": "^0.0.15",
"@waku/interfaces": "^0.0.16", "@waku/interfaces": "^0.0.16",
"@waku/peer-exchange": "^0.0.14", "@waku/peer-exchange": "^0.0.14",
"@livechat/ui-kit": "^0.5.0-24",
"@multiformats/multiaddr": "11.0.7",
"@waku/sdk": "^0.0.17",
"process": "^0.11.10", "process": "^0.11.10",
"protons-runtime": "^3.1.0", "protons-runtime": "^3.1.0",
"react": "^17.0.2", "react": "^17.0.2",
@ -20,6 +20,7 @@
"uint8arraylist": "^2.3.3" "uint8arraylist": "^2.3.3"
}, },
"devDependencies": { "devDependencies": {
"@libp2p/interface-peer-store": "^2.0.4",
"@types/jest": "^27.5.2", "@types/jest": "^27.5.2",
"@types/node": "^17.0.45", "@types/node": "^17.0.45",
"@types/react": "^18.0.25", "@types/react": "^18.0.25",

View File

@ -155,9 +155,9 @@ export const usePeers = (params: UsePeersParams): UsePeersResults => {
}; };
listener(); // populate peers before event is invoked listener(); // populate peers before event is invoked
node.libp2p.addEventListener("peer:update", listener); node.libp2p.addEventListener("peer:identify", listener);
return () => { return () => {
node.libp2p.removeEventListener("peer:update", listener); node.libp2p.removeEventListener("peer:identify", listener);
}; };
}, [node, setPeers]); }, [node, setPeers]);