upgrade electron-builder to 22.10.5
This commit is contained in:
parent
a4ff7ae240
commit
25458be515
8 changed files with 426 additions and 246 deletions
|
@ -24,7 +24,7 @@ exports.autoOrientImage = (fileOrBlobOrURL, options = {}) => {
|
|||
canvasOrError => {
|
||||
if (canvasOrError.type === 'error') {
|
||||
const error = new Error('autoOrientImage: Failed to process image');
|
||||
error.cause = canvasOrError;
|
||||
error.originalError = canvasOrError;
|
||||
reject(error);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -230,7 +230,7 @@
|
|||
"cross-env": "5.2.0",
|
||||
"css-loader": "3.2.0",
|
||||
"electron": "12.0.3",
|
||||
"electron-builder": "22.9.1",
|
||||
"electron-builder": "22.10.5",
|
||||
"electron-mocha": "8.1.1",
|
||||
"electron-notarize": "0.1.1",
|
||||
"eslint": "7.7.0",
|
||||
|
|
|
@ -15,7 +15,7 @@ const loadImageData = async (input: Input): Promise<ImageData> => {
|
|||
const processError = new Error(
|
||||
'imageToBlurHash: Failed to process image'
|
||||
);
|
||||
processError.cause = canvasOrError;
|
||||
processError.originalError = canvasOrError;
|
||||
reject(processError);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -1916,14 +1916,6 @@
|
|||
"reasonCategory": "falseMatch",
|
||||
"updated": "2021-04-05T20:48:36.065Z"
|
||||
},
|
||||
{
|
||||
"rule": "DOM-innerHTML",
|
||||
"path": "node_modules/@electron/get/node_modules/@sindresorhus/is/dist/index.js",
|
||||
"line": " 'innerHTML',",
|
||||
"lineNumber": 177,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2020-02-18T22:49:03.644Z"
|
||||
},
|
||||
{
|
||||
"rule": "eval",
|
||||
"path": "node_modules/@protobufjs/inquire/index.js",
|
||||
|
@ -3038,63 +3030,6 @@
|
|||
"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",
|
||||
|
@ -17120,4 +17055,4 @@
|
|||
"updated": "2021-01-08T15:46:32.143Z",
|
||||
"reasonDetail": "Doesn't manipulate the DOM. This is just a function."
|
||||
}
|
||||
]
|
||||
]
|
||||
|
|
|
@ -122,6 +122,7 @@ const excludedFilesRegexps = [
|
|||
'^node_modules/@svgr/.+',
|
||||
'^node_modules/@types/.+',
|
||||
'^node_modules/@webassemblyjs/.+',
|
||||
'^node_modules/@electron/.+',
|
||||
'^node_modules/ajv/.+',
|
||||
'^node_modules/amdefine/.+',
|
||||
'^node_modules/ansi-colors/.+',
|
||||
|
@ -153,6 +154,7 @@ const excludedFilesRegexps = [
|
|||
'^node_modules/csso/.+',
|
||||
'^node_modules/degenerator/.+',
|
||||
'^node_modules/detect-port-alt/.+',
|
||||
'^node_modules/dmg-builder/.+',
|
||||
'^node_modules/electron-builder/.+',
|
||||
'^node_modules/electron-chromedriver/.+',
|
||||
'^node_modules/electron-icon-maker/.+',
|
||||
|
@ -207,6 +209,7 @@ const excludedFilesRegexps = [
|
|||
'^node_modules/npm-run-all/.+',
|
||||
'^node_modules/nsp/.+',
|
||||
'^node_modules/nyc/.+',
|
||||
'^node_modules/plist/.+',
|
||||
'^node_modules/phantomjs-prebuilt/.+',
|
||||
'^node_modules/postcss.+',
|
||||
'^node_modules/preserve/.+',
|
||||
|
|
2
ts/window.d.ts
vendored
2
ts/window.d.ts
vendored
|
@ -563,7 +563,7 @@ declare global {
|
|||
// We want to extend `Error`, so we need an interface.
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
interface Error {
|
||||
cause?: Event;
|
||||
originalError?: Event;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue