electron 43.1.1 → 43.3.0
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 +204 -32
- package/package.json +1 -1
package/checksums.json
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
1
|
{
|
|
2
|
-
"chromedriver-v43.
|
|
3
|
-
"chromedriver-v43.
|
|
4
|
-
"chromedriver-v43.
|
|
5
|
-
"chromedriver-v43.
|
|
6
|
-
"chromedriver-v43.
|
|
7
|
-
"chromedriver-v43.
|
|
8
|
-
"chromedriver-v43.
|
|
9
|
-
"chromedriver-v43.
|
|
10
|
-
"chromedriver-v43.
|
|
11
|
-
"chromedriver-v43.
|
|
12
|
-
"electron-api.json": "
|
|
13
|
-
"electron-v43.
|
|
14
|
-
"electron-v43.
|
|
15
|
-
"electron-v43.
|
|
16
|
-
"electron-v43.
|
|
17
|
-
"electron-v43.
|
|
18
|
-
"electron-v43.
|
|
19
|
-
"electron-v43.
|
|
20
|
-
"electron-v43.
|
|
21
|
-
"electron-v43.
|
|
22
|
-
"electron-v43.
|
|
23
|
-
"electron-v43.
|
|
24
|
-
"electron-v43.
|
|
25
|
-
"electron-v43.
|
|
26
|
-
"electron-v43.
|
|
27
|
-
"electron-v43.
|
|
28
|
-
"electron-v43.
|
|
29
|
-
"electron-v43.
|
|
30
|
-
"electron-v43.
|
|
31
|
-
"electron-v43.
|
|
32
|
-
"electron-v43.
|
|
33
|
-
"electron-v43.
|
|
34
|
-
"electron-v43.
|
|
35
|
-
"electron-v43.
|
|
36
|
-
"electron-v43.
|
|
37
|
-
"electron-v43.
|
|
38
|
-
"electron-v43.
|
|
39
|
-
"electron-v43.
|
|
40
|
-
"electron-v43.
|
|
41
|
-
"electron-v43.
|
|
42
|
-
"electron-v43.
|
|
43
|
-
"electron-v43.
|
|
44
|
-
"electron-v43.
|
|
45
|
-
"electron-v43.
|
|
46
|
-
"electron-v43.
|
|
47
|
-
"electron-v43.
|
|
48
|
-
"electron-v43.
|
|
49
|
-
"electron-v43.
|
|
50
|
-
"electron.d.ts": "
|
|
51
|
-
"ffmpeg-v43.
|
|
52
|
-
"ffmpeg-v43.
|
|
53
|
-
"ffmpeg-v43.
|
|
54
|
-
"ffmpeg-v43.
|
|
55
|
-
"ffmpeg-v43.
|
|
56
|
-
"ffmpeg-v43.
|
|
57
|
-
"ffmpeg-v43.
|
|
58
|
-
"ffmpeg-v43.
|
|
59
|
-
"ffmpeg-v43.
|
|
60
|
-
"ffmpeg-v43.
|
|
61
|
-
"hunspell_dictionaries.zip": "
|
|
62
|
-
"libcxx-objects-v43.
|
|
63
|
-
"libcxx-objects-v43.
|
|
64
|
-
"libcxx-objects-v43.
|
|
65
|
-
"libcxx_headers.zip": "
|
|
66
|
-
"libcxxabi_headers.zip": "
|
|
67
|
-
"mksnapshot-v43.
|
|
68
|
-
"mksnapshot-v43.
|
|
69
|
-
"mksnapshot-v43.
|
|
70
|
-
"mksnapshot-v43.
|
|
71
|
-
"mksnapshot-v43.
|
|
72
|
-
"mksnapshot-v43.
|
|
73
|
-
"mksnapshot-v43.
|
|
74
|
-
"mksnapshot-v43.
|
|
75
|
-
"mksnapshot-v43.
|
|
76
|
-
"mksnapshot-v43.
|
|
2
|
+
"chromedriver-v43.3.0-darwin-arm64.zip": "1c158a7af0c37a3563df937c1147a28ab0f6c934d9b968dd9221eadce5f2f819",
|
|
3
|
+
"chromedriver-v43.3.0-darwin-x64.zip": "ab2ede2f8384b5de8c37cd6f3cf8ed2345273e4f079fdb4c39fbc2a014fa7f33",
|
|
4
|
+
"chromedriver-v43.3.0-linux-arm64.zip": "397fe091e77ec79790a1a562bf063bf3572a98389f20f7ebff37e846292736d7",
|
|
5
|
+
"chromedriver-v43.3.0-linux-armv7l.zip": "004a9bc0df93902d9c449d637bb27707e9134619c303acd84adf713a4054ac92",
|
|
6
|
+
"chromedriver-v43.3.0-linux-x64.zip": "38f04353088f38e02dba76f16101813966d70e318c5d1d37ac189ea09be1aac5",
|
|
7
|
+
"chromedriver-v43.3.0-mas-arm64.zip": "c0decf43a81c18eccadae8494cf1792c5c4a372e444634715250bd3d4c3b5e00",
|
|
8
|
+
"chromedriver-v43.3.0-mas-x64.zip": "8bbc52872f38de606e514e1a6b4cb1f25bde7bf80873f76abb643e578c50d43d",
|
|
9
|
+
"chromedriver-v43.3.0-win32-arm64.zip": "71eb3274edcec8bd45a7180ad2a4b9b4e2534ba58b40a89daecf54aa7be3555c",
|
|
10
|
+
"chromedriver-v43.3.0-win32-ia32.zip": "a759bf9ebd02322cd5bdc78ad7814942a75ec0ecef37f4bfcf5b14d46abe3b0d",
|
|
11
|
+
"chromedriver-v43.3.0-win32-x64.zip": "cd91c4a9cce75bbef931c9b2e5abc4f83e895e800a2faf9e4b16ea2728fba8f8",
|
|
12
|
+
"electron-api.json": "41dc5479805b03d67bab62c2fd1996a560eeffa877daaa1208baf36dc9ff25f8",
|
|
13
|
+
"electron-v43.3.0-darwin-arm64-dsym-snapshot.zip": "dd147d7514ba610e58c4631dac48591a446718720e3d3c6fe94f114182d32aae",
|
|
14
|
+
"electron-v43.3.0-darwin-arm64-dsym.tar.xz": "b49bc2dfe2d38274556b5172740ee94215cb3d037ff63bb8b7a461901d68501a",
|
|
15
|
+
"electron-v43.3.0-darwin-arm64-symbols.zip": "cbd5e27ccd0d0c29561d8be3906f7cf70946e8230517d34ebee4be55b1ef6b19",
|
|
16
|
+
"electron-v43.3.0-darwin-arm64.zip": "ee939d1564d83d61032b3b3cb23af4e46005a4900c91f0695f7ed793f0ce6e83",
|
|
17
|
+
"electron-v43.3.0-darwin-x64-dsym-snapshot.zip": "43c9bd22eeec7b73d8eff99b29a2eae8ea2d942f681b98505ce846c7c2dba9ca",
|
|
18
|
+
"electron-v43.3.0-darwin-x64-dsym.tar.xz": "bbe66126fe9d4f2542cfaf45f1e0e5fb0f05f3c6ca39e4b5f0c1aea0d28e94e4",
|
|
19
|
+
"electron-v43.3.0-darwin-x64-symbols.zip": "b3d9267c9c8980d7841bc47d43ea06d161ffe7c99ae84af07d0088935c117493",
|
|
20
|
+
"electron-v43.3.0-darwin-x64.zip": "7347bbd5fb529eea64f9c2d148bb1c19222d98946ff234ffe27953a1bbcb9dae",
|
|
21
|
+
"electron-v43.3.0-linux-arm64-debug.zip": "8246d6b7c03b91068afee103a0136a50fda3da7f071273112d972a79a474415c",
|
|
22
|
+
"electron-v43.3.0-linux-arm64-symbols.zip": "29dc82d9144386f412ff90068b5a8933af8854e32175eee0f3c18ced82461151",
|
|
23
|
+
"electron-v43.3.0-linux-arm64.zip": "3e89a62c345d8171bf54f77df5b3d8216c492847eed00ae59cadd78d6f5535f7",
|
|
24
|
+
"electron-v43.3.0-linux-armv7l-debug.zip": "eafaa8acc210854276baa7cea4396e29ecb5d51dadad700e0de30c5411bdc3a2",
|
|
25
|
+
"electron-v43.3.0-linux-armv7l-symbols.zip": "d1ae116a5582ff1ad7651ac4aa8155fc27f7ebd6fab6e6b394424647bc47d972",
|
|
26
|
+
"electron-v43.3.0-linux-armv7l.zip": "d808208eb3179d1d33ac0269b5aada5d5a689cb9758098cb2d6e3576efaa306e",
|
|
27
|
+
"electron-v43.3.0-linux-x64-debug.zip": "88087cf614a47d11657a5488dfffdd0029f582f2dee0f2f71897b8056cd5f2d6",
|
|
28
|
+
"electron-v43.3.0-linux-x64-symbols.zip": "3521a3c48cd3e45c50427f9f49ebd0751f4699169d09c234f8f5bfa068e1abf0",
|
|
29
|
+
"electron-v43.3.0-linux-x64.zip": "f4987e9f045e46b117f0805d6ba4dc524e2abb2c2e33660f175bb39564bd3dae",
|
|
30
|
+
"electron-v43.3.0-mas-arm64-dsym-snapshot.zip": "50bf2affbebf9c0baa1920e91ce8c506ad68c23e4a8e52a2959b265815eaea5d",
|
|
31
|
+
"electron-v43.3.0-mas-arm64-dsym.tar.xz": "c6799a74ca4d53e17f00526848c395c3420dc6396acf80c415dc48955f0d4012",
|
|
32
|
+
"electron-v43.3.0-mas-arm64-symbols.zip": "59aa4976fa810c03e6b1cb2fb7d7e400c70ec11c922c01d2e75e5ebae62b9048",
|
|
33
|
+
"electron-v43.3.0-mas-arm64.zip": "b27feb264a4160f17f5c6ae7fb2faa5d2b56a72876694a2dee11992ba357135c",
|
|
34
|
+
"electron-v43.3.0-mas-x64-dsym-snapshot.zip": "09c742b260630a2e57f013859bedd9dc8006dd0ff11b25ba1f96ee4f9519173c",
|
|
35
|
+
"electron-v43.3.0-mas-x64-dsym.tar.xz": "7059768c58de285626ba97c44055c1a14a1b69d4341bad6c6e940aea5e3e59eb",
|
|
36
|
+
"electron-v43.3.0-mas-x64-symbols.zip": "ec87896b0c59f6d6fe37055fb84549fd1de5b46749a6eeb8d0fa53d9821d9784",
|
|
37
|
+
"electron-v43.3.0-mas-x64.zip": "0e3405ae307fa745db18728c605ca7639f6f2a94441af08e339ad29a627c388c",
|
|
38
|
+
"electron-v43.3.0-win32-arm64-pdb.zip": "ddeb704ec4ba89719a2625f90af0d74fd17060fa3a83b167156bd5c60240e4aa",
|
|
39
|
+
"electron-v43.3.0-win32-arm64-symbols.zip": "385a5e98e8a60c5594152bdaf56da696801a24f688543141c570a02b6f03878b",
|
|
40
|
+
"electron-v43.3.0-win32-arm64-toolchain-profile.zip": "93e0253324919c9cd187a9864291f4452e4632747b8ecc1d9ec7e6d6afbf86e9",
|
|
41
|
+
"electron-v43.3.0-win32-arm64.zip": "b315ea6feef1ee8bedc01c28ae2f89c0631f4521f888dcbecb9bdb28281c37e7",
|
|
42
|
+
"electron-v43.3.0-win32-ia32-pdb.zip": "8220ecc03535e8aa91fe1216886d6f0fba34dd28fd0af95c428a33b9a174d8bc",
|
|
43
|
+
"electron-v43.3.0-win32-ia32-symbols.zip": "fad4fc5a8c6a4fa7f98b8b043c89aab05e926e8376bd09cd8be263f04d71c08c",
|
|
44
|
+
"electron-v43.3.0-win32-ia32-toolchain-profile.zip": "93e0253324919c9cd187a9864291f4452e4632747b8ecc1d9ec7e6d6afbf86e9",
|
|
45
|
+
"electron-v43.3.0-win32-ia32.zip": "2ffc4e320dc8fa25a0ab872723cd19012d8eb3479768ce424f284d1409a5a76d",
|
|
46
|
+
"electron-v43.3.0-win32-x64-pdb.zip": "e357e972aa9e6ccb1657f5baa2b47f0d9b296743039c8fc33d5f6e41fdf6f9c7",
|
|
47
|
+
"electron-v43.3.0-win32-x64-symbols.zip": "745e39862c16215f3a1c5cb6f8852439a092efeece3dc62f01ab03a4fffd193d",
|
|
48
|
+
"electron-v43.3.0-win32-x64-toolchain-profile.zip": "93e0253324919c9cd187a9864291f4452e4632747b8ecc1d9ec7e6d6afbf86e9",
|
|
49
|
+
"electron-v43.3.0-win32-x64.zip": "18528bedc6a9b04bdc5efb7b803cbc3cb0e5ea6415d54046e23d464d89a00da9",
|
|
50
|
+
"electron.d.ts": "9d42a826b20eb2439d9dc85c5d294da3b498cbfdbf1dd29cbbb76a7d4ca94052",
|
|
51
|
+
"ffmpeg-v43.3.0-darwin-arm64.zip": "6914c472dfc138968533550679245e3d47c4fa11b90762cf414cfb003204ed8e",
|
|
52
|
+
"ffmpeg-v43.3.0-darwin-x64.zip": "21d9bbbeeb4945adf8fc332fe8cc417a2ea697f1c7ba54a8014406751247cf7c",
|
|
53
|
+
"ffmpeg-v43.3.0-linux-arm64.zip": "70f389e13a6c1b154861ccaa702198afa253057156bc81159accea0881799cb8",
|
|
54
|
+
"ffmpeg-v43.3.0-linux-armv7l.zip": "001847bd19549781850fd6f69941a54f92356ed26bca02892e9642637215668d",
|
|
55
|
+
"ffmpeg-v43.3.0-linux-x64.zip": "0be0a3ab9e3c08a71e6d989562118556c39b867bb821889cdfc0fb92d872e486",
|
|
56
|
+
"ffmpeg-v43.3.0-mas-arm64.zip": "8d510d254421fcd5a03d78116cd514d0c63b192adf95221f0e145614f6bfcc81",
|
|
57
|
+
"ffmpeg-v43.3.0-mas-x64.zip": "57c05d6e79da434c1ba5d86f6a16a27b837ecb46c49b3f60c2d02c22b3c3d82e",
|
|
58
|
+
"ffmpeg-v43.3.0-win32-arm64.zip": "957746086436f81f8ab83562fe35569a5e08cbf0427bb8ebfc6f8ce80cb9efa3",
|
|
59
|
+
"ffmpeg-v43.3.0-win32-ia32.zip": "f4ee63b519584e465592bb2fb3f3929e155af9936fe88b3ae77e422477023069",
|
|
60
|
+
"ffmpeg-v43.3.0-win32-x64.zip": "68556a799ee2ae0a29339a091497db76f478120907ee82263071188e7f3fbb8c",
|
|
61
|
+
"hunspell_dictionaries.zip": "23293c2168a12b5c62379ea6c08c93de1a5a43dfff233f1de6b409db1e65a0f9",
|
|
62
|
+
"libcxx-objects-v43.3.0-linux-arm64.zip": "45d1b686b925ad48df299ad355e074c54145c7a30401bdd15f586d0399ae1e68",
|
|
63
|
+
"libcxx-objects-v43.3.0-linux-armv7l.zip": "f577683776600cdbba0724d8d751ae4f113d6176257af6ebb8c0c4970dabc4f2",
|
|
64
|
+
"libcxx-objects-v43.3.0-linux-x64.zip": "6ca4e30c4ab1ad642e31af469ddf3012088e8b93e1d0ffc63e8b9111ae852398",
|
|
65
|
+
"libcxx_headers.zip": "0dbb4e789187fd5fe07b5fef6ad81c0a683f8b0c4285255f85013495bea0cbf9",
|
|
66
|
+
"libcxxabi_headers.zip": "30daf8f1ebd6bceb5c58fe9618d0df54c3e06b7647a3181158e9f47a90b85d79",
|
|
67
|
+
"mksnapshot-v43.3.0-darwin-arm64.zip": "0274fff4f49f92d313299156b3a3b7028dc83989f01dbe481d5d2e2d3848d708",
|
|
68
|
+
"mksnapshot-v43.3.0-darwin-x64.zip": "8f0ba3543b8edbb9488bd754c9257dae80a0d840c08efadd01aed07754ffd223",
|
|
69
|
+
"mksnapshot-v43.3.0-linux-arm64-x64.zip": "35f0ba6b9b4e0c1425f49cd510a72e1effb5d6108cc05da7a93356ab3e9d0749",
|
|
70
|
+
"mksnapshot-v43.3.0-linux-armv7l-x64.zip": "f22c056f8eaffa13c01a5c09f09795fde731b202a36629f569d087b0029b406c",
|
|
71
|
+
"mksnapshot-v43.3.0-linux-x64.zip": "6a3a12a046b1d93984d4e13af7a6c9a66f8f889d10b8bd505bf53d65157c86ef",
|
|
72
|
+
"mksnapshot-v43.3.0-mas-arm64.zip": "be0e8722b19fb375e6390e572c27e6e8a478590caa4258bb67a327bdd3073d16",
|
|
73
|
+
"mksnapshot-v43.3.0-mas-x64.zip": "ff110107dcb616520bf154cf9dc680cf0338c72986da9eb27231e99db57becd6",
|
|
74
|
+
"mksnapshot-v43.3.0-win32-arm64-x64.zip": "0768d515509a42104b748b18d728fc06fe71331cda4ee44c0e40dc433f4f1a66",
|
|
75
|
+
"mksnapshot-v43.3.0-win32-ia32.zip": "dadd001e44704667ba5294a46b49e26c0892137a0aa844cf8d6e3ce618f3ff06",
|
|
76
|
+
"mksnapshot-v43.3.0-win32-x64.zip": "c0ecb8d4fde16c4dd5dcd930efccd245dac2c357bfae23fbf547fb7140347386"
|
|
77
77
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 43.
|
|
1
|
+
// Type definitions for Electron 43.3.0
|
|
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
|
|
@@ -50,7 +50,7 @@ declare namespace Electron {
|
|
|
50
50
|
// Docs: https://electronjs.org/docs/api/app
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
* Emitted when
|
|
53
|
+
* Emitted when Chromium's accessibility support changes. This event fires when
|
|
54
54
|
* assistive technologies, such as screen readers, are enabled or disabled. See
|
|
55
55
|
* https://www.chromium.org/developers/design-documents/accessibility for more
|
|
56
56
|
* details.
|
|
@@ -59,7 +59,7 @@ declare namespace Electron {
|
|
|
59
59
|
*/
|
|
60
60
|
on(event: 'accessibility-support-changed', listener: (event: Event,
|
|
61
61
|
/**
|
|
62
|
-
* `true` when
|
|
62
|
+
* `true` when Chromium's accessibility support is enabled, `false` otherwise.
|
|
63
63
|
*/
|
|
64
64
|
accessibilitySupportEnabled: boolean) => void): this;
|
|
65
65
|
/**
|
|
@@ -67,7 +67,7 @@ declare namespace Electron {
|
|
|
67
67
|
*/
|
|
68
68
|
off(event: 'accessibility-support-changed', listener: (event: Event,
|
|
69
69
|
/**
|
|
70
|
-
* `true` when
|
|
70
|
+
* `true` when Chromium's accessibility support is enabled, `false` otherwise.
|
|
71
71
|
*/
|
|
72
72
|
accessibilitySupportEnabled: boolean) => void): this;
|
|
73
73
|
/**
|
|
@@ -75,7 +75,7 @@ declare namespace Electron {
|
|
|
75
75
|
*/
|
|
76
76
|
once(event: 'accessibility-support-changed', listener: (event: Event,
|
|
77
77
|
/**
|
|
78
|
-
* `true` when
|
|
78
|
+
* `true` when Chromium's accessibility support is enabled, `false` otherwise.
|
|
79
79
|
*/
|
|
80
80
|
accessibilitySupportEnabled: boolean) => void): this;
|
|
81
81
|
/**
|
|
@@ -83,7 +83,7 @@ declare namespace Electron {
|
|
|
83
83
|
*/
|
|
84
84
|
addListener(event: 'accessibility-support-changed', listener: (event: Event,
|
|
85
85
|
/**
|
|
86
|
-
* `true` when
|
|
86
|
+
* `true` when Chromium's accessibility support is enabled, `false` otherwise.
|
|
87
87
|
*/
|
|
88
88
|
accessibilitySupportEnabled: boolean) => void): this;
|
|
89
89
|
/**
|
|
@@ -91,7 +91,7 @@ declare namespace Electron {
|
|
|
91
91
|
*/
|
|
92
92
|
removeListener(event: 'accessibility-support-changed', listener: (event: Event,
|
|
93
93
|
/**
|
|
94
|
-
* `true` when
|
|
94
|
+
* `true` when Chromium's accessibility support is enabled, `false` otherwise.
|
|
95
95
|
*/
|
|
96
96
|
accessibilitySupportEnabled: boolean) => void): this;
|
|
97
97
|
/**
|
|
@@ -1396,9 +1396,9 @@ declare namespace Electron {
|
|
|
1396
1396
|
*/
|
|
1397
1397
|
invalidateCurrentActivity(): void;
|
|
1398
1398
|
/**
|
|
1399
|
-
* `true` if
|
|
1400
|
-
* will return `true` if the use of assistive technologies, such as screen
|
|
1401
|
-
* has been detected. See
|
|
1399
|
+
* `true` if Chromium's accessibility support is enabled, `false` otherwise. This
|
|
1400
|
+
* API will return `true` if the use of assistive technologies, such as screen
|
|
1401
|
+
* readers, has been detected. See
|
|
1402
1402
|
* https://www.chromium.org/developers/design-documents/accessibility for more
|
|
1403
1403
|
* details.
|
|
1404
1404
|
*
|
|
@@ -1589,7 +1589,7 @@ declare namespace Electron {
|
|
|
1589
1589
|
*/
|
|
1590
1590
|
setAboutPanelOptions(options: AboutPanelOptionsOptions): void;
|
|
1591
1591
|
/**
|
|
1592
|
-
* Manually enables
|
|
1592
|
+
* Manually enables Chromium's accessibility support, allowing to expose
|
|
1593
1593
|
* accessibility switch to users in application settings. See Chromium's
|
|
1594
1594
|
* accessibility docs for more details. Disabled by default.
|
|
1595
1595
|
*
|
|
@@ -1898,10 +1898,10 @@ declare namespace Electron {
|
|
|
1898
1898
|
*/
|
|
1899
1899
|
whenReady(): Promise<void>;
|
|
1900
1900
|
/**
|
|
1901
|
-
* A `boolean` property that's `true` if
|
|
1902
|
-
* `false` otherwise. This property will be `true` if the use of assistive
|
|
1901
|
+
* A `boolean` property that's `true` if Chromium's accessibility support is
|
|
1902
|
+
* enabled, `false` otherwise. This property will be `true` if the use of assistive
|
|
1903
1903
|
* technologies, such as screen readers, has been detected. Setting this property
|
|
1904
|
-
* to `true` manually enables
|
|
1904
|
+
* to `true` manually enables Chromium's accessibility support, allowing developers
|
|
1905
1905
|
* to expose accessibility switch to users in application settings.
|
|
1906
1906
|
*
|
|
1907
1907
|
* See Chromium's accessibility docs for more details. Disabled by default.
|
|
@@ -10182,8 +10182,8 @@ declare namespace Electron {
|
|
|
10182
10182
|
* see Response.
|
|
10183
10183
|
*
|
|
10184
10184
|
* Sends a request, similarly to how `fetch()` works in the renderer, using
|
|
10185
|
-
*
|
|
10186
|
-
* HTTP stack.
|
|
10185
|
+
* Chromium's network stack. This differs from Node's `fetch()`, which uses
|
|
10186
|
+
* Node.js's HTTP stack.
|
|
10187
10187
|
*
|
|
10188
10188
|
* Example:
|
|
10189
10189
|
*
|
|
@@ -10241,6 +10241,14 @@ declare namespace Electron {
|
|
|
10241
10241
|
*
|
|
10242
10242
|
*/
|
|
10243
10243
|
readonly online: boolean;
|
|
10244
|
+
/**
|
|
10245
|
+
* > [!NOTE] This property is only available in the main process.
|
|
10246
|
+
*
|
|
10247
|
+
* A `typeof WebSocket` reference to the `WebSocket` class, which can be used to
|
|
10248
|
+
* create WHATWG-compatible WebSocket connections through Chromium's network stack
|
|
10249
|
+
* from the main process.
|
|
10250
|
+
*/
|
|
10251
|
+
WebSocket: typeof WebSocket;
|
|
10244
10252
|
}
|
|
10245
10253
|
|
|
10246
10254
|
interface NetLog {
|
|
@@ -12948,8 +12956,8 @@ declare namespace Electron {
|
|
|
12948
12956
|
* see Response.
|
|
12949
12957
|
*
|
|
12950
12958
|
* Sends a request, similarly to how `fetch()` works in the renderer, using
|
|
12951
|
-
*
|
|
12952
|
-
* HTTP stack.
|
|
12959
|
+
* Chromium's network stack. This differs from Node's `fetch()`, which uses
|
|
12960
|
+
* Node.js's HTTP stack.
|
|
12953
12961
|
*
|
|
12954
12962
|
* Example:
|
|
12955
12963
|
*
|
|
@@ -17103,23 +17111,23 @@ declare namespace Electron {
|
|
|
17103
17111
|
* The usage is the same with the `login` event of `app`.
|
|
17104
17112
|
*/
|
|
17105
17113
|
on(event: 'login', listener: (event: Event,
|
|
17106
|
-
authenticationResponseDetails:
|
|
17114
|
+
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
17107
17115
|
authInfo: AuthInfo,
|
|
17108
17116
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
17109
17117
|
off(event: 'login', listener: (event: Event,
|
|
17110
|
-
authenticationResponseDetails:
|
|
17118
|
+
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
17111
17119
|
authInfo: AuthInfo,
|
|
17112
17120
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
17113
17121
|
once(event: 'login', listener: (event: Event,
|
|
17114
|
-
authenticationResponseDetails:
|
|
17122
|
+
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
17115
17123
|
authInfo: AuthInfo,
|
|
17116
17124
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
17117
17125
|
addListener(event: 'login', listener: (event: Event,
|
|
17118
|
-
authenticationResponseDetails:
|
|
17126
|
+
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
17119
17127
|
authInfo: AuthInfo,
|
|
17120
17128
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
17121
17129
|
removeListener(event: 'login', listener: (event: Event,
|
|
17122
|
-
authenticationResponseDetails:
|
|
17130
|
+
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
17123
17131
|
authInfo: AuthInfo,
|
|
17124
17132
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
17125
17133
|
/**
|
|
@@ -19455,6 +19463,147 @@ declare namespace Electron {
|
|
|
19455
19463
|
urls: string[];
|
|
19456
19464
|
}
|
|
19457
19465
|
|
|
19466
|
+
class WebSocket extends EventTarget {
|
|
19467
|
+
|
|
19468
|
+
// Docs: https://electronjs.org/docs/api/web-socket
|
|
19469
|
+
|
|
19470
|
+
/**
|
|
19471
|
+
* WebSocket
|
|
19472
|
+
*/
|
|
19473
|
+
constructor(url: string, protocols?: (string) | (string[]) | (WebSocketOptions));
|
|
19474
|
+
/**
|
|
19475
|
+
* Closes the connection. Calling `close()` while still `CONNECTING` aborts the
|
|
19476
|
+
* handshake.
|
|
19477
|
+
*/
|
|
19478
|
+
close(code?: number, reason?: string): void;
|
|
19479
|
+
/**
|
|
19480
|
+
* Enqueues `data` to be transmitted to the server. Throws an `InvalidStateError`
|
|
19481
|
+
* `DOMException` if `readyState` is `CONNECTING`.
|
|
19482
|
+
*/
|
|
19483
|
+
send(data: (string) | (ArrayBufferLike) | (ArrayBufferView) | (Blob)): void;
|
|
19484
|
+
/**
|
|
19485
|
+
* A `string` controlling how incoming binary messages are exposed on the `message`
|
|
19486
|
+
* event. Can be `nodebuffer`, `arraybuffer`, or `blob`. The default is
|
|
19487
|
+
* `nodebuffer`.
|
|
19488
|
+
*
|
|
19489
|
+
* `'nodebuffer'` is an Electron extension that delivers binary messages as
|
|
19490
|
+
* `Buffer` objects, which is generally the most convenient representation in the
|
|
19491
|
+
* main process. Set `binaryType` to `'arraybuffer'` or `'blob'` for behavior
|
|
19492
|
+
* identical to the renderer `WebSocket`.
|
|
19493
|
+
*/
|
|
19494
|
+
binaryType: ('nodebuffer' | 'arraybuffer' | 'blob');
|
|
19495
|
+
/**
|
|
19496
|
+
* An `Integer` representing the number of bytes of application data that have been
|
|
19497
|
+
* queued via `send()` but not yet handed off to the network.
|
|
19498
|
+
*
|
|
19499
|
+
*/
|
|
19500
|
+
readonly bufferedAmount: number;
|
|
19501
|
+
/**
|
|
19502
|
+
* A `string` containing the extensions negotiated by the server (for example
|
|
19503
|
+
* `permessage-deflate`).
|
|
19504
|
+
*
|
|
19505
|
+
*/
|
|
19506
|
+
readonly extensions: string;
|
|
19507
|
+
/**
|
|
19508
|
+
* A `Function | null` event handler for the `close` event. Equivalent to calling
|
|
19509
|
+
* `addEventListener('close', ...)`.
|
|
19510
|
+
*/
|
|
19511
|
+
onclose: (Function) | (null);
|
|
19512
|
+
/**
|
|
19513
|
+
* A `Function | null` event handler for the `error` event. Equivalent to calling
|
|
19514
|
+
* `addEventListener('error', ...)`.
|
|
19515
|
+
*/
|
|
19516
|
+
onerror: (Function) | (null);
|
|
19517
|
+
/**
|
|
19518
|
+
* A `Function | null` event handler for the `message` event. Equivalent to calling
|
|
19519
|
+
* `addEventListener('message', ...)`.
|
|
19520
|
+
*/
|
|
19521
|
+
onmessage: (Function) | (null);
|
|
19522
|
+
/**
|
|
19523
|
+
* A `Function | null` event handler for the `open` event. Equivalent to calling
|
|
19524
|
+
* `addEventListener('open', ...)`.
|
|
19525
|
+
*/
|
|
19526
|
+
onopen: (Function) | (null);
|
|
19527
|
+
/**
|
|
19528
|
+
* A `string` containing the subprotocol selected by the server. The empty string
|
|
19529
|
+
* until the connection is open or if the server did not select a subprotocol.
|
|
19530
|
+
*
|
|
19531
|
+
*/
|
|
19532
|
+
readonly protocol: string;
|
|
19533
|
+
/**
|
|
19534
|
+
* An `Integer` representing the current state of the connection: one of
|
|
19535
|
+
* `WebSocket.CONNECTING` (`0`), `WebSocket.OPEN` (`1`), `WebSocket.CLOSING` (`2`),
|
|
19536
|
+
* or `WebSocket.CLOSED` (`3`).
|
|
19537
|
+
*
|
|
19538
|
+
*/
|
|
19539
|
+
readonly readyState: number;
|
|
19540
|
+
/**
|
|
19541
|
+
* A `string` representing the resolved URL of the connection.
|
|
19542
|
+
*
|
|
19543
|
+
*/
|
|
19544
|
+
readonly url: string;
|
|
19545
|
+
/**
|
|
19546
|
+
* An `Integer` constant equal to `3`, the `readyState` value once the connection
|
|
19547
|
+
* is closed.
|
|
19548
|
+
*
|
|
19549
|
+
*/
|
|
19550
|
+
static readonly CLOSED: number;
|
|
19551
|
+
/**
|
|
19552
|
+
* An `Integer` constant equal to `2`, the `readyState` value while the closing
|
|
19553
|
+
* handshake is in progress.
|
|
19554
|
+
*
|
|
19555
|
+
*/
|
|
19556
|
+
static readonly CLOSING: number;
|
|
19557
|
+
/**
|
|
19558
|
+
* An `Integer` constant equal to `0`, the `readyState` value while the opening
|
|
19559
|
+
* handshake is in progress.
|
|
19560
|
+
*
|
|
19561
|
+
*/
|
|
19562
|
+
static readonly CONNECTING: number;
|
|
19563
|
+
/**
|
|
19564
|
+
* An `Integer` constant equal to `1`, the `readyState` value once the connection
|
|
19565
|
+
* is established.
|
|
19566
|
+
*
|
|
19567
|
+
*/
|
|
19568
|
+
static readonly OPEN: number;
|
|
19569
|
+
}
|
|
19570
|
+
|
|
19571
|
+
interface WebSocketOptions {
|
|
19572
|
+
|
|
19573
|
+
// Docs: https://electronjs.org/docs/api/structures/web-socket-options
|
|
19574
|
+
|
|
19575
|
+
/**
|
|
19576
|
+
* Extra HTTP headers to send with the opening handshake.
|
|
19577
|
+
*/
|
|
19578
|
+
headers?: Record<string, string>;
|
|
19579
|
+
/**
|
|
19580
|
+
* Value of the `Origin` header to send with the opening handshake. Defaults to the
|
|
19581
|
+
* `http(s)` equivalent of the WebSocket URL's origin (e.g. connecting to
|
|
19582
|
+
* `wss://api.example.com` sends `Origin: https://api.example.com`), so that the
|
|
19583
|
+
* connection is treated as same-origin by the server and by SameSite cookie rules.
|
|
19584
|
+
*/
|
|
19585
|
+
origin?: string;
|
|
19586
|
+
/**
|
|
19587
|
+
* The name of the `partition` the connection is associated with. Defaults to the
|
|
19588
|
+
* empty string, which corresponds to the default session. If `session` is
|
|
19589
|
+
* provided, `partition` is ignored.
|
|
19590
|
+
*/
|
|
19591
|
+
partition?: string;
|
|
19592
|
+
/**
|
|
19593
|
+
* Requested WebSocket subprotocols.
|
|
19594
|
+
*/
|
|
19595
|
+
protocols?: (string) | (string[]);
|
|
19596
|
+
/**
|
|
19597
|
+
* The `Session` the connection is associated with.
|
|
19598
|
+
*/
|
|
19599
|
+
session?: Session;
|
|
19600
|
+
/**
|
|
19601
|
+
* Whether to send cookies from the session with the opening handshake and store
|
|
19602
|
+
* cookies received in the handshake response. Default is `false`.
|
|
19603
|
+
*/
|
|
19604
|
+
useSessionCookies?: boolean;
|
|
19605
|
+
}
|
|
19606
|
+
|
|
19458
19607
|
interface WebSource {
|
|
19459
19608
|
|
|
19460
19609
|
// Docs: https://electronjs.org/docs/api/structures/web-source
|
|
@@ -20302,6 +20451,18 @@ declare namespace Electron {
|
|
|
20302
20451
|
interface AuthenticationResponseDetails {
|
|
20303
20452
|
url: string;
|
|
20304
20453
|
pid: number;
|
|
20454
|
+
/**
|
|
20455
|
+
* Indicates whether the request is for a navigation.
|
|
20456
|
+
*/
|
|
20457
|
+
isRequestForNavigation: boolean;
|
|
20458
|
+
/**
|
|
20459
|
+
* Indicates whether this is the first authentication attempt.
|
|
20460
|
+
*/
|
|
20461
|
+
firstAuthAttempt: boolean;
|
|
20462
|
+
/**
|
|
20463
|
+
* The headers returned in the response.
|
|
20464
|
+
*/
|
|
20465
|
+
responseHeaders?: Record<string, (string) | (string[])>;
|
|
20305
20466
|
}
|
|
20306
20467
|
|
|
20307
20468
|
interface AuthInfo {
|
|
@@ -21857,10 +22018,6 @@ declare namespace Electron {
|
|
|
21857
22018
|
baseURLForDataURL?: string;
|
|
21858
22019
|
}
|
|
21859
22020
|
|
|
21860
|
-
interface LoginAuthenticationResponseDetails {
|
|
21861
|
-
url: string;
|
|
21862
|
-
}
|
|
21863
|
-
|
|
21864
22021
|
interface LoginItemSettings {
|
|
21865
22022
|
/**
|
|
21866
22023
|
* `true` if the app is set to open at login.
|
|
@@ -23541,6 +23698,15 @@ declare namespace Electron {
|
|
|
23541
23698
|
* The total amount of memory not being used by applications or disk cache.
|
|
23542
23699
|
*/
|
|
23543
23700
|
free: number;
|
|
23701
|
+
/**
|
|
23702
|
+
* The kernel's estimate of the amount of memory available for allocation without
|
|
23703
|
+
* swapping, from `/proc/meminfo` `MemAvailable`. Use this as the memory pressure
|
|
23704
|
+
* signal on Linux; `free` there is `MemFree`, which excludes page cache and other
|
|
23705
|
+
* reclaimable memory.
|
|
23706
|
+
*
|
|
23707
|
+
* @platform linux
|
|
23708
|
+
*/
|
|
23709
|
+
available: number;
|
|
23544
23710
|
/**
|
|
23545
23711
|
* The amount of memory that currently has been paged out to storage. Includes
|
|
23546
23712
|
* memory for file caches, network buffers, and other system services.
|
|
@@ -24894,7 +25060,6 @@ declare namespace Electron {
|
|
|
24894
25060
|
type LoadExtensionOptions = Electron.LoadExtensionOptions;
|
|
24895
25061
|
type LoadFileOptions = Electron.LoadFileOptions;
|
|
24896
25062
|
type LoadURLOptions = Electron.LoadURLOptions;
|
|
24897
|
-
type LoginAuthenticationResponseDetails = Electron.LoginAuthenticationResponseDetails;
|
|
24898
25063
|
type LoginItemSettings = Electron.LoginItemSettings;
|
|
24899
25064
|
type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
|
|
24900
25065
|
type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
|
|
@@ -25121,6 +25286,7 @@ declare namespace Electron {
|
|
|
25121
25286
|
type WebAuthnAccount = Electron.WebAuthnAccount;
|
|
25122
25287
|
type WebPreferences = Electron.WebPreferences;
|
|
25123
25288
|
type WebRequestFilter = Electron.WebRequestFilter;
|
|
25289
|
+
type WebSocketOptions = Electron.WebSocketOptions;
|
|
25124
25290
|
type WebSource = Electron.WebSource;
|
|
25125
25291
|
type WindowOpenHandlerResponse = Electron.WindowOpenHandlerResponse;
|
|
25126
25292
|
type WindowSessionEndEvent = Electron.WindowSessionEndEvent;
|
|
@@ -25209,6 +25375,7 @@ declare namespace Electron {
|
|
|
25209
25375
|
const webFrameMain: typeof WebFrameMain;
|
|
25210
25376
|
type WebFrameMain = Electron.WebFrameMain;
|
|
25211
25377
|
type WebRequest = Electron.WebRequest;
|
|
25378
|
+
class WebSocket extends Electron.WebSocket {}
|
|
25212
25379
|
type AboutPanelOptionsOptions = Electron.AboutPanelOptionsOptions;
|
|
25213
25380
|
type AddRepresentationOptions = Electron.AddRepresentationOptions;
|
|
25214
25381
|
type AdjustSelectionOptions = Electron.AdjustSelectionOptions;
|
|
@@ -25301,7 +25468,6 @@ declare namespace Electron {
|
|
|
25301
25468
|
type LoadExtensionOptions = Electron.LoadExtensionOptions;
|
|
25302
25469
|
type LoadFileOptions = Electron.LoadFileOptions;
|
|
25303
25470
|
type LoadURLOptions = Electron.LoadURLOptions;
|
|
25304
|
-
type LoginAuthenticationResponseDetails = Electron.LoginAuthenticationResponseDetails;
|
|
25305
25471
|
type LoginItemSettings = Electron.LoginItemSettings;
|
|
25306
25472
|
type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
|
|
25307
25473
|
type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
|
|
@@ -25528,6 +25694,7 @@ declare namespace Electron {
|
|
|
25528
25694
|
type WebAuthnAccount = Electron.WebAuthnAccount;
|
|
25529
25695
|
type WebPreferences = Electron.WebPreferences;
|
|
25530
25696
|
type WebRequestFilter = Electron.WebRequestFilter;
|
|
25697
|
+
type WebSocketOptions = Electron.WebSocketOptions;
|
|
25531
25698
|
type WebSource = Electron.WebSource;
|
|
25532
25699
|
type WindowOpenHandlerResponse = Electron.WindowOpenHandlerResponse;
|
|
25533
25700
|
type WindowSessionEndEvent = Electron.WindowSessionEndEvent;
|
|
@@ -25636,7 +25803,6 @@ declare namespace Electron {
|
|
|
25636
25803
|
type LoadExtensionOptions = Electron.LoadExtensionOptions;
|
|
25637
25804
|
type LoadFileOptions = Electron.LoadFileOptions;
|
|
25638
25805
|
type LoadURLOptions = Electron.LoadURLOptions;
|
|
25639
|
-
type LoginAuthenticationResponseDetails = Electron.LoginAuthenticationResponseDetails;
|
|
25640
25806
|
type LoginItemSettings = Electron.LoginItemSettings;
|
|
25641
25807
|
type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
|
|
25642
25808
|
type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
|
|
@@ -25863,6 +26029,7 @@ declare namespace Electron {
|
|
|
25863
26029
|
type WebAuthnAccount = Electron.WebAuthnAccount;
|
|
25864
26030
|
type WebPreferences = Electron.WebPreferences;
|
|
25865
26031
|
type WebRequestFilter = Electron.WebRequestFilter;
|
|
26032
|
+
type WebSocketOptions = Electron.WebSocketOptions;
|
|
25866
26033
|
type WebSource = Electron.WebSource;
|
|
25867
26034
|
type WindowOpenHandlerResponse = Electron.WindowOpenHandlerResponse;
|
|
25868
26035
|
type WindowSessionEndEvent = Electron.WindowSessionEndEvent;
|
|
@@ -25970,7 +26137,6 @@ declare namespace Electron {
|
|
|
25970
26137
|
type LoadExtensionOptions = Electron.LoadExtensionOptions;
|
|
25971
26138
|
type LoadFileOptions = Electron.LoadFileOptions;
|
|
25972
26139
|
type LoadURLOptions = Electron.LoadURLOptions;
|
|
25973
|
-
type LoginAuthenticationResponseDetails = Electron.LoginAuthenticationResponseDetails;
|
|
25974
26140
|
type LoginItemSettings = Electron.LoginItemSettings;
|
|
25975
26141
|
type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
|
|
25976
26142
|
type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
|
|
@@ -26197,6 +26363,7 @@ declare namespace Electron {
|
|
|
26197
26363
|
type WebAuthnAccount = Electron.WebAuthnAccount;
|
|
26198
26364
|
type WebPreferences = Electron.WebPreferences;
|
|
26199
26365
|
type WebRequestFilter = Electron.WebRequestFilter;
|
|
26366
|
+
type WebSocketOptions = Electron.WebSocketOptions;
|
|
26200
26367
|
type WebSource = Electron.WebSource;
|
|
26201
26368
|
type WindowOpenHandlerResponse = Electron.WindowOpenHandlerResponse;
|
|
26202
26369
|
type WindowSessionEndEvent = Electron.WindowSessionEndEvent;
|
|
@@ -26303,6 +26470,7 @@ declare namespace Electron {
|
|
|
26303
26470
|
const webFrameMain: typeof WebFrameMain;
|
|
26304
26471
|
type WebFrameMain = Electron.WebFrameMain;
|
|
26305
26472
|
type WebRequest = Electron.WebRequest;
|
|
26473
|
+
class WebSocket extends Electron.WebSocket {}
|
|
26306
26474
|
const webUtils: WebUtils;
|
|
26307
26475
|
type WebUtils = Electron.WebUtils;
|
|
26308
26476
|
type WebviewTag = Electron.WebviewTag;
|
|
@@ -26398,7 +26566,6 @@ declare namespace Electron {
|
|
|
26398
26566
|
type LoadExtensionOptions = Electron.LoadExtensionOptions;
|
|
26399
26567
|
type LoadFileOptions = Electron.LoadFileOptions;
|
|
26400
26568
|
type LoadURLOptions = Electron.LoadURLOptions;
|
|
26401
|
-
type LoginAuthenticationResponseDetails = Electron.LoginAuthenticationResponseDetails;
|
|
26402
26569
|
type LoginItemSettings = Electron.LoginItemSettings;
|
|
26403
26570
|
type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
|
|
26404
26571
|
type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
|
|
@@ -26625,6 +26792,7 @@ declare namespace Electron {
|
|
|
26625
26792
|
type WebAuthnAccount = Electron.WebAuthnAccount;
|
|
26626
26793
|
type WebPreferences = Electron.WebPreferences;
|
|
26627
26794
|
type WebRequestFilter = Electron.WebRequestFilter;
|
|
26795
|
+
type WebSocketOptions = Electron.WebSocketOptions;
|
|
26628
26796
|
type WebSource = Electron.WebSource;
|
|
26629
26797
|
type WindowOpenHandlerResponse = Electron.WindowOpenHandlerResponse;
|
|
26630
26798
|
type WindowSessionEndEvent = Electron.WindowSessionEndEvent;
|
|
@@ -26792,6 +26960,10 @@ declare namespace NodeJS {
|
|
|
26792
26960
|
* to the system.
|
|
26793
26961
|
* * `free` Integer - The total amount of memory not being used by applications or
|
|
26794
26962
|
* disk cache.
|
|
26963
|
+
* * `available` Integer _Linux_ - The kernel's estimate of the amount of memory
|
|
26964
|
+
* available for allocation without swapping, from `/proc/meminfo` `MemAvailable`.
|
|
26965
|
+
* Use this as the memory pressure signal on Linux; `free` there is `MemFree`,
|
|
26966
|
+
* which excludes page cache and other reclaimable memory.
|
|
26795
26967
|
* * `fileBacked` Integer _macOS_ - The amount of memory that currently has been
|
|
26796
26968
|
* paged out to storage. Includes memory for file caches, network buffers, and
|
|
26797
26969
|
* other system services.
|