electron 19.0.1 → 20.0.0-alpha.2
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 +73 -75
- package/electron.d.ts +52 -19
- package/install.js +2 -11
- package/package.json +3 -3
package/checksums.json
CHANGED
|
@@ -1,77 +1,75 @@
|
|
|
1
1
|
{
|
|
2
|
-
"chromedriver-
|
|
3
|
-
"chromedriver-
|
|
4
|
-
"chromedriver-
|
|
5
|
-
"chromedriver-
|
|
6
|
-
"chromedriver-
|
|
7
|
-
"chromedriver-
|
|
8
|
-
"chromedriver-
|
|
9
|
-
"chromedriver-
|
|
10
|
-
"chromedriver-
|
|
11
|
-
"chromedriver-
|
|
12
|
-
"electron-api.json": "
|
|
13
|
-
"electron-
|
|
14
|
-
"electron-
|
|
15
|
-
"electron-
|
|
16
|
-
"electron-
|
|
17
|
-
"electron-
|
|
18
|
-
"electron-
|
|
19
|
-
"electron-
|
|
20
|
-
"electron-
|
|
21
|
-
"electron-
|
|
22
|
-
"electron-
|
|
23
|
-
"electron-
|
|
24
|
-
"electron-
|
|
25
|
-
"electron-
|
|
26
|
-
"electron-
|
|
27
|
-
"electron-
|
|
28
|
-
"electron-
|
|
29
|
-
"electron-
|
|
30
|
-
"electron-
|
|
31
|
-
"electron-
|
|
32
|
-
"electron-
|
|
33
|
-
"electron-
|
|
34
|
-
"electron-
|
|
35
|
-
"electron-
|
|
36
|
-
"electron-
|
|
37
|
-
"electron-
|
|
38
|
-
"electron-
|
|
39
|
-
"electron-
|
|
40
|
-
"electron-
|
|
41
|
-
"electron-
|
|
42
|
-
"electron-
|
|
43
|
-
"electron-
|
|
44
|
-
"electron-
|
|
45
|
-
"electron-
|
|
46
|
-
"electron-
|
|
47
|
-
"electron-
|
|
48
|
-
"electron
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"ffmpeg-
|
|
52
|
-
"ffmpeg-
|
|
53
|
-
"ffmpeg-
|
|
54
|
-
"ffmpeg-
|
|
55
|
-
"ffmpeg-
|
|
56
|
-
"ffmpeg-
|
|
57
|
-
"ffmpeg-
|
|
58
|
-
"ffmpeg-
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"libcxx-objects-
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"mksnapshot-
|
|
68
|
-
"mksnapshot-
|
|
69
|
-
"mksnapshot-
|
|
70
|
-
"mksnapshot-
|
|
71
|
-
"mksnapshot-
|
|
72
|
-
"mksnapshot-
|
|
73
|
-
"mksnapshot-
|
|
74
|
-
"mksnapshot-
|
|
75
|
-
"mksnapshot-v19.0.1-win32-ia32.zip": "251613b5e157fd6b4207ee12472f01a816771e0fac9cd6cea12916759805c1ac",
|
|
76
|
-
"mksnapshot-v19.0.1-win32-x64.zip": "8ea324efebdede476baac46a77fb15e98ddec07f2d950b6c63121afbdadf2a3b"
|
|
2
|
+
"chromedriver-v20.0.0-alpha.2-darwin-arm64.zip": "02a45bd1daf6ffd7a9a25a1de1db55b19fc8d9ffad4ea9f67366b874b3c66089",
|
|
3
|
+
"chromedriver-v20.0.0-alpha.2-darwin-x64.zip": "a76f59db1c0924f6583e5e2692de7eb2e4e539a32839ce74c6982062eab5d8a6",
|
|
4
|
+
"chromedriver-v20.0.0-alpha.2-linux-arm64.zip": "5f5abc05899d7bad890d9c9c82363d84c6aa6b13f26ee2ebd3b556695e55b6fd",
|
|
5
|
+
"chromedriver-v20.0.0-alpha.2-linux-armv7l.zip": "0ea4a900fcc8f11b4dbb1e2d5b064f4a2a94508292b82eecd73ddc3f8592e66a",
|
|
6
|
+
"chromedriver-v20.0.0-alpha.2-linux-x64.zip": "69939d73e747216473769515700477bd94c50f1360cd62c3ed0f5fd8937e7ff2",
|
|
7
|
+
"chromedriver-v20.0.0-alpha.2-mas-arm64.zip": "403bc436054448d5174341d46dd8935de587c2c4c16ae5d54c116e811f57ab6f",
|
|
8
|
+
"chromedriver-v20.0.0-alpha.2-mas-x64.zip": "8363776a007e73de7a950fac1ee47107ecbf94cafed6718af34e86146726c3de",
|
|
9
|
+
"chromedriver-v20.0.0-alpha.2-win32-arm64.zip": "6b00014064a3549f13376cd5817f3be604fb6db120fbe534afbc72e633d44120",
|
|
10
|
+
"chromedriver-v20.0.0-alpha.2-win32-ia32.zip": "005269bf88519b3990046ee540e9cf848684fc34b36e7909696a5c97f9b35f42",
|
|
11
|
+
"chromedriver-v20.0.0-alpha.2-win32-x64.zip": "4530b39b01a8fabb1ac9d1434030eef390b6546f99ba732470d657af1da04c5e",
|
|
12
|
+
"electron-api.json": "b3840f0458375128d1ab691799199f45dde86839f957a9f20273ff747e32a9cf",
|
|
13
|
+
"electron-v20.0.0-alpha.2-darwin-arm64-dsym-snapshot.zip": "1fb9c215273e4ebf92ca065bb77eb00ba0bd60efae4e747a1143ef7767ec0fee",
|
|
14
|
+
"electron-v20.0.0-alpha.2-darwin-arm64-dsym.zip": "1c7a1ee76d42d3f3ec9bff0e94d91133dfaa4580d2f24a16d1b8da2cb18ac8d0",
|
|
15
|
+
"electron-v20.0.0-alpha.2-darwin-arm64-symbols.zip": "e9ec987ac3f4d02d4568cadb5df4f8f41739048eb6c420c13d4ace5cb1e5064a",
|
|
16
|
+
"electron-v20.0.0-alpha.2-darwin-arm64.zip": "60f5c2e8d421852b63da786bbd0ac0728cfc40429842ce61336a11dff4e14f35",
|
|
17
|
+
"electron-v20.0.0-alpha.2-darwin-x64-dsym-snapshot.zip": "a9b9962f4caa1a45d76d0ee72c986f098d214a7cbad63e17e3153420d94c4fa9",
|
|
18
|
+
"electron-v20.0.0-alpha.2-darwin-x64-dsym.zip": "85dfe2b7ef7aa2332d878420e85f918fe833211784acaf1248e3ecc7f5a461a4",
|
|
19
|
+
"electron-v20.0.0-alpha.2-darwin-x64-symbols.zip": "f7db0800120239d77267ef7ad52cc40c75baab617536c08e1221ef7d78afa307",
|
|
20
|
+
"electron-v20.0.0-alpha.2-darwin-x64.zip": "6ce1615c1c0e871b20f1d9b277753570d23950d6fd4c5182ab6a557e31af7816",
|
|
21
|
+
"electron-v20.0.0-alpha.2-linux-arm64-debug.zip": "05359740fa466527170481220860cd74dd2d8d66f7f9c9022adcdc87badb86fe",
|
|
22
|
+
"electron-v20.0.0-alpha.2-linux-arm64-symbols.zip": "e69d7784a3020bcb3eb6105373f150cb6902ea9c15d17d771ac073d629ae6be5",
|
|
23
|
+
"electron-v20.0.0-alpha.2-linux-arm64.zip": "5010d3dd6d17fb765fe177bb6ccc017c2d92684ef64e54abffdd1be7e7a3d67d",
|
|
24
|
+
"electron-v20.0.0-alpha.2-linux-armv7l-debug.zip": "05359740fa466527170481220860cd74dd2d8d66f7f9c9022adcdc87badb86fe",
|
|
25
|
+
"electron-v20.0.0-alpha.2-linux-armv7l-symbols.zip": "07884780452c13aec3a5bc2a4c4f4ef00496dfd2ca20ec73e5215af07c98b049",
|
|
26
|
+
"electron-v20.0.0-alpha.2-linux-armv7l.zip": "b048ad92c34b0816969f8bd4ee2d115781383904b0e564b83f5ccb5d512f6303",
|
|
27
|
+
"electron-v20.0.0-alpha.2-linux-x64-debug.zip": "079f1382d4c474d8b02da3992d9c97edaa237d657319af63418cad26d42066dd",
|
|
28
|
+
"electron-v20.0.0-alpha.2-linux-x64-symbols.zip": "e4c10876ae9ca59fbde5c6235ea5a516c4db6b427968eac0b6a04823945765c9",
|
|
29
|
+
"electron-v20.0.0-alpha.2-linux-x64.zip": "08891f52d8277c8ecdc7019a15f6b5252d6beefa9a632cae2084d93a5a06526e",
|
|
30
|
+
"electron-v20.0.0-alpha.2-mas-arm64-dsym-snapshot.zip": "1fb9c215273e4ebf92ca065bb77eb00ba0bd60efae4e747a1143ef7767ec0fee",
|
|
31
|
+
"electron-v20.0.0-alpha.2-mas-arm64-dsym.zip": "8973d35906059d03831d79232acdcc6fc090fabc9bf9dfd975f51f3d7ae948d1",
|
|
32
|
+
"electron-v20.0.0-alpha.2-mas-arm64-symbols.zip": "6376362d4d1e93071c3ae8ab05bede44ec53a583635a1cbfa3de20bac2f354d9",
|
|
33
|
+
"electron-v20.0.0-alpha.2-mas-arm64.zip": "c8d2d80c574f6130c6d29d19187c444116b0331eda162f3bc4193ed248f562c1",
|
|
34
|
+
"electron-v20.0.0-alpha.2-mas-x64-dsym-snapshot.zip": "cc0b8c31fa86a898d64f59616711f5e7183173b51e86c6cf1af0f36e8a7e61c2",
|
|
35
|
+
"electron-v20.0.0-alpha.2-mas-x64-dsym.zip": "e7e4c4e6fef2af66b6baec3237d649cedfe034815cdfbb13f01edb895b68d330",
|
|
36
|
+
"electron-v20.0.0-alpha.2-mas-x64-symbols.zip": "152859e8985280342e975a7fe1721d5434b9ed3cbe31b48db49d54a05c07832a",
|
|
37
|
+
"electron-v20.0.0-alpha.2-mas-x64.zip": "f857b5bfb07cb344f4434f51c7da97cea7e067e37795d83f3aab2b700b39bd2b",
|
|
38
|
+
"electron-v20.0.0-alpha.2-win32-arm64-pdb.zip": "9fba7969572f1fd5fbf62cc62986ceafb42bcd843c32c98e59c420685f250593",
|
|
39
|
+
"electron-v20.0.0-alpha.2-win32-arm64-symbols.zip": "6d2a5b15cadf2b933eb7f1d0eed816b257caa5c36ff93528382ddb7f55c55885",
|
|
40
|
+
"electron-v20.0.0-alpha.2-win32-arm64-toolchain-profile.zip": "3a5d2888ac992d063c6219cb20f73182ee02f25935f0f73bd7ed4ee8cd719376",
|
|
41
|
+
"electron-v20.0.0-alpha.2-win32-arm64.zip": "83cd07d9e54baeb88a35feb43ef51591125bc74ebe85f3dca8deabb565420c6a",
|
|
42
|
+
"electron-v20.0.0-alpha.2-win32-ia32-toolchain-profile.zip": "3a5d2888ac992d063c6219cb20f73182ee02f25935f0f73bd7ed4ee8cd719376",
|
|
43
|
+
"electron-v20.0.0-alpha.2-win32-ia32.zip": "45683b58787fc10d50907d35d71eb1dc0f58bd622cee6af7eb8dce69eeecbf9a",
|
|
44
|
+
"electron-v20.0.0-alpha.2-win32-x64-pdb.zip": "2a1f9f602613e29142b7edd4a9748e0d293f5c8a0c1092904ae161ac81bdf78a",
|
|
45
|
+
"electron-v20.0.0-alpha.2-win32-x64-symbols.zip": "3073b872e6286ab0ad64b4710bf648098d92778bb1f99613c3a441bdefa6a742",
|
|
46
|
+
"electron-v20.0.0-alpha.2-win32-x64-toolchain-profile.zip": "3a5d2888ac992d063c6219cb20f73182ee02f25935f0f73bd7ed4ee8cd719376",
|
|
47
|
+
"electron-v20.0.0-alpha.2-win32-x64.zip": "327e5b7040ed7ae19943178b4d9cb3b74ca43b4dbfc44a7161bb948d65a58426",
|
|
48
|
+
"electron.d.ts": "4a1977f3883d86a273b12aca54595661d456036a8745b6e94d56fe1f29592a89",
|
|
49
|
+
"ffmpeg-v20.0.0-alpha.2-darwin-arm64.zip": "02dcfda473140ba90ef0acf901a7219849b19cd77d71a1d515f2868d93e3c6d2",
|
|
50
|
+
"ffmpeg-v20.0.0-alpha.2-darwin-x64.zip": "36cd36c5f13afe82d113fa9840c006a8acaf121f63aab4f4ce082ebe60585215",
|
|
51
|
+
"ffmpeg-v20.0.0-alpha.2-linux-arm64.zip": "3a263e45ad939fac3142ebb42b14d7173c0a271bf9f258df73573cfd8a769f73",
|
|
52
|
+
"ffmpeg-v20.0.0-alpha.2-linux-armv7l.zip": "f20f1fdb0ff2435029f054915e17810e16772573dd6bd4d59a7d78138f59612a",
|
|
53
|
+
"ffmpeg-v20.0.0-alpha.2-linux-x64.zip": "407311bc6828687006b7482d55d63cc3eec35b66bbabed569cf235d1a720524a",
|
|
54
|
+
"ffmpeg-v20.0.0-alpha.2-mas-arm64.zip": "a6824a85f858eecd3d188fec5146d903dea7e4b9c0733ed656461e0822ebf953",
|
|
55
|
+
"ffmpeg-v20.0.0-alpha.2-mas-x64.zip": "115968ba84731419ad486ce1a7826a50de49012ed28a579d2a7eb6c04a9455dc",
|
|
56
|
+
"ffmpeg-v20.0.0-alpha.2-win32-arm64.zip": "0ff48bd5bac2a3dfc1f8bb736b8e445f685ee6a0a3e94744b499e293338d7b3c",
|
|
57
|
+
"ffmpeg-v20.0.0-alpha.2-win32-ia32.zip": "2fa6e668370b67139e083cb724a6c9db4688ead9e2453fba6e510fce0d61076c",
|
|
58
|
+
"ffmpeg-v20.0.0-alpha.2-win32-x64.zip": "b87c587164a4dba8871520cfee1e9f8671d4e762448843a5802e3eff7555efff",
|
|
59
|
+
"hunspell_dictionaries.zip": "13c8bf9c6365e798d6c9b6650abbf09ad0db423d46573d813f3a91e03ea441f3",
|
|
60
|
+
"libcxx-objects-v20.0.0-alpha.2-linux-arm64.zip": "e3a533aa4949a53fdbfd3120e61f295b7d1a776f452c8b57ba05217cc7fce32d",
|
|
61
|
+
"libcxx-objects-v20.0.0-alpha.2-linux-armv7l.zip": "20d5edb0b0fbbc3c015d4f1bd225d592abf69edc2fe051214f94371fea62a220",
|
|
62
|
+
"libcxx-objects-v20.0.0-alpha.2-linux-x64.zip": "de435939f29a87a2607b1fbd3dcaed1a4b65b9c6da3f01369bc4aea2cbebb649",
|
|
63
|
+
"libcxx_headers.zip": "3955b9bee47a857981c220fdb5cb6f68de7ab3de462fa2388b76da3aa2c0fd8c",
|
|
64
|
+
"libcxxabi_headers.zip": "9cc25a2dc770b323b1de1d8e0c5ca0a815bd44e8fd431e809da3e2ba1bbb8be9",
|
|
65
|
+
"mksnapshot-v20.0.0-alpha.2-darwin-arm64.zip": "3088e42a682621af50ea453bc9a0a3560c6e1484986ba9f90ef87999edc3310d",
|
|
66
|
+
"mksnapshot-v20.0.0-alpha.2-darwin-x64.zip": "27c9d3c98e403e05a107ea8daa1af8654967475d1fecb0418db198ab1dc5d03d",
|
|
67
|
+
"mksnapshot-v20.0.0-alpha.2-linux-arm64-x64.zip": "6cf87d66f71c709e679415d674e18dafdd42a6c41353368424afba5ac813e802",
|
|
68
|
+
"mksnapshot-v20.0.0-alpha.2-linux-armv7l-x64.zip": "a7d6c37dd776e2f2d73b0a7b604b594e5162648dd1b574f031a4e2258930dc3e",
|
|
69
|
+
"mksnapshot-v20.0.0-alpha.2-linux-x64.zip": "811e130b17cbef96897787ecdd43d2b070dd45282acb0bd48fce246fa7d267a7",
|
|
70
|
+
"mksnapshot-v20.0.0-alpha.2-mas-arm64.zip": "63a9713cd6517b3182665e47c2ccb801d0dae04b09b524f549424d3711264625",
|
|
71
|
+
"mksnapshot-v20.0.0-alpha.2-mas-x64.zip": "c2b3cae9f51a65c9763578c5c0d4af10dda9c75f16d0ff736a91ee944176fad9",
|
|
72
|
+
"mksnapshot-v20.0.0-alpha.2-win32-arm64-x64.zip": "6f28a0d51d60e38d4946b7ccf4cb242729e93a536fffbe2179a3a5d99a1acf0b",
|
|
73
|
+
"mksnapshot-v20.0.0-alpha.2-win32-ia32.zip": "9a2993b5ee72cbe961c80ef58ac813a31e60f863afb17a7e7daf5b391bb1f329",
|
|
74
|
+
"mksnapshot-v20.0.0-alpha.2-win32-x64.zip": "59d5b9405049c0af455bdbb2ddc9644959932bef3349b43690ba07929f4f96b2"
|
|
77
75
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron
|
|
1
|
+
// Type definitions for Electron 20.0.0-alpha.2
|
|
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
|
|
@@ -952,7 +952,7 @@ declare namespace Electron {
|
|
|
952
952
|
* called first, a default log directory will be created equivalent to calling
|
|
953
953
|
* `app.setAppLogsPath()` without a `path` parameter.
|
|
954
954
|
*/
|
|
955
|
-
getPath(name: 'home' | 'appData' | 'userData' | '
|
|
955
|
+
getPath(name: 'home' | 'appData' | 'userData' | 'sessionData' | 'temp' | 'exe' | 'module' | 'desktop' | 'documents' | 'downloads' | 'music' | 'pictures' | 'videos' | 'recent' | 'logs' | 'crashDumps'): string;
|
|
956
956
|
/**
|
|
957
957
|
* The version of the loaded application. If no version is found in the
|
|
958
958
|
* application's `package.json` file, the version of the current bundle or
|
|
@@ -1014,6 +1014,13 @@ declare namespace Electron {
|
|
|
1014
1014
|
* whether or not the current OS version allows for native emoji pickers.
|
|
1015
1015
|
*/
|
|
1016
1016
|
isEmojiPanelSupported(): boolean;
|
|
1017
|
+
/**
|
|
1018
|
+
* `true` if the application—including all of its windows—is hidden (e.g. with
|
|
1019
|
+
* `Command-H`), `false` otherwise.
|
|
1020
|
+
*
|
|
1021
|
+
* @platform darwin
|
|
1022
|
+
*/
|
|
1023
|
+
isHidden(): boolean;
|
|
1017
1024
|
/**
|
|
1018
1025
|
* Whether the application is currently running from the systems Application
|
|
1019
1026
|
* folder. Use in combination with `app.moveToApplicationsFolder()`
|
|
@@ -1298,9 +1305,9 @@ declare namespace Electron {
|
|
|
1298
1305
|
*
|
|
1299
1306
|
* You can only override paths of a `name` defined in `app.getPath`.
|
|
1300
1307
|
*
|
|
1301
|
-
* By default, web pages' cookies and caches will be stored under the `
|
|
1308
|
+
* By default, web pages' cookies and caches will be stored under the `sessionData`
|
|
1302
1309
|
* directory. If you want to change this location, you have to override the
|
|
1303
|
-
* `
|
|
1310
|
+
* `sessionData` path before the `ready` event of the `app` module is emitted.
|
|
1304
1311
|
*/
|
|
1305
1312
|
setPath(name: string, path: string): void;
|
|
1306
1313
|
/**
|
|
@@ -7354,11 +7361,11 @@ declare namespace Electron {
|
|
|
7354
7361
|
removeListener(event: 'extension-unloaded', listener: (event: Event,
|
|
7355
7362
|
extension: Extension) => void): this;
|
|
7356
7363
|
/**
|
|
7357
|
-
* Emitted
|
|
7358
|
-
* device
|
|
7359
|
-
*
|
|
7360
|
-
*
|
|
7361
|
-
*
|
|
7364
|
+
* Emitted after `navigator.hid.requestDevice` has been called and
|
|
7365
|
+
* `select-hid-device` has fired if a new device becomes available before the
|
|
7366
|
+
* callback from `select-hid-device` is called. This event is intended for use
|
|
7367
|
+
* when using a UI to ask users to pick a device so that the UI can be updated with
|
|
7368
|
+
* the newly added device.
|
|
7362
7369
|
*/
|
|
7363
7370
|
on(event: 'hid-device-added', listener: (event: Event,
|
|
7364
7371
|
details: HidDeviceAddedDetails) => void): this;
|
|
@@ -7369,11 +7376,11 @@ declare namespace Electron {
|
|
|
7369
7376
|
removeListener(event: 'hid-device-added', listener: (event: Event,
|
|
7370
7377
|
details: HidDeviceAddedDetails) => void): this;
|
|
7371
7378
|
/**
|
|
7372
|
-
* Emitted
|
|
7373
|
-
*
|
|
7374
|
-
*
|
|
7375
|
-
*
|
|
7376
|
-
*
|
|
7379
|
+
* Emitted after `navigator.hid.requestDevice` has been called and
|
|
7380
|
+
* `select-hid-device` has fired if a device has been removed before the callback
|
|
7381
|
+
* from `select-hid-device` is called. This event is intended for use when using a
|
|
7382
|
+
* UI to ask users to pick a device so that the UI can be updated to remove the
|
|
7383
|
+
* specified device.
|
|
7377
7384
|
*/
|
|
7378
7385
|
on(event: 'hid-device-removed', listener: (event: Event,
|
|
7379
7386
|
details: HidDeviceRemovedDetails) => void): this;
|
|
@@ -7383,6 +7390,19 @@ declare namespace Electron {
|
|
|
7383
7390
|
details: HidDeviceRemovedDetails) => void): this;
|
|
7384
7391
|
removeListener(event: 'hid-device-removed', listener: (event: Event,
|
|
7385
7392
|
details: HidDeviceRemovedDetails) => void): this;
|
|
7393
|
+
/**
|
|
7394
|
+
* Emitted after `HIDDevice.forget()` has been called. This event can be used to
|
|
7395
|
+
* help maintain persistent storage of permissions when
|
|
7396
|
+
* `setDevicePermissionHandler` is used.
|
|
7397
|
+
*/
|
|
7398
|
+
on(event: 'hid-device-revoked', listener: (event: Event,
|
|
7399
|
+
details: HidDeviceRevokedDetails) => void): this;
|
|
7400
|
+
once(event: 'hid-device-revoked', listener: (event: Event,
|
|
7401
|
+
details: HidDeviceRevokedDetails) => void): this;
|
|
7402
|
+
addListener(event: 'hid-device-revoked', listener: (event: Event,
|
|
7403
|
+
details: HidDeviceRevokedDetails) => void): this;
|
|
7404
|
+
removeListener(event: 'hid-device-revoked', listener: (event: Event,
|
|
7405
|
+
details: HidDeviceRevokedDetails) => void): this;
|
|
7386
7406
|
/**
|
|
7387
7407
|
* Emitted when a render process requests preconnection to a URL, generally due to
|
|
7388
7408
|
* a resource hint.
|
|
@@ -7472,8 +7492,10 @@ declare namespace Electron {
|
|
|
7472
7492
|
callback: (portId: string) => void) => void): this;
|
|
7473
7493
|
/**
|
|
7474
7494
|
* Emitted after `navigator.serial.requestPort` has been called and
|
|
7475
|
-
* `select-serial-port` has fired if a new serial port becomes available
|
|
7476
|
-
*
|
|
7495
|
+
* `select-serial-port` has fired if a new serial port becomes available before the
|
|
7496
|
+
* callback from `select-serial-port` is called. This event is intended for use
|
|
7497
|
+
* when using a UI to ask users to pick a port so that the UI can be updated with
|
|
7498
|
+
* the newly added port.
|
|
7477
7499
|
*/
|
|
7478
7500
|
on(event: 'serial-port-added', listener: (event: Event,
|
|
7479
7501
|
port: SerialPort,
|
|
@@ -7489,8 +7511,10 @@ declare namespace Electron {
|
|
|
7489
7511
|
webContents: WebContents) => void): this;
|
|
7490
7512
|
/**
|
|
7491
7513
|
* Emitted after `navigator.serial.requestPort` has been called and
|
|
7492
|
-
* `select-serial-port` has fired if a serial port has been removed
|
|
7493
|
-
*
|
|
7514
|
+
* `select-serial-port` has fired if a serial port has been removed before the
|
|
7515
|
+
* callback from `select-serial-port` is called. This event is intended for use
|
|
7516
|
+
* when using a UI to ask users to pick a port so that the UI can be updated to
|
|
7517
|
+
* remove the specified port.
|
|
7494
7518
|
*/
|
|
7495
7519
|
on(event: 'serial-port-removed', listener: (event: Event,
|
|
7496
7520
|
port: SerialPort,
|
|
@@ -13921,6 +13945,11 @@ declare namespace Electron {
|
|
|
13921
13945
|
frame: WebFrameMain;
|
|
13922
13946
|
}
|
|
13923
13947
|
|
|
13948
|
+
interface HidDeviceRevokedDetails {
|
|
13949
|
+
device: HIDDevice[];
|
|
13950
|
+
frame: WebFrameMain;
|
|
13951
|
+
}
|
|
13952
|
+
|
|
13924
13953
|
interface IgnoreMouseEventsOptions {
|
|
13925
13954
|
/**
|
|
13926
13955
|
* If true, forwards mouse move messages to Chromium, enabling mouse related events
|
|
@@ -15812,7 +15841,7 @@ declare namespace Electron {
|
|
|
15812
15841
|
footer?: string;
|
|
15813
15842
|
/**
|
|
15814
15843
|
* Specify page size of the printed document. Can be `A3`, `A4`, `A5`, `Legal`,
|
|
15815
|
-
* `Letter`, `Tabloid` or an Object containing `height
|
|
15844
|
+
* `Letter`, `Tabloid` or an Object containing `height` in microns.
|
|
15816
15845
|
*/
|
|
15817
15846
|
pageSize?: (string) | (Size);
|
|
15818
15847
|
}
|
|
@@ -16503,6 +16532,7 @@ declare namespace Electron {
|
|
|
16503
16532
|
type HeapStatistics = Electron.HeapStatistics;
|
|
16504
16533
|
type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
|
|
16505
16534
|
type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
|
|
16535
|
+
type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
|
|
16506
16536
|
type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
|
|
16507
16537
|
type ImportCertificateOptions = Electron.ImportCertificateOptions;
|
|
16508
16538
|
type Info = Electron.Info;
|
|
@@ -16797,6 +16827,7 @@ declare namespace Electron {
|
|
|
16797
16827
|
type HeapStatistics = Electron.HeapStatistics;
|
|
16798
16828
|
type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
|
|
16799
16829
|
type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
|
|
16830
|
+
type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
|
|
16800
16831
|
type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
|
|
16801
16832
|
type ImportCertificateOptions = Electron.ImportCertificateOptions;
|
|
16802
16833
|
type Info = Electron.Info;
|
|
@@ -17028,6 +17059,7 @@ declare namespace Electron {
|
|
|
17028
17059
|
type HeapStatistics = Electron.HeapStatistics;
|
|
17029
17060
|
type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
|
|
17030
17061
|
type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
|
|
17062
|
+
type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
|
|
17031
17063
|
type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
|
|
17032
17064
|
type ImportCertificateOptions = Electron.ImportCertificateOptions;
|
|
17033
17065
|
type Info = Electron.Info;
|
|
@@ -17336,6 +17368,7 @@ declare namespace Electron {
|
|
|
17336
17368
|
type HeapStatistics = Electron.HeapStatistics;
|
|
17337
17369
|
type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
|
|
17338
17370
|
type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
|
|
17371
|
+
type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
|
|
17339
17372
|
type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
|
|
17340
17373
|
type ImportCertificateOptions = Electron.ImportCertificateOptions;
|
|
17341
17374
|
type Info = Electron.Info;
|
package/install.js
CHANGED
|
@@ -70,17 +70,8 @@ function isInstalled () {
|
|
|
70
70
|
|
|
71
71
|
// unzips and makes path.txt point at the correct executable
|
|
72
72
|
function extractFile (zipPath) {
|
|
73
|
-
return
|
|
74
|
-
|
|
75
|
-
if (err) return reject(err);
|
|
76
|
-
|
|
77
|
-
fs.writeFile(path.join(__dirname, 'path.txt'), platformPath, err => {
|
|
78
|
-
if (err) return reject(err);
|
|
79
|
-
|
|
80
|
-
resolve();
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
});
|
|
73
|
+
return extract(zipPath, { dir: path.join(__dirname, 'dist') })
|
|
74
|
+
.then(() => fs.promises.writeFile(path.join(__dirname, 'path.txt'), platformPath));
|
|
84
75
|
}
|
|
85
76
|
|
|
86
77
|
function getPlatformPath () {
|
package/package.json
CHANGED
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@electron/get": "^1.14.1",
|
|
12
12
|
"@types/node": "^16.11.26",
|
|
13
|
-
"extract-zip": "^
|
|
13
|
+
"extract-zip": "^2.0.1"
|
|
14
14
|
},
|
|
15
15
|
"engines": {
|
|
16
|
-
"node": ">=
|
|
16
|
+
"node": ">= 10.17.0"
|
|
17
17
|
},
|
|
18
18
|
"name": "electron",
|
|
19
|
-
"version": "
|
|
19
|
+
"version": "20.0.0-alpha.2",
|
|
20
20
|
"repository": "https://github.com/electron/electron",
|
|
21
21
|
"description": "Build cross platform desktop apps with JavaScript, HTML, and CSS",
|
|
22
22
|
"license": "MIT",
|