feat: electron upgrade : 8.2.3 => 10.1.3

This commit is contained in:
Amadou Ada DIENE
2020-09-29 17:39:29 +02:00
parent 66c7d033ac
commit 0924b4a4bd
3 changed files with 7 additions and 4 deletions

6
package-lock.json generated
View File

@@ -7934,9 +7934,9 @@
} }
}, },
"electron": { "electron": {
"version": "8.5.2", "version": "10.1.3",
"resolved": "https://registry.npmjs.org/electron/-/electron-8.5.2.tgz", "resolved": "https://registry.npmjs.org/electron/-/electron-10.1.3.tgz",
"integrity": "sha512-VU+zZnmCzxoZ5UfBg2UGVm+nyxlNlQOQkotMLfk7FCtnkIOhX+sosl618OCxUWjOvPc+Mpg5MEkEmxPU5ziW4Q==", "integrity": "sha512-CR8LrlG47MdAp317SQ3vGYa2o2cIMdMSMPYH46OVitFLk35dwE9fn3VqvhUIXhCHYcNWIAPzMhkVHpkoFdKWuw==",
"dev": true, "dev": true,
"requires": { "requires": {
"@electron/get": "^1.0.1", "@electron/get": "^1.0.1",

View File

@@ -70,7 +70,7 @@
"cpy-cli": "^3.1.0", "cpy-cli": "^3.1.0",
"cross-env": "^7.0.2", "cross-env": "^7.0.2",
"del-cli": "^3.0.0", "del-cli": "^3.0.0",
"electron": "^8.2.3", "electron": "^10.1.3",
"electron-builder": "^22.5.1", "electron-builder": "^22.5.1",
"electron-webpack": "^2.8.2", "electron-webpack": "^2.8.2",
"fs-extra": "^9.0.0", "fs-extra": "^9.0.0",

View File

@@ -31,6 +31,9 @@ export class Window {
// Isolate window context to protect against prototype pollution // Isolate window context to protect against prototype pollution
// except in e2e test when that access is required by Spectron // except in e2e test when that access is required by Spectron
contextIsolation: global.gConfig.isContextIsolation, contextIsolation: global.gConfig.isContextIsolation,
// Ensure that JS values can't unsafely cross between worlds
// when using contextIsolation
worldSafeExecuteJavaScript: global.gConfig.isContextIsolation,
// Disable the remote module to enhance security // Disable the remote module to enhance security
// except in e2e test when that access is required by Spectron // except in e2e test when that access is required by Spectron
enableRemoteModule: global.gConfig.isEnableRemoteModule, enableRemoteModule: global.gConfig.isEnableRemoteModule,