electron-types 44.0.0-alpha.4 → 44.0.0-alpha.6
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 +3 -3
- package/dist/electron.d.ts +13 -4
- package/dist/version.json +2 -2
- package/package.json +1 -1
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.0.0-alpha.
|
|
17
|
+
npm install -D electron-types@44.0.0-alpha.6
|
|
18
18
|
# or
|
|
19
|
-
yarn add -D electron-types@44.0.0-alpha.
|
|
19
|
+
yarn add -D electron-types@44.0.0-alpha.6
|
|
20
20
|
# or
|
|
21
|
-
pnpm add -D electron-types@44.0.0-alpha.
|
|
21
|
+
pnpm add -D electron-types@44.0.0-alpha.6
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
## Usage
|
package/dist/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 44.0.0-alpha.
|
|
1
|
+
// Type definitions for Electron 44.0.0-alpha.6
|
|
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
|
|
@@ -806,6 +806,13 @@ declare namespace Electron {
|
|
|
806
806
|
* and `callback` can be called with an entry filtered from the list. Using
|
|
807
807
|
* `event.preventDefault()` prevents the application from using the first
|
|
808
808
|
* certificate from the store.
|
|
809
|
+
*
|
|
810
|
+
* `webContents` is `null` when the request does not originate from a renderer
|
|
811
|
+
* process, for example when using `net.request` or `net.fetch` in the main
|
|
812
|
+
* process, or from a utility process created with
|
|
813
|
+
* `respondToAuthRequestsFromMainProcess: true`. For utility processes created
|
|
814
|
+
* without that flag, `net` requests proceed without a client certificate and this
|
|
815
|
+
* event is not emitted.
|
|
809
816
|
*/
|
|
810
817
|
on(event: 'select-client-certificate', listener: (event: Event,
|
|
811
818
|
webContents: WebContents,
|
|
@@ -21776,9 +21783,11 @@ declare namespace Electron {
|
|
|
21776
21783
|
* With this flag, all HTTP 401 and 407 network requests created via the net module
|
|
21777
21784
|
* will allow responding to them via the `login` event on the `UtilityProcess`
|
|
21778
21785
|
* instance when a `session` is provided, or via the `app#login` event in the main
|
|
21779
|
-
* process when using the default system network context.
|
|
21780
|
-
*
|
|
21781
|
-
*
|
|
21786
|
+
* process when using the default system network context. This flag also routes
|
|
21787
|
+
* client-certificate selection to the `app#select-client-certificate` event in the
|
|
21788
|
+
* main process; without it, `net` requests from the utility process proceed
|
|
21789
|
+
* without a client certificate. Without this flag, auth challenges are handled by
|
|
21790
|
+
* the default `login` event on the `ClientRequest` object. Default is `false`.
|
|
21782
21791
|
*/
|
|
21783
21792
|
respondToAuthRequestsFromMainProcess?: boolean;
|
|
21784
21793
|
}
|
package/dist/version.json
CHANGED