update dependencies & lint
This commit is contained in:
parent
3037783947
commit
cc597be93b
3 changed files with 4827 additions and 670 deletions
5441
package-lock.json
generated
5441
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -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,
|
||||||
|
|
|
@ -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],
|
||||||
|
|
Loading…
Reference in a new issue