Upgrade to Electron 11
This commit is contained in:
parent
62ce308fe1
commit
c8b551edab
10 changed files with 435 additions and 274 deletions
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2020 Signal Messenger, LLC
|
||||
// Copyright 2020-2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
/* eslint-disable no-await-in-loop */
|
||||
|
@ -250,9 +250,10 @@ const channelsAsUnknown = fromPairs(
|
|||
|
||||
const channels: ServerInterface = channelsAsUnknown;
|
||||
|
||||
// When IPC arguments are prepared for the cross-process send, they are JSON.stringified.
|
||||
// We can't send ArrayBuffers or BigNumbers (what we get from proto library for dates),
|
||||
// We also cannot send objects with function-value keys, like what protobufjs gives us.
|
||||
// When IPC arguments are prepared for the cross-process send, they are serialized with
|
||||
// the [structured clone algorithm][0]. We can't send some values, like BigNumbers and
|
||||
// functions (both of which come from protobufjs), so we clean them up.
|
||||
// [0]: https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm
|
||||
function _cleanData(data: any, path = 'root') {
|
||||
if (data === null || data === undefined) {
|
||||
window.log.warn(`_cleanData: null or undefined value at path ${path}`);
|
||||
|
@ -279,7 +280,6 @@ function _cleanData(data: any, path = 'root') {
|
|||
}
|
||||
|
||||
if (isFunction(value)) {
|
||||
// To prepare for Electron v9 IPC, we need to take functions off of any object
|
||||
delete data[key];
|
||||
} else if (isFunction(value.toNumber)) {
|
||||
data[key] = value.toNumber();
|
||||
|
|
|
@ -2644,6 +2644,63 @@
|
|||
"updated": "2020-08-26T00:10:28.628Z",
|
||||
"reasonDetail": "isn't jquery"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/dmg-builder/node_modules/js-yaml/dist/js-yaml.js",
|
||||
"line": " // Avoid code execution in load() via toString property",
|
||||
"lineNumber": 1307,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2021-01-21T16:16:34.352Z",
|
||||
"reasonDetail": "This is a comment."
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/dmg-builder/node_modules/js-yaml/dist/js-yaml.js",
|
||||
"line": "function load(input, options) {",
|
||||
"lineNumber": 2613,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2021-01-21T16:16:34.352Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/dmg-builder/node_modules/js-yaml/dist/js-yaml.js",
|
||||
"line": " return load(input, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));",
|
||||
"lineNumber": 2637,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2021-01-21T16:16:34.352Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/dmg-builder/node_modules/js-yaml/dist/js-yaml.min.js",
|
||||
"lineNumber": 1,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2021-01-21T16:16:34.352Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/dmg-builder/node_modules/js-yaml/lib/js-yaml/loader.js",
|
||||
"line": " // Avoid code execution in load() via toString property",
|
||||
"lineNumber": 307,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2021-01-21T16:16:34.352Z",
|
||||
"reasonDetail": "This is a comment."
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/dmg-builder/node_modules/js-yaml/lib/js-yaml/loader.js",
|
||||
"line": "function load(input, options) {",
|
||||
"lineNumber": 1613,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2021-01-21T16:16:34.352Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/dmg-builder/node_modules/js-yaml/lib/js-yaml/loader.js",
|
||||
"line": " return load(input, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));",
|
||||
"lineNumber": 1637,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2021-01-21T16:16:34.352Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-wrap(",
|
||||
"path": "node_modules/duplexer3/index.js",
|
||||
|
@ -3038,6 +3095,14 @@
|
|||
"reasonCategory": "falseMatch",
|
||||
"updated": "2018-09-15T00:38:04.183Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-wrap(",
|
||||
"path": "node_modules/filelist/index.js",
|
||||
"line": " wrap(ARRAY_METHODS[i]);",
|
||||
"lineNumber": 269,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2021-01-21T16:16:34.352Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/find-cache-dir/node_modules/pify/index.js",
|
||||
|
@ -10262,35 +10327,43 @@
|
|||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/node-pre-gyp/node_modules/debug/src/browser.js",
|
||||
"line": "function load() {",
|
||||
"lineNumber": 150,
|
||||
"path": "node_modules/node-pre-gyp/node_modules/debug/dist/debug.js",
|
||||
"line": " createDebug.enable(createDebug.load());",
|
||||
"lineNumber": 694,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-04-30T22:35:27.860Z"
|
||||
"updated": "2021-01-21T16:16:34.352Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/node-pre-gyp/node_modules/debug/dist/debug.js",
|
||||
"line": " function load() {",
|
||||
"lineNumber": 828,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2021-01-21T16:16:34.352Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/node-pre-gyp/node_modules/debug/src/browser.js",
|
||||
"line": "exports.enable(load());",
|
||||
"lineNumber": 168,
|
||||
"line": "function load() {",
|
||||
"lineNumber": 129,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-04-30T22:35:27.860Z"
|
||||
"updated": "2021-01-21T16:16:34.352Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/node-pre-gyp/node_modules/debug/src/common.js",
|
||||
"line": " createDebug.enable(createDebug.load());",
|
||||
"lineNumber": 244,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2021-01-21T16:16:34.352Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/node-pre-gyp/node_modules/debug/src/node.js",
|
||||
"line": "function load() {",
|
||||
"lineNumber": 156,
|
||||
"lineNumber": 135,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-04-30T22:35:27.860Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/node-pre-gyp/node_modules/debug/src/node.js",
|
||||
"line": "exports.enable(load());",
|
||||
"lineNumber": 248,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-04-30T22:35:27.860Z"
|
||||
"updated": "2021-01-21T16:16:34.352Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue