electron 45.0.0-alpha.5 → 45.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/checksums.json +67 -67
- package/electron.d.ts +135 -16
- package/package.json +1 -1
package/checksums.json
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
{
|
|
2
|
-
"chromedriver-v45.0.0-alpha.
|
|
3
|
-
"chromedriver-v45.0.0-alpha.
|
|
4
|
-
"chromedriver-v45.0.0-alpha.
|
|
5
|
-
"chromedriver-v45.0.0-alpha.
|
|
6
|
-
"chromedriver-v45.0.0-alpha.
|
|
7
|
-
"chromedriver-v45.0.0-alpha.
|
|
8
|
-
"chromedriver-v45.0.0-alpha.
|
|
9
|
-
"chromedriver-v45.0.0-alpha.
|
|
10
|
-
"electron-api.json": "
|
|
11
|
-
"electron-v45.0.0-alpha.
|
|
12
|
-
"electron-v45.0.0-alpha.
|
|
13
|
-
"electron-v45.0.0-alpha.
|
|
14
|
-
"electron-v45.0.0-alpha.
|
|
15
|
-
"electron-v45.0.0-alpha.
|
|
16
|
-
"electron-v45.0.0-alpha.
|
|
17
|
-
"electron-v45.0.0-alpha.
|
|
18
|
-
"electron-v45.0.0-alpha.
|
|
19
|
-
"electron-v45.0.0-alpha.
|
|
20
|
-
"electron-v45.0.0-alpha.
|
|
21
|
-
"electron-v45.0.0-alpha.
|
|
22
|
-
"electron-v45.0.0-alpha.
|
|
23
|
-
"electron-v45.0.0-alpha.
|
|
24
|
-
"electron-v45.0.0-alpha.
|
|
25
|
-
"electron-v45.0.0-alpha.
|
|
26
|
-
"electron-v45.0.0-alpha.
|
|
27
|
-
"electron-v45.0.0-alpha.
|
|
28
|
-
"electron-v45.0.0-alpha.
|
|
29
|
-
"electron-v45.0.0-alpha.
|
|
30
|
-
"electron-v45.0.0-alpha.
|
|
31
|
-
"electron-v45.0.0-alpha.
|
|
32
|
-
"electron-v45.0.0-alpha.
|
|
33
|
-
"electron-v45.0.0-alpha.
|
|
34
|
-
"electron-v45.0.0-alpha.
|
|
35
|
-
"electron-v45.0.0-alpha.
|
|
36
|
-
"electron-v45.0.0-alpha.
|
|
37
|
-
"electron-v45.0.0-alpha.
|
|
38
|
-
"electron-v45.0.0-alpha.
|
|
39
|
-
"electron-v45.0.0-alpha.
|
|
40
|
-
"electron-v45.0.0-alpha.
|
|
41
|
-
"electron.d.ts": "
|
|
42
|
-
"ffmpeg-v45.0.0-alpha.
|
|
43
|
-
"ffmpeg-v45.0.0-alpha.
|
|
44
|
-
"ffmpeg-v45.0.0-alpha.
|
|
45
|
-
"ffmpeg-v45.0.0-alpha.
|
|
46
|
-
"ffmpeg-v45.0.0-alpha.
|
|
47
|
-
"ffmpeg-v45.0.0-alpha.
|
|
48
|
-
"ffmpeg-v45.0.0-alpha.
|
|
49
|
-
"ffmpeg-v45.0.0-alpha.
|
|
50
|
-
"hunspell_dictionaries.zip": "
|
|
51
|
-
"libcxx-objects-v45.0.0-alpha.
|
|
52
|
-
"libcxx-objects-v45.0.0-alpha.
|
|
53
|
-
"libcxx_headers.zip": "
|
|
54
|
-
"libcxxabi_headers.zip": "
|
|
55
|
-
"mksnapshot-v45.0.0-alpha.
|
|
56
|
-
"mksnapshot-v45.0.0-alpha.
|
|
57
|
-
"mksnapshot-v45.0.0-alpha.
|
|
58
|
-
"mksnapshot-v45.0.0-alpha.
|
|
59
|
-
"mksnapshot-v45.0.0-alpha.
|
|
60
|
-
"mksnapshot-v45.0.0-alpha.
|
|
61
|
-
"mksnapshot-v45.0.0-alpha.
|
|
62
|
-
"mksnapshot-v45.0.0-alpha.
|
|
63
|
-
"xcache-v45.0.0-alpha.
|
|
64
|
-
"xcache-v45.0.0-alpha.
|
|
65
|
-
"xcache-v45.0.0-alpha.
|
|
66
|
-
"xcache-v45.0.0-alpha.
|
|
67
|
-
"xcache-v45.0.0-alpha.
|
|
68
|
-
"xcache-v45.0.0-alpha.
|
|
2
|
+
"chromedriver-v45.0.0-alpha.6-darwin-arm64.zip": "4682275d153647835b23254077b6643a06c5851910809cf5dc7ed616591597ff",
|
|
3
|
+
"chromedriver-v45.0.0-alpha.6-darwin-x64.zip": "17d742227312ee232fa9bbbd05269c9ce18e2b901ce74b1f4b23fdae3ca3a2a1",
|
|
4
|
+
"chromedriver-v45.0.0-alpha.6-linux-arm64.zip": "917ff8151dcd2a2a3cda50c781afbe3b89e38174139652401cff9fd54082b152",
|
|
5
|
+
"chromedriver-v45.0.0-alpha.6-linux-x64.zip": "6e3cb69b8bd5565d16456b662bc9a45037644f3ab716d3a112ac175f5500354d",
|
|
6
|
+
"chromedriver-v45.0.0-alpha.6-mas-arm64.zip": "464fcd9ee6b83fea72a6629d9c2f6c7bb70e7f8fa08674bc1d35900bbd9d49a1",
|
|
7
|
+
"chromedriver-v45.0.0-alpha.6-mas-x64.zip": "fe4d541009d272996a7e89646fc5d8aa83b70854a63728f514a6540aaf72eade",
|
|
8
|
+
"chromedriver-v45.0.0-alpha.6-win32-arm64.zip": "e848ea5d73e943acc811725cb14ae8c501a6b710472cfcdeab6cc9a69701b77a",
|
|
9
|
+
"chromedriver-v45.0.0-alpha.6-win32-x64.zip": "5661795353d2822676a23ee2ba7b2a312241d9e0b2fd9bae21860367827e31b6",
|
|
10
|
+
"electron-api.json": "f857c022d01c390d5b71b85bdb4e1a8e26c07d1245c1eea2d624564bb1c48293",
|
|
11
|
+
"electron-v45.0.0-alpha.6-darwin-arm64-dsym-snapshot.zip": "d36a30a9f3d91696bae78f204891bc8f9f99c1e3ad3ab6ae13ae87e69b3ba531",
|
|
12
|
+
"electron-v45.0.0-alpha.6-darwin-arm64-dsym.tar.xz": "4326b4d17fe58f17d9aeb4edc9e732f856b4209667e562cd84431335ed42fc92",
|
|
13
|
+
"electron-v45.0.0-alpha.6-darwin-arm64-symbols.zip": "226ccd7780c5fcb19c806ffe303ce655370b742694493dc42b76e2e6f9e61c00",
|
|
14
|
+
"electron-v45.0.0-alpha.6-darwin-arm64.zip": "52bc97443088442fc90d75112abfcddb328268b76c1aa5913e3a2469ad365a7a",
|
|
15
|
+
"electron-v45.0.0-alpha.6-darwin-x64-dsym-snapshot.zip": "d36a30a9f3d91696bae78f204891bc8f9f99c1e3ad3ab6ae13ae87e69b3ba531",
|
|
16
|
+
"electron-v45.0.0-alpha.6-darwin-x64-dsym.tar.xz": "9b7a275acd0cda9b0d3439f88b2eae2c06e8026578aa03eda15635f4bb2b8f66",
|
|
17
|
+
"electron-v45.0.0-alpha.6-darwin-x64-symbols.zip": "9ec29fe42968c36d8c8c8e48bd4c00760140dc5169276e721903a3e462e680c4",
|
|
18
|
+
"electron-v45.0.0-alpha.6-darwin-x64.zip": "bd69539324e1d86deafa0137af5334b9e950c53ac0a71fab6ede1259ecd838aa",
|
|
19
|
+
"electron-v45.0.0-alpha.6-linux-arm64-debug.zip": "66e6e3b8e56800bbc59e0a9ad40e8f2b311bbb6fffcc03a78ee1431727db7beb",
|
|
20
|
+
"electron-v45.0.0-alpha.6-linux-arm64-symbols.zip": "38cdfaf12861b121e953b1e5b452bc5ee4c211b2519d4e4cf23a270fef1c1bec",
|
|
21
|
+
"electron-v45.0.0-alpha.6-linux-arm64.zip": "11da524a02b68f8893793b2fb87bc400d2e447ffbbf63a181764de4c8afed034",
|
|
22
|
+
"electron-v45.0.0-alpha.6-linux-x64-debug.zip": "a80f1d4315dcea9006d5862c414aeb3b436548d8e28d9d19aa6b7ea0a3180ae2",
|
|
23
|
+
"electron-v45.0.0-alpha.6-linux-x64-symbols.zip": "87715373cc1b3e572d7b8eae6298cf8389d88ee45f47831fd555717b72279545",
|
|
24
|
+
"electron-v45.0.0-alpha.6-linux-x64.zip": "1396ea4c28b30abe719a4b0ffa5aabb591b834c9cf941f02f5f569376267f9f6",
|
|
25
|
+
"electron-v45.0.0-alpha.6-mas-arm64-dsym-snapshot.zip": "d36a30a9f3d91696bae78f204891bc8f9f99c1e3ad3ab6ae13ae87e69b3ba531",
|
|
26
|
+
"electron-v45.0.0-alpha.6-mas-arm64-dsym.tar.xz": "e4ee7e4ce2a6aee5f8f5d29ad491c518ca80fe75b5db10fdcaa0cf6a79dcf76e",
|
|
27
|
+
"electron-v45.0.0-alpha.6-mas-arm64-symbols.zip": "bb89065373dbac411cbeb3199ab0c817334a5fc5d31420b7835ecb35390d3211",
|
|
28
|
+
"electron-v45.0.0-alpha.6-mas-arm64.zip": "a2b46647ff8fea7f14c00ef67cf6eda899cebb87b65b26939112bebb2d45787a",
|
|
29
|
+
"electron-v45.0.0-alpha.6-mas-x64-dsym-snapshot.zip": "d36a30a9f3d91696bae78f204891bc8f9f99c1e3ad3ab6ae13ae87e69b3ba531",
|
|
30
|
+
"electron-v45.0.0-alpha.6-mas-x64-dsym.tar.xz": "fa9b8b837eb3bf912674470bbc7b4ff56f1b85037a3e26ee5f57f7aac689050a",
|
|
31
|
+
"electron-v45.0.0-alpha.6-mas-x64-symbols.zip": "caca9ff3410e67e2d3c1fd9a34153dbef75433fcc3ff3da056336ac0ad09cf7d",
|
|
32
|
+
"electron-v45.0.0-alpha.6-mas-x64.zip": "825be0662ee89a983c0f6d75751d5842166b725a22244a2a269b92c19061ada8",
|
|
33
|
+
"electron-v45.0.0-alpha.6-win32-arm64-pdb.zip": "0f619c83bfb9c7b6d17de14f45d230db7348009f77b075233e55a9c532f1488f",
|
|
34
|
+
"electron-v45.0.0-alpha.6-win32-arm64-symbols.zip": "5e540e294b1bf94e8accb97a09cfd70575d37e97dcebe97af29511333ecf6b6c",
|
|
35
|
+
"electron-v45.0.0-alpha.6-win32-arm64-toolchain-profile.zip": "c74afb2f66851265ce1b0bbe06018bb54fbc928e15ba08f24e194acd6a80f2a1",
|
|
36
|
+
"electron-v45.0.0-alpha.6-win32-arm64.zip": "4ab16870f531d4b03851920d33ccc95c661240c6fbb485c5ee153e46bd5d93de",
|
|
37
|
+
"electron-v45.0.0-alpha.6-win32-x64-pdb.zip": "c4dc3b30f045885685517bbb4c322d9cd2df9248e0e8537eddd042fb92343269",
|
|
38
|
+
"electron-v45.0.0-alpha.6-win32-x64-symbols.zip": "febce548ed8f4f2e3b0a2ece6562fd1e2436bcd4c4442324a891640b93c9130b",
|
|
39
|
+
"electron-v45.0.0-alpha.6-win32-x64-toolchain-profile.zip": "c74afb2f66851265ce1b0bbe06018bb54fbc928e15ba08f24e194acd6a80f2a1",
|
|
40
|
+
"electron-v45.0.0-alpha.6-win32-x64.zip": "b0bb360cbed59dedf89ac7234810354bc9b185027fabbea08d5a0b13b36cbb97",
|
|
41
|
+
"electron.d.ts": "96f9b5d8a568b20f87d2cd9d7ac6d646a42a8fa6f0797f90ee99ef6db02ee237",
|
|
42
|
+
"ffmpeg-v45.0.0-alpha.6-darwin-arm64.zip": "a84cdb5c7c3e96bce368014941d5d9f4f2837df3fa914b6dbdebb7f978a86f86",
|
|
43
|
+
"ffmpeg-v45.0.0-alpha.6-darwin-x64.zip": "bb250eef761df12d5d188b558510a443224745d90d46bbcb448afbcd5ff1d3bc",
|
|
44
|
+
"ffmpeg-v45.0.0-alpha.6-linux-arm64.zip": "c7832db04fa7ea60f7a4b71d7d0b9b8d3272c200e2ee663c4eea774b1bafd3f4",
|
|
45
|
+
"ffmpeg-v45.0.0-alpha.6-linux-x64.zip": "f4d98767e7a8c6528af718e42b6e3612582cf44fe3bce72df336a9f2a1844c30",
|
|
46
|
+
"ffmpeg-v45.0.0-alpha.6-mas-arm64.zip": "085f4d956cdd0415507fa279b92254f9fc55f6988060037e6c682812d47b1269",
|
|
47
|
+
"ffmpeg-v45.0.0-alpha.6-mas-x64.zip": "e26fb1521ef812144a6196e1d2983078b3660151606b623aa4f8f925838fbfe4",
|
|
48
|
+
"ffmpeg-v45.0.0-alpha.6-win32-arm64.zip": "ae3816bb326985c8b4dbad305c79f5b8c00f6c676685d31226d49145f7968709",
|
|
49
|
+
"ffmpeg-v45.0.0-alpha.6-win32-x64.zip": "c8f6950605a7d157b387c5eea9ce20eef7ff0f41aca7f89f7879986db330b508",
|
|
50
|
+
"hunspell_dictionaries.zip": "f9da4998d4e5cb077ee6bbb6b2070e46d50762cacf30d01fb15f526288b09596",
|
|
51
|
+
"libcxx-objects-v45.0.0-alpha.6-linux-arm64.zip": "541cc82f8eb330b46a292ff5c77a43b2bcd7de253ad4c4675acdd1fc429977cc",
|
|
52
|
+
"libcxx-objects-v45.0.0-alpha.6-linux-x64.zip": "a25429c124b19666750a109b4019e1643b78cde138f55c9003df126cafabad77",
|
|
53
|
+
"libcxx_headers.zip": "e498eb4294e8cd780eeff40cbf952bc33e7241cf9a4347b5589c5692b82b8b4a",
|
|
54
|
+
"libcxxabi_headers.zip": "5ba5baf788753aba2989de3242dd5f4d130f05d8cb11458f71d78496693026f9",
|
|
55
|
+
"mksnapshot-v45.0.0-alpha.6-darwin-arm64.zip": "32ee55ee98945bd58d914ded7ecec700f401b67eb6dc8d327c6f7fdccbf116f7",
|
|
56
|
+
"mksnapshot-v45.0.0-alpha.6-darwin-x64.zip": "fae03a5db8c861a993da862365fd03c173abe5502d1d4d47263505cdd91faf5f",
|
|
57
|
+
"mksnapshot-v45.0.0-alpha.6-linux-arm64-x64.zip": "097becd7729ea07679976fd7ee608fdd19a740b1eabd05997c2d8cea622aa731",
|
|
58
|
+
"mksnapshot-v45.0.0-alpha.6-linux-x64.zip": "e12c845698ac751aef258427aeafe738ac7f648d6e16dfe44f95ed8e0697b430",
|
|
59
|
+
"mksnapshot-v45.0.0-alpha.6-mas-arm64.zip": "9f4f3b2e911ebf1820601b9ba0e5558a8fa226869050b204dd9090861012de7d",
|
|
60
|
+
"mksnapshot-v45.0.0-alpha.6-mas-x64.zip": "be26377fef1f6473268b660a8c2a9db65518732a3f5e4dd9654ec373781939aa",
|
|
61
|
+
"mksnapshot-v45.0.0-alpha.6-win32-arm64-x64.zip": "18d8d4551d94713e057896a12e4866feb7178c12cb07011e496d5ef79ccff697",
|
|
62
|
+
"mksnapshot-v45.0.0-alpha.6-win32-x64.zip": "093e92fd396235f2549f052c0d325a419f5df89a922250ff0fe728653c7eee4d",
|
|
63
|
+
"xcache-v45.0.0-alpha.6-darwin-arm64.zip": "329f850188f0071a300c29dfb7efc926c2b3f91005c487c56b6ec56802246c5b",
|
|
64
|
+
"xcache-v45.0.0-alpha.6-darwin-x64.zip": "635f42a856f52ca46792615009272e09a5144c2ea5d7a07a2afe84872d0e2824",
|
|
65
|
+
"xcache-v45.0.0-alpha.6-linux-arm64.zip": "adf7e860ac2aaf7780e1b76b363407d06239f19b4340ca3f1ff47a3163309dc4",
|
|
66
|
+
"xcache-v45.0.0-alpha.6-linux-x64.zip": "8f328e5260b100245308329eb86055450f6c28f8297b6a77de2b3bac61b7efb2",
|
|
67
|
+
"xcache-v45.0.0-alpha.6-win32-arm64.zip": "2af73fce62af6033f762c65a3897764bbc8121f558465d9909cf6a9fd1fb3c1d",
|
|
68
|
+
"xcache-v45.0.0-alpha.6-win32-x64.zip": "507d9413c475a62c5faef846c84f8dd457cda7b9beeaed8f4928bb31523e09b1"
|
|
69
69
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 45.0.0-alpha.
|
|
1
|
+
// Type definitions for Electron 45.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
|
|
@@ -8300,6 +8300,14 @@ declare namespace Electron {
|
|
|
8300
8300
|
* actual name of saved file will be different.
|
|
8301
8301
|
*/
|
|
8302
8302
|
getFilename(): string;
|
|
8303
|
+
/**
|
|
8304
|
+
* The origin that started the download (for example `https://example.com`, or
|
|
8305
|
+
* `null` for an opaque origin), or an empty string if the download was not started
|
|
8306
|
+
* by web content (for example `webContents.downloadURL()`). Use this rather than
|
|
8307
|
+
* `getURL()` or the `webContents` to decide whose download it is: the URL is
|
|
8308
|
+
* chosen by the initiator and the `webContents` is the whole tab.
|
|
8309
|
+
*/
|
|
8310
|
+
getInitiatorOrigin(): string;
|
|
8303
8311
|
/**
|
|
8304
8312
|
* Last-Modified header value.
|
|
8305
8313
|
*/
|
|
@@ -11743,6 +11751,12 @@ declare namespace Electron {
|
|
|
11743
11751
|
* Register a protocol handler for `scheme`. Requests made to URLs with this scheme
|
|
11744
11752
|
* will delegate to this handler to determine what response should be sent.
|
|
11745
11753
|
*
|
|
11754
|
+
* In addition to the standard `Request` fields, `request.initiatorOrigin` is set
|
|
11755
|
+
* to the origin that issued the request (for example `https://example.com`, or
|
|
11756
|
+
* `null` for an opaque origin) when web content made it; it is absent for requests
|
|
11757
|
+
* the browser started itself. Unlike `request.referrer` it is not controlled by
|
|
11758
|
+
* the requesting page, so prefer it when deciding whether to serve a request.
|
|
11759
|
+
*
|
|
11746
11760
|
* Either a `Response` or a `Promise<Response>` can be returned.
|
|
11747
11761
|
*
|
|
11748
11762
|
* Example:
|
|
@@ -11947,6 +11961,12 @@ declare namespace Electron {
|
|
|
11947
11961
|
// Docs: https://electronjs.org/docs/api/structures/protocol-request
|
|
11948
11962
|
|
|
11949
11963
|
headers: Record<string, string>;
|
|
11964
|
+
/**
|
|
11965
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
11966
|
+
* for an opaque origin). Absent for requests the browser started itself. Unlike
|
|
11967
|
+
* `referrer`, this is not controlled by the requesting page.
|
|
11968
|
+
*/
|
|
11969
|
+
initiatorOrigin?: string;
|
|
11950
11970
|
method: string;
|
|
11951
11971
|
referrer: string;
|
|
11952
11972
|
uploadData?: UploadData[];
|
|
@@ -12815,7 +12835,11 @@ declare namespace Electron {
|
|
|
12815
12835
|
* True if the renderer is requesting that the connection include credentials (see
|
|
12816
12836
|
* the spec for more details.)
|
|
12817
12837
|
*/
|
|
12818
|
-
allowCredentials: boolean
|
|
12838
|
+
allowCredentials: boolean,
|
|
12839
|
+
/**
|
|
12840
|
+
* The frame that requested the preconnection, if it still exists.
|
|
12841
|
+
*/
|
|
12842
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
12819
12843
|
off(event: 'preconnect', listener: (event: Event,
|
|
12820
12844
|
/**
|
|
12821
12845
|
* The URL being requested for preconnection by the renderer.
|
|
@@ -12825,7 +12849,11 @@ declare namespace Electron {
|
|
|
12825
12849
|
* True if the renderer is requesting that the connection include credentials (see
|
|
12826
12850
|
* the spec for more details.)
|
|
12827
12851
|
*/
|
|
12828
|
-
allowCredentials: boolean
|
|
12852
|
+
allowCredentials: boolean,
|
|
12853
|
+
/**
|
|
12854
|
+
* The frame that requested the preconnection, if it still exists.
|
|
12855
|
+
*/
|
|
12856
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
12829
12857
|
once(event: 'preconnect', listener: (event: Event,
|
|
12830
12858
|
/**
|
|
12831
12859
|
* The URL being requested for preconnection by the renderer.
|
|
@@ -12835,7 +12863,11 @@ declare namespace Electron {
|
|
|
12835
12863
|
* True if the renderer is requesting that the connection include credentials (see
|
|
12836
12864
|
* the spec for more details.)
|
|
12837
12865
|
*/
|
|
12838
|
-
allowCredentials: boolean
|
|
12866
|
+
allowCredentials: boolean,
|
|
12867
|
+
/**
|
|
12868
|
+
* The frame that requested the preconnection, if it still exists.
|
|
12869
|
+
*/
|
|
12870
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
12839
12871
|
addListener(event: 'preconnect', listener: (event: Event,
|
|
12840
12872
|
/**
|
|
12841
12873
|
* The URL being requested for preconnection by the renderer.
|
|
@@ -12845,7 +12877,11 @@ declare namespace Electron {
|
|
|
12845
12877
|
* True if the renderer is requesting that the connection include credentials (see
|
|
12846
12878
|
* the spec for more details.)
|
|
12847
12879
|
*/
|
|
12848
|
-
allowCredentials: boolean
|
|
12880
|
+
allowCredentials: boolean,
|
|
12881
|
+
/**
|
|
12882
|
+
* The frame that requested the preconnection, if it still exists.
|
|
12883
|
+
*/
|
|
12884
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
12849
12885
|
removeListener(event: 'preconnect', listener: (event: Event,
|
|
12850
12886
|
/**
|
|
12851
12887
|
* The URL being requested for preconnection by the renderer.
|
|
@@ -12855,7 +12891,11 @@ declare namespace Electron {
|
|
|
12855
12891
|
* True if the renderer is requesting that the connection include credentials (see
|
|
12856
12892
|
* the spec for more details.)
|
|
12857
12893
|
*/
|
|
12858
|
-
allowCredentials: boolean
|
|
12894
|
+
allowCredentials: boolean,
|
|
12895
|
+
/**
|
|
12896
|
+
* The frame that requested the preconnection, if it still exists.
|
|
12897
|
+
*/
|
|
12898
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
12859
12899
|
/**
|
|
12860
12900
|
* Emitted when a HID device needs to be selected when a call to
|
|
12861
12901
|
* `navigator.hid.requestDevice` is made. `callback` should be called with
|
|
@@ -13237,26 +13277,47 @@ declare namespace Electron {
|
|
|
13237
13277
|
removeListener(event: 'usb-device-revoked', listener: (event: Event,
|
|
13238
13278
|
details: UsbDeviceRevokedDetails) => void): this;
|
|
13239
13279
|
/**
|
|
13240
|
-
* Emitted when Electron is about to download `item` in `webContents`.
|
|
13280
|
+
* Emitted when Electron is about to download `item` in `webContents`. See also
|
|
13281
|
+
* `item.getInitiatorOrigin()`.
|
|
13241
13282
|
*
|
|
13242
13283
|
* Calling `event.preventDefault()` will cancel the download and `item` will not be
|
|
13243
13284
|
* available from next tick of the process.
|
|
13244
13285
|
*/
|
|
13245
13286
|
on(event: 'will-download', listener: (event: Event,
|
|
13246
13287
|
item: DownloadItem,
|
|
13247
|
-
webContents: WebContents
|
|
13288
|
+
webContents: WebContents,
|
|
13289
|
+
/**
|
|
13290
|
+
* The frame that started the download, if it still exists.
|
|
13291
|
+
*/
|
|
13292
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
13248
13293
|
off(event: 'will-download', listener: (event: Event,
|
|
13249
13294
|
item: DownloadItem,
|
|
13250
|
-
webContents: WebContents
|
|
13295
|
+
webContents: WebContents,
|
|
13296
|
+
/**
|
|
13297
|
+
* The frame that started the download, if it still exists.
|
|
13298
|
+
*/
|
|
13299
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
13251
13300
|
once(event: 'will-download', listener: (event: Event,
|
|
13252
13301
|
item: DownloadItem,
|
|
13253
|
-
webContents: WebContents
|
|
13302
|
+
webContents: WebContents,
|
|
13303
|
+
/**
|
|
13304
|
+
* The frame that started the download, if it still exists.
|
|
13305
|
+
*/
|
|
13306
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
13254
13307
|
addListener(event: 'will-download', listener: (event: Event,
|
|
13255
13308
|
item: DownloadItem,
|
|
13256
|
-
webContents: WebContents
|
|
13309
|
+
webContents: WebContents,
|
|
13310
|
+
/**
|
|
13311
|
+
* The frame that started the download, if it still exists.
|
|
13312
|
+
*/
|
|
13313
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
13257
13314
|
removeListener(event: 'will-download', listener: (event: Event,
|
|
13258
13315
|
item: DownloadItem,
|
|
13259
|
-
webContents: WebContents
|
|
13316
|
+
webContents: WebContents,
|
|
13317
|
+
/**
|
|
13318
|
+
* The frame that started the download, if it still exists.
|
|
13319
|
+
*/
|
|
13320
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
13260
13321
|
/**
|
|
13261
13322
|
* Whether the word was successfully written to the custom dictionary. This API
|
|
13262
13323
|
* will not work on non-persistent (in-memory) sessions.
|
|
@@ -18423,7 +18484,9 @@ declare namespace Electron {
|
|
|
18423
18484
|
* The identifier of a WebContents stream. This identifier can be used with
|
|
18424
18485
|
* `navigator.mediaDevices.getUserMedia` using a `chromeMediaSource` of `tab`. The
|
|
18425
18486
|
* identifier is restricted to the web contents that it is registered to and is
|
|
18426
|
-
* only valid for 10 seconds.
|
|
18487
|
+
* only valid for 10 seconds. The `desktop` source only accepts screen and window
|
|
18488
|
+
* identifiers from `desktopCapturer.getSources`; to capture a WebContents use this
|
|
18489
|
+
* identifier with the `tab` source, or `ses.setDisplayMediaRequestHandler`.
|
|
18427
18490
|
*/
|
|
18428
18491
|
getMediaSourceId(requestWebContents: WebContents): string;
|
|
18429
18492
|
/**
|
|
@@ -19763,8 +19826,10 @@ declare namespace Electron {
|
|
|
19763
19826
|
*/
|
|
19764
19827
|
nodeIntegrationInSubFrames?: boolean;
|
|
19765
19828
|
/**
|
|
19766
|
-
* Whether node integration is enabled in web workers. Default is `false`.
|
|
19767
|
-
*
|
|
19829
|
+
* Whether node integration is enabled in web workers. Default is `false`. Only
|
|
19830
|
+
* workers created by a frame that itself has access to Node.js (the main frame, or
|
|
19831
|
+
* any frame when `nodeIntegrationInSubFrames` is enabled) get it. More about this
|
|
19832
|
+
* can be found in Multithreading.
|
|
19768
19833
|
*/
|
|
19769
19834
|
nodeIntegrationInWorker?: boolean;
|
|
19770
19835
|
/**
|
|
@@ -20334,6 +20399,10 @@ declare namespace Electron {
|
|
|
20334
20399
|
removeEventListener(event: 'close', listener: (event: DOMEvent) => void): this;
|
|
20335
20400
|
/**
|
|
20336
20401
|
* Fired when the guest page has sent an asynchronous message to embedder page.
|
|
20402
|
+
* `frameId` does not tell the embedder which document sent the message; when that
|
|
20403
|
+
* matters, have the guest use `ipcRenderer.send()` and handle the guest
|
|
20404
|
+
* `webContents`' `ipc-message` event in the main process, where
|
|
20405
|
+
* `event.senderFrame` identifies the sender.
|
|
20337
20406
|
*
|
|
20338
20407
|
* With `sendToHost` method and `ipc-message` event you can communicate between
|
|
20339
20408
|
* guest page and embedder page:
|
|
@@ -20716,7 +20785,9 @@ declare namespace Electron {
|
|
|
20716
20785
|
unselect(): void;
|
|
20717
20786
|
/**
|
|
20718
20787
|
* A `boolean`. When this attribute is present the guest page will be allowed to
|
|
20719
|
-
* open new windows.
|
|
20788
|
+
* open new windows, whether through `window.open()` or a link opened into a new
|
|
20789
|
+
* window (for example a modifier-clicked or `target="_blank"` link). Popups are
|
|
20790
|
+
* disabled by default.
|
|
20720
20791
|
*/
|
|
20721
20792
|
allowpopups: boolean;
|
|
20722
20793
|
/**
|
|
@@ -23162,6 +23233,12 @@ declare namespace Electron {
|
|
|
23162
23233
|
* or been destroyed.
|
|
23163
23234
|
*/
|
|
23164
23235
|
frame?: (WebFrameMain) | (null);
|
|
23236
|
+
/**
|
|
23237
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23238
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23239
|
+
* for requests the browser started itself.
|
|
23240
|
+
*/
|
|
23241
|
+
initiatorOrigin?: string;
|
|
23165
23242
|
/**
|
|
23166
23243
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
23167
23244
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -23191,6 +23268,12 @@ declare namespace Electron {
|
|
|
23191
23268
|
* or been destroyed.
|
|
23192
23269
|
*/
|
|
23193
23270
|
frame?: (WebFrameMain) | (null);
|
|
23271
|
+
/**
|
|
23272
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23273
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23274
|
+
* for requests the browser started itself.
|
|
23275
|
+
*/
|
|
23276
|
+
initiatorOrigin?: string;
|
|
23194
23277
|
/**
|
|
23195
23278
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
23196
23279
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -23212,6 +23295,12 @@ declare namespace Electron {
|
|
|
23212
23295
|
* or been destroyed.
|
|
23213
23296
|
*/
|
|
23214
23297
|
frame?: (WebFrameMain) | (null);
|
|
23298
|
+
/**
|
|
23299
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23300
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23301
|
+
* for requests the browser started itself.
|
|
23302
|
+
*/
|
|
23303
|
+
initiatorOrigin?: string;
|
|
23215
23304
|
/**
|
|
23216
23305
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
23217
23306
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -23234,6 +23323,12 @@ declare namespace Electron {
|
|
|
23234
23323
|
* or been destroyed.
|
|
23235
23324
|
*/
|
|
23236
23325
|
frame?: (WebFrameMain) | (null);
|
|
23326
|
+
/**
|
|
23327
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23328
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23329
|
+
* for requests the browser started itself.
|
|
23330
|
+
*/
|
|
23331
|
+
initiatorOrigin?: string;
|
|
23237
23332
|
/**
|
|
23238
23333
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
23239
23334
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -23259,6 +23354,12 @@ declare namespace Electron {
|
|
|
23259
23354
|
* or been destroyed.
|
|
23260
23355
|
*/
|
|
23261
23356
|
frame?: (WebFrameMain) | (null);
|
|
23357
|
+
/**
|
|
23358
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23359
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23360
|
+
* for requests the browser started itself.
|
|
23361
|
+
*/
|
|
23362
|
+
initiatorOrigin?: string;
|
|
23262
23363
|
/**
|
|
23263
23364
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
23264
23365
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -23284,6 +23385,12 @@ declare namespace Electron {
|
|
|
23284
23385
|
* or been destroyed.
|
|
23285
23386
|
*/
|
|
23286
23387
|
frame?: (WebFrameMain) | (null);
|
|
23388
|
+
/**
|
|
23389
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23390
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23391
|
+
* for requests the browser started itself.
|
|
23392
|
+
*/
|
|
23393
|
+
initiatorOrigin?: string;
|
|
23287
23394
|
/**
|
|
23288
23395
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
23289
23396
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -23307,6 +23414,12 @@ declare namespace Electron {
|
|
|
23307
23414
|
* or been destroyed.
|
|
23308
23415
|
*/
|
|
23309
23416
|
frame?: (WebFrameMain) | (null);
|
|
23417
|
+
/**
|
|
23418
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23419
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23420
|
+
* for requests the browser started itself.
|
|
23421
|
+
*/
|
|
23422
|
+
initiatorOrigin?: string;
|
|
23310
23423
|
/**
|
|
23311
23424
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
23312
23425
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -23334,6 +23447,12 @@ declare namespace Electron {
|
|
|
23334
23447
|
* or been destroyed.
|
|
23335
23448
|
*/
|
|
23336
23449
|
frame?: (WebFrameMain) | (null);
|
|
23450
|
+
/**
|
|
23451
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23452
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23453
|
+
* for requests the browser started itself.
|
|
23454
|
+
*/
|
|
23455
|
+
initiatorOrigin?: string;
|
|
23337
23456
|
/**
|
|
23338
23457
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
23339
23458
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
package/package.json
CHANGED