diff --git a/package.json b/package.json index bcf07e8c..98380517 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,7 @@ "markdown-it-emoji": "^2.0.0", "markdown-it-sub": "^1.0.0", "markdown-it-sup": "^1.0.0", - "mediasoup-client": "3.6.36", + "mediasoup-client": "npm:@insertish/mediasoup-client@3.6.36-esnext", "preact-context-menu": "^0.1.5", "preact-i18n": "^2.4.0-preactx", "prettier": "^2.3.1", diff --git a/src/lib/vortex/VoiceClient.ts b/src/lib/vortex/VoiceClient.ts index f0fede6f..f5e81495 100644 --- a/src/lib/vortex/VoiceClient.ts +++ b/src/lib/vortex/VoiceClient.ts @@ -5,9 +5,11 @@ import { Device, Producer, Transport, - UnsupportedError, } from "mediasoup-client/lib/types"; +import { types } from 'mediasoup-client'; +const UnsupportedError = types.UnsupportedError; + import Signaling from "./Signaling"; import { ProduceType, diff --git a/tsconfig.json b/tsconfig.json index 0c343053..8f108763 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "ESNext", "lib": ["DOM", "DOM.Iterable", "ESNext", "WebWorker"], - "allowJs": false, + "allowJs": true, "skipLibCheck": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, diff --git a/yarn.lock b/yarn.lock index c5877243..c0dbeeae 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3023,10 +3023,10 @@ mdurl@^1.0.1: resolved "https://registry.yarnpkg.com/mdurl/-/mdurl-1.0.1.tgz#fe85b2ec75a59037f2adfec100fd6c601761152e" integrity sha1-/oWy7HWlkDfyrf7BAP1sYBdhFS4= -mediasoup-client@3.6.36: - version "3.6.36" - resolved "https://registry.yarnpkg.com/mediasoup-client/-/mediasoup-client-3.6.36.tgz#b5f68a573ac0cc6901284142a8dc9e2cff2fd8de" - integrity sha512-EDYLxdLj2RvXXL3M07I471FND4ALEwMDYdNNjNth1w2bnyq7IVx3LGUytRKKzxh0APSZB93eG/4me5kq1wa1Sg== +"mediasoup-client@npm:@insertish/mediasoup-client@3.6.36-esnext": + version "3.6.36-esnext" + resolved "https://registry.yarnpkg.com/@insertish/mediasoup-client/-/mediasoup-client-3.6.36-esnext.tgz#4a59df4a11359fe6dc768c11d04b59478c34baf6" + integrity sha512-L9uh5WuqqlR4Gtcm5Rs/36ERCqOSQfspOaSPS82/AWSrcvvVzTF8kjKLu/m2CefLJ75Cm16k4O8U84HJ0B0mwg== dependencies: "@types/debug" "^4.1.6" "@types/events" "^3.0.0"