electron 45.0.0-alpha.5 β 45.0.0-alpha.7
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 +0 -1
- package/checksums.json +67 -67
- package/electron.d.ts +149 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
[](https://electronjs.org)
|
|
2
2
|
|
|
3
3
|
[](https://github.com/electron/electron/actions/workflows/build.yml)
|
|
4
|
-
[](https://discord.gg/electronjs)
|
|
5
4
|
|
|
6
5
|
:memo: Available Translations: π¨π³ π§π· πͺπΈ π―π΅ π·πΊ π«π· πΊπΈ π©πͺ.
|
|
7
6
|
View these docs in other languages on our [Crowdin](https://crowdin.com/project/electron) project.
|
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.7-darwin-arm64.zip": "f6df6e081b4f2363f5c2b6da0595aacd07826bb64dbebae6ed416663038e8445",
|
|
3
|
+
"chromedriver-v45.0.0-alpha.7-darwin-x64.zip": "92b72606eaffb51a9b3b2745bf30a1a236a5efc19ebf9c7a0643e27f27cd0c90",
|
|
4
|
+
"chromedriver-v45.0.0-alpha.7-linux-arm64.zip": "bc69fdf0bcdc35aee9cc3799c70f6b79a16328b491bb04a5096adad173518cec",
|
|
5
|
+
"chromedriver-v45.0.0-alpha.7-linux-x64.zip": "4d0ed6c1f90b3570166dd1ee20a59065edeb7b89dcb72347f8bbbde778e1ca8c",
|
|
6
|
+
"chromedriver-v45.0.0-alpha.7-mas-arm64.zip": "56f1f1ab180940a20cc0e526a615c698bbc1948bd70170e9d2404e1e1460ad97",
|
|
7
|
+
"chromedriver-v45.0.0-alpha.7-mas-x64.zip": "844cd5657d2d59a300c8d2a5c0583a50cddb67193d5fa6a348dc69032703f1ac",
|
|
8
|
+
"chromedriver-v45.0.0-alpha.7-win32-arm64.zip": "9aed37f7e3c8133135a7bbe9251ab0569ead2cacc8fd236d28ec909b42e9eafd",
|
|
9
|
+
"chromedriver-v45.0.0-alpha.7-win32-x64.zip": "829d460f570a5dfbdaf452a46a6848624f797df4e07f919aa41dbe8eb52e65b1",
|
|
10
|
+
"electron-api.json": "e4edf84f950bc3c4a62ac0d31fdf649bc29ac33b9a2beecfe427f8d0cae4887d",
|
|
11
|
+
"electron-v45.0.0-alpha.7-darwin-arm64-dsym-snapshot.zip": "f2326014f331a79fa947a2a313c39c095bebf686a5e9a55b49d41b50cb68a64d",
|
|
12
|
+
"electron-v45.0.0-alpha.7-darwin-arm64-dsym.tar.xz": "0375f0499712253e587b1d02b8240084c3dc649d09ecf8d8b9648bec0a5d1c86",
|
|
13
|
+
"electron-v45.0.0-alpha.7-darwin-arm64-symbols.zip": "6399336093f77a72434c6e421b9988d8f6fb1a8786e5ffe8b42b2f410ebf54b0",
|
|
14
|
+
"electron-v45.0.0-alpha.7-darwin-arm64.zip": "999eb7aa4a4c8ef6e9a432d45c84e36282869c55ddbc1ce38ae8bb273e9aa263",
|
|
15
|
+
"electron-v45.0.0-alpha.7-darwin-x64-dsym-snapshot.zip": "f2326014f331a79fa947a2a313c39c095bebf686a5e9a55b49d41b50cb68a64d",
|
|
16
|
+
"electron-v45.0.0-alpha.7-darwin-x64-dsym.tar.xz": "128cc2b44730fa9000d31c67d30d8a47e4754035ba86226c051b9c120bbe3175",
|
|
17
|
+
"electron-v45.0.0-alpha.7-darwin-x64-symbols.zip": "c33a4cb00a5e263a8042bb03451755cca047ed9d3d21694b05a64be36ffe1780",
|
|
18
|
+
"electron-v45.0.0-alpha.7-darwin-x64.zip": "bac82fcd3b4924117bfef35c6196dc128d9d38e4a6ad6034ad55900179ebb758",
|
|
19
|
+
"electron-v45.0.0-alpha.7-linux-arm64-debug.zip": "653f783cee7a45affe7025cdcfd95397dec5bff329fa363309f39fb8691124ba",
|
|
20
|
+
"electron-v45.0.0-alpha.7-linux-arm64-symbols.zip": "2523bf8b409da572cc69fcb22259483a57e772371a775043131860b53e9b5793",
|
|
21
|
+
"electron-v45.0.0-alpha.7-linux-arm64.zip": "946318edadb44e1d134ba5f3a81e5fefcc0e858c72622d457a7ef3fd25982900",
|
|
22
|
+
"electron-v45.0.0-alpha.7-linux-x64-debug.zip": "7ff221b9b0211d565fd069fc44acaf8a8dc8758b0d6f9b58228f77ef31e1a9d9",
|
|
23
|
+
"electron-v45.0.0-alpha.7-linux-x64-symbols.zip": "ce63745965b7d79f31806970c785ffa1fa97affbf4d311aa32148a5c62d21537",
|
|
24
|
+
"electron-v45.0.0-alpha.7-linux-x64.zip": "5d70327be7b35b5e262f28689ba8cf29d891205426c533c46151e6a5416c088a",
|
|
25
|
+
"electron-v45.0.0-alpha.7-mas-arm64-dsym-snapshot.zip": "f2326014f331a79fa947a2a313c39c095bebf686a5e9a55b49d41b50cb68a64d",
|
|
26
|
+
"electron-v45.0.0-alpha.7-mas-arm64-dsym.tar.xz": "da696859bc29b5ebfaae907f79a86072fb87a246adea7865fc8ab012f3f02477",
|
|
27
|
+
"electron-v45.0.0-alpha.7-mas-arm64-symbols.zip": "ee8bf3132d70cab893efda4f31eb04ddc75bf61e44d5e7ff2ee1e6429b9f495c",
|
|
28
|
+
"electron-v45.0.0-alpha.7-mas-arm64.zip": "6174d062714a5fc6864b90f9d43da88aed4151bc5e0e8a8e527a850c89aebadc",
|
|
29
|
+
"electron-v45.0.0-alpha.7-mas-x64-dsym-snapshot.zip": "f2326014f331a79fa947a2a313c39c095bebf686a5e9a55b49d41b50cb68a64d",
|
|
30
|
+
"electron-v45.0.0-alpha.7-mas-x64-dsym.tar.xz": "cd36c8a46014f4b6df974a7013cbe1b978a700d6a35c066b36bd5340ec7daeca",
|
|
31
|
+
"electron-v45.0.0-alpha.7-mas-x64-symbols.zip": "810d614eacadb5f110fcf57725bf63e26277b966c1741c0881047dac93b6d454",
|
|
32
|
+
"electron-v45.0.0-alpha.7-mas-x64.zip": "c4914b3439f424db11cc2d15fbbb323f436cad828c79b203a0d05a1c14d4cca5",
|
|
33
|
+
"electron-v45.0.0-alpha.7-win32-arm64-pdb.zip": "c6214eff73b97910f002b5eaaf69f6b9775043416a82f605e38b9eb00d850a98",
|
|
34
|
+
"electron-v45.0.0-alpha.7-win32-arm64-symbols.zip": "7de7005b5bec3615584a7e811471fe80157fb44cde9b787f2c849c14adb519a7",
|
|
35
|
+
"electron-v45.0.0-alpha.7-win32-arm64-toolchain-profile.zip": "c74afb2f66851265ce1b0bbe06018bb54fbc928e15ba08f24e194acd6a80f2a1",
|
|
36
|
+
"electron-v45.0.0-alpha.7-win32-arm64.zip": "f92a00cb80f38613e21c115926c6056d3a63c9846d8f9520d9e35030a8bf256a",
|
|
37
|
+
"electron-v45.0.0-alpha.7-win32-x64-pdb.zip": "2f29ef67ea3cd48028de1fb7a7cafb0674279506c4e31492467651955af9095e",
|
|
38
|
+
"electron-v45.0.0-alpha.7-win32-x64-symbols.zip": "fa94883edad192e1ad52c5e3037f3444956c67ec6c8a70c379f649bbe7a944e6",
|
|
39
|
+
"electron-v45.0.0-alpha.7-win32-x64-toolchain-profile.zip": "c74afb2f66851265ce1b0bbe06018bb54fbc928e15ba08f24e194acd6a80f2a1",
|
|
40
|
+
"electron-v45.0.0-alpha.7-win32-x64.zip": "b631023f0df0490ec6bac12830c54df288c24043ea77f6dcfcc66e7eb8b92ac2",
|
|
41
|
+
"electron.d.ts": "5ffe3a5bb61c97f7e537e3d1f2db8fc4205ecc2c9755674a1607121d60adb8bc",
|
|
42
|
+
"ffmpeg-v45.0.0-alpha.7-darwin-arm64.zip": "ba8263dcaaa9ebf670cdce0dc49d55525810f23242373e51fa682445102e6775",
|
|
43
|
+
"ffmpeg-v45.0.0-alpha.7-darwin-x64.zip": "53f4e6ce5c6b98c2d4a72659e6a2a757d0f337164805717485aaaaad3e27e38a",
|
|
44
|
+
"ffmpeg-v45.0.0-alpha.7-linux-arm64.zip": "3cfa9055426c80246c742dcb8bc6302fcf92405b57ea56543a11c49e1df9669c",
|
|
45
|
+
"ffmpeg-v45.0.0-alpha.7-linux-x64.zip": "171916cb70aa372d587495c8dbb952bf02fb32426bfa976a762731df6fe4df84",
|
|
46
|
+
"ffmpeg-v45.0.0-alpha.7-mas-arm64.zip": "5bb38af88e63b4670b27f350d94c8a7590a8f6b1eb96e7cd7323698427ade2c0",
|
|
47
|
+
"ffmpeg-v45.0.0-alpha.7-mas-x64.zip": "0dfda33a60e4b700af7e58cfb3047d30f212bf1920a5b6178188ac2800b51621",
|
|
48
|
+
"ffmpeg-v45.0.0-alpha.7-win32-arm64.zip": "a92ce598ce62463ae3ab69020c2121e1d607cb87fe0e3d0c9491b56c5cd27dff",
|
|
49
|
+
"ffmpeg-v45.0.0-alpha.7-win32-x64.zip": "620718a096ea5e58b7ca547d8b8313a95bd6cd4292bf9e04f32dfdcbe3992ca8",
|
|
50
|
+
"hunspell_dictionaries.zip": "625c26f593af145839a7e28e1528828e52608638e3d25417f750580cefe35a5a",
|
|
51
|
+
"libcxx-objects-v45.0.0-alpha.7-linux-arm64.zip": "d4c1a8a77ed9a9a9aff4e62c2d47097a28db0eaac48df5e22a2fce0953c72fba",
|
|
52
|
+
"libcxx-objects-v45.0.0-alpha.7-linux-x64.zip": "76e2f38d0d016e4316ffd12ab0bf21ee9c70a9dd32357d372759d47f8a58633d",
|
|
53
|
+
"libcxx_headers.zip": "d426d3be1d951de20de139e9a7f62712a9410c49cb29e1f4c806f35c9ff85f75",
|
|
54
|
+
"libcxxabi_headers.zip": "e4a377f8fdde1e1f1e8261debd29604a34817d95e68ee344499a1a5c372b5202",
|
|
55
|
+
"mksnapshot-v45.0.0-alpha.7-darwin-arm64.zip": "299ffed36c4572bab64084ce0c43e207084c7fa8e1df0855e2a281b9e5514c74",
|
|
56
|
+
"mksnapshot-v45.0.0-alpha.7-darwin-x64.zip": "8d720cc38e0f9d6ed3a1828dc743c60bb6225ef99d23069c9d6f62913ff0182f",
|
|
57
|
+
"mksnapshot-v45.0.0-alpha.7-linux-arm64-x64.zip": "c2106c283807bcc41fb7ce602773016fa15cd790706b4123bccd424f010f2c59",
|
|
58
|
+
"mksnapshot-v45.0.0-alpha.7-linux-x64.zip": "5cc1c6de2fe8101ec9069b74ab69ec12d56b987e8ba8b73bf41ba745ae3fafae",
|
|
59
|
+
"mksnapshot-v45.0.0-alpha.7-mas-arm64.zip": "01f1e783563a7b24d6ca41a8b72dccceacb6d15d14451ab468cc274970375cf1",
|
|
60
|
+
"mksnapshot-v45.0.0-alpha.7-mas-x64.zip": "51db6419e6b1af2ebc21cf77a41b76f77222fedf8329c60d79ed4180b68efd73",
|
|
61
|
+
"mksnapshot-v45.0.0-alpha.7-win32-arm64-x64.zip": "02bae899ff348ff277980a9561d197e82ae1ef768191ebfc4fcfcfea6c213704",
|
|
62
|
+
"mksnapshot-v45.0.0-alpha.7-win32-x64.zip": "e0dc1b624ab1ce05c7577261cfe34e03c3616010be237367fba9be017e01406d",
|
|
63
|
+
"xcache-v45.0.0-alpha.7-darwin-arm64.zip": "f77967d281bcf25705ecd1b67e7d45b4a1b615ff9ac2c23e445324687f351073",
|
|
64
|
+
"xcache-v45.0.0-alpha.7-darwin-x64.zip": "c33ab9adcd0297925a240ec1f88ad34de703d5615515650b628c9fb0d291520e",
|
|
65
|
+
"xcache-v45.0.0-alpha.7-linux-arm64.zip": "c45753034bb70981ef05ac61ad1ff93984ac15cb2090b3f9edbc6351964630bc",
|
|
66
|
+
"xcache-v45.0.0-alpha.7-linux-x64.zip": "742f8029956d5c220f38b642b4ec358f7a82542324d8b0cd0ea81b541f5673ac",
|
|
67
|
+
"xcache-v45.0.0-alpha.7-win32-arm64.zip": "e82eef8efa475101fbebb2ca1387286eb346c3f6d632df1d20a1347e98588bc0",
|
|
68
|
+
"xcache-v45.0.0-alpha.7-win32-x64.zip": "5f1162957e443a0c494d824b258ab7020ce3e67aa30b458d266ec864d53caccf"
|
|
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.7
|
|
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[];
|
|
@@ -12192,6 +12212,12 @@ declare namespace Electron {
|
|
|
12192
12212
|
/**
|
|
12193
12213
|
* the decrypted string. Decrypts the encrypted buffer obtained with
|
|
12194
12214
|
* `safeStorage.encryptString` back into a string.
|
|
12215
|
+
*
|
|
12216
|
+
* **Deprecated:** Use `safeStorage.decryptStringAsync(encrypted)` instead. Data
|
|
12217
|
+
* encrypted with `safeStorage.encryptString` can be decrypted with
|
|
12218
|
+
* `safeStorage.decryptStringAsync`.
|
|
12219
|
+
*
|
|
12220
|
+
* @deprecated
|
|
12195
12221
|
*/
|
|
12196
12222
|
decryptString(encrypted: Buffer): string;
|
|
12197
12223
|
/**
|
|
@@ -12208,6 +12234,10 @@ declare namespace Electron {
|
|
|
12208
12234
|
* An array of bytes representing the encrypted string.
|
|
12209
12235
|
*
|
|
12210
12236
|
* This function will throw an error if encryption fails.
|
|
12237
|
+
*
|
|
12238
|
+
* **Deprecated:** Use `safeStorage.encryptStringAsync(plainText)` instead.
|
|
12239
|
+
*
|
|
12240
|
+
* @deprecated
|
|
12211
12241
|
*/
|
|
12212
12242
|
encryptString(plainText: string): Buffer;
|
|
12213
12243
|
/**
|
|
@@ -12251,6 +12281,10 @@ declare namespace Electron {
|
|
|
12251
12281
|
* On Linux, returns true if the app has emitted the `ready` event and the secret
|
|
12252
12282
|
* key is available. On MacOS, returns true if Keychain is available. On Windows,
|
|
12253
12283
|
* returns true once the app has emitted the `ready` event.
|
|
12284
|
+
*
|
|
12285
|
+
* **Deprecated:** Use `safeStorage.isAsyncEncryptionAvailable()` instead.
|
|
12286
|
+
*
|
|
12287
|
+
* @deprecated
|
|
12254
12288
|
*/
|
|
12255
12289
|
isEncryptionAvailable(): boolean;
|
|
12256
12290
|
/**
|
|
@@ -12815,7 +12849,11 @@ declare namespace Electron {
|
|
|
12815
12849
|
* True if the renderer is requesting that the connection include credentials (see
|
|
12816
12850
|
* the spec for more details.)
|
|
12817
12851
|
*/
|
|
12818
|
-
allowCredentials: boolean
|
|
12852
|
+
allowCredentials: boolean,
|
|
12853
|
+
/**
|
|
12854
|
+
* The frame that requested the preconnection, if it still exists.
|
|
12855
|
+
*/
|
|
12856
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
12819
12857
|
off(event: 'preconnect', listener: (event: Event,
|
|
12820
12858
|
/**
|
|
12821
12859
|
* The URL being requested for preconnection by the renderer.
|
|
@@ -12825,7 +12863,11 @@ declare namespace Electron {
|
|
|
12825
12863
|
* True if the renderer is requesting that the connection include credentials (see
|
|
12826
12864
|
* the spec for more details.)
|
|
12827
12865
|
*/
|
|
12828
|
-
allowCredentials: boolean
|
|
12866
|
+
allowCredentials: boolean,
|
|
12867
|
+
/**
|
|
12868
|
+
* The frame that requested the preconnection, if it still exists.
|
|
12869
|
+
*/
|
|
12870
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
12829
12871
|
once(event: 'preconnect', listener: (event: Event,
|
|
12830
12872
|
/**
|
|
12831
12873
|
* The URL being requested for preconnection by the renderer.
|
|
@@ -12835,7 +12877,11 @@ declare namespace Electron {
|
|
|
12835
12877
|
* True if the renderer is requesting that the connection include credentials (see
|
|
12836
12878
|
* the spec for more details.)
|
|
12837
12879
|
*/
|
|
12838
|
-
allowCredentials: boolean
|
|
12880
|
+
allowCredentials: boolean,
|
|
12881
|
+
/**
|
|
12882
|
+
* The frame that requested the preconnection, if it still exists.
|
|
12883
|
+
*/
|
|
12884
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
12839
12885
|
addListener(event: 'preconnect', listener: (event: Event,
|
|
12840
12886
|
/**
|
|
12841
12887
|
* The URL being requested for preconnection by the renderer.
|
|
@@ -12845,7 +12891,11 @@ declare namespace Electron {
|
|
|
12845
12891
|
* True if the renderer is requesting that the connection include credentials (see
|
|
12846
12892
|
* the spec for more details.)
|
|
12847
12893
|
*/
|
|
12848
|
-
allowCredentials: boolean
|
|
12894
|
+
allowCredentials: boolean,
|
|
12895
|
+
/**
|
|
12896
|
+
* The frame that requested the preconnection, if it still exists.
|
|
12897
|
+
*/
|
|
12898
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
12849
12899
|
removeListener(event: 'preconnect', listener: (event: Event,
|
|
12850
12900
|
/**
|
|
12851
12901
|
* The URL being requested for preconnection by the renderer.
|
|
@@ -12855,7 +12905,11 @@ declare namespace Electron {
|
|
|
12855
12905
|
* True if the renderer is requesting that the connection include credentials (see
|
|
12856
12906
|
* the spec for more details.)
|
|
12857
12907
|
*/
|
|
12858
|
-
allowCredentials: boolean
|
|
12908
|
+
allowCredentials: boolean,
|
|
12909
|
+
/**
|
|
12910
|
+
* The frame that requested the preconnection, if it still exists.
|
|
12911
|
+
*/
|
|
12912
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
12859
12913
|
/**
|
|
12860
12914
|
* Emitted when a HID device needs to be selected when a call to
|
|
12861
12915
|
* `navigator.hid.requestDevice` is made. `callback` should be called with
|
|
@@ -13237,26 +13291,47 @@ declare namespace Electron {
|
|
|
13237
13291
|
removeListener(event: 'usb-device-revoked', listener: (event: Event,
|
|
13238
13292
|
details: UsbDeviceRevokedDetails) => void): this;
|
|
13239
13293
|
/**
|
|
13240
|
-
* Emitted when Electron is about to download `item` in `webContents`.
|
|
13294
|
+
* Emitted when Electron is about to download `item` in `webContents`. See also
|
|
13295
|
+
* `item.getInitiatorOrigin()`.
|
|
13241
13296
|
*
|
|
13242
13297
|
* Calling `event.preventDefault()` will cancel the download and `item` will not be
|
|
13243
13298
|
* available from next tick of the process.
|
|
13244
13299
|
*/
|
|
13245
13300
|
on(event: 'will-download', listener: (event: Event,
|
|
13246
13301
|
item: DownloadItem,
|
|
13247
|
-
webContents: WebContents
|
|
13302
|
+
webContents: WebContents,
|
|
13303
|
+
/**
|
|
13304
|
+
* The frame that started the download, if it still exists.
|
|
13305
|
+
*/
|
|
13306
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
13248
13307
|
off(event: 'will-download', listener: (event: Event,
|
|
13249
13308
|
item: DownloadItem,
|
|
13250
|
-
webContents: WebContents
|
|
13309
|
+
webContents: WebContents,
|
|
13310
|
+
/**
|
|
13311
|
+
* The frame that started the download, if it still exists.
|
|
13312
|
+
*/
|
|
13313
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
13251
13314
|
once(event: 'will-download', listener: (event: Event,
|
|
13252
13315
|
item: DownloadItem,
|
|
13253
|
-
webContents: WebContents
|
|
13316
|
+
webContents: WebContents,
|
|
13317
|
+
/**
|
|
13318
|
+
* The frame that started the download, if it still exists.
|
|
13319
|
+
*/
|
|
13320
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
13254
13321
|
addListener(event: 'will-download', listener: (event: Event,
|
|
13255
13322
|
item: DownloadItem,
|
|
13256
|
-
webContents: WebContents
|
|
13323
|
+
webContents: WebContents,
|
|
13324
|
+
/**
|
|
13325
|
+
* The frame that started the download, if it still exists.
|
|
13326
|
+
*/
|
|
13327
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
13257
13328
|
removeListener(event: 'will-download', listener: (event: Event,
|
|
13258
13329
|
item: DownloadItem,
|
|
13259
|
-
webContents: WebContents
|
|
13330
|
+
webContents: WebContents,
|
|
13331
|
+
/**
|
|
13332
|
+
* The frame that started the download, if it still exists.
|
|
13333
|
+
*/
|
|
13334
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
13260
13335
|
/**
|
|
13261
13336
|
* Whether the word was successfully written to the custom dictionary. This API
|
|
13262
13337
|
* will not work on non-persistent (in-memory) sessions.
|
|
@@ -18423,7 +18498,9 @@ declare namespace Electron {
|
|
|
18423
18498
|
* The identifier of a WebContents stream. This identifier can be used with
|
|
18424
18499
|
* `navigator.mediaDevices.getUserMedia` using a `chromeMediaSource` of `tab`. The
|
|
18425
18500
|
* identifier is restricted to the web contents that it is registered to and is
|
|
18426
|
-
* only valid for 10 seconds.
|
|
18501
|
+
* only valid for 10 seconds. The `desktop` source only accepts screen and window
|
|
18502
|
+
* identifiers from `desktopCapturer.getSources`; to capture a WebContents use this
|
|
18503
|
+
* identifier with the `tab` source, or `ses.setDisplayMediaRequestHandler`.
|
|
18427
18504
|
*/
|
|
18428
18505
|
getMediaSourceId(requestWebContents: WebContents): string;
|
|
18429
18506
|
/**
|
|
@@ -19763,8 +19840,10 @@ declare namespace Electron {
|
|
|
19763
19840
|
*/
|
|
19764
19841
|
nodeIntegrationInSubFrames?: boolean;
|
|
19765
19842
|
/**
|
|
19766
|
-
* Whether node integration is enabled in web workers. Default is `false`.
|
|
19767
|
-
*
|
|
19843
|
+
* Whether node integration is enabled in web workers. Default is `false`. Only
|
|
19844
|
+
* workers created by a frame that itself has access to Node.js (the main frame, or
|
|
19845
|
+
* any frame when `nodeIntegrationInSubFrames` is enabled) get it. More about this
|
|
19846
|
+
* can be found in Multithreading.
|
|
19768
19847
|
*/
|
|
19769
19848
|
nodeIntegrationInWorker?: boolean;
|
|
19770
19849
|
/**
|
|
@@ -20334,6 +20413,10 @@ declare namespace Electron {
|
|
|
20334
20413
|
removeEventListener(event: 'close', listener: (event: DOMEvent) => void): this;
|
|
20335
20414
|
/**
|
|
20336
20415
|
* Fired when the guest page has sent an asynchronous message to embedder page.
|
|
20416
|
+
* `frameId` does not tell the embedder which document sent the message; when that
|
|
20417
|
+
* matters, have the guest use `ipcRenderer.send()` and handle the guest
|
|
20418
|
+
* `webContents`' `ipc-message` event in the main process, where
|
|
20419
|
+
* `event.senderFrame` identifies the sender.
|
|
20337
20420
|
*
|
|
20338
20421
|
* With `sendToHost` method and `ipc-message` event you can communicate between
|
|
20339
20422
|
* guest page and embedder page:
|
|
@@ -20716,7 +20799,9 @@ declare namespace Electron {
|
|
|
20716
20799
|
unselect(): void;
|
|
20717
20800
|
/**
|
|
20718
20801
|
* A `boolean`. When this attribute is present the guest page will be allowed to
|
|
20719
|
-
* open new windows.
|
|
20802
|
+
* open new windows, whether through `window.open()` or a link opened into a new
|
|
20803
|
+
* window (for example a modifier-clicked or `target="_blank"` link). Popups are
|
|
20804
|
+
* disabled by default.
|
|
20720
20805
|
*/
|
|
20721
20806
|
allowpopups: boolean;
|
|
20722
20807
|
/**
|
|
@@ -23162,6 +23247,12 @@ declare namespace Electron {
|
|
|
23162
23247
|
* or been destroyed.
|
|
23163
23248
|
*/
|
|
23164
23249
|
frame?: (WebFrameMain) | (null);
|
|
23250
|
+
/**
|
|
23251
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23252
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23253
|
+
* for requests the browser started itself.
|
|
23254
|
+
*/
|
|
23255
|
+
initiatorOrigin?: string;
|
|
23165
23256
|
/**
|
|
23166
23257
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
23167
23258
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -23191,6 +23282,12 @@ declare namespace Electron {
|
|
|
23191
23282
|
* or been destroyed.
|
|
23192
23283
|
*/
|
|
23193
23284
|
frame?: (WebFrameMain) | (null);
|
|
23285
|
+
/**
|
|
23286
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23287
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23288
|
+
* for requests the browser started itself.
|
|
23289
|
+
*/
|
|
23290
|
+
initiatorOrigin?: string;
|
|
23194
23291
|
/**
|
|
23195
23292
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
23196
23293
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -23212,6 +23309,12 @@ declare namespace Electron {
|
|
|
23212
23309
|
* or been destroyed.
|
|
23213
23310
|
*/
|
|
23214
23311
|
frame?: (WebFrameMain) | (null);
|
|
23312
|
+
/**
|
|
23313
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23314
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23315
|
+
* for requests the browser started itself.
|
|
23316
|
+
*/
|
|
23317
|
+
initiatorOrigin?: string;
|
|
23215
23318
|
/**
|
|
23216
23319
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
23217
23320
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -23234,6 +23337,12 @@ declare namespace Electron {
|
|
|
23234
23337
|
* or been destroyed.
|
|
23235
23338
|
*/
|
|
23236
23339
|
frame?: (WebFrameMain) | (null);
|
|
23340
|
+
/**
|
|
23341
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23342
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23343
|
+
* for requests the browser started itself.
|
|
23344
|
+
*/
|
|
23345
|
+
initiatorOrigin?: string;
|
|
23237
23346
|
/**
|
|
23238
23347
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
23239
23348
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -23259,6 +23368,12 @@ declare namespace Electron {
|
|
|
23259
23368
|
* or been destroyed.
|
|
23260
23369
|
*/
|
|
23261
23370
|
frame?: (WebFrameMain) | (null);
|
|
23371
|
+
/**
|
|
23372
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23373
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23374
|
+
* for requests the browser started itself.
|
|
23375
|
+
*/
|
|
23376
|
+
initiatorOrigin?: string;
|
|
23262
23377
|
/**
|
|
23263
23378
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
23264
23379
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -23284,6 +23399,12 @@ declare namespace Electron {
|
|
|
23284
23399
|
* or been destroyed.
|
|
23285
23400
|
*/
|
|
23286
23401
|
frame?: (WebFrameMain) | (null);
|
|
23402
|
+
/**
|
|
23403
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23404
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23405
|
+
* for requests the browser started itself.
|
|
23406
|
+
*/
|
|
23407
|
+
initiatorOrigin?: string;
|
|
23287
23408
|
/**
|
|
23288
23409
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
23289
23410
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -23307,6 +23428,12 @@ declare namespace Electron {
|
|
|
23307
23428
|
* or been destroyed.
|
|
23308
23429
|
*/
|
|
23309
23430
|
frame?: (WebFrameMain) | (null);
|
|
23431
|
+
/**
|
|
23432
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23433
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23434
|
+
* for requests the browser started itself.
|
|
23435
|
+
*/
|
|
23436
|
+
initiatorOrigin?: string;
|
|
23310
23437
|
/**
|
|
23311
23438
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
23312
23439
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -23334,6 +23461,12 @@ declare namespace Electron {
|
|
|
23334
23461
|
* or been destroyed.
|
|
23335
23462
|
*/
|
|
23336
23463
|
frame?: (WebFrameMain) | (null);
|
|
23464
|
+
/**
|
|
23465
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23466
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23467
|
+
* for requests the browser started itself.
|
|
23468
|
+
*/
|
|
23469
|
+
initiatorOrigin?: string;
|
|
23337
23470
|
/**
|
|
23338
23471
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
23339
23472
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
package/package.json
CHANGED