From ebb80c3e6c1d984767bce3c94627987b7616b437 Mon Sep 17 00:00:00 2001 From: Jeremy Kahn Date: Tue, 4 Oct 2022 09:14:34 -0500 Subject: [PATCH] chore: use trystero@0.11.4 --- package-lock.json | 14 +++++++------- package.json | 2 +- src/components/Room/Room.tsx | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index f42e4be..3e33a68 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "react-syntax-highlighter": "^15.5.0", "remark-gfm": "^3.0.1", "sass": "^1.54.3", - "trystero": "^0.11.3", + "trystero": "^0.11.4", "typeface-public-sans": "^1.1.13", "typeface-roboto": "^1.1.13", "typescript": "^4.7.4", @@ -22917,9 +22917,9 @@ "integrity": "sha512-c3zayb8/kWWpycWYg87P71E1S1ZL6b6IJxfb5fvsUgsf0S2MVGaDhDXXjDMpdCpfWXqptc+4mXwmiy1ypXqRAA==" }, "node_modules/trystero": { - "version": "0.11.3", - "resolved": "https://registry.npmjs.org/trystero/-/trystero-0.11.3.tgz", - "integrity": "sha512-UOHbONL7AE3ie5lQBJ6gflfETEuB7LCscmmq2LQcR21UTJAomtT5Xk8EpJFcHn/O4mQTlSCC6cF7pynydFygNQ==", + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/trystero/-/trystero-0.11.4.tgz", + "integrity": "sha512-x5SkPXlodoNhs1o2TLjarABfBLPtuR2iKovk3mtboCCr349eclpGrK3JPjs4Rp+coAMqC+l/ZcC39GCR9VCvlQ==", "dependencies": { "firebase": "^9.6.5", "ipfs-core": "0.9.0", @@ -41158,9 +41158,9 @@ "integrity": "sha512-c3zayb8/kWWpycWYg87P71E1S1ZL6b6IJxfb5fvsUgsf0S2MVGaDhDXXjDMpdCpfWXqptc+4mXwmiy1ypXqRAA==" }, "trystero": { - "version": "0.11.3", - "resolved": "https://registry.npmjs.org/trystero/-/trystero-0.11.3.tgz", - "integrity": "sha512-UOHbONL7AE3ie5lQBJ6gflfETEuB7LCscmmq2LQcR21UTJAomtT5Xk8EpJFcHn/O4mQTlSCC6cF7pynydFygNQ==", + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/trystero/-/trystero-0.11.4.tgz", + "integrity": "sha512-x5SkPXlodoNhs1o2TLjarABfBLPtuR2iKovk3mtboCCr349eclpGrK3JPjs4Rp+coAMqC+l/ZcC39GCR9VCvlQ==", "requires": { "firebase": "^9.6.5", "ipfs-core": "0.9.0", diff --git a/package.json b/package.json index 4557065..c7aa4f8 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "react-syntax-highlighter": "^15.5.0", "remark-gfm": "^3.0.1", "sass": "^1.54.3", - "trystero": "^0.11.3", + "trystero": "^0.11.4", "typeface-public-sans": "^1.1.13", "typeface-roboto": "^1.1.13", "typescript": "^4.7.4", diff --git a/src/components/Room/Room.tsx b/src/components/Room/Room.tsx index b6194df..fff4871 100644 --- a/src/components/Room/Room.tsx +++ b/src/components/Room/Room.tsx @@ -156,8 +156,8 @@ export function Room({ } } - receivePeerId((userId: string, peerId?: string) => { - if (peerId) upsertToPeerList({ peerId, userId }) + receivePeerId((userId: string, peerId: string) => { + upsertToPeerList({ peerId, userId }) }) receiveMessage(message => {