electron-types 44.7.1 → 44.7.2

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
@@ -14,11 +14,11 @@ The official `electron` package is ~200MB because it includes the Electron binar
14
14
  Since this package only provides TypeScript types, install it as a dev dependency. **Install the version that matches your Electron version** (see [Version Matching](#version-matching)):
15
15
 
16
16
  ```bash
17
- npm install -D electron-types@44.7.1
17
+ npm install -D electron-types@44.7.2
18
18
  # or
19
- yarn add -D electron-types@44.7.1
19
+ yarn add -D electron-types@44.7.2
20
20
  # or
21
- pnpm add -D electron-types@44.7.1
21
+ pnpm add -D electron-types@44.7.2
22
22
  ```
23
23
 
24
24
  ## Usage
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 44.7.1
1
+ // Type definitions for Electron 44.7.2
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
@@ -16064,26 +16064,34 @@ declare namespace Electron {
16064
16064
  /**
16065
16065
  * Emitted when the utility process encounters an HTTP 401 or 407 authentication
16066
16066
  * challenge, if the process was created with both
16067
- * `respondToAuthRequestsFromMainProcess: true` and a `session` option. The
16068
- * `callback` should be called with credentials to respond to the challenge.
16069
- * Calling `callback` without arguments will cancel the request.
16067
+ * `respondToAuthRequestsFromMainProcess: true` and a `session` option.
16068
+ *
16069
+ * The default behavior is to cancel the authentication. To override this you
16070
+ * should prevent the default behavior with `event.preventDefault()` and call
16071
+ * `callback(username, password)` with the credentials. Calling `callback` without
16072
+ * arguments will cancel the request.
16070
16073
  *
16071
16074
  * This behaves the same as the `login` event on `app` but is scoped to the
16072
16075
  * individual utility process instance.
16073
16076
  */
16074
- on(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16077
+ on(event: 'login', listener: (event: Event,
16078
+ authenticationResponseDetails: AuthenticationResponseDetails,
16075
16079
  authInfo: AuthInfo,
16076
16080
  callback: (username?: string, password?: string) => void) => void): this;
16077
- off(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16081
+ off(event: 'login', listener: (event: Event,
16082
+ authenticationResponseDetails: AuthenticationResponseDetails,
16078
16083
  authInfo: AuthInfo,
16079
16084
  callback: (username?: string, password?: string) => void) => void): this;
16080
- once(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16085
+ once(event: 'login', listener: (event: Event,
16086
+ authenticationResponseDetails: AuthenticationResponseDetails,
16081
16087
  authInfo: AuthInfo,
16082
16088
  callback: (username?: string, password?: string) => void) => void): this;
16083
- addListener(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16089
+ addListener(event: 'login', listener: (event: Event,
16090
+ authenticationResponseDetails: AuthenticationResponseDetails,
16084
16091
  authInfo: AuthInfo,
16085
16092
  callback: (username?: string, password?: string) => void) => void): this;
16086
- removeListener(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16093
+ removeListener(event: 'login', listener: (event: Event,
16094
+ authenticationResponseDetails: AuthenticationResponseDetails,
16087
16095
  authInfo: AuthInfo,
16088
16096
  callback: (username?: string, password?: string) => void) => void): this;
16089
16097
  /**
@@ -16339,6 +16347,9 @@ declare namespace Electron {
16339
16347
  mouse: MouseInputEvent) => void): this;
16340
16348
  /**
16341
16349
  * Emitted when the `WebContents` loses focus.
16350
+ *
16351
+ * The `blur` event is also emitted when switching between windows or apps for the
16352
+ * `WebContents` that has focus within its window.
16342
16353
  */
16343
16354
  on(event: 'blur', listener: () => void): this;
16344
16355
  off(event: 'blur', listener: () => void): this;
@@ -17352,14 +17363,8 @@ declare namespace Electron {
17352
17363
  /**
17353
17364
  * Emitted when the `WebContents` gains focus.
17354
17365
  *
17355
- * Note that on macOS, having focus means the `WebContents` is the first responder
17356
- * of window, so switching focus between windows would not trigger the `focus` and
17357
- * `blur` events of `WebContents`, as the first responder of each window is not
17358
- * changed.
17359
- *
17360
- * The `focus` and `blur` events of `WebContents` should only be used to detect
17361
- * focus change between different `WebContents` and `BrowserView` in the same
17362
- * window.
17366
+ * The `focus` event is also emitted when switching between windows or apps for the
17367
+ * `WebContents` that has focus within its window.
17363
17368
  */
17364
17369
  on(event: 'focus', listener: () => void): this;
17365
17370
  off(event: 'focus', listener: () => void): this;
@@ -21276,10 +21281,10 @@ declare namespace Electron {
21276
21281
 
21277
21282
  interface Config {
21278
21283
  /**
21279
- * Can be `tls1`, `tls1.1`, `tls1.2` or `tls1.3`. The minimum SSL version to allow
21280
- * when connecting to remote servers. Defaults to `tls1`.
21284
+ * Can be `tls1.2` or `tls1.3`. The minimum SSL version to allow when connecting to
21285
+ * remote servers. Defaults to `tls1.2`.
21281
21286
  */
21282
- minVersion?: ('tls1' | 'tls1.1' | 'tls1.2' | 'tls1.3');
21287
+ minVersion?: ('tls1.2' | 'tls1.3');
21283
21288
  /**
21284
21289
  * Can be `tls1.2` or `tls1.3`. The maximum SSL version to allow when connecting to
21285
21290
  * remote servers. Defaults to `tls1.3`.
package/dist/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "electronVersion": "44.7.1",
3
- "extractedAt": "2026-10-13T18:19:21.132Z"
2
+ "electronVersion": "44.7.2",
3
+ "extractedAt": "2026-10-14T02:17:28.932Z"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-types",
3
- "version": "44.7.1",
3
+ "version": "44.7.2",
4
4
  "type": "module",
5
5
  "description": "TypeScript type definitions extracted from the electron package",
6
6
  "types": "./dist/electron.d.ts",