Skip to content

Commit ad13de3

Browse files
committed
update electron to v13
1 parent aad8141 commit ad13de3

14 files changed

+25
-20
lines changed

.husky/.gitignore

-1
This file was deleted.

js/electron.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,12 @@ app.on("ready", function () {
102102

103103
// Quit when all windows are closed.
104104
app.on("window-all-closed", function () {
105-
createWindow();
105+
if (process.env.JEST_WORKER_ID !== undefined) {
106+
// if we are running with jest
107+
app.quit();
108+
} else {
109+
createWindow();
110+
};
106111
});
107112

108113
app.on("activate", function () {

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -46,32 +46,32 @@
4646
"homepage": "https://magicmirror.builders",
4747
"devDependencies": {
4848
"eslint-config-prettier": "^8.3.0",
49-
"eslint-plugin-jsdoc": "^35.4.0",
49+
"eslint-plugin-jsdoc": "^35.4.1",
5050
"eslint-plugin-prettier": "^3.4.0",
5151
"eslint-plugin-jest": "^24.3.6",
5252
"express-basic-auth": "^1.2.0",
53-
"husky": "^6.0.0",
54-
"jest": "27.0.5",
53+
"husky": "^7.0.0",
54+
"jest": "27.0.6",
5555
"jsdom": "^16.6.0",
5656
"lodash": "^4.17.21",
5757
"nyc": "^15.1.0",
58-
"prettier": "^2.3.1",
58+
"prettier": "^2.3.2",
5959
"pretty-quick": "^3.1.1",
6060
"sinon": "^11.1.1",
61-
"spectron": "^13.0.0",
61+
"spectron": "^15.0.0",
6262
"stylelint": "^13.13.1",
6363
"stylelint-config-prettier": "^8.0.2",
6464
"stylelint-config-standard": "^22.0.0",
6565
"stylelint-prettier": "^1.2.0"
6666
},
6767
"optionalDependencies": {
68-
"electron": "^11.4.9"
68+
"electron": "^13.1.5"
6969
},
7070
"dependencies": {
7171
"colors": "^1.4.0",
7272
"console-stamp": "^3.0.2",
7373
"digest-fetch": "^1.2.0",
74-
"eslint": "^7.29.0",
74+
"eslint": "^7.30.0",
7575
"express": "^4.17.1",
7676
"express-ipfilter": "^1.2.0",
7777
"feedme": "^2.0.2",

tests/configs/env.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ let config = {
1313
electronOptions: {
1414
webPreferences: {
1515
nodeIntegration: true,
16-
enableRemoteModule: true
16+
enableRemoteModule: true,
17+
contextIsolation: false
1718
}
1819
},
1920

tests/configs/modules/clock/clock_12hr.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let config = {
1313
electronOptions: {
1414
webPreferences: {
1515
nodeIntegration: true,
16-
enableRemoteModule: true
16+
enableRemoteModule: true, contextIsolation: false
1717
}
1818
},
1919

tests/configs/modules/clock/clock_24hr.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let config = {
1313
electronOptions: {
1414
webPreferences: {
1515
nodeIntegration: true,
16-
enableRemoteModule: true
16+
enableRemoteModule: true, contextIsolation: false
1717
}
1818
},
1919

tests/configs/modules/clock/clock_analog.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ let config = {
1212
electronOptions: {
1313
webPreferences: {
1414
nodeIntegration: true,
15-
enableRemoteModule: true
15+
enableRemoteModule: true, contextIsolation: false
1616
}
1717
},
1818

tests/configs/modules/clock/clock_displaySeconds_false.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let config = {
1313
electronOptions: {
1414
webPreferences: {
1515
nodeIntegration: true,
16-
enableRemoteModule: true
16+
enableRemoteModule: true, contextIsolation: false
1717
}
1818
},
1919

tests/configs/modules/clock/clock_showPeriodUpper.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let config = {
1313
electronOptions: {
1414
webPreferences: {
1515
nodeIntegration: true,
16-
enableRemoteModule: true
16+
enableRemoteModule: true, contextIsolation: false
1717
}
1818
},
1919

tests/configs/modules/clock/clock_showWeek.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let config = {
1313
electronOptions: {
1414
webPreferences: {
1515
nodeIntegration: true,
16-
enableRemoteModule: true
16+
enableRemoteModule: true, contextIsolation: false
1717
}
1818
},
1919

tests/configs/modules/clock/es/clock_12hr.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let config = {
1313
electronOptions: {
1414
webPreferences: {
1515
nodeIntegration: true,
16-
enableRemoteModule: true
16+
enableRemoteModule: true, contextIsolation: false
1717
}
1818
},
1919

tests/configs/modules/clock/es/clock_24hr.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let config = {
1313
electronOptions: {
1414
webPreferences: {
1515
nodeIntegration: true,
16-
enableRemoteModule: true
16+
enableRemoteModule: true, contextIsolation: false
1717
}
1818
},
1919

tests/configs/modules/clock/es/clock_showPeriodUpper.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let config = {
1313
electronOptions: {
1414
webPreferences: {
1515
nodeIntegration: true,
16-
enableRemoteModule: true
16+
enableRemoteModule: true, contextIsolation: false
1717
}
1818
},
1919

tests/configs/modules/clock/es/clock_showWeek.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ let config = {
1414
electronOptions: {
1515
webPreferences: {
1616
nodeIntegration: true,
17-
enableRemoteModule: true
17+
enableRemoteModule: true, contextIsolation: false
1818
}
1919
},
2020

0 commit comments

Comments
 (0)