@daisy/ace-axe-runner-electron 1.3.3 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cli.js CHANGED
@@ -20,9 +20,10 @@ const protocol = electron.protocol;
20
20
  // https://github.com/electron/electron/issues/20702
21
21
  // --in-process-gpu ?
22
22
  // app.commandLine.appendSwitch("in-process-gpu");
23
- app.commandLine.appendSwitch("disable-gpu");
24
- app.disableHardwareAcceleration();
25
- app.commandLine.appendSwitch("disable-software-rasterizer");
23
+ // ------------------------------------ see patchElectronJestRunner4
24
+ // app.commandLine.appendSwitch("disable-gpu");
25
+ // app.disableHardwareAcceleration();
26
+ // app.commandLine.appendSwitch("disable-software-rasterizer");
26
27
 
27
28
  const EventEmitter = require('events');
28
29
  class ElectronMockMainRendererEmitter extends EventEmitter {}
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@daisy/ace-axe-runner-electron",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "engines": {
5
- "node": ">=12.0.0",
5
+ "node": ">=20.0.0",
6
6
  "yarn": "^1.22.0",
7
- "npm": ">=6.0.0"
7
+ "npm": ">=10.0.0"
8
8
  },
9
9
  "description": "Electron-based Axe runner for Ace",
10
10
  "author": {
@@ -23,7 +23,7 @@
23
23
  "license": "MIT",
24
24
  "main": "lib/index.js",
25
25
  "dependencies": {
26
- "@daisy/ace-cli-shared": "1.3.3",
26
+ "@daisy/ace-cli-shared": "1.3.4",
27
27
  "mime-types": "^2.1.35",
28
28
  "uuid": "^8.3.2"
29
29
  },
package/src/cli.js CHANGED
@@ -20,9 +20,10 @@ const protocol = electron.protocol;
20
20
  // https://github.com/electron/electron/issues/20702
21
21
  // --in-process-gpu ?
22
22
  // app.commandLine.appendSwitch("in-process-gpu");
23
- app.commandLine.appendSwitch("disable-gpu");
24
- app.disableHardwareAcceleration();
25
- app.commandLine.appendSwitch("disable-software-rasterizer");
23
+ // ------------------------------------ see patchElectronJestRunner4
24
+ // app.commandLine.appendSwitch("disable-gpu");
25
+ // app.disableHardwareAcceleration();
26
+ // app.commandLine.appendSwitch("disable-software-rasterizer");
26
27
 
27
28
  const EventEmitter = require('events');
28
29
  class ElectronMockMainRendererEmitter extends EventEmitter {}
@@ -91,7 +92,7 @@ app.on('ready', async () => {
91
92
  // // // win.setPosition(Math.round(sz[0] * .10), Math.round(sz[1] * .10));
92
93
  // // win.setPosition(Math.round(sz0*0.5-win.getSize()[0]*0.5), Math.round(sz1*0.5-win.getSize()[1]*0.5));
93
94
  // // win.show();
94
-
95
+
95
96
  // win.loadURL(`file://${__dirname}/index.html`);
96
97
  // win.on('closed', function () {
97
98
  // if (LOG_DEBUG) console.log(`${ACE_LOG_PREFIX} axeRunner win closed.`);