@overwolf/ow-electron 39.6.1 → 39.8.10-beta.0

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/README.md CHANGED
@@ -7,7 +7,7 @@ We currently have these npm packages:
7
7
  few features to it
8
8
  - [@overwolf/ow-electron-builder](https://www.npmjs.com/package/@overwolf/ow-electron-builder) is a packaged based on electron-builder which
9
9
  supports building ow-electron
10
- - [@overwolf/electron-is-overwolf](https://www.npmjs.com/package/@overwolf/electron-is-overwolf) - similar to
10
+ - @overwolf/electron-is-overwolf - similar to
11
11
  [electron-is-dev](https://www.npmjs.com/package/electron-is-dev)
12
12
 
13
13
  There is no problem that both packages reside side-by-side with the original
package/checksums.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
- "electron-api.json": "2e1ec8568f4fda21dc4bb7231cdb0427fa31bb03c4bc39f8aa36659894f2d23e",
3
- "electron.d.ts": "b7870765052a38234a16e2b3f5b4b011e474b690802b29f4a3bc3369dcde991d",
4
- "ow-electron-v39.6.1-darwin-arm64.zip": "d313c36f7e0180e94d72134a260c91d2ed2b14f2a2348bbbcd06496ae5ae1719",
5
- "ow-electron-v39.6.1-darwin-x64.zip": "57743d4e43f31788e5508b0beacb00b9d8390b71862a7ee6df169fe3e5968806",
6
- "ow-electron-v39.6.1-linux-arm64.zip": "92b503dee0f6d8eba97be655280fef6ec70bdf36252d34fe6cf0986b5d35a000",
7
- "ow-electron-v39.6.1-linux-armv7l.zip": "ee34896d1317f1572ed4f3ed8eb1719f599f250d442fc6afb6ec40091c4f4cdc",
8
- "ow-electron-v39.6.1-linux-x64.zip": "ac22155b95e37b7762067b1a13b1993d7a5e57536a67fe4bd67f051b5f024323",
9
- "ow-electron-v39.6.1-win32-arm64.zip": "22b96aca4cf8f7823b98e3b20b6131e521e0100c5cd03ab76f106eefbd0399cf",
10
- "ow-electron-v39.6.1-win32-ia32.zip": "2b30e5bc923fff1443e2a4d1971cb9b26f61bd6a454cfbb991042457bab4d623",
11
- "ow-electron-v39.6.1-win32-x64.zip": "9ee3402432e6b27d16019d6bcc1ebbde737b8afeb867af8bd4e95e9bd6f25107"
2
+ "electron-api.json": "d3c769853e7cac1098c3e33b0f5743ad3f890cf5003e738abb27aa7e9157d944",
3
+ "electron.d.ts": "a332d5d3fafb45e224218d44c5c471d215dca76889956d5f36f59ec0f8716d10",
4
+ "ow-electron-v39.8.10-beta.0-darwin-arm64.zip": "469a72f74a0a52de3555391324d4fc6a4cef26d920208603c2502aedcc92a329",
5
+ "ow-electron-v39.8.10-beta.0-darwin-x64.zip": "f3e00cf49ca8779bab61917d78c2a5de630e58945753c89a1f1fe5c6a7cc5ad4",
6
+ "ow-electron-v39.8.10-beta.0-linux-arm64.zip": "aa90bc87e7f3452831aa4687e71d2bfb0d1c08ffef9533472383dc3d361ae758",
7
+ "ow-electron-v39.8.10-beta.0-linux-armv7l.zip": "6e4d0d96b5ed98b9973868b8ea6234a5511cae866f15e586be7003a753b7afcc",
8
+ "ow-electron-v39.8.10-beta.0-linux-x64.zip": "16b0450e045a634067303a27896ba38f98f663b5fbdf5e8d6cb181baff249fff",
9
+ "ow-electron-v39.8.10-beta.0-win32-arm64.zip": "bff199e35ef75181dd65db2386df20444e876b8adc604d0778099a2baa3dc0b7",
10
+ "ow-electron-v39.8.10-beta.0-win32-ia32.zip": "9d5957e472682389b732e611854fba8a189590fd36b04385c045df1085baad8f",
11
+ "ow-electron-v39.8.10-beta.0-win32-x64.zip": "2e3601b11bc2c696127cd5ce708b08b8e2d324a5cc9e3b74cac944e23e2784ac"
12
12
  }
package/cli.js CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const electron = require('./');
4
-
5
3
  const proc = require('child_process');
6
4
 
5
+ const electron = require('./');
6
+
7
7
  const child = proc.spawn(electron, process.argv.slice(2), { stdio: 'inherit', windowsHide: false });
8
8
  child.on('close', function (code, signal) {
9
9
  if (code === null) {
package/electron.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 39.6.0
1
+ // Type definitions for Electron 39.8.10
2
2
  // Project: http://electronjs.org/
3
3
  // Definitions by: The Electron Team <https://github.com/electron/electron>
4
4
  // Definitions: https://github.com/electron/typescript-definitions
@@ -517,7 +517,10 @@ declare namespace Electron {
517
517
  callback: (username?: string, password?: string) => void) => void): this;
518
518
  /**
519
519
  * Emitted when the user clicks the native macOS new tab button. The new tab button
520
- * is only visible if the current `BrowserWindow` has a `tabbingIdentifier`
520
+ * is only visible if the current `BrowserWindow` has a `tabbingIdentifier`.
521
+ *
522
+ * You must create a window in this handler in order for macOS tabbing to work as
523
+ * expected.
521
524
  *
522
525
  * @platform darwin
523
526
  */
@@ -1207,7 +1210,7 @@ declare namespace Electron {
1207
1210
  * indicates that the app should restore the windows that were open the last time
1208
1211
  * the app was closed. This setting is not available on MAS builds or on macOS 13
1209
1212
  * and up.
1210
- * * `status` string _macOS_ - can be one of `not-registered`, `enabled`,
1213
+ * * `status` string _macOS_ - can be `not-registered`, `enabled`,
1211
1214
  * `requires-approval`, or `not-found`.
1212
1215
  * * `executableWillLaunchAtLogin` boolean _Windows_ - `true` if app is set to open
1213
1216
  * at login and its run key is not deactivated. This differs from `openAtLogin` as
@@ -1219,7 +1222,7 @@ declare namespace Electron {
1219
1222
  * registry entry.
1220
1223
  * * `args` string[] _Windows_ - the command-line arguments to pass to the
1221
1224
  * executable.
1222
- * * `scope` string _Windows_ - one of `user` or `machine`. Indicates whether the
1225
+ * * `scope` string _Windows_ - can be `user` or `machine`. Indicates whether the
1223
1226
  * registry entry is under `HKEY_CURRENT USER` or `HKEY_LOCAL_MACHINE`.
1224
1227
  * * `enabled` boolean _Windows_ - `true` if the app registry key is startup
1225
1228
  * approved and therefore shows as `enabled` in Task Manager and Windows settings.
@@ -2185,7 +2188,11 @@ declare namespace Electron {
2185
2188
  */
2186
2189
  removeListener(event: 'moved', listener: () => void): this;
2187
2190
  /**
2188
- * Emitted when the native new tab button is clicked.
2191
+ * Emitted when the user clicks the native macOS new tab button. The new tab button
2192
+ * is only visible if the current `BrowserWindow` has a `tabbingIdentifier`.
2193
+ *
2194
+ * You must create a window in this handler in order for macOS tabbing to work as
2195
+ * expected.
2189
2196
  *
2190
2197
  * @platform darwin
2191
2198
  */
@@ -4400,7 +4407,11 @@ declare namespace Electron {
4400
4407
  */
4401
4408
  removeListener(event: 'moved', listener: () => void): this;
4402
4409
  /**
4403
- * Emitted when the native new tab button is clicked.
4410
+ * Emitted when the user clicks the native macOS new tab button. The new tab button
4411
+ * is only visible if the current `BrowserWindow` has a `tabbingIdentifier`.
4412
+ *
4413
+ * You must create a window in this handler in order for macOS tabbing to work as
4414
+ * expected.
4404
4415
  *
4405
4416
  * @platform darwin
4406
4417
  */
@@ -4422,7 +4433,11 @@ declare namespace Electron {
4422
4433
  */
4423
4434
  removeListener(event: 'new-window-for-tab', listener: () => void): this;
4424
4435
  /**
4425
- * Emitted when the native new tab button is clicked.
4436
+ * Emitted when the user clicks the native macOS new tab button. The new tab button
4437
+ * is only visible if the current `BrowserWindow` has a `tabbingIdentifier`.
4438
+ *
4439
+ * You must create a window in this handler in order for macOS tabbing to work as
4440
+ * expected.
4426
4441
  *
4427
4442
  * @platform darwin
4428
4443
  */
@@ -11589,6 +11604,8 @@ declare namespace Electron {
11589
11604
  /**
11590
11605
  * The current absolute position of the mouse pointer.
11591
11606
  *
11607
+ * Not supported on Wayland (Linux).
11608
+ *
11592
11609
  * > [!NOTE] The return value is a DIP point, not a screen physical point.
11593
11610
  */
11594
11611
  getCursorScreenPoint(): Point;
@@ -21087,11 +21104,11 @@ declare namespace Electron {
21087
21104
  */
21088
21105
  restoreState: boolean;
21089
21106
  /**
21090
- * can be one of `not-registered`, `enabled`, `requires-approval`, or `not-found`.
21107
+ * can be `not-registered`, `enabled`, `requires-approval`, or `not-found`.
21091
21108
  *
21092
21109
  * @platform darwin
21093
21110
  */
21094
- status: string;
21111
+ status: ('not-registered' | 'enabled' | 'requires-approval' | 'not-found');
21095
21112
  /**
21096
21113
  * `true` if app is set to open at login and its run key is not deactivated. This
21097
21114
  * differs from `openAtLogin` as it ignores the `args` option, this property will
@@ -21106,13 +21123,13 @@ declare namespace Electron {
21106
21123
 
21107
21124
  interface LoginItemSettingsOptions {
21108
21125
  /**
21109
- * Can be one of `mainAppService`, `agentService`, `daemonService`, or
21110
- * `loginItemService`. Defaults to `mainAppService`. Only available on macOS 13 and
21111
- * up. See app.setLoginItemSettings for more information about each type.
21126
+ * Can be `mainAppService`, `agentService`, `daemonService`, or `loginItemService`.
21127
+ * Defaults to `mainAppService`. Only available on macOS 13 and up. See
21128
+ * app.setLoginItemSettings for more information about each type.
21112
21129
  *
21113
21130
  * @platform darwin
21114
21131
  */
21115
- type?: string;
21132
+ type?: ('mainAppService' | 'agentService' | 'daemonService' | 'loginItemService');
21116
21133
  /**
21117
21134
  * The name of the service. Required if `type` is non-default. Only available on
21118
21135
  * macOS 13 and up.
@@ -23473,12 +23490,12 @@ declare namespace Electron {
23473
23490
  */
23474
23491
  args: string[];
23475
23492
  /**
23476
- * one of `user` or `machine`. Indicates whether the registry entry is under
23493
+ * can be `user` or `machine`. Indicates whether the registry entry is under
23477
23494
  * `HKEY_CURRENT USER` or `HKEY_LOCAL_MACHINE`.
23478
23495
  *
23479
23496
  * @platform win32
23480
23497
  */
23481
- scope: string;
23498
+ scope: ('user' | 'machine');
23482
23499
  /**
23483
23500
  * `true` if the app registry key is startup approved and therefore shows as
23484
23501
  * `enabled` in Task Manager and Windows settings.
package/install.js CHANGED
@@ -1,15 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- //const { version } = require('./package');
4
- const { owElectronVersion } = require('./package');
3
+ const { downloadArtifact } = require('@electron/get');
4
+
5
+ const extract = require('extract-zip');
5
6
 
6
7
  const childProcess = require('child_process');
7
8
  const fs = require('fs');
8
9
  const os = require('os');
9
10
  const path = require('path');
10
- const extract = require('extract-zip');
11
- const { downloadArtifact } = require('@electron/get');
12
-
11
+ const { owElectronVersion } = require('./package');
12
+ // const { version } = require('./package');
13
13
 
14
14
  if (process.env.ELECTRON_SKIP_BINARY_DOWNLOAD) {
15
15
  process.exit(0);
@@ -65,7 +65,7 @@ function isInstalled () {
65
65
  if (fs.readFileSync(path.join(__dirname, 'path.txt'), 'utf-8') !== platformPath) {
66
66
  return false;
67
67
  }
68
- } catch (ignored) {
68
+ } catch {
69
69
  return false;
70
70
  }
71
71
 
package/ow-electron.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for ow-electron 39.6.1
1
+ // Type definitions for ow-electron 39.8.10
2
2
  import { App, BrowserWindow, Event } from 'electron';
3
3
  import { errorMonitor } from 'events';
4
4
 
@@ -353,7 +353,7 @@ declare namespace overwolf {
353
353
  eventName: 'game-detected',
354
354
  listener: (event: GepGameLaunchEvent, gameId: number, name: string, ...args: any[]) => void,
355
355
  ): this;
356
-
356
+
357
357
  /**
358
358
  * Register listener for a game exit event.
359
359
  *
@@ -363,12 +363,12 @@ declare namespace overwolf {
363
363
  */
364
364
  on(
365
365
  eventName: 'game-exit',
366
- listener: (event: Event, gameId: number, gameName: string, pid: number, processName: string, processPath: string, commandLine: string) => void,
366
+ listener: (event: Event, gameId: number, name: string, pid: number) => void,
367
367
  ): this;
368
368
 
369
369
  /**
370
- * Register listener for when a detected game is ran as administrator.
371
- * If this fires, it means the app must also run as administrator in order for Game Events to be detected.
370
+ * Register listener for when a detected game is ran as adminstrator.
371
+ * If this fires, it means the app must also run as adminstrator in order for Game Events to be detected.
372
372
  *
373
373
  * @param {string | symbol} eventName Name of the node event ('elevated-privileges-required')
374
374
  * @param {(Event, any[]) => void} listener The listener that will be invoked when this event is fired
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@overwolf/ow-electron",
3
- "version": "39.6.1",
4
- "owElectronVersion": "39.6.1",
5
- "electronVersion": "39.6.0",
3
+ "version": "39.8.10-beta.0",
4
+ "owElectronVersion": "39.8.10-beta.0",
5
+ "electronVersion": "39.8.10",
6
6
  "repository": "https://github.com/electron/electron",
7
7
  "description": "Build cross platform desktop apps with JavaScript, HTML, and CSS",
8
8
  "license": "MIT",
@@ -19,12 +19,25 @@
19
19
  "scripts": {
20
20
  "postinstall": "node install.js"
21
21
  },
22
+ "files": [
23
+ "LICENSE",
24
+ "README.md",
25
+ "checksums.json",
26
+ "cli.js",
27
+ "electron.d.ts",
28
+ "ow-electron.d.ts",
29
+ "index.js",
30
+ "install.js"
31
+ ],
22
32
  "dependencies": {
23
- "@electron/get": "^1.14.1",
24
- "@types/node": "^16.11.26",
25
- "extract-zip": "^1.0.3"
33
+ "@electron/get": "^2.0.0",
34
+ "@types/node": "^22.7.7",
35
+ "extract-zip": "^2.0.1"
26
36
  },
27
37
  "engines": {
28
- "node": ">= 10.17.0"
38
+ "node": ">= 12.20.55"
39
+ },
40
+ "publishConfig": {
41
+ "tag": "beta"
29
42
  }
30
43
  }