electron 35.0.0-beta.2 → 35.0.0-beta.4
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 +155 -8
- package/package.json +1 -1
package/checksums.json
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
1
|
{
|
|
2
|
-
"chromedriver-v35.0.0-beta.
|
|
3
|
-
"chromedriver-v35.0.0-beta.
|
|
4
|
-
"chromedriver-v35.0.0-beta.
|
|
5
|
-
"chromedriver-v35.0.0-beta.
|
|
6
|
-
"chromedriver-v35.0.0-beta.
|
|
7
|
-
"chromedriver-v35.0.0-beta.
|
|
8
|
-
"chromedriver-v35.0.0-beta.
|
|
9
|
-
"chromedriver-v35.0.0-beta.
|
|
10
|
-
"chromedriver-v35.0.0-beta.
|
|
11
|
-
"chromedriver-v35.0.0-beta.
|
|
12
|
-
"electron-api.json": "
|
|
13
|
-
"electron-v35.0.0-beta.
|
|
14
|
-
"electron-v35.0.0-beta.
|
|
15
|
-
"electron-v35.0.0-beta.
|
|
16
|
-
"electron-v35.0.0-beta.
|
|
17
|
-
"electron-v35.0.0-beta.
|
|
18
|
-
"electron-v35.0.0-beta.
|
|
19
|
-
"electron-v35.0.0-beta.
|
|
20
|
-
"electron-v35.0.0-beta.
|
|
21
|
-
"electron-v35.0.0-beta.
|
|
22
|
-
"electron-v35.0.0-beta.
|
|
23
|
-
"electron-v35.0.0-beta.
|
|
24
|
-
"electron-v35.0.0-beta.
|
|
25
|
-
"electron-v35.0.0-beta.
|
|
26
|
-
"electron-v35.0.0-beta.
|
|
27
|
-
"electron-v35.0.0-beta.
|
|
28
|
-
"electron-v35.0.0-beta.
|
|
29
|
-
"electron-v35.0.0-beta.
|
|
30
|
-
"electron-v35.0.0-beta.
|
|
31
|
-
"electron-v35.0.0-beta.
|
|
32
|
-
"electron-v35.0.0-beta.
|
|
33
|
-
"electron-v35.0.0-beta.
|
|
34
|
-
"electron-v35.0.0-beta.
|
|
35
|
-
"electron-v35.0.0-beta.
|
|
36
|
-
"electron-v35.0.0-beta.
|
|
37
|
-
"electron-v35.0.0-beta.
|
|
38
|
-
"electron-v35.0.0-beta.
|
|
39
|
-
"electron-v35.0.0-beta.
|
|
40
|
-
"electron-v35.0.0-beta.
|
|
41
|
-
"electron-v35.0.0-beta.
|
|
42
|
-
"electron-v35.0.0-beta.
|
|
43
|
-
"electron-v35.0.0-beta.
|
|
44
|
-
"electron-v35.0.0-beta.
|
|
45
|
-
"electron-v35.0.0-beta.
|
|
46
|
-
"electron-v35.0.0-beta.
|
|
47
|
-
"electron-v35.0.0-beta.
|
|
48
|
-
"electron-v35.0.0-beta.
|
|
49
|
-
"electron-v35.0.0-beta.
|
|
50
|
-
"electron.d.ts": "
|
|
51
|
-
"ffmpeg-v35.0.0-beta.
|
|
52
|
-
"ffmpeg-v35.0.0-beta.
|
|
53
|
-
"ffmpeg-v35.0.0-beta.
|
|
54
|
-
"ffmpeg-v35.0.0-beta.
|
|
55
|
-
"ffmpeg-v35.0.0-beta.
|
|
56
|
-
"ffmpeg-v35.0.0-beta.
|
|
57
|
-
"ffmpeg-v35.0.0-beta.
|
|
58
|
-
"ffmpeg-v35.0.0-beta.
|
|
59
|
-
"ffmpeg-v35.0.0-beta.
|
|
60
|
-
"ffmpeg-v35.0.0-beta.
|
|
61
|
-
"hunspell_dictionaries.zip": "
|
|
62
|
-
"libcxx-objects-v35.0.0-beta.
|
|
63
|
-
"libcxx-objects-v35.0.0-beta.
|
|
64
|
-
"libcxx-objects-v35.0.0-beta.
|
|
65
|
-
"libcxx_headers.zip": "
|
|
66
|
-
"libcxxabi_headers.zip": "
|
|
67
|
-
"mksnapshot-v35.0.0-beta.
|
|
68
|
-
"mksnapshot-v35.0.0-beta.
|
|
69
|
-
"mksnapshot-v35.0.0-beta.
|
|
70
|
-
"mksnapshot-v35.0.0-beta.
|
|
71
|
-
"mksnapshot-v35.0.0-beta.
|
|
72
|
-
"mksnapshot-v35.0.0-beta.
|
|
73
|
-
"mksnapshot-v35.0.0-beta.
|
|
74
|
-
"mksnapshot-v35.0.0-beta.
|
|
75
|
-
"mksnapshot-v35.0.0-beta.
|
|
76
|
-
"mksnapshot-v35.0.0-beta.
|
|
2
|
+
"chromedriver-v35.0.0-beta.4-darwin-arm64.zip": "ad6fbb100c5017d89fc67c470e0798d4378c3827be7b030208fa2291f90f46dc",
|
|
3
|
+
"chromedriver-v35.0.0-beta.4-darwin-x64.zip": "cbdba03d6d7c2108d945a15714177c00c4a11b3ae7cbed6cbcac7247a4c45ffd",
|
|
4
|
+
"chromedriver-v35.0.0-beta.4-linux-arm64.zip": "118d015b0f5738bfb2679bf1e4389947fae9631c609d2b33fd8041f45b868590",
|
|
5
|
+
"chromedriver-v35.0.0-beta.4-linux-armv7l.zip": "4af146d36b5261b4013a0ba42bba4ad3824e8b08d60d5015e03f6387b793b5b4",
|
|
6
|
+
"chromedriver-v35.0.0-beta.4-linux-x64.zip": "70e81355031d13c6c1fccbda3de098779a160363a46a22f53b7bc056485b5ae7",
|
|
7
|
+
"chromedriver-v35.0.0-beta.4-mas-arm64.zip": "4e74f619b3c8460e5592611db8de5479ee6032141f73779c9552814224bc882a",
|
|
8
|
+
"chromedriver-v35.0.0-beta.4-mas-x64.zip": "50bea7ea90c773a23b21a762caf45eee5c0833994368608a8af36099aaab2a29",
|
|
9
|
+
"chromedriver-v35.0.0-beta.4-win32-arm64.zip": "df7bd67b83c9d8a61b02ea6c02b2e14c368e18bc570045ca77c25a57d40ea2a5",
|
|
10
|
+
"chromedriver-v35.0.0-beta.4-win32-ia32.zip": "3b98f777ec99bf9cf1d7b715aa5398c081becf14bd8c88e0d297676afe8d75be",
|
|
11
|
+
"chromedriver-v35.0.0-beta.4-win32-x64.zip": "986cab3dec961d50424bb1992fed7a3d3e6b00bc1b703f38707998442d596217",
|
|
12
|
+
"electron-api.json": "390ba909a4a844860fbd91a910abfb331c7994d1cb9194bceed0fccc81663f83",
|
|
13
|
+
"electron-v35.0.0-beta.4-darwin-arm64-dsym-snapshot.zip": "e4eaa8a8f8ee45d0cf74acba568150f7c8c84458d35b62ef15124e2f1318c318",
|
|
14
|
+
"electron-v35.0.0-beta.4-darwin-arm64-dsym.zip": "706510fbd33aecf3f39b8fa3b1533e5698d1abbdfefd6f8eb9744b082aa98909",
|
|
15
|
+
"electron-v35.0.0-beta.4-darwin-arm64-symbols.zip": "c9abf0293a304489b8cb4b98bb63d6ba9422ceb80b3f1acf2937332a9a4afe97",
|
|
16
|
+
"electron-v35.0.0-beta.4-darwin-arm64.zip": "241e3eed4bdec063a97fc9b51cdea0da03cfef677930aa1efbab86811fbfe4ad",
|
|
17
|
+
"electron-v35.0.0-beta.4-darwin-x64-dsym-snapshot.zip": "4c6af9e2a35aee43e4ed36fee7de3396a909ddfad7762e199f0376b5fb1d939e",
|
|
18
|
+
"electron-v35.0.0-beta.4-darwin-x64-dsym.zip": "a0b880790244f839082825e63a24547cd0c47983fa442b03aed10cd95752b55c",
|
|
19
|
+
"electron-v35.0.0-beta.4-darwin-x64-symbols.zip": "a2bbcb0c242df5b9791649d294e2f7418639655695aa816fb01fc351ebed1019",
|
|
20
|
+
"electron-v35.0.0-beta.4-darwin-x64.zip": "4aa887d45d37dbd7754f5646e50a7e44bfd1af4b3bfe989ba084ceb6ea4ff2a7",
|
|
21
|
+
"electron-v35.0.0-beta.4-linux-arm64-debug.zip": "a96b272a7e9cf21bc65f72d5c4820cab76cce14f684a256e482253908669c86a",
|
|
22
|
+
"electron-v35.0.0-beta.4-linux-arm64-symbols.zip": "af9820f71e77a61686d015a69fbc9e89555cab9004ffd4d6d3a6d2f8f1f6e8a1",
|
|
23
|
+
"electron-v35.0.0-beta.4-linux-arm64.zip": "3eb3284de699611b5bf5b623546ad23a6709ddee000911d27f1fc4c3112cd988",
|
|
24
|
+
"electron-v35.0.0-beta.4-linux-armv7l-debug.zip": "a96b272a7e9cf21bc65f72d5c4820cab76cce14f684a256e482253908669c86a",
|
|
25
|
+
"electron-v35.0.0-beta.4-linux-armv7l-symbols.zip": "b52fd1ca0633221fdcfc91e14c83fcab86a869ee2dd398601717e5bd8106205b",
|
|
26
|
+
"electron-v35.0.0-beta.4-linux-armv7l.zip": "81bf4efb77e6ba84d132b7a8dc3eb8a4a522cb51ad11ebb7d38272a4c92d1b13",
|
|
27
|
+
"electron-v35.0.0-beta.4-linux-x64-debug.zip": "327eb20d9050518fad180f6d7ec699c6986f1cd73f811c8cf2e1b9d72ec90878",
|
|
28
|
+
"electron-v35.0.0-beta.4-linux-x64-symbols.zip": "9c5a3aa2bbfe2589b41cf330be06dc9a9d821b379f6c42971c7fb97157fbf0d7",
|
|
29
|
+
"electron-v35.0.0-beta.4-linux-x64.zip": "6a350c364ce4f2f18e6c6b9fa8815920badfde55c2519aca2c78e775a50dce84",
|
|
30
|
+
"electron-v35.0.0-beta.4-mas-arm64-dsym-snapshot.zip": "8f63db2c7f8bcbc7557e42b79a222706c140b6aa299799c8837faec6123a53e9",
|
|
31
|
+
"electron-v35.0.0-beta.4-mas-arm64-dsym.zip": "5783ecf99543efda01212b69204973c5725a32afa52357871d55ca9a218c272d",
|
|
32
|
+
"electron-v35.0.0-beta.4-mas-arm64-symbols.zip": "47a5a38aa6f6396077e0785cfb160bd59f26cbfd72d56fbfe123c7a000207ee5",
|
|
33
|
+
"electron-v35.0.0-beta.4-mas-arm64.zip": "43e2bea8b8ea0d046a3ff416023a3a87024e9de17f005f7b23ce55d7cce3abd7",
|
|
34
|
+
"electron-v35.0.0-beta.4-mas-x64-dsym-snapshot.zip": "8379bb41b957c319604b2e841f13629dac78ed818db7de821de79ad64effafd7",
|
|
35
|
+
"electron-v35.0.0-beta.4-mas-x64-dsym.zip": "bf4131d205ea145f946a2297f1b4f515e126362d41f999311a3e3b118817df71",
|
|
36
|
+
"electron-v35.0.0-beta.4-mas-x64-symbols.zip": "78e9980966b956af983a501d360995f84258998593aaebdce53bd4bdf493f6de",
|
|
37
|
+
"electron-v35.0.0-beta.4-mas-x64.zip": "f33d732b900becc3cb7dd264076f3b70783c97e2b13a46559a88420f9e832830",
|
|
38
|
+
"electron-v35.0.0-beta.4-win32-arm64-pdb.zip": "224833b3a8cc8ebc3a76aba3de29e24334347192b2a56f4f71f688358b9a20a8",
|
|
39
|
+
"electron-v35.0.0-beta.4-win32-arm64-symbols.zip": "522dc53bee47174c1abf619438ae62da94e211201dd69aa16b6e44173e690a38",
|
|
40
|
+
"electron-v35.0.0-beta.4-win32-arm64-toolchain-profile.zip": "0fb20c9c01fa1748309b4c3ef9ec0d9ec53828b333b7938d811c06923a2e3915",
|
|
41
|
+
"electron-v35.0.0-beta.4-win32-arm64.zip": "c48f27ddfaaddf2ed5ccb151821e3c6c93b43c73dba033eb187667314f3660f6",
|
|
42
|
+
"electron-v35.0.0-beta.4-win32-ia32-pdb.zip": "bff55b318e432430c07c847ab961176b114b7da10d0041fceeb1170f0ee09309",
|
|
43
|
+
"electron-v35.0.0-beta.4-win32-ia32-symbols.zip": "f3bfc7352ca3d19341e1512550bfc13af128077b7478d4b8a1228deaadeb2624",
|
|
44
|
+
"electron-v35.0.0-beta.4-win32-ia32-toolchain-profile.zip": "0fb20c9c01fa1748309b4c3ef9ec0d9ec53828b333b7938d811c06923a2e3915",
|
|
45
|
+
"electron-v35.0.0-beta.4-win32-ia32.zip": "b5eda5439a9a25b4294d70c0669fe54880cd5deba08a7049d7fd583855cf4dce",
|
|
46
|
+
"electron-v35.0.0-beta.4-win32-x64-pdb.zip": "fda375f00bf17a3136c48d1a0bb07c7a0719904ed24fff26e4cac1e713c6cdfc",
|
|
47
|
+
"electron-v35.0.0-beta.4-win32-x64-symbols.zip": "0b4e9e89cb942af16726a6866154fad15f3b75b0b44b1e83aaf2ad1dc884edca",
|
|
48
|
+
"electron-v35.0.0-beta.4-win32-x64-toolchain-profile.zip": "0fb20c9c01fa1748309b4c3ef9ec0d9ec53828b333b7938d811c06923a2e3915",
|
|
49
|
+
"electron-v35.0.0-beta.4-win32-x64.zip": "5c271f0732d256df6778da29e15c3aea54426cf9a93473de828fb0d03a365bb8",
|
|
50
|
+
"electron.d.ts": "fdfd2ca2ce8847d2f18788e4335fa19e23a6678a0dbe5e5eb160e2caa16ab9fa",
|
|
51
|
+
"ffmpeg-v35.0.0-beta.4-darwin-arm64.zip": "a6c8ba9e5c3a6c521b7e58523b07a642984311f9a121582f0f95275698331b3d",
|
|
52
|
+
"ffmpeg-v35.0.0-beta.4-darwin-x64.zip": "048a4a14e0e46c34eaec583653a74761c7641c1244e374a624864fca958d2f5e",
|
|
53
|
+
"ffmpeg-v35.0.0-beta.4-linux-arm64.zip": "4cb1509b157a74c8e444a2f0f7a340bb234912dacf1ea5be16e41bccf1a43f2c",
|
|
54
|
+
"ffmpeg-v35.0.0-beta.4-linux-armv7l.zip": "1cd60de84603bd281dbcfd522b19f8b9461c67a488103aff2a718ec52e0b470e",
|
|
55
|
+
"ffmpeg-v35.0.0-beta.4-linux-x64.zip": "39c60878e9c44208cf12598c15c7b954afd5aabd169639a636b38e0902549f29",
|
|
56
|
+
"ffmpeg-v35.0.0-beta.4-mas-arm64.zip": "a6c8ba9e5c3a6c521b7e58523b07a642984311f9a121582f0f95275698331b3d",
|
|
57
|
+
"ffmpeg-v35.0.0-beta.4-mas-x64.zip": "048a4a14e0e46c34eaec583653a74761c7641c1244e374a624864fca958d2f5e",
|
|
58
|
+
"ffmpeg-v35.0.0-beta.4-win32-arm64.zip": "334032204671ada543f46e312605bca9d52d20c17242052778cbaec9ff7981b3",
|
|
59
|
+
"ffmpeg-v35.0.0-beta.4-win32-ia32.zip": "ba4c8ed0ca8f8bb486fdf8ec854b81dba72ecfe5cb0a6f9141f991b49133ebda",
|
|
60
|
+
"ffmpeg-v35.0.0-beta.4-win32-x64.zip": "ecb34e52b5d2f34458bc8b51c1263c3ceb4015842b4896bd7609e21d02e22014",
|
|
61
|
+
"hunspell_dictionaries.zip": "f3648acdb7370a1d48255e04e38dc47e2c7d6eb57da1cdc1b1716110dea31e6f",
|
|
62
|
+
"libcxx-objects-v35.0.0-beta.4-linux-arm64.zip": "45a4899f7396a8e7905d71f0510e0e933a466e3020292cfa21c241a5d59c7864",
|
|
63
|
+
"libcxx-objects-v35.0.0-beta.4-linux-armv7l.zip": "cfe223f97a61e7d73cc0714393624c69f26d50f83ac53b3127fa17d95ec749b4",
|
|
64
|
+
"libcxx-objects-v35.0.0-beta.4-linux-x64.zip": "6220447262cb6accbc676f9c7334d80dbb656e9dfcf2c1e569d54ff2c15794e0",
|
|
65
|
+
"libcxx_headers.zip": "97b9825dc168daf67bdfb3ad8304d1029c3794eae66f45a8dd8538a65df940d9",
|
|
66
|
+
"libcxxabi_headers.zip": "e990e7b60ecdba8d984b47ed4340f124789d07dde989cced71521b3428da47d9",
|
|
67
|
+
"mksnapshot-v35.0.0-beta.4-darwin-arm64.zip": "9a1a7ac563ef3898130a626ccee74811b5e37897d26a94ba2d53d263fd28a7c3",
|
|
68
|
+
"mksnapshot-v35.0.0-beta.4-darwin-x64.zip": "f37a617282c0ea42b108ca5639620bb75ff2e10e3e886c1413759c60a34b258d",
|
|
69
|
+
"mksnapshot-v35.0.0-beta.4-linux-arm64-x64.zip": "1fe681775886fcf102bbea4962d3a1baa590827afa0bb08e27ed778f9cdaa1df",
|
|
70
|
+
"mksnapshot-v35.0.0-beta.4-linux-armv7l-x64.zip": "2b4b2848cfd53ff8b8636c348b61bbad477bdca5953b77ee7a44f608b70b569b",
|
|
71
|
+
"mksnapshot-v35.0.0-beta.4-linux-x64.zip": "50bd19e96cce2b47e5a491f1a9ce6e28bb1014e5c3c2239cf9e0574917f78095",
|
|
72
|
+
"mksnapshot-v35.0.0-beta.4-mas-arm64.zip": "44ec6cdf735365d02e15b20d4df9a86894c8ca7ef4f6cc7c0f3f7d9994c8479c",
|
|
73
|
+
"mksnapshot-v35.0.0-beta.4-mas-x64.zip": "b46c00929e941750663bfa64514498ac303bfb07584bf1f06bcc891a657877c6",
|
|
74
|
+
"mksnapshot-v35.0.0-beta.4-win32-arm64-x64.zip": "2a9de5ba3e59772fcb3106395b65276c3456c2a0c3c1ee46b79c057384fca44a",
|
|
75
|
+
"mksnapshot-v35.0.0-beta.4-win32-ia32.zip": "6e6456cf05cfcddf7b25a30752038bb376b42b3004923d8ff95b8cecca1df0c9",
|
|
76
|
+
"mksnapshot-v35.0.0-beta.4-win32-x64.zip": "2e6ae9b0a763e1a4ad6fc2fe067649c994185ba0c91cba4e84cee8f99148f500"
|
|
77
77
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 35.0.0-beta.
|
|
1
|
+
// Type definitions for Electron 35.0.0-beta.4
|
|
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
|
|
@@ -7525,7 +7525,7 @@ declare namespace Electron {
|
|
|
7525
7525
|
*/
|
|
7526
7526
|
depthPerComponent: number;
|
|
7527
7527
|
/**
|
|
7528
|
-
* `true
|
|
7528
|
+
* `true` if the display is detected by the system.
|
|
7529
7529
|
*/
|
|
7530
7530
|
detected: boolean;
|
|
7531
7531
|
/**
|
|
@@ -8382,6 +8382,10 @@ declare namespace Electron {
|
|
|
8382
8382
|
*
|
|
8383
8383
|
*/
|
|
8384
8384
|
readonly senderFrame: (WebFrameMain) | (null);
|
|
8385
|
+
/**
|
|
8386
|
+
* Possible values include `frame`
|
|
8387
|
+
*/
|
|
8388
|
+
type: ('frame');
|
|
8385
8389
|
}
|
|
8386
8390
|
|
|
8387
8391
|
interface IpcMainInvokeEvent extends Event {
|
|
@@ -8406,6 +8410,106 @@ declare namespace Electron {
|
|
|
8406
8410
|
*
|
|
8407
8411
|
*/
|
|
8408
8412
|
readonly senderFrame: (WebFrameMain) | (null);
|
|
8413
|
+
/**
|
|
8414
|
+
* Possible values include `frame`
|
|
8415
|
+
*/
|
|
8416
|
+
type: ('frame');
|
|
8417
|
+
}
|
|
8418
|
+
|
|
8419
|
+
class IpcMainServiceWorker extends NodeEventEmitter {
|
|
8420
|
+
|
|
8421
|
+
// Docs: https://electronjs.org/docs/api/ipc-main-service-worker
|
|
8422
|
+
|
|
8423
|
+
handle(channel: string, listener: (event: IpcMainServiceWorkerInvokeEvent, ...args: any[]) => (Promise<any>) | (any)): void;
|
|
8424
|
+
/**
|
|
8425
|
+
* Handles a single `invoke`able IPC message, then removes the listener. See
|
|
8426
|
+
* `ipcMainServiceWorker.handle(channel, listener)`.
|
|
8427
|
+
*/
|
|
8428
|
+
handleOnce(channel: string, listener: (event: IpcMainServiceWorkerInvokeEvent, ...args: any[]) => (Promise<any>) | (any)): void;
|
|
8429
|
+
/**
|
|
8430
|
+
* Listens to `channel`, when a new message arrives `listener` would be called with
|
|
8431
|
+
* `listener(event, args...)`.
|
|
8432
|
+
*/
|
|
8433
|
+
on(channel: string, listener: (event: IpcMainServiceWorkerEvent, ...args: any[]) => void): this;
|
|
8434
|
+
/**
|
|
8435
|
+
* Adds a one time `listener` function for the event. This `listener` is invoked
|
|
8436
|
+
* only the next time a message is sent to `channel`, after which it is removed.
|
|
8437
|
+
*/
|
|
8438
|
+
once(channel: string, listener: (event: IpcMainServiceWorkerEvent, ...args: any[]) => void): this;
|
|
8439
|
+
/**
|
|
8440
|
+
* Removes listeners of the specified `channel`.
|
|
8441
|
+
*/
|
|
8442
|
+
removeAllListeners(channel?: string): this;
|
|
8443
|
+
/**
|
|
8444
|
+
* Removes any handler for `channel`, if present.
|
|
8445
|
+
*/
|
|
8446
|
+
removeHandler(channel: string): void;
|
|
8447
|
+
/**
|
|
8448
|
+
* Removes the specified `listener` from the listener array for the specified
|
|
8449
|
+
* `channel`.
|
|
8450
|
+
*/
|
|
8451
|
+
removeListener(channel: string, listener: (...args: any[]) => void): this;
|
|
8452
|
+
}
|
|
8453
|
+
|
|
8454
|
+
interface IpcMainServiceWorkerEvent extends Event {
|
|
8455
|
+
|
|
8456
|
+
// Docs: https://electronjs.org/docs/api/structures/ipc-main-service-worker-event
|
|
8457
|
+
|
|
8458
|
+
/**
|
|
8459
|
+
* A list of MessagePorts that were transferred with this message
|
|
8460
|
+
*/
|
|
8461
|
+
ports: MessagePortMain[];
|
|
8462
|
+
/**
|
|
8463
|
+
* A function that will send an IPC message to the renderer frame that sent the
|
|
8464
|
+
* original message that you are currently handling. You should use this method to
|
|
8465
|
+
* "reply" to the sent message in order to guarantee the reply will go to the
|
|
8466
|
+
* correct process and frame.
|
|
8467
|
+
*/
|
|
8468
|
+
reply: (channel: string, ...args: any[]) => void;
|
|
8469
|
+
/**
|
|
8470
|
+
* Set this to the value to be returned in a synchronous message
|
|
8471
|
+
*/
|
|
8472
|
+
returnValue: any;
|
|
8473
|
+
/**
|
|
8474
|
+
* The service worker that sent this message
|
|
8475
|
+
*
|
|
8476
|
+
*/
|
|
8477
|
+
readonly serviceWorker: ServiceWorkerMain;
|
|
8478
|
+
/**
|
|
8479
|
+
* The `Session` instance with which the event is associated.
|
|
8480
|
+
*/
|
|
8481
|
+
session: Session;
|
|
8482
|
+
/**
|
|
8483
|
+
* Possible values include `service-worker`.
|
|
8484
|
+
*/
|
|
8485
|
+
type: ('service-worker');
|
|
8486
|
+
/**
|
|
8487
|
+
* The service worker version ID.
|
|
8488
|
+
*/
|
|
8489
|
+
versionId: number;
|
|
8490
|
+
}
|
|
8491
|
+
|
|
8492
|
+
interface IpcMainServiceWorkerInvokeEvent extends Event {
|
|
8493
|
+
|
|
8494
|
+
// Docs: https://electronjs.org/docs/api/structures/ipc-main-service-worker-invoke-event
|
|
8495
|
+
|
|
8496
|
+
/**
|
|
8497
|
+
* The service worker that sent this message
|
|
8498
|
+
*
|
|
8499
|
+
*/
|
|
8500
|
+
readonly serviceWorker: ServiceWorkerMain;
|
|
8501
|
+
/**
|
|
8502
|
+
* The `Session` instance with which the event is associated.
|
|
8503
|
+
*/
|
|
8504
|
+
session: Session;
|
|
8505
|
+
/**
|
|
8506
|
+
* Possible values include `service-worker`.
|
|
8507
|
+
*/
|
|
8508
|
+
type: ('service-worker');
|
|
8509
|
+
/**
|
|
8510
|
+
* The service worker version ID.
|
|
8511
|
+
*/
|
|
8512
|
+
versionId: number;
|
|
8409
8513
|
}
|
|
8410
8514
|
|
|
8411
8515
|
interface IpcRenderer extends NodeJS.EventEmitter {
|
|
@@ -10220,9 +10324,9 @@ declare namespace Electron {
|
|
|
10220
10324
|
id: string;
|
|
10221
10325
|
/**
|
|
10222
10326
|
* Context type where the preload script will be executed. Possible values include
|
|
10223
|
-
* `frame`.
|
|
10327
|
+
* `frame` or `service-worker`.
|
|
10224
10328
|
*/
|
|
10225
|
-
type: ('frame');
|
|
10329
|
+
type: ('frame' | 'service-worker');
|
|
10226
10330
|
}
|
|
10227
10331
|
|
|
10228
10332
|
interface PreloadScriptRegistration {
|
|
@@ -10239,9 +10343,9 @@ declare namespace Electron {
|
|
|
10239
10343
|
id?: string;
|
|
10240
10344
|
/**
|
|
10241
10345
|
* Context type where the preload script will be executed. Possible values include
|
|
10242
|
-
* `frame`.
|
|
10346
|
+
* `frame` or `service-worker`.
|
|
10243
10347
|
*/
|
|
10244
|
-
type: ('frame');
|
|
10348
|
+
type: ('frame' | 'service-worker');
|
|
10245
10349
|
}
|
|
10246
10350
|
|
|
10247
10351
|
interface PrinterInfo {
|
|
@@ -11172,6 +11276,19 @@ declare namespace Electron {
|
|
|
11172
11276
|
* @experimental
|
|
11173
11277
|
*/
|
|
11174
11278
|
isDestroyed(): boolean;
|
|
11279
|
+
/**
|
|
11280
|
+
* Send an asynchronous message to the service worker process via `channel`, along
|
|
11281
|
+
* with arguments. Arguments will be serialized with the Structured Clone
|
|
11282
|
+
* Algorithm, just like `postMessage`, so prototype chains will not be included.
|
|
11283
|
+
* Sending Functions, Promises, Symbols, WeakMaps, or WeakSets will throw an
|
|
11284
|
+
* exception.
|
|
11285
|
+
*
|
|
11286
|
+
* The service worker process can handle the message by listening to `channel` with
|
|
11287
|
+
* the `ipcRenderer` module.
|
|
11288
|
+
*
|
|
11289
|
+
* @experimental
|
|
11290
|
+
*/
|
|
11291
|
+
send(channel: string, ...args: any[]): void;
|
|
11175
11292
|
/**
|
|
11176
11293
|
* * `end` Function - Method to call when the task has ended. If never called, the
|
|
11177
11294
|
* service won't terminate while otherwise idle.
|
|
@@ -11181,6 +11298,12 @@ declare namespace Electron {
|
|
|
11181
11298
|
* @experimental
|
|
11182
11299
|
*/
|
|
11183
11300
|
startTask(): StartTask;
|
|
11301
|
+
/**
|
|
11302
|
+
* An `IpcMainServiceWorker` instance scoped to the service worker.
|
|
11303
|
+
*
|
|
11304
|
+
* @experimental
|
|
11305
|
+
*/
|
|
11306
|
+
readonly ipc: IpcMainServiceWorker;
|
|
11184
11307
|
/**
|
|
11185
11308
|
* A `string` representing the scope URL of the service worker.
|
|
11186
11309
|
*
|
|
@@ -12220,7 +12343,7 @@ declare namespace Electron {
|
|
|
12220
12343
|
* make a permission request if the check is denied. To clear the handler, call
|
|
12221
12344
|
* `setPermissionCheckHandler(null)`.
|
|
12222
12345
|
*/
|
|
12223
|
-
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;
|
|
12346
|
+
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' | 'deprecated-sync-clipboard-read', requestingOrigin: string, details: PermissionCheckHandlerHandlerDetails) => boolean) | (null)): void;
|
|
12224
12347
|
/**
|
|
12225
12348
|
* Sets the handler which can be used to respond to permission requests for the
|
|
12226
12349
|
* `session`. Calling `callback(true)` will allow the permission and
|
|
@@ -14516,6 +14639,11 @@ declare namespace Electron {
|
|
|
14516
14639
|
* The bounds of this View, relative to its parent.
|
|
14517
14640
|
*/
|
|
14518
14641
|
getBounds(): Rectangle;
|
|
14642
|
+
/**
|
|
14643
|
+
* Whether the view should be drawn. Note that this is different from whether the
|
|
14644
|
+
* view is visible on screen—it may still be obscured or out of view.
|
|
14645
|
+
*/
|
|
14646
|
+
getVisible(): boolean;
|
|
14519
14647
|
/**
|
|
14520
14648
|
* If the view passed as a parameter is not a child of this view, this method is a
|
|
14521
14649
|
* no-op.
|
|
@@ -17728,6 +17856,12 @@ declare namespace Electron {
|
|
|
17728
17856
|
* RuntimeEnabledFeatures.json5 file.
|
|
17729
17857
|
*/
|
|
17730
17858
|
enableBlinkFeatures?: string;
|
|
17859
|
+
/**
|
|
17860
|
+
* Whether to enable the `paste` execCommand. Default is `false`.
|
|
17861
|
+
*
|
|
17862
|
+
* @deprecated
|
|
17863
|
+
*/
|
|
17864
|
+
enableDeprecatedPaste?: boolean;
|
|
17731
17865
|
/**
|
|
17732
17866
|
* Whether to enable preferred size mode. The preferred size is the minimum size
|
|
17733
17867
|
* needed to contain the layout of the document—without requiring scrolling.
|
|
@@ -23059,6 +23193,8 @@ declare namespace Electron {
|
|
|
23059
23193
|
type InputEvent = Electron.InputEvent;
|
|
23060
23194
|
type IpcMainEvent = Electron.IpcMainEvent;
|
|
23061
23195
|
type IpcMainInvokeEvent = Electron.IpcMainInvokeEvent;
|
|
23196
|
+
type IpcMainServiceWorkerEvent = Electron.IpcMainServiceWorkerEvent;
|
|
23197
|
+
type IpcMainServiceWorkerInvokeEvent = Electron.IpcMainServiceWorkerInvokeEvent;
|
|
23062
23198
|
type IpcRendererEvent = Electron.IpcRendererEvent;
|
|
23063
23199
|
type JumpListCategory = Electron.JumpListCategory;
|
|
23064
23200
|
type JumpListItem = Electron.JumpListItem;
|
|
@@ -23151,6 +23287,7 @@ declare namespace Electron {
|
|
|
23151
23287
|
type IncomingMessage = Electron.IncomingMessage;
|
|
23152
23288
|
const ipcMain: IpcMain;
|
|
23153
23289
|
type IpcMain = Electron.IpcMain;
|
|
23290
|
+
class IpcMainServiceWorker extends Electron.IpcMainServiceWorker {}
|
|
23154
23291
|
class Menu extends Electron.Menu {}
|
|
23155
23292
|
class MenuItem extends Electron.MenuItem {}
|
|
23156
23293
|
class MessageChannelMain extends Electron.MessageChannelMain {}
|
|
@@ -23423,6 +23560,8 @@ declare namespace Electron {
|
|
|
23423
23560
|
type InputEvent = Electron.InputEvent;
|
|
23424
23561
|
type IpcMainEvent = Electron.IpcMainEvent;
|
|
23425
23562
|
type IpcMainInvokeEvent = Electron.IpcMainInvokeEvent;
|
|
23563
|
+
type IpcMainServiceWorkerEvent = Electron.IpcMainServiceWorkerEvent;
|
|
23564
|
+
type IpcMainServiceWorkerInvokeEvent = Electron.IpcMainServiceWorkerInvokeEvent;
|
|
23426
23565
|
type IpcRendererEvent = Electron.IpcRendererEvent;
|
|
23427
23566
|
type JumpListCategory = Electron.JumpListCategory;
|
|
23428
23567
|
type JumpListItem = Electron.JumpListItem;
|
|
@@ -23718,6 +23857,8 @@ declare namespace Electron {
|
|
|
23718
23857
|
type InputEvent = Electron.InputEvent;
|
|
23719
23858
|
type IpcMainEvent = Electron.IpcMainEvent;
|
|
23720
23859
|
type IpcMainInvokeEvent = Electron.IpcMainInvokeEvent;
|
|
23860
|
+
type IpcMainServiceWorkerEvent = Electron.IpcMainServiceWorkerEvent;
|
|
23861
|
+
type IpcMainServiceWorkerInvokeEvent = Electron.IpcMainServiceWorkerInvokeEvent;
|
|
23721
23862
|
type IpcRendererEvent = Electron.IpcRendererEvent;
|
|
23722
23863
|
type JumpListCategory = Electron.JumpListCategory;
|
|
23723
23864
|
type JumpListItem = Electron.JumpListItem;
|
|
@@ -24010,6 +24151,8 @@ declare namespace Electron {
|
|
|
24010
24151
|
type InputEvent = Electron.InputEvent;
|
|
24011
24152
|
type IpcMainEvent = Electron.IpcMainEvent;
|
|
24012
24153
|
type IpcMainInvokeEvent = Electron.IpcMainInvokeEvent;
|
|
24154
|
+
type IpcMainServiceWorkerEvent = Electron.IpcMainServiceWorkerEvent;
|
|
24155
|
+
type IpcMainServiceWorkerInvokeEvent = Electron.IpcMainServiceWorkerInvokeEvent;
|
|
24013
24156
|
type IpcRendererEvent = Electron.IpcRendererEvent;
|
|
24014
24157
|
type JumpListCategory = Electron.JumpListCategory;
|
|
24015
24158
|
type JumpListItem = Electron.JumpListItem;
|
|
@@ -24108,6 +24251,7 @@ declare namespace Electron {
|
|
|
24108
24251
|
type IncomingMessage = Electron.IncomingMessage;
|
|
24109
24252
|
const ipcMain: IpcMain;
|
|
24110
24253
|
type IpcMain = Electron.IpcMain;
|
|
24254
|
+
class IpcMainServiceWorker extends Electron.IpcMainServiceWorker {}
|
|
24111
24255
|
const ipcRenderer: IpcRenderer;
|
|
24112
24256
|
type IpcRenderer = Electron.IpcRenderer;
|
|
24113
24257
|
class Menu extends Electron.Menu {}
|
|
@@ -24391,6 +24535,8 @@ declare namespace Electron {
|
|
|
24391
24535
|
type InputEvent = Electron.InputEvent;
|
|
24392
24536
|
type IpcMainEvent = Electron.IpcMainEvent;
|
|
24393
24537
|
type IpcMainInvokeEvent = Electron.IpcMainInvokeEvent;
|
|
24538
|
+
type IpcMainServiceWorkerEvent = Electron.IpcMainServiceWorkerEvent;
|
|
24539
|
+
type IpcMainServiceWorkerInvokeEvent = Electron.IpcMainServiceWorkerInvokeEvent;
|
|
24394
24540
|
type IpcRendererEvent = Electron.IpcRendererEvent;
|
|
24395
24541
|
type JumpListCategory = Electron.JumpListCategory;
|
|
24396
24542
|
type JumpListItem = Electron.JumpListItem;
|
|
@@ -24756,11 +24902,12 @@ declare namespace NodeJS {
|
|
|
24756
24902
|
*
|
|
24757
24903
|
* * `browser` - The main process
|
|
24758
24904
|
* * `renderer` - A renderer process
|
|
24905
|
+
* * `service-worker` - In a service worker
|
|
24759
24906
|
* * `worker` - In a web worker
|
|
24760
24907
|
* * `utility` - In a node process launched as a service
|
|
24761
24908
|
*
|
|
24762
24909
|
*/
|
|
24763
|
-
readonly type: ('browser' | 'renderer' | 'worker' | 'utility');
|
|
24910
|
+
readonly type: ('browser' | 'renderer' | 'service-worker' | 'worker' | 'utility');
|
|
24764
24911
|
/**
|
|
24765
24912
|
* A `boolean`. If the app is running as a Windows Store app (appx), this property
|
|
24766
24913
|
* is `true`, for otherwise it is `undefined`.
|
package/package.json
CHANGED