electron 28.2.10 → 28.3.1
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 +75 -75
- package/electron.d.ts +54 -94
- package/package.json +1 -1
package/checksums.json
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
1
|
{
|
|
2
|
-
"chromedriver-v28.
|
|
3
|
-
"chromedriver-v28.
|
|
4
|
-
"chromedriver-v28.
|
|
5
|
-
"chromedriver-v28.
|
|
6
|
-
"chromedriver-v28.
|
|
7
|
-
"chromedriver-v28.
|
|
8
|
-
"chromedriver-v28.
|
|
9
|
-
"chromedriver-v28.
|
|
10
|
-
"chromedriver-v28.
|
|
11
|
-
"chromedriver-v28.
|
|
12
|
-
"electron-api.json": "
|
|
13
|
-
"electron-v28.
|
|
14
|
-
"electron-v28.
|
|
15
|
-
"electron-v28.
|
|
16
|
-
"electron-v28.
|
|
17
|
-
"electron-v28.
|
|
18
|
-
"electron-v28.
|
|
19
|
-
"electron-v28.
|
|
20
|
-
"electron-v28.
|
|
21
|
-
"electron-v28.
|
|
22
|
-
"electron-v28.
|
|
23
|
-
"electron-v28.
|
|
24
|
-
"electron-v28.
|
|
25
|
-
"electron-v28.
|
|
26
|
-
"electron-v28.
|
|
27
|
-
"electron-v28.
|
|
28
|
-
"electron-v28.
|
|
29
|
-
"electron-v28.
|
|
30
|
-
"electron-v28.
|
|
31
|
-
"electron-v28.
|
|
32
|
-
"electron-v28.
|
|
33
|
-
"electron-v28.
|
|
34
|
-
"electron-v28.
|
|
35
|
-
"electron-v28.
|
|
36
|
-
"electron-v28.
|
|
37
|
-
"electron-v28.
|
|
38
|
-
"electron-v28.
|
|
39
|
-
"electron-v28.
|
|
40
|
-
"electron-v28.
|
|
41
|
-
"electron-v28.
|
|
42
|
-
"electron-v28.
|
|
43
|
-
"electron-v28.
|
|
44
|
-
"electron-v28.
|
|
45
|
-
"electron-v28.
|
|
46
|
-
"electron-v28.
|
|
47
|
-
"electron-v28.
|
|
48
|
-
"electron-v28.
|
|
49
|
-
"electron-v28.
|
|
50
|
-
"electron.d.ts": "
|
|
51
|
-
"ffmpeg-v28.
|
|
52
|
-
"ffmpeg-v28.
|
|
53
|
-
"ffmpeg-v28.
|
|
54
|
-
"ffmpeg-v28.
|
|
55
|
-
"ffmpeg-v28.
|
|
56
|
-
"ffmpeg-v28.
|
|
57
|
-
"ffmpeg-v28.
|
|
58
|
-
"ffmpeg-v28.
|
|
59
|
-
"ffmpeg-v28.
|
|
60
|
-
"ffmpeg-v28.
|
|
61
|
-
"hunspell_dictionaries.zip": "
|
|
62
|
-
"libcxx-objects-v28.
|
|
63
|
-
"libcxx-objects-v28.
|
|
64
|
-
"libcxx-objects-v28.
|
|
65
|
-
"libcxx_headers.zip": "
|
|
66
|
-
"libcxxabi_headers.zip": "
|
|
67
|
-
"mksnapshot-v28.
|
|
68
|
-
"mksnapshot-v28.
|
|
69
|
-
"mksnapshot-v28.
|
|
70
|
-
"mksnapshot-v28.
|
|
71
|
-
"mksnapshot-v28.
|
|
72
|
-
"mksnapshot-v28.
|
|
73
|
-
"mksnapshot-v28.
|
|
74
|
-
"mksnapshot-v28.
|
|
75
|
-
"mksnapshot-v28.
|
|
76
|
-
"mksnapshot-v28.
|
|
2
|
+
"chromedriver-v28.3.1-darwin-arm64.zip": "ef175c5f3f18e373ab67b863301d437d9ede98af5ce5030fa0e2f64013d1d47f",
|
|
3
|
+
"chromedriver-v28.3.1-darwin-x64.zip": "333f5c3978359553431c6da505d7c8f20f66b0d8b131395bba8ec72f9661be64",
|
|
4
|
+
"chromedriver-v28.3.1-linux-arm64.zip": "09a1842368757614c88c79d31c46f03403481ad5348234634a727b89c89d3f2d",
|
|
5
|
+
"chromedriver-v28.3.1-linux-armv7l.zip": "aa4b3951157d0a2b3f35b1c8122c3d0156f33304ea768afd3137e49251bbf48c",
|
|
6
|
+
"chromedriver-v28.3.1-linux-x64.zip": "f0566c9c6124911124ea337db05ad077ed9e3fcfde9fa3d9cf5d9358f751ec00",
|
|
7
|
+
"chromedriver-v28.3.1-mas-arm64.zip": "16e48f83721f8ba1dc44b1e4ac6ff9d1baf770ffe0887dd1e0fa1384d98f34aa",
|
|
8
|
+
"chromedriver-v28.3.1-mas-x64.zip": "fc8367817ac022616a57ecd977e9959a973fe7da3795716eda3e25db1470237e",
|
|
9
|
+
"chromedriver-v28.3.1-win32-arm64.zip": "8612328764cef718ff4d0fa613753c97fc7b7f660a7dc673cc987bd4392eaa21",
|
|
10
|
+
"chromedriver-v28.3.1-win32-ia32.zip": "a8338278a62a7d1a3c27bc75b19a61a956ebacd3d68e35380413af01bfad1f69",
|
|
11
|
+
"chromedriver-v28.3.1-win32-x64.zip": "1bd73e267f388b8db25100fc68731fff8a234bc6f56eaf46238dba435a695dde",
|
|
12
|
+
"electron-api.json": "8c1916749f1280583d629ecf519357f0ef9cb104b98be9f51199dddd926fd344",
|
|
13
|
+
"electron-v28.3.1-darwin-arm64-dsym-snapshot.zip": "e032e0385e067e85337c2b35ad281458a204b8d22b82676eeae6aca48119678d",
|
|
14
|
+
"electron-v28.3.1-darwin-arm64-dsym.zip": "59b2be878ba26fc33f5cca43a53609c0036775e310be3c0ba24d183bf446e4f8",
|
|
15
|
+
"electron-v28.3.1-darwin-arm64-symbols.zip": "1c08f5285379560692a8aae936e1957d84082249a4dc643cfa3a16fce138032a",
|
|
16
|
+
"electron-v28.3.1-darwin-arm64.zip": "53fc040cd09e955e013254f784cf51712029ded4a574559cf5fa19c9a911d75d",
|
|
17
|
+
"electron-v28.3.1-darwin-x64-dsym-snapshot.zip": "17569a09ce7538dbad95805a0409ae8cac2c54c5a66b151d4f36c31a58bba7a7",
|
|
18
|
+
"electron-v28.3.1-darwin-x64-dsym.zip": "345425f8d0e70f9ed511646ed8998dfdca276caeb5221ef7b969cc648741af43",
|
|
19
|
+
"electron-v28.3.1-darwin-x64-symbols.zip": "56af363fe2498d308650a4fb114c0b5f1fb246ce0a81900b573e7fb4baaf4809",
|
|
20
|
+
"electron-v28.3.1-darwin-x64.zip": "bd8a220fd906625ad4a8edf92e80e8eff89d51f40c22168e05090daa7c12bd66",
|
|
21
|
+
"electron-v28.3.1-linux-arm64-debug.zip": "3cd32afc9d1df9b43f8e6be5638f938829a12e1e8d2c0c6aac4cfc5c918e0f8e",
|
|
22
|
+
"electron-v28.3.1-linux-arm64-symbols.zip": "c3921a7c95b2089c140bbbbb35561b6fdbd538949a5eb8a85a62bffcf3b48470",
|
|
23
|
+
"electron-v28.3.1-linux-arm64.zip": "3e46c3076041386213f7b9ebc12335889fbad5822ffc306cf7514abb88de8512",
|
|
24
|
+
"electron-v28.3.1-linux-armv7l-debug.zip": "3cd32afc9d1df9b43f8e6be5638f938829a12e1e8d2c0c6aac4cfc5c918e0f8e",
|
|
25
|
+
"electron-v28.3.1-linux-armv7l-symbols.zip": "08e318f8d294c2d90607c651cc60721c7197ade54a5bd51db44f6bb21f98ff36",
|
|
26
|
+
"electron-v28.3.1-linux-armv7l.zip": "2e22fbab2376a9bbeb8cbdd7d9bb3ca69fda6adeafa2b22ffb67157fcfcdb6ff",
|
|
27
|
+
"electron-v28.3.1-linux-x64-debug.zip": "9bc2fe1e97ef392c638a85f2cc50f88f89385f18811cc0ab20f206c455bcdeda",
|
|
28
|
+
"electron-v28.3.1-linux-x64-symbols.zip": "8ee9b627fcca94d3cfa6302f488fcb09981099e509896e5f81f52c6934cc6b4a",
|
|
29
|
+
"electron-v28.3.1-linux-x64.zip": "e3be93e1a15d61f72e074aee021e12f20465b81f51b8c1170bd9072d7d695c3a",
|
|
30
|
+
"electron-v28.3.1-mas-arm64-dsym-snapshot.zip": "281ed3d5a89f6afe4671debcd25b6f74b3197cee1e39e97aa1631e77f2d5e3f6",
|
|
31
|
+
"electron-v28.3.1-mas-arm64-dsym.zip": "f3042865589a78f832b8f549db6c2cd34cc274d2d5c34ada0bf9f138510bacaa",
|
|
32
|
+
"electron-v28.3.1-mas-arm64-symbols.zip": "74f5d9fbf28108bad2a9907f38905a75c83a0827c2dfca49c240082b33645e05",
|
|
33
|
+
"electron-v28.3.1-mas-arm64.zip": "9a362482f23678d77dbf91d42a830db5d0a89d8994ac51869d576d9668e61b3e",
|
|
34
|
+
"electron-v28.3.1-mas-x64-dsym-snapshot.zip": "fd629d16e0198693a1c9aa8d4bdaa1d6b3d601886524eb3234fa8203d83691d8",
|
|
35
|
+
"electron-v28.3.1-mas-x64-dsym.zip": "bb56d426103fb329f1471b16522d8d250f7cd44a52b906a3228bae32c3afeda7",
|
|
36
|
+
"electron-v28.3.1-mas-x64-symbols.zip": "9bb462d732a4fbe6aedc4951889f81e38145c9998517e50696ba841d2c631d19",
|
|
37
|
+
"electron-v28.3.1-mas-x64.zip": "71afd643144d72e986a6ee1673e23874002ac4fd93da103ae0b6784f525c20ee",
|
|
38
|
+
"electron-v28.3.1-win32-arm64-pdb.zip": "17284ffdd911eef64cb43c72e5803523c071d7ead082a66214274809eae3a93f",
|
|
39
|
+
"electron-v28.3.1-win32-arm64-symbols.zip": "b8765f1e554fceef14ce48d2ee0e0ddd7a46be4ea8907aff9a8cf64205cfa2ca",
|
|
40
|
+
"electron-v28.3.1-win32-arm64-toolchain-profile.zip": "c9f31ae6408aa6936b5d683eda601773789185890375cd097e61e924d4fed77a",
|
|
41
|
+
"electron-v28.3.1-win32-arm64.zip": "e0b08a3df9e89920dde36984a3d19bc8e2279867057e88204f7b8a5d7c10713c",
|
|
42
|
+
"electron-v28.3.1-win32-ia32-pdb.zip": "1a25859f716b0f7efe139406a06f4ad5c6dbd3ff580e3bd62e4648a8fcea44bf",
|
|
43
|
+
"electron-v28.3.1-win32-ia32-symbols.zip": "362512d541cb01aeb781cdfaa8c8a1bbfc4f02071b629c169b4da466f18e2785",
|
|
44
|
+
"electron-v28.3.1-win32-ia32-toolchain-profile.zip": "c9f31ae6408aa6936b5d683eda601773789185890375cd097e61e924d4fed77a",
|
|
45
|
+
"electron-v28.3.1-win32-ia32.zip": "040910d297baba260b7f281a2b467126fd7e52b1cf1562d2405bb6f487d848fb",
|
|
46
|
+
"electron-v28.3.1-win32-x64-pdb.zip": "ac8a052778d391ff6c7423f60bda12ca0fe91f8122148cb4c2ea8dbdbb929bb0",
|
|
47
|
+
"electron-v28.3.1-win32-x64-symbols.zip": "7c7bb09eb51578ebded2e9ee39beba27d907f10cfdff875e45e38ffe18856861",
|
|
48
|
+
"electron-v28.3.1-win32-x64-toolchain-profile.zip": "c9f31ae6408aa6936b5d683eda601773789185890375cd097e61e924d4fed77a",
|
|
49
|
+
"electron-v28.3.1-win32-x64.zip": "5469cb831c8a206df527fa6da7747045108b024421996412cdd80905cbd05b8d",
|
|
50
|
+
"electron.d.ts": "41c5128fbc93823ff2684ff57b804623d8475b24606d5cf23755362b716dbf93",
|
|
51
|
+
"ffmpeg-v28.3.1-darwin-arm64.zip": "7bf6af7b0a8a9569773a0f0658f116ac61b0d5318bbbca00854e7997e344a949",
|
|
52
|
+
"ffmpeg-v28.3.1-darwin-x64.zip": "7cddd3bd37d5172dd77a5113ed95b76f3449002d051121de6da63f63e7b93cdc",
|
|
53
|
+
"ffmpeg-v28.3.1-linux-arm64.zip": "8e108e533811febcc51f377ac8604d506663453e41c02dc818517e1ea9a4e8d5",
|
|
54
|
+
"ffmpeg-v28.3.1-linux-armv7l.zip": "51ecd03435f56a2ced31b1c9dbf281955ba82a814ca0214a4292bdc711e5a45c",
|
|
55
|
+
"ffmpeg-v28.3.1-linux-x64.zip": "acc9dc3765f68b7563045e2d0df11bbef6b41be0a1c34bbf9fa778f36eefb42f",
|
|
56
|
+
"ffmpeg-v28.3.1-mas-arm64.zip": "06a1e826274cc1243fbe6757317cf05dc1e355b3e6b371a84f848149bb6146e7",
|
|
57
|
+
"ffmpeg-v28.3.1-mas-x64.zip": "6b1e90406feea7a05a11d67ec597b77cdd5fd9e4b39d4fd8af95674b3db11e9f",
|
|
58
|
+
"ffmpeg-v28.3.1-win32-arm64.zip": "b1627a47e5946935e489ddd1c46f5f3d2bd5e54aecbdf9e936a18d9a68f82f97",
|
|
59
|
+
"ffmpeg-v28.3.1-win32-ia32.zip": "2dd2980e27ff5e190190ceb7fb384e0ee5928c4684d05a0b21d49fff75137203",
|
|
60
|
+
"ffmpeg-v28.3.1-win32-x64.zip": "443392aad2e542e245f6f7012f4f37b22307b3d21b565a1d95a305d8069e54c4",
|
|
61
|
+
"hunspell_dictionaries.zip": "e0089cce0575b65127cdc4286c3ec70a8434f0a5e427a9d1c95f79469f23903c",
|
|
62
|
+
"libcxx-objects-v28.3.1-linux-arm64.zip": "abcf049e06f3e679325e6c683cf0e9cc9c1ffa3db0fcd27411dedfef9d986e67",
|
|
63
|
+
"libcxx-objects-v28.3.1-linux-armv7l.zip": "12a5f2b9a61404d2f90aa01e1db53d16843314ded6c1cefbed1250e443eb1eac",
|
|
64
|
+
"libcxx-objects-v28.3.1-linux-x64.zip": "41a371d30d09c4c8a69331b4de8988ece171a44343cd6272469e39cf7b7c9002",
|
|
65
|
+
"libcxx_headers.zip": "81f18e02713023cec63d8cada7ef15e9e86cff4a868f1aeb6d3220720ec54992",
|
|
66
|
+
"libcxxabi_headers.zip": "ed09573116b009d85fd30739dd103ed9fd6522b612c11fafc2db86ff5ab39d4b",
|
|
67
|
+
"mksnapshot-v28.3.1-darwin-arm64.zip": "14ff99cdc66e95496f45683b0c55a9fb29cae6ece1c8461afccae5d351052a07",
|
|
68
|
+
"mksnapshot-v28.3.1-darwin-x64.zip": "01e88468caf3ae287ee0ca390950eb9a29c642d3da5342e51f364e21ccf3af79",
|
|
69
|
+
"mksnapshot-v28.3.1-linux-arm64-x64.zip": "6c9c0409b337291bff2dd50ec6846438b4aa43fbd5a52112de94233cf93f9e89",
|
|
70
|
+
"mksnapshot-v28.3.1-linux-armv7l-x64.zip": "482b97e82fb8d5e339eb49e80d2dd76c624fc758710665e769464b80f5e4ce87",
|
|
71
|
+
"mksnapshot-v28.3.1-linux-x64.zip": "7b642694681d6a164cfb59c14bc043a34f1fa194b354c81596bcd52c00e93343",
|
|
72
|
+
"mksnapshot-v28.3.1-mas-arm64.zip": "3d0927ab6240dccb7234a80d283192655426f943296710f133cd0815f964659a",
|
|
73
|
+
"mksnapshot-v28.3.1-mas-x64.zip": "5a6168e77b3bd67abb80bc0bfc57bb40910713fe6da2af25b24768e7713b360d",
|
|
74
|
+
"mksnapshot-v28.3.1-win32-arm64-x64.zip": "a0b4172c6ab4c14eed7ae4b2ab29de50a6105d9f2f23db7e2af037b99ce48135",
|
|
75
|
+
"mksnapshot-v28.3.1-win32-ia32.zip": "d47bf306abc6bef0a380ca936a4b2fa81fb16ab9b987975076a473116cec0b47",
|
|
76
|
+
"mksnapshot-v28.3.1-win32-x64.zip": "bda40f23fa76fc4a2e356478d5396c426b12b779713a6a4b6b7d17c4e44009c3"
|
|
77
77
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 28.
|
|
1
|
+
// Type definitions for Electron 28.3.1
|
|
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
|
|
@@ -1534,6 +1534,11 @@ declare namespace Electron {
|
|
|
1534
1534
|
* @platform darwin
|
|
1535
1535
|
*/
|
|
1536
1536
|
resignCurrentActivity(): void;
|
|
1537
|
+
/**
|
|
1538
|
+
* Resolves with the proxy information for `url` that will be used when attempting
|
|
1539
|
+
* to make requests using Net in the utility process.
|
|
1540
|
+
*/
|
|
1541
|
+
resolveProxy(url: string): Promise<string>;
|
|
1537
1542
|
/**
|
|
1538
1543
|
* Set the about panel options. This will override the values defined in the app's
|
|
1539
1544
|
* `.plist` file on macOS. See the Apple docs for more details. On Linux, values
|
|
@@ -1698,6 +1703,7 @@ declare namespace Electron {
|
|
|
1698
1703
|
* `sessionData` path before the `ready` event of the `app` module is emitted.
|
|
1699
1704
|
*/
|
|
1700
1705
|
setPath(name: string, path: string): void;
|
|
1706
|
+
setProxy(config: ProxyConfig): void;
|
|
1701
1707
|
/**
|
|
1702
1708
|
* Set the `Secure Keyboard Entry` is enabled in your application.
|
|
1703
1709
|
*
|
|
@@ -8334,6 +8340,30 @@ declare namespace Electron {
|
|
|
8334
8340
|
data: (string) | (Buffer);
|
|
8335
8341
|
}
|
|
8336
8342
|
|
|
8343
|
+
interface ProxyConfig {
|
|
8344
|
+
|
|
8345
|
+
// Docs: https://electronjs.org/docs/api/structures/proxy-config
|
|
8346
|
+
|
|
8347
|
+
/**
|
|
8348
|
+
* The proxy mode. Should be one of `direct`, `auto_detect`, `pac_script`,
|
|
8349
|
+
* `fixed_servers` or `system`. Defaults to `pac_script` proxy mode if `pacScript`
|
|
8350
|
+
* option is specified otherwise defaults to `fixed_servers`.
|
|
8351
|
+
*/
|
|
8352
|
+
mode?: ('direct' | 'auto_detect' | 'pac_script' | 'fixed_servers' | 'system');
|
|
8353
|
+
/**
|
|
8354
|
+
* The URL associated with the PAC file.
|
|
8355
|
+
*/
|
|
8356
|
+
pacScript?: string;
|
|
8357
|
+
/**
|
|
8358
|
+
* Rules indicating which URLs should bypass the proxy settings.
|
|
8359
|
+
*/
|
|
8360
|
+
proxyBypassRules?: string;
|
|
8361
|
+
/**
|
|
8362
|
+
* Rules indicating which proxies to use.
|
|
8363
|
+
*/
|
|
8364
|
+
proxyRules?: string;
|
|
8365
|
+
}
|
|
8366
|
+
|
|
8337
8367
|
interface PushNotifications extends NodeJS.EventEmitter {
|
|
8338
8368
|
|
|
8339
8369
|
// Docs: https://electronjs.org/docs/api/push-notifications
|
|
@@ -9594,7 +9624,7 @@ declare namespace Electron {
|
|
|
9594
9624
|
* make a permission request if the check is denied. To clear the handler, call
|
|
9595
9625
|
* `setPermissionCheckHandler(null)`.
|
|
9596
9626
|
*/
|
|
9597
|
-
setPermissionCheckHandler(handler: ((webContents: (WebContents) | (null), permission: 'clipboard-read' | 'clipboard-sanitized-write' | 'geolocation' | 'fullscreen' | 'hid' | 'idle-detection' | 'media' | 'mediaKeySystem' | 'midi' | 'midiSysex' | 'notifications' | 'openExternal' | 'pointerLock' | 'serial' | 'usb', requestingOrigin: string, details: PermissionCheckHandlerHandlerDetails) => boolean) | (null)): void;
|
|
9627
|
+
setPermissionCheckHandler(handler: ((webContents: (WebContents) | (null), permission: 'clipboard-read' | 'clipboard-sanitized-write' | 'geolocation' | 'fullscreen' | 'hid' | 'idle-detection' | 'media' | 'mediaKeySystem' | 'midi' | 'midiSysex' | 'notifications' | 'openExternal' | 'pointerLock' | 'serial' | 'storage-access' | 'top-level-storage-access' | 'usb', requestingOrigin: string, details: PermissionCheckHandlerHandlerDetails) => boolean) | (null)): void;
|
|
9598
9628
|
/**
|
|
9599
9629
|
* Sets the handler which can be used to respond to permission requests for the
|
|
9600
9630
|
* `session`. Calling `callback(true)` will allow the permission and
|
|
@@ -9603,7 +9633,7 @@ declare namespace Electron {
|
|
|
9603
9633
|
* `setPermissionCheckHandler` to get complete permission handling. Most web APIs
|
|
9604
9634
|
* do a permission check and then make a permission request if the check is denied.
|
|
9605
9635
|
*/
|
|
9606
|
-
setPermissionRequestHandler(handler: ((webContents: WebContents, permission: 'clipboard-read' | 'clipboard-sanitized-write' | 'display-capture' | 'fullscreen' | 'geolocation' | 'idle-detection' | 'media' | 'mediaKeySystem' | 'midi' | 'midiSysex' | 'notifications' | 'pointerLock' | 'keyboardLock' | 'openExternal' | 'window-management' | 'unknown', callback: (permissionGranted: boolean) => void, details: PermissionRequestHandlerHandlerDetails) => void) | (null)): void;
|
|
9636
|
+
setPermissionRequestHandler(handler: ((webContents: WebContents, permission: 'clipboard-read' | 'clipboard-sanitized-write' | 'display-capture' | 'fullscreen' | 'geolocation' | 'idle-detection' | 'media' | 'mediaKeySystem' | 'midi' | 'midiSysex' | 'notifications' | 'pointerLock' | 'keyboardLock' | 'openExternal' | 'storage-access' | 'top-level-storage-access' | 'window-management' | 'unknown', callback: (permissionGranted: boolean) => void, details: PermissionRequestHandlerHandlerDetails) => void) | (null)): void;
|
|
9607
9637
|
/**
|
|
9608
9638
|
* Adds scripts that will be executed on ALL web contents that are associated with
|
|
9609
9639
|
* this session just before normal `preload` scripts run.
|
|
@@ -9614,60 +9644,11 @@ declare namespace Electron {
|
|
|
9614
9644
|
*
|
|
9615
9645
|
* Sets the proxy settings.
|
|
9616
9646
|
*
|
|
9617
|
-
* When `mode` is unspecified, `pacScript` and `proxyRules` are provided together,
|
|
9618
|
-
* the `proxyRules` option is ignored and `pacScript` configuration is applied.
|
|
9619
|
-
*
|
|
9620
9647
|
* You may need `ses.closeAllConnections` to close currently in flight connections
|
|
9621
9648
|
* to prevent pooled sockets using previous proxy from being reused by future
|
|
9622
9649
|
* requests.
|
|
9623
|
-
*
|
|
9624
|
-
* The `proxyRules` has to follow the rules below:
|
|
9625
|
-
*
|
|
9626
|
-
* For example:
|
|
9627
|
-
*
|
|
9628
|
-
* * `http=foopy:80;ftp=foopy2` - Use HTTP proxy `foopy:80` for `http://` URLs, and
|
|
9629
|
-
* HTTP proxy `foopy2:80` for `ftp://` URLs.
|
|
9630
|
-
* * `foopy:80` - Use HTTP proxy `foopy:80` for all URLs.
|
|
9631
|
-
* * `foopy:80,bar,direct://` - Use HTTP proxy `foopy:80` for all URLs, failing
|
|
9632
|
-
* over to `bar` if `foopy:80` is unavailable, and after that using no proxy.
|
|
9633
|
-
* * `socks4://foopy` - Use SOCKS v4 proxy `foopy:1080` for all URLs.
|
|
9634
|
-
* * `http=foopy,socks5://bar.com` - Use HTTP proxy `foopy` for http URLs, and fail
|
|
9635
|
-
* over to the SOCKS5 proxy `bar.com` if `foopy` is unavailable.
|
|
9636
|
-
* * `http=foopy,direct://` - Use HTTP proxy `foopy` for http URLs, and use no
|
|
9637
|
-
* proxy if `foopy` is unavailable.
|
|
9638
|
-
* * `http=foopy;socks=foopy2` - Use HTTP proxy `foopy` for http URLs, and use
|
|
9639
|
-
* `socks4://foopy2` for all other URLs.
|
|
9640
|
-
*
|
|
9641
|
-
* The `proxyBypassRules` is a comma separated list of rules described below:
|
|
9642
|
-
*
|
|
9643
|
-
* * `[ URL_SCHEME "://" ] HOSTNAME_PATTERN [ ":" <port> ]`
|
|
9644
|
-
*
|
|
9645
|
-
* Match all hostnames that match the pattern HOSTNAME_PATTERN.
|
|
9646
|
-
*
|
|
9647
|
-
* Examples: "foobar.com", "*foobar.com", "*.foobar.com", "*foobar.com:99",
|
|
9648
|
-
* "https://x.*.y.com:99"
|
|
9649
|
-
* * `"." HOSTNAME_SUFFIX_PATTERN [ ":" PORT ]`
|
|
9650
|
-
*
|
|
9651
|
-
* Match a particular domain suffix.
|
|
9652
|
-
*
|
|
9653
|
-
* Examples: ".google.com", ".com", "http://.google.com"
|
|
9654
|
-
* * `[ SCHEME "://" ] IP_LITERAL [ ":" PORT ]`
|
|
9655
|
-
*
|
|
9656
|
-
* Match URLs which are IP address literals.
|
|
9657
|
-
*
|
|
9658
|
-
* Examples: "127.0.1", "[0:0::1]", "[::1]", "http://[::1]:99"
|
|
9659
|
-
* * `IP_LITERAL "/" PREFIX_LENGTH_IN_BITS`
|
|
9660
|
-
*
|
|
9661
|
-
* Match any URL that is to an IP literal that falls between the given range. IP
|
|
9662
|
-
* range is specified using CIDR notation.
|
|
9663
|
-
*
|
|
9664
|
-
* Examples: "192.168.1.1/16", "fefe:13::abc/33".
|
|
9665
|
-
* * `<local>`
|
|
9666
|
-
*
|
|
9667
|
-
* Match local addresses. The meaning of `<local>` is whether the host matches one
|
|
9668
|
-
* of: "127.0.0.1", "::1", "localhost".
|
|
9669
9650
|
*/
|
|
9670
|
-
setProxy(config:
|
|
9651
|
+
setProxy(config: ProxyConfig): Promise<void>;
|
|
9671
9652
|
/**
|
|
9672
9653
|
* By default Electron will download hunspell dictionaries from the Chromium CDN.
|
|
9673
9654
|
* If you want to override this behavior you can use this API to point the
|
|
@@ -9710,7 +9691,7 @@ declare namespace Electron {
|
|
|
9710
9691
|
* connections) will not be terminated, but old sockets in the pool will not be
|
|
9711
9692
|
* reused for new connections.
|
|
9712
9693
|
*/
|
|
9713
|
-
setSSLConfig(config:
|
|
9694
|
+
setSSLConfig(config: Config): void;
|
|
9714
9695
|
/**
|
|
9715
9696
|
* Sets the handler which can be used to override which USB classes are protected.
|
|
9716
9697
|
* The return value for the handler is a string array of USB classes which should
|
|
@@ -16074,23 +16055,25 @@ declare namespace Electron {
|
|
|
16074
16055
|
|
|
16075
16056
|
interface Config {
|
|
16076
16057
|
/**
|
|
16077
|
-
*
|
|
16078
|
-
*
|
|
16079
|
-
* determined based on other specified options.
|
|
16080
|
-
*/
|
|
16081
|
-
mode?: ('direct' | 'auto_detect' | 'pac_script' | 'fixed_servers' | 'system');
|
|
16082
|
-
/**
|
|
16083
|
-
* The URL associated with the PAC file.
|
|
16058
|
+
* Can be `tls1`, `tls1.1`, `tls1.2` or `tls1.3`. The minimum SSL version to allow
|
|
16059
|
+
* when connecting to remote servers. Defaults to `tls1`.
|
|
16084
16060
|
*/
|
|
16085
|
-
|
|
16061
|
+
minVersion?: ('tls1' | 'tls1.1' | 'tls1.2' | 'tls1.3');
|
|
16086
16062
|
/**
|
|
16087
|
-
*
|
|
16063
|
+
* Can be `tls1.2` or `tls1.3`. The maximum SSL version to allow when connecting to
|
|
16064
|
+
* remote servers. Defaults to `tls1.3`.
|
|
16088
16065
|
*/
|
|
16089
|
-
|
|
16066
|
+
maxVersion?: ('tls1.2' | 'tls1.3');
|
|
16090
16067
|
/**
|
|
16091
|
-
*
|
|
16068
|
+
* List of cipher suites which should be explicitly prevented from being used in
|
|
16069
|
+
* addition to those disabled by the net built-in policy. Supported literal forms:
|
|
16070
|
+
* 0xAABB, where AA is `cipher_suite[0]` and BB is `cipher_suite[1]`, as defined in
|
|
16071
|
+
* RFC 2246, Section 7.4.1.2. Unrecognized but parsable cipher suites in this form
|
|
16072
|
+
* will not return an error. Ex: To disable TLS_RSA_WITH_RC4_128_MD5, specify
|
|
16073
|
+
* 0x0004, while to disable TLS_ECDH_ECDSA_WITH_RC4_128_SHA, specify 0xC002. Note
|
|
16074
|
+
* that TLSv1.3 ciphers cannot be disabled using this mechanism.
|
|
16092
16075
|
*/
|
|
16093
|
-
|
|
16076
|
+
disabledCipherSuites?: number[];
|
|
16094
16077
|
}
|
|
16095
16078
|
|
|
16096
16079
|
interface ConfigureHostResolverOptions {
|
|
@@ -18427,29 +18410,6 @@ declare namespace Electron {
|
|
|
18427
18410
|
fetchWindowIcons?: boolean;
|
|
18428
18411
|
}
|
|
18429
18412
|
|
|
18430
|
-
interface SSLConfigConfig {
|
|
18431
|
-
/**
|
|
18432
|
-
* Can be `tls1`, `tls1.1`, `tls1.2` or `tls1.3`. The minimum SSL version to allow
|
|
18433
|
-
* when connecting to remote servers. Defaults to `tls1`.
|
|
18434
|
-
*/
|
|
18435
|
-
minVersion?: ('tls1' | 'tls1.1' | 'tls1.2' | 'tls1.3');
|
|
18436
|
-
/**
|
|
18437
|
-
* Can be `tls1.2` or `tls1.3`. The maximum SSL version to allow when connecting to
|
|
18438
|
-
* remote servers. Defaults to `tls1.3`.
|
|
18439
|
-
*/
|
|
18440
|
-
maxVersion?: ('tls1.2' | 'tls1.3');
|
|
18441
|
-
/**
|
|
18442
|
-
* List of cipher suites which should be explicitly prevented from being used in
|
|
18443
|
-
* addition to those disabled by the net built-in policy. Supported literal forms:
|
|
18444
|
-
* 0xAABB, where AA is `cipher_suite[0]` and BB is `cipher_suite[1]`, as defined in
|
|
18445
|
-
* RFC 2246, Section 7.4.1.2. Unrecognized but parsable cipher suites in this form
|
|
18446
|
-
* will not return an error. Ex: To disable TLS_RSA_WITH_RC4_128_MD5, specify
|
|
18447
|
-
* 0x0004, while to disable TLS_ECDH_ECDSA_WITH_RC4_128_SHA, specify 0xC002. Note
|
|
18448
|
-
* that TLSv1.3 ciphers cannot be disabled using this mechanism.
|
|
18449
|
-
*/
|
|
18450
|
-
disabledCipherSuites?: number[];
|
|
18451
|
-
}
|
|
18452
|
-
|
|
18453
18413
|
interface StartLoggingOptions {
|
|
18454
18414
|
/**
|
|
18455
18415
|
* What kinds of data should be captured. By default, only metadata about requests
|
|
@@ -19591,7 +19551,6 @@ declare namespace Electron {
|
|
|
19591
19551
|
type SerialPortRevokedDetails = Electron.SerialPortRevokedDetails;
|
|
19592
19552
|
type Settings = Electron.Settings;
|
|
19593
19553
|
type SourcesOptions = Electron.SourcesOptions;
|
|
19594
|
-
type SSLConfigConfig = Electron.SSLConfigConfig;
|
|
19595
19554
|
type StartLoggingOptions = Electron.StartLoggingOptions;
|
|
19596
19555
|
type Streams = Electron.Streams;
|
|
19597
19556
|
type SystemMemoryInfo = Electron.SystemMemoryInfo;
|
|
@@ -19682,6 +19641,7 @@ declare namespace Electron {
|
|
|
19682
19641
|
type ProtocolRequest = Electron.ProtocolRequest;
|
|
19683
19642
|
type ProtocolResponse = Electron.ProtocolResponse;
|
|
19684
19643
|
type ProtocolResponseUploadData = Electron.ProtocolResponseUploadData;
|
|
19644
|
+
type ProxyConfig = Electron.ProxyConfig;
|
|
19685
19645
|
type Rectangle = Electron.Rectangle;
|
|
19686
19646
|
type Referrer = Electron.Referrer;
|
|
19687
19647
|
type RenderProcessGoneDetails = Electron.RenderProcessGoneDetails;
|
|
@@ -19919,7 +19879,6 @@ declare namespace Electron {
|
|
|
19919
19879
|
type SerialPortRevokedDetails = Electron.SerialPortRevokedDetails;
|
|
19920
19880
|
type Settings = Electron.Settings;
|
|
19921
19881
|
type SourcesOptions = Electron.SourcesOptions;
|
|
19922
|
-
type SSLConfigConfig = Electron.SSLConfigConfig;
|
|
19923
19882
|
type StartLoggingOptions = Electron.StartLoggingOptions;
|
|
19924
19883
|
type Streams = Electron.Streams;
|
|
19925
19884
|
type SystemMemoryInfo = Electron.SystemMemoryInfo;
|
|
@@ -20010,6 +19969,7 @@ declare namespace Electron {
|
|
|
20010
19969
|
type ProtocolRequest = Electron.ProtocolRequest;
|
|
20011
19970
|
type ProtocolResponse = Electron.ProtocolResponse;
|
|
20012
19971
|
type ProtocolResponseUploadData = Electron.ProtocolResponseUploadData;
|
|
19972
|
+
type ProxyConfig = Electron.ProxyConfig;
|
|
20013
19973
|
type Rectangle = Electron.Rectangle;
|
|
20014
19974
|
type Referrer = Electron.Referrer;
|
|
20015
19975
|
type RenderProcessGoneDetails = Electron.RenderProcessGoneDetails;
|
|
@@ -20181,7 +20141,6 @@ declare namespace Electron {
|
|
|
20181
20141
|
type SerialPortRevokedDetails = Electron.SerialPortRevokedDetails;
|
|
20182
20142
|
type Settings = Electron.Settings;
|
|
20183
20143
|
type SourcesOptions = Electron.SourcesOptions;
|
|
20184
|
-
type SSLConfigConfig = Electron.SSLConfigConfig;
|
|
20185
20144
|
type StartLoggingOptions = Electron.StartLoggingOptions;
|
|
20186
20145
|
type Streams = Electron.Streams;
|
|
20187
20146
|
type SystemMemoryInfo = Electron.SystemMemoryInfo;
|
|
@@ -20272,6 +20231,7 @@ declare namespace Electron {
|
|
|
20272
20231
|
type ProtocolRequest = Electron.ProtocolRequest;
|
|
20273
20232
|
type ProtocolResponse = Electron.ProtocolResponse;
|
|
20274
20233
|
type ProtocolResponseUploadData = Electron.ProtocolResponseUploadData;
|
|
20234
|
+
type ProxyConfig = Electron.ProxyConfig;
|
|
20275
20235
|
type Rectangle = Electron.Rectangle;
|
|
20276
20236
|
type Referrer = Electron.Referrer;
|
|
20277
20237
|
type RenderProcessGoneDetails = Electron.RenderProcessGoneDetails;
|
|
@@ -20440,7 +20400,6 @@ declare namespace Electron {
|
|
|
20440
20400
|
type SerialPortRevokedDetails = Electron.SerialPortRevokedDetails;
|
|
20441
20401
|
type Settings = Electron.Settings;
|
|
20442
20402
|
type SourcesOptions = Electron.SourcesOptions;
|
|
20443
|
-
type SSLConfigConfig = Electron.SSLConfigConfig;
|
|
20444
20403
|
type StartLoggingOptions = Electron.StartLoggingOptions;
|
|
20445
20404
|
type Streams = Electron.Streams;
|
|
20446
20405
|
type SystemMemoryInfo = Electron.SystemMemoryInfo;
|
|
@@ -20531,6 +20490,7 @@ declare namespace Electron {
|
|
|
20531
20490
|
type ProtocolRequest = Electron.ProtocolRequest;
|
|
20532
20491
|
type ProtocolResponse = Electron.ProtocolResponse;
|
|
20533
20492
|
type ProtocolResponseUploadData = Electron.ProtocolResponseUploadData;
|
|
20493
|
+
type ProxyConfig = Electron.ProxyConfig;
|
|
20534
20494
|
type Rectangle = Electron.Rectangle;
|
|
20535
20495
|
type Referrer = Electron.Referrer;
|
|
20536
20496
|
type RenderProcessGoneDetails = Electron.RenderProcessGoneDetails;
|
|
@@ -20783,7 +20743,6 @@ declare namespace Electron {
|
|
|
20783
20743
|
type SerialPortRevokedDetails = Electron.SerialPortRevokedDetails;
|
|
20784
20744
|
type Settings = Electron.Settings;
|
|
20785
20745
|
type SourcesOptions = Electron.SourcesOptions;
|
|
20786
|
-
type SSLConfigConfig = Electron.SSLConfigConfig;
|
|
20787
20746
|
type StartLoggingOptions = Electron.StartLoggingOptions;
|
|
20788
20747
|
type Streams = Electron.Streams;
|
|
20789
20748
|
type SystemMemoryInfo = Electron.SystemMemoryInfo;
|
|
@@ -20874,6 +20833,7 @@ declare namespace Electron {
|
|
|
20874
20833
|
type ProtocolRequest = Electron.ProtocolRequest;
|
|
20875
20834
|
type ProtocolResponse = Electron.ProtocolResponse;
|
|
20876
20835
|
type ProtocolResponseUploadData = Electron.ProtocolResponseUploadData;
|
|
20836
|
+
type ProxyConfig = Electron.ProxyConfig;
|
|
20877
20837
|
type Rectangle = Electron.Rectangle;
|
|
20878
20838
|
type Referrer = Electron.Referrer;
|
|
20879
20839
|
type RenderProcessGoneDetails = Electron.RenderProcessGoneDetails;
|
package/package.json
CHANGED