@daisy/ace-axe-runner-electron 1.3.3-alpha.5 → 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/lib/init.js CHANGED
@@ -54,10 +54,10 @@ const ACE_ELECTRON_HTTP_PROTOCOL = "acehttps";
54
54
 
55
55
  // NO_HTTP_REMOVE
56
56
  // const express = require('express');
57
- // const portfinder = require('portfinder');
57
+ // const portfinder = requir_e('portfinder');
58
58
  // // const http = require('http');
59
59
  // const https = require('https');
60
- // const generateSelfSignedData = require('./selfsigned').generateSelfSignedData;
60
+ // const generateSelfSignedData = requir_e('./selfsigned').generateSelfSignedData;
61
61
  // let expressApp;
62
62
  // let httpServer;
63
63
  // let port;
package/lib/selfsigned.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // NO_HTTP_REMOVE
2
- // const selfsigned = require('selfsigned');
2
+ // const selfsigned = requir_e('selfsigned');
3
3
  // const { v4: uuidv4 } = require('uuid');
4
4
 
5
5
  // function generateSelfSignedData() {
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@daisy/ace-axe-runner-electron",
3
- "version": "1.3.3-alpha.5",
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,12 +23,12 @@
23
23
  "license": "MIT",
24
24
  "main": "lib/index.js",
25
25
  "dependencies": {
26
- "@daisy/ace-cli-shared": "1.3.3-alpha.5",
26
+ "@daisy/ace-cli-shared": "1.3.4",
27
27
  "mime-types": "^2.1.35",
28
28
  "uuid": "^8.3.2"
29
29
  },
30
30
  "devDependencies": {
31
- "electron": "^33.2.1"
31
+ "electron": "^34.0.2"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"
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.`);
package/src/init.js CHANGED
@@ -54,10 +54,10 @@ const ACE_ELECTRON_HTTP_PROTOCOL = "acehttps";
54
54
 
55
55
  // NO_HTTP_REMOVE
56
56
  // const express = require('express');
57
- // const portfinder = require('portfinder');
57
+ // const portfinder = requir_e('portfinder');
58
58
  // // const http = require('http');
59
59
  // const https = require('https');
60
- // const generateSelfSignedData = require('./selfsigned').generateSelfSignedData;
60
+ // const generateSelfSignedData = requir_e('./selfsigned').generateSelfSignedData;
61
61
  // let expressApp;
62
62
  // let httpServer;
63
63
  // let port;
package/src/selfsigned.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // NO_HTTP_REMOVE
2
- // const selfsigned = require('selfsigned');
2
+ // const selfsigned = requir_e('selfsigned');
3
3
  // const { v4: uuidv4 } = require('uuid');
4
4
 
5
5
  // function generateSelfSignedData() {