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 return null
} }
} }
const minificationPlugins = process.env.PRODUCTION ? [terser({ const minificationPlugins = process.env.PRODUCTION
? [terser({
module: true, module: true,
compress: { compress: {
hoist_vars: true, hoist_vars: true,
@ -58,7 +59,8 @@ const minificationPlugins = process.env.PRODUCTION ? [terser({
mangle: { mangle: {
toplevel: true toplevel: true
} }
})] : [] })]
: []
const plugins = [ const plugins = [
debugResolve, 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 // ignore messages that are not addressed to this conn, or from clients that are connected via broadcastchannel
return return
} }
const emitPeerChange = webrtcConns.has(data.from) ? () => {} : () => const emitPeerChange = webrtcConns.has(data.from)
? () => {}
: () =>
room.provider.emit('peers', [{ room.provider.emit('peers', [{
removed: [], removed: [],
added: [data.from], added: [data.from],