electron 22.0.0-beta.5 → 22.0.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/checksums.json +75 -75
- package/electron.d.ts +168 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ using JavaScript, HTML and CSS. It is based on [Node.js](https://nodejs.org/) an
|
|
|
12
12
|
[Chromium](https://www.chromium.org) and is used by the [Atom
|
|
13
13
|
editor](https://github.com/atom/atom) and many other [apps](https://electronjs.org/apps).
|
|
14
14
|
|
|
15
|
-
Follow [@
|
|
15
|
+
Follow [@electronjs](https://twitter.com/electronjs) on Twitter for important
|
|
16
16
|
announcements.
|
|
17
17
|
|
|
18
18
|
This project adheres to the Contributor Covenant
|
package/checksums.json
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
1
|
{
|
|
2
|
-
"chromedriver-v22.0.0-beta.
|
|
3
|
-
"chromedriver-v22.0.0-beta.
|
|
4
|
-
"chromedriver-v22.0.0-beta.
|
|
5
|
-
"chromedriver-v22.0.0-beta.
|
|
6
|
-
"chromedriver-v22.0.0-beta.
|
|
7
|
-
"chromedriver-v22.0.0-beta.
|
|
8
|
-
"chromedriver-v22.0.0-beta.
|
|
9
|
-
"chromedriver-v22.0.0-beta.
|
|
10
|
-
"chromedriver-v22.0.0-beta.
|
|
11
|
-
"chromedriver-v22.0.0-beta.
|
|
12
|
-
"electron-api.json": "
|
|
13
|
-
"electron-v22.0.0-beta.
|
|
14
|
-
"electron-v22.0.0-beta.
|
|
15
|
-
"electron-v22.0.0-beta.
|
|
16
|
-
"electron-v22.0.0-beta.
|
|
17
|
-
"electron-v22.0.0-beta.
|
|
18
|
-
"electron-v22.0.0-beta.
|
|
19
|
-
"electron-v22.0.0-beta.
|
|
20
|
-
"electron-v22.0.0-beta.
|
|
21
|
-
"electron-v22.0.0-beta.
|
|
22
|
-
"electron-v22.0.0-beta.
|
|
23
|
-
"electron-v22.0.0-beta.
|
|
24
|
-
"electron-v22.0.0-beta.
|
|
25
|
-
"electron-v22.0.0-beta.
|
|
26
|
-
"electron-v22.0.0-beta.
|
|
27
|
-
"electron-v22.0.0-beta.
|
|
28
|
-
"electron-v22.0.0-beta.
|
|
29
|
-
"electron-v22.0.0-beta.
|
|
30
|
-
"electron-v22.0.0-beta.
|
|
31
|
-
"electron-v22.0.0-beta.
|
|
32
|
-
"electron-v22.0.0-beta.
|
|
33
|
-
"electron-v22.0.0-beta.
|
|
34
|
-
"electron-v22.0.0-beta.
|
|
35
|
-
"electron-v22.0.0-beta.
|
|
36
|
-
"electron-v22.0.0-beta.
|
|
37
|
-
"electron-v22.0.0-beta.
|
|
38
|
-
"electron-v22.0.0-beta.
|
|
39
|
-
"electron-v22.0.0-beta.
|
|
40
|
-
"electron-v22.0.0-beta.
|
|
41
|
-
"electron-v22.0.0-beta.
|
|
42
|
-
"electron-v22.0.0-beta.
|
|
43
|
-
"electron-v22.0.0-beta.
|
|
44
|
-
"electron-v22.0.0-beta.
|
|
45
|
-
"electron-v22.0.0-beta.
|
|
46
|
-
"electron-v22.0.0-beta.
|
|
47
|
-
"electron-v22.0.0-beta.
|
|
48
|
-
"electron-v22.0.0-beta.
|
|
49
|
-
"electron-v22.0.0-beta.
|
|
50
|
-
"electron.d.ts": "
|
|
51
|
-
"ffmpeg-v22.0.0-beta.
|
|
52
|
-
"ffmpeg-v22.0.0-beta.
|
|
53
|
-
"ffmpeg-v22.0.0-beta.
|
|
54
|
-
"ffmpeg-v22.0.0-beta.
|
|
55
|
-
"ffmpeg-v22.0.0-beta.
|
|
56
|
-
"ffmpeg-v22.0.0-beta.
|
|
57
|
-
"ffmpeg-v22.0.0-beta.
|
|
58
|
-
"ffmpeg-v22.0.0-beta.
|
|
59
|
-
"ffmpeg-v22.0.0-beta.
|
|
60
|
-
"ffmpeg-v22.0.0-beta.
|
|
61
|
-
"hunspell_dictionaries.zip": "
|
|
62
|
-
"libcxx-objects-v22.0.0-beta.
|
|
63
|
-
"libcxx-objects-v22.0.0-beta.
|
|
64
|
-
"libcxx-objects-v22.0.0-beta.
|
|
65
|
-
"libcxx_headers.zip": "
|
|
66
|
-
"libcxxabi_headers.zip": "
|
|
67
|
-
"mksnapshot-v22.0.0-beta.
|
|
68
|
-
"mksnapshot-v22.0.0-beta.
|
|
69
|
-
"mksnapshot-v22.0.0-beta.
|
|
70
|
-
"mksnapshot-v22.0.0-beta.
|
|
71
|
-
"mksnapshot-v22.0.0-beta.
|
|
72
|
-
"mksnapshot-v22.0.0-beta.
|
|
73
|
-
"mksnapshot-v22.0.0-beta.
|
|
74
|
-
"mksnapshot-v22.0.0-beta.
|
|
75
|
-
"mksnapshot-v22.0.0-beta.
|
|
76
|
-
"mksnapshot-v22.0.0-beta.
|
|
2
|
+
"chromedriver-v22.0.0-beta.7-darwin-arm64.zip": "fd1a466818ed0d911b7d73159d45f2628f8eefd62acb15b876112a545a7579b6",
|
|
3
|
+
"chromedriver-v22.0.0-beta.7-darwin-x64.zip": "bf9955059725685b75bb0a65371b3fa84ec72d68a463f0ea55570d1c46314ee6",
|
|
4
|
+
"chromedriver-v22.0.0-beta.7-linux-arm64.zip": "a7f840129c539cb5ce5f480fec10d3f1c2a3fd516f292765b6bac66de4d7518f",
|
|
5
|
+
"chromedriver-v22.0.0-beta.7-linux-armv7l.zip": "5e64610d0aef8452a160d74afc51918f381e07ddeedc46cc25bf943351480015",
|
|
6
|
+
"chromedriver-v22.0.0-beta.7-linux-x64.zip": "0eed5685dbf81944eaa3504515be673817a0260b13f000756c1495d6e1319981",
|
|
7
|
+
"chromedriver-v22.0.0-beta.7-mas-arm64.zip": "467fe283e10ffa947ede121e84ed23d894ab1343b22017ee537a720227b10aef",
|
|
8
|
+
"chromedriver-v22.0.0-beta.7-mas-x64.zip": "54d64627865fadaf71d15d919d012a10d9a0a86344a9a93961810d7962ee593c",
|
|
9
|
+
"chromedriver-v22.0.0-beta.7-win32-arm64.zip": "09cb02849aa8a3381381af9fb92275165bc26badeba3c924841fa9daa2f09e01",
|
|
10
|
+
"chromedriver-v22.0.0-beta.7-win32-ia32.zip": "c4a5ca29b5e0d257eb72fcff9a530f1bdb70cfa2152b8eca7a64fe82c66d6cac",
|
|
11
|
+
"chromedriver-v22.0.0-beta.7-win32-x64.zip": "4bb5ec63242f00c37df93c5dd312d58dbb7f20a9c406c7ca733d5e5bccb3bed1",
|
|
12
|
+
"electron-api.json": "3dcd380411dbe3d4eabdd5fc618463e8ff56aa71ce1ca40449417857d096885d",
|
|
13
|
+
"electron-v22.0.0-beta.7-darwin-arm64-dsym-snapshot.zip": "eb64493cfc8cd0687e8fb1076a3fe0b05bc2235f4bac0b306038fa740cb57c15",
|
|
14
|
+
"electron-v22.0.0-beta.7-darwin-arm64-dsym.zip": "ee09f2c50690a9294258cb351b96712b0710f18aa8e1d928ff0dcb9b1981aa70",
|
|
15
|
+
"electron-v22.0.0-beta.7-darwin-arm64-symbols.zip": "083469a53ca48fd29225b2cc1c68ebb666f9217126079f1b59475ec53a4496c4",
|
|
16
|
+
"electron-v22.0.0-beta.7-darwin-arm64.zip": "1ce533b6d326957886f67b8f1f4ba4e4c0c936a8e6237233c6c17ee150b2f609",
|
|
17
|
+
"electron-v22.0.0-beta.7-darwin-x64-dsym-snapshot.zip": "ebd76f4a805d8701a21c66a212656cc9c9d75fc37993e1b8e279f9b6c0a0f7ac",
|
|
18
|
+
"electron-v22.0.0-beta.7-darwin-x64-dsym.zip": "78d6a137d41183c5f98fa456fc8a081ba6088577253aec8ffe85b6950dabd193",
|
|
19
|
+
"electron-v22.0.0-beta.7-darwin-x64-symbols.zip": "dd70b3fd26b5c958f7c339c1966822a2fa3690010c5ff7b4ba2d8838e510576f",
|
|
20
|
+
"electron-v22.0.0-beta.7-darwin-x64.zip": "526b2a993034f648420fc615132512bfe6bedf564b0425c616d756f15dd36e6c",
|
|
21
|
+
"electron-v22.0.0-beta.7-linux-arm64-debug.zip": "7d01050d289578b7a63d08649c69f6808123659c2dbcf8922a408580b50c573d",
|
|
22
|
+
"electron-v22.0.0-beta.7-linux-arm64-symbols.zip": "3adb43f5da4549919fd372c28a270fce745bd9cf97e764bc9a29f3e8b8b6885d",
|
|
23
|
+
"electron-v22.0.0-beta.7-linux-arm64.zip": "377c719a093d9b8ef08606eb53f228c888cb8d34e81a7ddd47b18a02c438b899",
|
|
24
|
+
"electron-v22.0.0-beta.7-linux-armv7l-debug.zip": "7d01050d289578b7a63d08649c69f6808123659c2dbcf8922a408580b50c573d",
|
|
25
|
+
"electron-v22.0.0-beta.7-linux-armv7l-symbols.zip": "9a62880649cb52ba719c7afd130117d4779bf7b86a281d99c193d18d2297d1ab",
|
|
26
|
+
"electron-v22.0.0-beta.7-linux-armv7l.zip": "143347ac7f82b9f9af1ec6b61cc0e51ea1756d9a8546bf0a30fb4483ba8d229f",
|
|
27
|
+
"electron-v22.0.0-beta.7-linux-x64-debug.zip": "cf510fc19c4d12c24f0d821287f6372c49b78674800bb010b08b199937f115b8",
|
|
28
|
+
"electron-v22.0.0-beta.7-linux-x64-symbols.zip": "cb1364433df83a88c60070c19c44cf1a4d63fbfe9e8ccdad1a42d51e17509730",
|
|
29
|
+
"electron-v22.0.0-beta.7-linux-x64.zip": "24b3f608c1fdb67854744b4f2e5eaf4225f5d4c8418e793a9385560cf722c1fe",
|
|
30
|
+
"electron-v22.0.0-beta.7-mas-arm64-dsym-snapshot.zip": "eb64493cfc8cd0687e8fb1076a3fe0b05bc2235f4bac0b306038fa740cb57c15",
|
|
31
|
+
"electron-v22.0.0-beta.7-mas-arm64-dsym.zip": "f435faf7f8e8ff14367d0afbc4b97a34511208f02b3d0e93b1acc2fabca745d8",
|
|
32
|
+
"electron-v22.0.0-beta.7-mas-arm64-symbols.zip": "8eb9ba040bd23bcc4997a824f0017c427f00fb88edcc967f375e67792409fb4d",
|
|
33
|
+
"electron-v22.0.0-beta.7-mas-arm64.zip": "22c4418743a3cca74d771b39ee253c05adc4df0ffe46b2a7178cb1836e572a98",
|
|
34
|
+
"electron-v22.0.0-beta.7-mas-x64-dsym-snapshot.zip": "3888aa61d4be67d679cb134bb0f1348fcce42819dfbaf291b1e5211f5c000dd0",
|
|
35
|
+
"electron-v22.0.0-beta.7-mas-x64-dsym.zip": "64c0566da0017e22f4e828ab6f820b2ceed775466cbb21d5c67b8c21bdc4822a",
|
|
36
|
+
"electron-v22.0.0-beta.7-mas-x64-symbols.zip": "cef48e904dd0e6e3e0944b7835f9e2f1bf33935d90e75c70f8354bdaba862c1e",
|
|
37
|
+
"electron-v22.0.0-beta.7-mas-x64.zip": "d6adeab3330697e60c348c86cc02137fae47ca4d0bc4d5336c8d25f39a322483",
|
|
38
|
+
"electron-v22.0.0-beta.7-win32-arm64-pdb.zip": "faa2694d38f8359790db0ea1a2bbc29a1154599a11848fde4095709107e5dec5",
|
|
39
|
+
"electron-v22.0.0-beta.7-win32-arm64-symbols.zip": "bb87a50f226d0dd60b7dadde4638495b58747c41ab298ee4a60b242cd0e0508a",
|
|
40
|
+
"electron-v22.0.0-beta.7-win32-arm64-toolchain-profile.zip": "3a5d2888ac992d063c6219cb20f73182ee02f25935f0f73bd7ed4ee8cd719376",
|
|
41
|
+
"electron-v22.0.0-beta.7-win32-arm64.zip": "536b5c9ebb1b2af953963136bb6332935ce7c2524b1fc2f86d8fe0f70f00fce1",
|
|
42
|
+
"electron-v22.0.0-beta.7-win32-ia32-pdb.zip": "4486f34f05ee7b80cbb1b8ff90227849d5d3eeac48bbbd0dc5f4afb77be47c97",
|
|
43
|
+
"electron-v22.0.0-beta.7-win32-ia32-symbols.zip": "98b3ccaaaf88b0b4b7807c2901afa208b7b56eab73bb6332cfd89087b663690c",
|
|
44
|
+
"electron-v22.0.0-beta.7-win32-ia32-toolchain-profile.zip": "3a5d2888ac992d063c6219cb20f73182ee02f25935f0f73bd7ed4ee8cd719376",
|
|
45
|
+
"electron-v22.0.0-beta.7-win32-ia32.zip": "85c53a5b838590390c0f77d4160dc74be373a7c4d98b5562bc1ee6f56ab300de",
|
|
46
|
+
"electron-v22.0.0-beta.7-win32-x64-pdb.zip": "31ea7b22beff2ea65c62157f295129fee3927d712399a872d012bf796d72f513",
|
|
47
|
+
"electron-v22.0.0-beta.7-win32-x64-symbols.zip": "ffed3ab240be9d32562fb635a7cd858e031fcad62d180a8e4959b96366d610e6",
|
|
48
|
+
"electron-v22.0.0-beta.7-win32-x64-toolchain-profile.zip": "3a5d2888ac992d063c6219cb20f73182ee02f25935f0f73bd7ed4ee8cd719376",
|
|
49
|
+
"electron-v22.0.0-beta.7-win32-x64.zip": "9a5a6db163740da114ee174378da0c567ce6b2c74bf80e17ae0842208304066b",
|
|
50
|
+
"electron.d.ts": "ae7c3da05ffb7ed55c6c9a869681a364a856f9f8821495228c54287f7cd6e18e",
|
|
51
|
+
"ffmpeg-v22.0.0-beta.7-darwin-arm64.zip": "c136a82c858c4513dc9620356a35791c66100513b998e424a3f1b3c93d02af08",
|
|
52
|
+
"ffmpeg-v22.0.0-beta.7-darwin-x64.zip": "463f0b72aae260a779549b1631c0fe7817dd721b027cc830dcc2b82362017097",
|
|
53
|
+
"ffmpeg-v22.0.0-beta.7-linux-arm64.zip": "11c9430419b3a4bf7d0e132e3b540d79851981f6031d324b423c89060ca93267",
|
|
54
|
+
"ffmpeg-v22.0.0-beta.7-linux-armv7l.zip": "9250f3f02db047d58e73e420be7e94acd408cf1dcf480b6429f8e028175975fb",
|
|
55
|
+
"ffmpeg-v22.0.0-beta.7-linux-x64.zip": "61a70f91281b2c43a229f0ca85b4d8c8bbfbebe8afd03d82aecf42226548ca75",
|
|
56
|
+
"ffmpeg-v22.0.0-beta.7-mas-arm64.zip": "904ea915a9a1be058c301378e788d2a425cded1571350c7e75a64a8adf8ea31b",
|
|
57
|
+
"ffmpeg-v22.0.0-beta.7-mas-x64.zip": "be588e1c4ce12cc621ce9fccbba33bb6ba53f8de394bac4a5a0b4929a5e12e87",
|
|
58
|
+
"ffmpeg-v22.0.0-beta.7-win32-arm64.zip": "39e5ad0cab840828d59227752c5bf501d72fd80e67d45b5a86b8a3251e936855",
|
|
59
|
+
"ffmpeg-v22.0.0-beta.7-win32-ia32.zip": "0bd24f692584d345933497514efa3a372da6e65c0361e7678347071a52e8402c",
|
|
60
|
+
"ffmpeg-v22.0.0-beta.7-win32-x64.zip": "48004d7b29abd3accf82178df313d20a5400f1cc15a024fcf07791e898cc9ba7",
|
|
61
|
+
"hunspell_dictionaries.zip": "59d7b3cd03218486bf1f26c47ad68a6333158a8c4d1e391d97ad16e208acfd06",
|
|
62
|
+
"libcxx-objects-v22.0.0-beta.7-linux-arm64.zip": "7b49d12b1194baa8b66450aa9c02618635291f0d93c09451c995cf08898dfbf6",
|
|
63
|
+
"libcxx-objects-v22.0.0-beta.7-linux-armv7l.zip": "24e352e2370c0b51b8d7d6f413587b6e4bf5a8f0acc37f30ae19042b59c10ebc",
|
|
64
|
+
"libcxx-objects-v22.0.0-beta.7-linux-x64.zip": "2fd9591edbe22e1335b5513261114fb2701befae30e0bcd8ecd74544adadd6e7",
|
|
65
|
+
"libcxx_headers.zip": "df6d763d2e093f76732c6560c0c9a53dcc2b869abf39d44c8c0cc0d1ef90db76",
|
|
66
|
+
"libcxxabi_headers.zip": "c1091e703b775e75d9c86b30fba0dfa166b568e35d8b26e69d84193f4c7e749e",
|
|
67
|
+
"mksnapshot-v22.0.0-beta.7-darwin-arm64.zip": "255977df46d4ddbdf788bb6d2bf8478e2bf6f290c806c0f4207914f5c0233cf8",
|
|
68
|
+
"mksnapshot-v22.0.0-beta.7-darwin-x64.zip": "7926a77f47d5e38a842197f8a84a1ba52321d71c680caa52db1d343a9ccef0c3",
|
|
69
|
+
"mksnapshot-v22.0.0-beta.7-linux-arm64-x64.zip": "f1d6f413bdf464aa2117f6963f51bd760bf2442aa31407a763351dd1351be539",
|
|
70
|
+
"mksnapshot-v22.0.0-beta.7-linux-armv7l-x64.zip": "8276766a64f6139ecc64a0804106558c25c323e6301b016881a523e1edce3232",
|
|
71
|
+
"mksnapshot-v22.0.0-beta.7-linux-x64.zip": "0f286ddefa999564b197c20f6641cf9df22546ed675872bd6685797e089085b3",
|
|
72
|
+
"mksnapshot-v22.0.0-beta.7-mas-arm64.zip": "fa2ffd09721e1d16d37394e5dfc1b4cfa56649160970803e79ce9020ec73f114",
|
|
73
|
+
"mksnapshot-v22.0.0-beta.7-mas-x64.zip": "39d7a6a1138659faec2d5391c237fc538f8b092c91dafb026497001ebd78d158",
|
|
74
|
+
"mksnapshot-v22.0.0-beta.7-win32-arm64-x64.zip": "3d1ebc74efb7cfa6d5257b1f20f576e8013820c3d1eb2623ceca773219b4a0b8",
|
|
75
|
+
"mksnapshot-v22.0.0-beta.7-win32-ia32.zip": "293fa07802d01902641b460ca54893d3d39f80f1021e2fa59063fbb876d05367",
|
|
76
|
+
"mksnapshot-v22.0.0-beta.7-win32-x64.zip": "7cdb00c15918397e1d0848b1f627afdbed6b187cb6dfbcb36f82aacaecdcad23"
|
|
77
77
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron
|
|
1
|
+
// Type definitions for Electron 22.0.0-beta.7
|
|
2
2
|
// Project: http://electronjs.org/
|
|
3
3
|
// Definitions by: The Electron Team <https://github.com/electron/electron>
|
|
4
4
|
// Definitions: https://github.com/electron/electron-typescript-definitions
|
|
@@ -6404,6 +6404,24 @@ declare namespace Electron {
|
|
|
6404
6404
|
userText?: string;
|
|
6405
6405
|
}
|
|
6406
6406
|
|
|
6407
|
+
interface ParentPort extends NodeJS.EventEmitter {
|
|
6408
|
+
|
|
6409
|
+
// Docs: https://electronjs.org/docs/api/parent-port
|
|
6410
|
+
|
|
6411
|
+
/**
|
|
6412
|
+
* Emitted when the process receives a message. Messages received on this port will
|
|
6413
|
+
* be queued up until a handler is registered for this event.
|
|
6414
|
+
*/
|
|
6415
|
+
on(event: 'message', listener: (messageEvent: MessageEvent) => void): this;
|
|
6416
|
+
once(event: 'message', listener: (messageEvent: MessageEvent) => void): this;
|
|
6417
|
+
addListener(event: 'message', listener: (messageEvent: MessageEvent) => void): this;
|
|
6418
|
+
removeListener(event: 'message', listener: (messageEvent: MessageEvent) => void): this;
|
|
6419
|
+
/**
|
|
6420
|
+
* Sends a message from the process to its parent.
|
|
6421
|
+
*/
|
|
6422
|
+
postMessage(message: any): void;
|
|
6423
|
+
}
|
|
6424
|
+
|
|
6407
6425
|
interface PaymentDiscount {
|
|
6408
6426
|
|
|
6409
6427
|
// Docs: https://electronjs.org/docs/api/structures/payment-discount
|
|
@@ -9893,6 +9911,89 @@ declare namespace Electron {
|
|
|
9893
9911
|
url: string;
|
|
9894
9912
|
}
|
|
9895
9913
|
|
|
9914
|
+
class UtilityProcess extends NodeEventEmitter {
|
|
9915
|
+
|
|
9916
|
+
// Docs: https://electronjs.org/docs/api/utility-process
|
|
9917
|
+
|
|
9918
|
+
static fork(modulePath: string, args?: string[], options?: ForkOptions): UtilityProcess;
|
|
9919
|
+
/**
|
|
9920
|
+
* Emitted after the child process ends.
|
|
9921
|
+
*/
|
|
9922
|
+
on(event: 'exit', listener: (
|
|
9923
|
+
/**
|
|
9924
|
+
* Contains the exit code for the process obtained from waitpid on posix, or
|
|
9925
|
+
* GetExitCodeProcess on windows.
|
|
9926
|
+
*/
|
|
9927
|
+
code: number) => void): this;
|
|
9928
|
+
once(event: 'exit', listener: (
|
|
9929
|
+
/**
|
|
9930
|
+
* Contains the exit code for the process obtained from waitpid on posix, or
|
|
9931
|
+
* GetExitCodeProcess on windows.
|
|
9932
|
+
*/
|
|
9933
|
+
code: number) => void): this;
|
|
9934
|
+
addListener(event: 'exit', listener: (
|
|
9935
|
+
/**
|
|
9936
|
+
* Contains the exit code for the process obtained from waitpid on posix, or
|
|
9937
|
+
* GetExitCodeProcess on windows.
|
|
9938
|
+
*/
|
|
9939
|
+
code: number) => void): this;
|
|
9940
|
+
removeListener(event: 'exit', listener: (
|
|
9941
|
+
/**
|
|
9942
|
+
* Contains the exit code for the process obtained from waitpid on posix, or
|
|
9943
|
+
* GetExitCodeProcess on windows.
|
|
9944
|
+
*/
|
|
9945
|
+
code: number) => void): this;
|
|
9946
|
+
/**
|
|
9947
|
+
* Emitted when the child process sends a message using
|
|
9948
|
+
* `process.parentPort.postMessage()`.
|
|
9949
|
+
*/
|
|
9950
|
+
on(event: 'message', listener: (message: any) => void): this;
|
|
9951
|
+
once(event: 'message', listener: (message: any) => void): this;
|
|
9952
|
+
addListener(event: 'message', listener: (message: any) => void): this;
|
|
9953
|
+
removeListener(event: 'message', listener: (message: any) => void): this;
|
|
9954
|
+
/**
|
|
9955
|
+
* Emitted once the child process has spawned successfully.
|
|
9956
|
+
*/
|
|
9957
|
+
on(event: 'spawn', listener: Function): this;
|
|
9958
|
+
once(event: 'spawn', listener: Function): this;
|
|
9959
|
+
addListener(event: 'spawn', listener: Function): this;
|
|
9960
|
+
removeListener(event: 'spawn', listener: Function): this;
|
|
9961
|
+
/**
|
|
9962
|
+
* Terminates the process gracefully. On POSIX, it uses SIGTERM but will ensure the
|
|
9963
|
+
* process is reaped on exit. This function returns true if the kill is successful,
|
|
9964
|
+
* and false otherwise.
|
|
9965
|
+
*/
|
|
9966
|
+
kill(): boolean;
|
|
9967
|
+
/**
|
|
9968
|
+
* Send a message to the child process, optionally transferring ownership of zero
|
|
9969
|
+
* or more [`MessagePortMain`][] objects.
|
|
9970
|
+
*
|
|
9971
|
+
* For example:
|
|
9972
|
+
*/
|
|
9973
|
+
postMessage(message: any, transfer?: MessagePortMain[]): void;
|
|
9974
|
+
/**
|
|
9975
|
+
* A `Integer | undefined` representing the process identifier (PID) of the child
|
|
9976
|
+
* process. If the child process fails to spawn due to errors, then the value is
|
|
9977
|
+
* `undefined`. When the child process exits, then the value is `undefined` after
|
|
9978
|
+
* the `exit` event is emitted.
|
|
9979
|
+
*/
|
|
9980
|
+
pid: (number) | (undefined);
|
|
9981
|
+
/**
|
|
9982
|
+
* A `NodeJS.ReadableStream | null` that represents the child process's stderr. If
|
|
9983
|
+
* the child was spawned with options.stdio[2] set to anything other than 'pipe',
|
|
9984
|
+
* then this will be `null`. When the child process exits, then the value is `null`
|
|
9985
|
+
* after the `exit` event is emitted.
|
|
9986
|
+
*/
|
|
9987
|
+
stderr: (NodeJS.ReadableStream) | (null);
|
|
9988
|
+
/**
|
|
9989
|
+
* A `NodeJS.ReadableStream | null` that represents the child process's stdout. If
|
|
9990
|
+
* the child was spawned with options.stdio[1] set to anything other than 'pipe',
|
|
9991
|
+
* then this will be `null`. When the child process exits, then the value is `null`
|
|
9992
|
+
* after the `exit` event is emitted.
|
|
9993
|
+
*/
|
|
9994
|
+
stdout: (NodeJS.ReadableStream) | (null);
|
|
9995
|
+
}
|
|
9996
|
+
|
|
9896
9997
|
class WebContents extends NodeEventEmitter {
|
|
9897
9998
|
|
|
9898
9999
|
// Docs: https://electronjs.org/docs/api/web-contents
|
|
@@ -14161,6 +14262,47 @@ declare namespace Electron {
|
|
|
14161
14262
|
steal: boolean;
|
|
14162
14263
|
}
|
|
14163
14264
|
|
|
14265
|
+
interface ForkOptions {
|
|
14266
|
+
/**
|
|
14267
|
+
* Environment key-value pairs. Default is `process.env`.
|
|
14268
|
+
*/
|
|
14269
|
+
env?: Env;
|
|
14270
|
+
/**
|
|
14271
|
+
* List of string arguments passed to the executable.
|
|
14272
|
+
*/
|
|
14273
|
+
execArgv?: string[];
|
|
14274
|
+
/**
|
|
14275
|
+
* Current working directory of the child process.
|
|
14276
|
+
*/
|
|
14277
|
+
cwd?: string;
|
|
14278
|
+
/**
|
|
14279
|
+
* Allows configuring the mode for `stdout` and `stderr` of the child process.
|
|
14280
|
+
* Default is `inherit`. String value can be one of `pipe`, `ignore`, `inherit`,
|
|
14281
|
+
* for more details on these values you can refer to stdio documentation from
|
|
14282
|
+
* Node.js. Currently this option only supports configuring `stdout` and `stderr`
|
|
14283
|
+
* to either `pipe`, `inherit` or `ignore`. Configuring `stdin` is not supported;
|
|
14284
|
+
* `stdin` will always be ignored. For example, the supported values will be
|
|
14285
|
+
* processed as following:
|
|
14286
|
+
*/
|
|
14287
|
+
stdio?: (Array<'pipe' | 'ignore' | 'inherit'>) | (string);
|
|
14288
|
+
/**
|
|
14289
|
+
* Name of the process that will appear in `name` property of `child-process-gone`
|
|
14290
|
+
* event of `app`. Default is `node.mojom.NodeService`.
|
|
14291
|
+
*/
|
|
14292
|
+
serviceName?: string;
|
|
14293
|
+
/**
|
|
14294
|
+
* With this flag, the utility process will be launched via the `Electron Helper
|
|
14295
|
+
* (Plugin).app` helper executable on macOS, which can be codesigned with
|
|
14296
|
+
* `com.apple.security.cs.disable-library-validation` and
|
|
14297
|
+
* `com.apple.security.cs.allow-unsigned-executable-memory` entitlements. This will
|
|
14298
|
+
* allow the utility process to load unsigned libraries. Unless you specifically
|
|
14299
|
+
* need this capability, it is best to leave this disabled. Default is `false`.
|
|
14300
|
+
*
|
|
14301
|
+
* @platform darwin
|
|
14302
|
+
*/
|
|
14303
|
+
allowLoadingUnsignedLibraries?: boolean;
|
|
14304
|
+
}
|
|
14305
|
+
|
|
14164
14306
|
interface FoundInPageEvent extends Event {
|
|
14165
14307
|
result: FoundInPageResult;
|
|
14166
14308
|
}
|
|
@@ -16228,6 +16370,9 @@ declare namespace Electron {
|
|
|
16228
16370
|
canEditRichly: boolean;
|
|
16229
16371
|
}
|
|
16230
16372
|
|
|
16373
|
+
interface Env {
|
|
16374
|
+
}
|
|
16375
|
+
|
|
16231
16376
|
interface FoundInPageResult {
|
|
16232
16377
|
requestId: number;
|
|
16233
16378
|
/**
|
|
@@ -16811,6 +16956,7 @@ declare namespace Electron {
|
|
|
16811
16956
|
systemPreferences: SystemPreferences;
|
|
16812
16957
|
TouchBar: typeof TouchBar;
|
|
16813
16958
|
Tray: typeof Tray;
|
|
16959
|
+
utilityProcess: typeof UtilityProcess;
|
|
16814
16960
|
webContents: typeof WebContents;
|
|
16815
16961
|
webFrameMain: typeof WebFrameMain;
|
|
16816
16962
|
}
|
|
@@ -16876,6 +17022,7 @@ declare namespace Electron {
|
|
|
16876
17022
|
type FileIconOptions = Electron.FileIconOptions;
|
|
16877
17023
|
type FindInPageOptions = Electron.FindInPageOptions;
|
|
16878
17024
|
type FocusOptions = Electron.FocusOptions;
|
|
17025
|
+
type ForkOptions = Electron.ForkOptions;
|
|
16879
17026
|
type FoundInPageEvent = Electron.FoundInPageEvent;
|
|
16880
17027
|
type FrameCreatedDetails = Electron.FrameCreatedDetails;
|
|
16881
17028
|
type FromPartitionOptions = Electron.FromPartitionOptions;
|
|
@@ -16979,6 +17126,7 @@ declare namespace Electron {
|
|
|
16979
17126
|
type WillNavigateEvent = Electron.WillNavigateEvent;
|
|
16980
17127
|
type WillResizeDetails = Electron.WillResizeDetails;
|
|
16981
17128
|
type EditFlags = Electron.EditFlags;
|
|
17129
|
+
type Env = Electron.Env;
|
|
16982
17130
|
type FoundInPageResult = Electron.FoundInPageResult;
|
|
16983
17131
|
type LaunchItems = Electron.LaunchItems;
|
|
16984
17132
|
type Margins = Electron.Margins;
|
|
@@ -17123,6 +17271,8 @@ declare namespace Electron {
|
|
|
17123
17271
|
type TouchBarSlider = Electron.TouchBarSlider;
|
|
17124
17272
|
type TouchBarSpacer = Electron.TouchBarSpacer;
|
|
17125
17273
|
class Tray extends Electron.Tray {}
|
|
17274
|
+
const utilityProcess: typeof UtilityProcess;
|
|
17275
|
+
type UtilityProcess = Electron.UtilityProcess;
|
|
17126
17276
|
const webContents: typeof WebContents;
|
|
17127
17277
|
type WebContents = Electron.WebContents;
|
|
17128
17278
|
const webFrameMain: typeof WebFrameMain;
|
|
@@ -17178,6 +17328,7 @@ declare namespace Electron {
|
|
|
17178
17328
|
type FileIconOptions = Electron.FileIconOptions;
|
|
17179
17329
|
type FindInPageOptions = Electron.FindInPageOptions;
|
|
17180
17330
|
type FocusOptions = Electron.FocusOptions;
|
|
17331
|
+
type ForkOptions = Electron.ForkOptions;
|
|
17181
17332
|
type FoundInPageEvent = Electron.FoundInPageEvent;
|
|
17182
17333
|
type FrameCreatedDetails = Electron.FrameCreatedDetails;
|
|
17183
17334
|
type FromPartitionOptions = Electron.FromPartitionOptions;
|
|
@@ -17281,6 +17432,7 @@ declare namespace Electron {
|
|
|
17281
17432
|
type WillNavigateEvent = Electron.WillNavigateEvent;
|
|
17282
17433
|
type WillResizeDetails = Electron.WillResizeDetails;
|
|
17283
17434
|
type EditFlags = Electron.EditFlags;
|
|
17435
|
+
type Env = Electron.Env;
|
|
17284
17436
|
type FoundInPageResult = Electron.FoundInPageResult;
|
|
17285
17437
|
type LaunchItems = Electron.LaunchItems;
|
|
17286
17438
|
type Margins = Electron.Margins;
|
|
@@ -17415,6 +17567,7 @@ declare namespace Electron {
|
|
|
17415
17567
|
type FileIconOptions = Electron.FileIconOptions;
|
|
17416
17568
|
type FindInPageOptions = Electron.FindInPageOptions;
|
|
17417
17569
|
type FocusOptions = Electron.FocusOptions;
|
|
17570
|
+
type ForkOptions = Electron.ForkOptions;
|
|
17418
17571
|
type FoundInPageEvent = Electron.FoundInPageEvent;
|
|
17419
17572
|
type FrameCreatedDetails = Electron.FrameCreatedDetails;
|
|
17420
17573
|
type FromPartitionOptions = Electron.FromPartitionOptions;
|
|
@@ -17518,6 +17671,7 @@ declare namespace Electron {
|
|
|
17518
17671
|
type WillNavigateEvent = Electron.WillNavigateEvent;
|
|
17519
17672
|
type WillResizeDetails = Electron.WillResizeDetails;
|
|
17520
17673
|
type EditFlags = Electron.EditFlags;
|
|
17674
|
+
type Env = Electron.Env;
|
|
17521
17675
|
type FoundInPageResult = Electron.FoundInPageResult;
|
|
17522
17676
|
type LaunchItems = Electron.LaunchItems;
|
|
17523
17677
|
type Margins = Electron.Margins;
|
|
@@ -17674,6 +17828,8 @@ declare namespace Electron {
|
|
|
17674
17828
|
type TouchBarSlider = Electron.TouchBarSlider;
|
|
17675
17829
|
type TouchBarSpacer = Electron.TouchBarSpacer;
|
|
17676
17830
|
class Tray extends Electron.Tray {}
|
|
17831
|
+
const utilityProcess: typeof UtilityProcess;
|
|
17832
|
+
type UtilityProcess = Electron.UtilityProcess;
|
|
17677
17833
|
const webContents: typeof WebContents;
|
|
17678
17834
|
type WebContents = Electron.WebContents;
|
|
17679
17835
|
const webFrame: WebFrame;
|
|
@@ -17731,6 +17887,7 @@ declare namespace Electron {
|
|
|
17731
17887
|
type FileIconOptions = Electron.FileIconOptions;
|
|
17732
17888
|
type FindInPageOptions = Electron.FindInPageOptions;
|
|
17733
17889
|
type FocusOptions = Electron.FocusOptions;
|
|
17890
|
+
type ForkOptions = Electron.ForkOptions;
|
|
17734
17891
|
type FoundInPageEvent = Electron.FoundInPageEvent;
|
|
17735
17892
|
type FrameCreatedDetails = Electron.FrameCreatedDetails;
|
|
17736
17893
|
type FromPartitionOptions = Electron.FromPartitionOptions;
|
|
@@ -17834,6 +17991,7 @@ declare namespace Electron {
|
|
|
17834
17991
|
type WillNavigateEvent = Electron.WillNavigateEvent;
|
|
17835
17992
|
type WillResizeDetails = Electron.WillResizeDetails;
|
|
17836
17993
|
type EditFlags = Electron.EditFlags;
|
|
17994
|
+
type Env = Electron.Env;
|
|
17837
17995
|
type FoundInPageResult = Electron.FoundInPageResult;
|
|
17838
17996
|
type LaunchItems = Electron.LaunchItems;
|
|
17839
17997
|
type Margins = Electron.Margins;
|
|
@@ -17927,6 +18085,7 @@ declare namespace Electron {
|
|
|
17927
18085
|
const nativeTheme: NativeTheme;
|
|
17928
18086
|
const net: Net;
|
|
17929
18087
|
const netLog: NetLog;
|
|
18088
|
+
const parentPort: ParentPort;
|
|
17930
18089
|
const powerMonitor: PowerMonitor;
|
|
17931
18090
|
const powerSaveBlocker: PowerSaveBlocker;
|
|
17932
18091
|
const protocol: Protocol;
|
|
@@ -17936,6 +18095,7 @@ declare namespace Electron {
|
|
|
17936
18095
|
const session: typeof Session;
|
|
17937
18096
|
const shell: Shell;
|
|
17938
18097
|
const systemPreferences: SystemPreferences;
|
|
18098
|
+
const utilityProcess: typeof UtilityProcess;
|
|
17939
18099
|
const webContents: typeof WebContents;
|
|
17940
18100
|
const webFrame: WebFrame;
|
|
17941
18101
|
const webFrameMain: typeof WebFrameMain;
|
|
@@ -18148,6 +18308,11 @@ declare namespace NodeJS {
|
|
|
18148
18308
|
* property is used instead of the `--no-deprecation` command line flag.
|
|
18149
18309
|
*/
|
|
18150
18310
|
noDeprecation: boolean;
|
|
18311
|
+
/**
|
|
18312
|
+
* A `Electron.ParentPort` property if this is a `UtilityProcess` (or `null`
|
|
18313
|
+
* otherwise) allowing communication with the parent process.
|
|
18314
|
+
*/
|
|
18315
|
+
parentPort: Electron.ParentPort;
|
|
18151
18316
|
/**
|
|
18152
18317
|
* A `string` representing the path to the resources directory.
|
|
18153
18318
|
*
|
|
@@ -18185,9 +18350,10 @@ declare namespace NodeJS {
|
|
|
18185
18350
|
* * `browser` - The main process
|
|
18186
18351
|
* * `renderer` - A renderer process
|
|
18187
18352
|
* * `worker` - In a web worker
|
|
18353
|
+
* * `utility` - In a node process launched as a service
|
|
18188
18354
|
*
|
|
18189
18355
|
*/
|
|
18190
|
-
readonly type: ('browser' | 'renderer' | 'worker');
|
|
18356
|
+
readonly type: ('browser' | 'renderer' | 'worker' | 'utility');
|
|
18191
18357
|
/**
|
|
18192
18358
|
* A `boolean`. If the app is running as a Windows Store app (appx), this property
|
|
18193
18359
|
* is `true`, for otherwise it is `undefined`.
|
package/package.json
CHANGED