update dependencies & lint

This commit is contained in:
Kevin Jahns 2022-04-24 15:01:34 +02:00
parent 3037783947
commit cc597be93b
3 changed files with 4827 additions and 670 deletions

5441
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -45,7 +45,8 @@ const debugResolve = {
return null
}
}
const minificationPlugins = process.env.PRODUCTION ? [terser({
const minificationPlugins = process.env.PRODUCTION
? [terser({
module: true,
compress: {
hoist_vars: true,
@ -58,7 +59,8 @@ const minificationPlugins = process.env.PRODUCTION ? [terser({
mangle: {
toplevel: true
}
})] : []
})]
: []
const plugins = [
debugResolve,

View file

@ -498,7 +498,9 @@ export class SignalingConn extends ws.WebsocketClient {
// ignore messages that are not addressed to this conn, or from clients that are connected via broadcastchannel
return
}
const emitPeerChange = webrtcConns.has(data.from) ? () => {} : () =>
const emitPeerChange = webrtcConns.has(data.from)
? () => {}
: () =>
room.provider.emit('peers', [{
removed: [],
added: [data.from],