electron 19.0.0-beta.8 → 20.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/checksums.json +75 -75
- package/electron.d.ts +56 -81
- package/install.js +2 -11
- package/package.json +3 -3
package/checksums.json
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
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
|
-
"electron-
|
|
50
|
-
"electron.d.ts": "
|
|
51
|
-
"ffmpeg-
|
|
52
|
-
"ffmpeg-
|
|
53
|
-
"ffmpeg-
|
|
54
|
-
"ffmpeg-
|
|
55
|
-
"ffmpeg-
|
|
56
|
-
"ffmpeg-
|
|
57
|
-
"ffmpeg-
|
|
58
|
-
"ffmpeg-
|
|
59
|
-
"ffmpeg-
|
|
60
|
-
"ffmpeg-
|
|
61
|
-
"hunspell_dictionaries.zip": "
|
|
62
|
-
"libcxx-objects-
|
|
63
|
-
"libcxx-objects-
|
|
64
|
-
"libcxx-objects-
|
|
65
|
-
"libcxx_headers.zip": "
|
|
66
|
-
"libcxxabi_headers.zip": "
|
|
67
|
-
"mksnapshot-
|
|
68
|
-
"mksnapshot-
|
|
69
|
-
"mksnapshot-
|
|
70
|
-
"mksnapshot-
|
|
71
|
-
"mksnapshot-
|
|
72
|
-
"mksnapshot-
|
|
73
|
-
"mksnapshot-
|
|
74
|
-
"mksnapshot-
|
|
75
|
-
"mksnapshot-
|
|
76
|
-
"mksnapshot-
|
|
2
|
+
"chromedriver-v20.0.0-alpha.1-darwin-arm64.zip": "36d38b459f46a64c6a1b5afb9d2ac0d5de25ad2ac88441ea12bd95d0ee6da465",
|
|
3
|
+
"chromedriver-v20.0.0-alpha.1-darwin-x64.zip": "1341c2e15f0146cced070785717ce9071bfa4e30dde236f9c0136fef68740c40",
|
|
4
|
+
"chromedriver-v20.0.0-alpha.1-linux-arm64.zip": "7af6871916a13beed0b92d2ebd9698973cb3748b90996e77f4dd75d43aef11eb",
|
|
5
|
+
"chromedriver-v20.0.0-alpha.1-linux-armv7l.zip": "3b0257e34a957f08dbb13f1ed5260c66552dae4037e517da3c5601ad315a2adf",
|
|
6
|
+
"chromedriver-v20.0.0-alpha.1-linux-x64.zip": "17a7f25a94500bd952e7d9490fa19d2f2e436a878973d018ce8f522727d5a2bc",
|
|
7
|
+
"chromedriver-v20.0.0-alpha.1-mas-arm64.zip": "bc3afa52f70e7224f5cae55654c2ea98c329926253d471323cb4d169df621bf9",
|
|
8
|
+
"chromedriver-v20.0.0-alpha.1-mas-x64.zip": "87b554fd0ea517eb9a765f4a95175fbf306a8c6c5f9732b83d20a960267786a5",
|
|
9
|
+
"chromedriver-v20.0.0-alpha.1-win32-arm64.zip": "1e30267e57c2b3366209f1d057fd481ebce810ccda42feda26fd0b85c87c3126",
|
|
10
|
+
"chromedriver-v20.0.0-alpha.1-win32-ia32.zip": "dce5395e3f6f6558ee0a0352465155308938a6972b88808fc758da4a994e9c55",
|
|
11
|
+
"chromedriver-v20.0.0-alpha.1-win32-x64.zip": "ded253c296fb9ab28ddfd93038eedfd320f6bf60b278fd32cca5eb1d6175c187",
|
|
12
|
+
"electron-api.json": "294e55bd85aae44ca6aa469ff7770cdd3e1883214b5c793b134485d28087315d",
|
|
13
|
+
"electron-v20.0.0-alpha.1-darwin-arm64-dsym-snapshot.zip": "81d211cf2648e226b0dd66b54b62265f129c033d1601c071db95258c040e72a7",
|
|
14
|
+
"electron-v20.0.0-alpha.1-darwin-arm64-dsym.zip": "636db50ff34ebd03c254cb3639ca499c96514ac8bebff4ccfe061fcdf3dbaa88",
|
|
15
|
+
"electron-v20.0.0-alpha.1-darwin-arm64-symbols.zip": "2df52e401795a3501fb090d63c95bd9b9bf99fad528ec41b388a8f574034ea42",
|
|
16
|
+
"electron-v20.0.0-alpha.1-darwin-arm64.zip": "452a264a7af7ec8ec4723ab8203cfc9bbe22abfac95621fb3dd203b578fcd74c",
|
|
17
|
+
"electron-v20.0.0-alpha.1-darwin-x64-dsym-snapshot.zip": "6965c9275187fad20d62a86cda5d11bbecc491ba5e5fc08b3b40da07a4651e7d",
|
|
18
|
+
"electron-v20.0.0-alpha.1-darwin-x64-dsym.zip": "edfe95d30e65fcc5b22ce52dc92cadd1e50ffc351f2df52768dae30480fd008f",
|
|
19
|
+
"electron-v20.0.0-alpha.1-darwin-x64-symbols.zip": "9ba8db332ebc31413ba0e8ec026f250c5f87b6627106bd1ffb6156389e7bff79",
|
|
20
|
+
"electron-v20.0.0-alpha.1-darwin-x64.zip": "540672a7652ac8155bcdb234e1279b63a8fe2f6f762db6b469cdc157873cac5b",
|
|
21
|
+
"electron-v20.0.0-alpha.1-linux-arm64-debug.zip": "2f0c985bccb4415502ce086748d29aa33df865f3588011966924df13d65a7b65",
|
|
22
|
+
"electron-v20.0.0-alpha.1-linux-arm64-symbols.zip": "0f2705b60051a349ab29d877f707602bd2dd4dfbe60d298968cf43b986d913f6",
|
|
23
|
+
"electron-v20.0.0-alpha.1-linux-arm64.zip": "6da5c8675bb24e78507861eedb680309035dd29dda5443ec3283d19996fe78fa",
|
|
24
|
+
"electron-v20.0.0-alpha.1-linux-armv7l-debug.zip": "2f0c985bccb4415502ce086748d29aa33df865f3588011966924df13d65a7b65",
|
|
25
|
+
"electron-v20.0.0-alpha.1-linux-armv7l-symbols.zip": "643861bcf4a56ddb69e9dc59dc377b8194b5fcdaa8d1afe46b0b50f303ebd59a",
|
|
26
|
+
"electron-v20.0.0-alpha.1-linux-armv7l.zip": "a24d23f31edaf670155c4e3e2340becfd8a94323431bb3d0f8c51c6538da6005",
|
|
27
|
+
"electron-v20.0.0-alpha.1-linux-x64-debug.zip": "a6f35570bc67e6f42b15bc97323cc7308ebbac1bcb8df5fb71cb2ddd47a7e61d",
|
|
28
|
+
"electron-v20.0.0-alpha.1-linux-x64-symbols.zip": "df94916747d26c3d9f053fc21002b6963e7c6bbc860a4aa0a94797dc9180fd8b",
|
|
29
|
+
"electron-v20.0.0-alpha.1-linux-x64.zip": "b8635125d53e099b5dd06f2adefdc50249f3c39ff4c61558af23294d866ec562",
|
|
30
|
+
"electron-v20.0.0-alpha.1-mas-arm64-dsym-snapshot.zip": "81d211cf2648e226b0dd66b54b62265f129c033d1601c071db95258c040e72a7",
|
|
31
|
+
"electron-v20.0.0-alpha.1-mas-arm64-dsym.zip": "fda871cc461f58300a16594d0278731c5f0c388dc474aabeb1f4b58b0e88ae76",
|
|
32
|
+
"electron-v20.0.0-alpha.1-mas-arm64-symbols.zip": "5cee3741accb0f523dea4e8866dff84de166182faf0f6f6e8d52799940c07579",
|
|
33
|
+
"electron-v20.0.0-alpha.1-mas-arm64.zip": "10db81c96ff2a7c75be6959c2e5d719f0484f1f267b85968487c1ae55b1482b9",
|
|
34
|
+
"electron-v20.0.0-alpha.1-mas-x64-dsym-snapshot.zip": "c89c04bd6e815767f0e3168964ae3fa72b60c1e0b0ce32ad95607efc7ee05a24",
|
|
35
|
+
"electron-v20.0.0-alpha.1-mas-x64-dsym.zip": "3c00d66b5b62e5b2deaffb896b4faf98744b8aba5c6c20a7e3f3bb26d2027351",
|
|
36
|
+
"electron-v20.0.0-alpha.1-mas-x64-symbols.zip": "79fc0a2458314387189967648d3a7556b1e2fc2ba37f95a0048ec46e86f35c82",
|
|
37
|
+
"electron-v20.0.0-alpha.1-mas-x64.zip": "a0069e92ef5f8ce32ed124f8b613f6888f0388821d4361a5455383f204623216",
|
|
38
|
+
"electron-v20.0.0-alpha.1-win32-arm64-pdb.zip": "4585972bba69934e9e4db2cae4a27b16ed7138f1cd67e2ec6fef2cefcffafe71",
|
|
39
|
+
"electron-v20.0.0-alpha.1-win32-arm64-symbols.zip": "19f5c6442a09d4716d8db7668f87cf0db895caf2a50d374184f372687f5c3cb2",
|
|
40
|
+
"electron-v20.0.0-alpha.1-win32-arm64-toolchain-profile.zip": "3a5d2888ac992d063c6219cb20f73182ee02f25935f0f73bd7ed4ee8cd719376",
|
|
41
|
+
"electron-v20.0.0-alpha.1-win32-arm64.zip": "c19fe304d64d215da8d6b693e6ed55b60f611586bee419ecd9cf9221e46b104d",
|
|
42
|
+
"electron-v20.0.0-alpha.1-win32-ia32-pdb.zip": "6f67beb1f3780cbd8d974c88867f5a5e3605148a7b390f3c5e3946f56c0027f7",
|
|
43
|
+
"electron-v20.0.0-alpha.1-win32-ia32-symbols.zip": "125fc8d6eab995c416e2db12b48880bf319843f0c3cb55b80028cca51450f9ca",
|
|
44
|
+
"electron-v20.0.0-alpha.1-win32-ia32-toolchain-profile.zip": "3a5d2888ac992d063c6219cb20f73182ee02f25935f0f73bd7ed4ee8cd719376",
|
|
45
|
+
"electron-v20.0.0-alpha.1-win32-ia32.zip": "0ff2b311936a5061988891a1e9c168fb9dc67cf7a5ed6636c25106898b28e991",
|
|
46
|
+
"electron-v20.0.0-alpha.1-win32-x64-pdb.zip": "f3f3a66d1750e5e2a7a60b3749f6823f2e8b001d1e0f851edfb9e49bf8530024",
|
|
47
|
+
"electron-v20.0.0-alpha.1-win32-x64-symbols.zip": "0c0e654a3bc9d2c601b3a30367d4b2c4a82291b76315dd5db6b250b8119ceb06",
|
|
48
|
+
"electron-v20.0.0-alpha.1-win32-x64-toolchain-profile.zip": "3a5d2888ac992d063c6219cb20f73182ee02f25935f0f73bd7ed4ee8cd719376",
|
|
49
|
+
"electron-v20.0.0-alpha.1-win32-x64.zip": "b87ad745848ccb12ebe6e4a04a9ed78731797b146340cb7ea6053f2174deed40",
|
|
50
|
+
"electron.d.ts": "d54cf56690b7129b420863ae7264353ea09ac5b0fccc615659dd84976b74cafa",
|
|
51
|
+
"ffmpeg-v20.0.0-alpha.1-darwin-arm64.zip": "52315202fb60657053e055220190f72c0c8c4bfd330339f9ccc7a63637c68f78",
|
|
52
|
+
"ffmpeg-v20.0.0-alpha.1-darwin-x64.zip": "7059f6c78998c0427feef3ddbf762cbd9da80c8a41391beaddbab264a9bdfd63",
|
|
53
|
+
"ffmpeg-v20.0.0-alpha.1-linux-arm64.zip": "346a209335229f092c6fd398079dfd1a1e8baff69cac8b8a269ad6cc8cc4fec6",
|
|
54
|
+
"ffmpeg-v20.0.0-alpha.1-linux-armv7l.zip": "baec4247f33e5b68cfa247b359d012b87fd3b1266a232c3a2b1649c615e493a1",
|
|
55
|
+
"ffmpeg-v20.0.0-alpha.1-linux-x64.zip": "8cb02b8871a29ef5542591dfb5961de96155908baa0ace592cbbe0383b0fcbea",
|
|
56
|
+
"ffmpeg-v20.0.0-alpha.1-mas-arm64.zip": "de0372446210fcc83da3e9bd64fab02908dd6a2aa7fd03b3a8f1c4c2a49404de",
|
|
57
|
+
"ffmpeg-v20.0.0-alpha.1-mas-x64.zip": "98df836d58f4f8c4d3b51bc125b73fb84a43505e7938eb77e1102dcd118f4627",
|
|
58
|
+
"ffmpeg-v20.0.0-alpha.1-win32-arm64.zip": "d6ede95ef30dafe185ad708f2ecc2b5ae624f0659b479cd274780083514b7e8d",
|
|
59
|
+
"ffmpeg-v20.0.0-alpha.1-win32-ia32.zip": "9e69772c36b52251c8279660668c14295b42ee92aeaf65b8107d193fbc2aa43c",
|
|
60
|
+
"ffmpeg-v20.0.0-alpha.1-win32-x64.zip": "2de9729f115f19b786266d91da1d5645116a65d31c7f236727f5cb1d9920bcb0",
|
|
61
|
+
"hunspell_dictionaries.zip": "46f875da293cc1d85d13d83c9c065c4764e005732eff838b6e982bc6dfafb562",
|
|
62
|
+
"libcxx-objects-v20.0.0-alpha.1-linux-arm64.zip": "ca15c5526280d3be52935e73da4cb2d85bb241ed9ee5c26fb5656e41eceb6260",
|
|
63
|
+
"libcxx-objects-v20.0.0-alpha.1-linux-armv7l.zip": "6db97ed91273cf1bf7ce0660f0a33d76d3ad9fc8649422fa4563517fb3e25168",
|
|
64
|
+
"libcxx-objects-v20.0.0-alpha.1-linux-x64.zip": "72fa8f9428a2b5ff347331fae5a5e41c2a9493b04532a9b4563b9ebad97fddd2",
|
|
65
|
+
"libcxx_headers.zip": "92c07f895d50ee0e12239e765d4a4a13b73afb0e5fb0caf83adebf3e2c032062",
|
|
66
|
+
"libcxxabi_headers.zip": "cf2aec8e58b94f4cb1fc202b6b1859c87f68c2b6a0fdc4d728155c9bc41db315",
|
|
67
|
+
"mksnapshot-v20.0.0-alpha.1-darwin-arm64.zip": "c0bc431a13ddcc6aa43ddee0acfd7c0b21fe822cf88db1aef697ed36c81d42c5",
|
|
68
|
+
"mksnapshot-v20.0.0-alpha.1-darwin-x64.zip": "812919b37ba5002575fd42d20d7581d382f3b0d8a002a036ce892aeb979047ae",
|
|
69
|
+
"mksnapshot-v20.0.0-alpha.1-linux-arm64-x64.zip": "f3072f4fd49eebf2a486d9e2633125948db95248a899177e9b99f02bcc2d0c87",
|
|
70
|
+
"mksnapshot-v20.0.0-alpha.1-linux-armv7l-x64.zip": "5e1801748aabc85a4128da3c1f47efed9f5d8002ec22aac85671014f22571bbe",
|
|
71
|
+
"mksnapshot-v20.0.0-alpha.1-linux-x64.zip": "c8a13b8e257084788e5dc40ba81995560fbc279f6fd270540a43a2286c431b3d",
|
|
72
|
+
"mksnapshot-v20.0.0-alpha.1-mas-arm64.zip": "774d356d5e3669de9e57c00771048b62568fd04c263ab42d29e6e297d78e3fae",
|
|
73
|
+
"mksnapshot-v20.0.0-alpha.1-mas-x64.zip": "343aca34b9dcf9ea7de9f2314f32c131507e23eda996af11ac8a53b908eeb0a2",
|
|
74
|
+
"mksnapshot-v20.0.0-alpha.1-win32-arm64-x64.zip": "f231e753f4e56623b79c1e7f90de85993b0701125ac182f9a73b91f545dda698",
|
|
75
|
+
"mksnapshot-v20.0.0-alpha.1-win32-ia32.zip": "c20f34a8a4dc421c1e084055638e2fa80ab438637eb846925c0de823b518684c",
|
|
76
|
+
"mksnapshot-v20.0.0-alpha.1-win32-x64.zip": "24a6b69b1eb04b50b97e054e0be554e611cbd09c05f8cc2951cadfe4c3224aab"
|
|
77
77
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron
|
|
1
|
+
// Type definitions for Electron 20.0.0-alpha.1
|
|
2
2
|
// Project: http://electronjs.org/
|
|
3
3
|
// Definitions by: The Electron Team <https://github.com/electron/electron>
|
|
4
4
|
// Definitions: https://github.com/electron/electron-typescript-definitions
|
|
@@ -314,35 +314,6 @@ declare namespace Electron {
|
|
|
314
314
|
once(event: 'did-become-active', listener: (event: Event) => void): this;
|
|
315
315
|
addListener(event: 'did-become-active', listener: (event: Event) => void): this;
|
|
316
316
|
removeListener(event: 'did-become-active', listener: (event: Event) => void): this;
|
|
317
|
-
/**
|
|
318
|
-
* This event will be emitted within the second instance during the call to
|
|
319
|
-
* `app.requestSingleInstanceLock()`, when the first instance calls the
|
|
320
|
-
* `ackCallback` provided by the `second-instance` event handler.
|
|
321
|
-
*/
|
|
322
|
-
on(event: 'first-instance-ack', listener: (event: Event,
|
|
323
|
-
/**
|
|
324
|
-
* A JSON object of additional data passed from the first instance, in response to
|
|
325
|
-
* the first instance's `second-instance` event.
|
|
326
|
-
*/
|
|
327
|
-
additionalData: unknown) => void): this;
|
|
328
|
-
once(event: 'first-instance-ack', listener: (event: Event,
|
|
329
|
-
/**
|
|
330
|
-
* A JSON object of additional data passed from the first instance, in response to
|
|
331
|
-
* the first instance's `second-instance` event.
|
|
332
|
-
*/
|
|
333
|
-
additionalData: unknown) => void): this;
|
|
334
|
-
addListener(event: 'first-instance-ack', listener: (event: Event,
|
|
335
|
-
/**
|
|
336
|
-
* A JSON object of additional data passed from the first instance, in response to
|
|
337
|
-
* the first instance's `second-instance` event.
|
|
338
|
-
*/
|
|
339
|
-
additionalData: unknown) => void): this;
|
|
340
|
-
removeListener(event: 'first-instance-ack', listener: (event: Event,
|
|
341
|
-
/**
|
|
342
|
-
* A JSON object of additional data passed from the first instance, in response to
|
|
343
|
-
* the first instance's `second-instance` event.
|
|
344
|
-
*/
|
|
345
|
-
additionalData: unknown) => void): this;
|
|
346
317
|
/**
|
|
347
318
|
* Emitted whenever there is a GPU info update.
|
|
348
319
|
*/
|
|
@@ -528,19 +499,6 @@ declare namespace Electron {
|
|
|
528
499
|
* **Note:** If the second instance is started by a different user than the first,
|
|
529
500
|
* the `argv` array will not include the arguments.
|
|
530
501
|
*
|
|
531
|
-
* **Note:** `ackCallback` allows the user to send data back to the second instance
|
|
532
|
-
* during the `app.requestSingleInstanceLock()` flow. This callback can be used for
|
|
533
|
-
* cases where the second instance needs to obtain additional information from the
|
|
534
|
-
* first instance before quitting.
|
|
535
|
-
*
|
|
536
|
-
* Currently, the limit on the message size is kMaxMessageLength, or around 32kB.
|
|
537
|
-
* To be safe, keep the amount of data passed to 31kB at most.
|
|
538
|
-
*
|
|
539
|
-
* In order to call the callback, `event.preventDefault()` must be called, first.
|
|
540
|
-
* If the callback is not called in either case, `null` will be sent back. If
|
|
541
|
-
* `event.preventDefault()` is not called, but `ackCallback` is called by the user
|
|
542
|
-
* in the event, then the behaviour is undefined.
|
|
543
|
-
*
|
|
544
502
|
* This event is guaranteed to be emitted after the `ready` event of `app` gets
|
|
545
503
|
* emitted.
|
|
546
504
|
*
|
|
@@ -559,11 +517,7 @@ declare namespace Electron {
|
|
|
559
517
|
/**
|
|
560
518
|
* A JSON object of additional data passed from the second instance
|
|
561
519
|
*/
|
|
562
|
-
additionalData: unknown
|
|
563
|
-
/**
|
|
564
|
-
* A function that can be used to send data back to the second instance
|
|
565
|
-
*/
|
|
566
|
-
ackCallback: unknown) => void): this;
|
|
520
|
+
additionalData: unknown) => void): this;
|
|
567
521
|
once(event: 'second-instance', listener: (event: Event,
|
|
568
522
|
/**
|
|
569
523
|
* An array of the second instance's command line arguments
|
|
@@ -576,11 +530,7 @@ declare namespace Electron {
|
|
|
576
530
|
/**
|
|
577
531
|
* A JSON object of additional data passed from the second instance
|
|
578
532
|
*/
|
|
579
|
-
additionalData: unknown
|
|
580
|
-
/**
|
|
581
|
-
* A function that can be used to send data back to the second instance
|
|
582
|
-
*/
|
|
583
|
-
ackCallback: unknown) => void): this;
|
|
533
|
+
additionalData: unknown) => void): this;
|
|
584
534
|
addListener(event: 'second-instance', listener: (event: Event,
|
|
585
535
|
/**
|
|
586
536
|
* An array of the second instance's command line arguments
|
|
@@ -593,11 +543,7 @@ declare namespace Electron {
|
|
|
593
543
|
/**
|
|
594
544
|
* A JSON object of additional data passed from the second instance
|
|
595
545
|
*/
|
|
596
|
-
additionalData: unknown
|
|
597
|
-
/**
|
|
598
|
-
* A function that can be used to send data back to the second instance
|
|
599
|
-
*/
|
|
600
|
-
ackCallback: unknown) => void): this;
|
|
546
|
+
additionalData: unknown) => void): this;
|
|
601
547
|
removeListener(event: 'second-instance', listener: (event: Event,
|
|
602
548
|
/**
|
|
603
549
|
* An array of the second instance's command line arguments
|
|
@@ -610,11 +556,7 @@ declare namespace Electron {
|
|
|
610
556
|
/**
|
|
611
557
|
* A JSON object of additional data passed from the second instance
|
|
612
558
|
*/
|
|
613
|
-
additionalData: unknown
|
|
614
|
-
/**
|
|
615
|
-
* A function that can be used to send data back to the second instance
|
|
616
|
-
*/
|
|
617
|
-
ackCallback: unknown) => void): this;
|
|
559
|
+
additionalData: unknown) => void): this;
|
|
618
560
|
/**
|
|
619
561
|
* Emitted when a client certificate is requested.
|
|
620
562
|
*
|
|
@@ -1010,7 +952,7 @@ declare namespace Electron {
|
|
|
1010
952
|
* called first, a default log directory will be created equivalent to calling
|
|
1011
953
|
* `app.setAppLogsPath()` without a `path` parameter.
|
|
1012
954
|
*/
|
|
1013
|
-
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;
|
|
1014
956
|
/**
|
|
1015
957
|
* The version of the loaded application. If no version is found in the
|
|
1016
958
|
* application's `package.json` file, the version of the current bundle or
|
|
@@ -1072,6 +1014,13 @@ declare namespace Electron {
|
|
|
1072
1014
|
* whether or not the current OS version allows for native emoji pickers.
|
|
1073
1015
|
*/
|
|
1074
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;
|
|
1075
1024
|
/**
|
|
1076
1025
|
* Whether the application is currently running from the systems Application
|
|
1077
1026
|
* folder. Use in combination with `app.moveToApplicationsFolder()`
|
|
@@ -1356,9 +1305,9 @@ declare namespace Electron {
|
|
|
1356
1305
|
*
|
|
1357
1306
|
* You can only override paths of a `name` defined in `app.getPath`.
|
|
1358
1307
|
*
|
|
1359
|
-
* 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`
|
|
1360
1309
|
* directory. If you want to change this location, you have to override the
|
|
1361
|
-
* `
|
|
1310
|
+
* `sessionData` path before the `ready` event of the `app` module is emitted.
|
|
1362
1311
|
*/
|
|
1363
1312
|
setPath(name: string, path: string): void;
|
|
1364
1313
|
/**
|
|
@@ -7412,11 +7361,11 @@ declare namespace Electron {
|
|
|
7412
7361
|
removeListener(event: 'extension-unloaded', listener: (event: Event,
|
|
7413
7362
|
extension: Extension) => void): this;
|
|
7414
7363
|
/**
|
|
7415
|
-
* Emitted
|
|
7416
|
-
* device
|
|
7417
|
-
*
|
|
7418
|
-
*
|
|
7419
|
-
*
|
|
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.
|
|
7420
7369
|
*/
|
|
7421
7370
|
on(event: 'hid-device-added', listener: (event: Event,
|
|
7422
7371
|
details: HidDeviceAddedDetails) => void): this;
|
|
@@ -7427,11 +7376,11 @@ declare namespace Electron {
|
|
|
7427
7376
|
removeListener(event: 'hid-device-added', listener: (event: Event,
|
|
7428
7377
|
details: HidDeviceAddedDetails) => void): this;
|
|
7429
7378
|
/**
|
|
7430
|
-
* Emitted
|
|
7431
|
-
*
|
|
7432
|
-
*
|
|
7433
|
-
*
|
|
7434
|
-
*
|
|
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.
|
|
7435
7384
|
*/
|
|
7436
7385
|
on(event: 'hid-device-removed', listener: (event: Event,
|
|
7437
7386
|
details: HidDeviceRemovedDetails) => void): this;
|
|
@@ -7441,6 +7390,19 @@ declare namespace Electron {
|
|
|
7441
7390
|
details: HidDeviceRemovedDetails) => void): this;
|
|
7442
7391
|
removeListener(event: 'hid-device-removed', listener: (event: Event,
|
|
7443
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;
|
|
7444
7406
|
/**
|
|
7445
7407
|
* Emitted when a render process requests preconnection to a URL, generally due to
|
|
7446
7408
|
* a resource hint.
|
|
@@ -7530,8 +7492,10 @@ declare namespace Electron {
|
|
|
7530
7492
|
callback: (portId: string) => void) => void): this;
|
|
7531
7493
|
/**
|
|
7532
7494
|
* Emitted after `navigator.serial.requestPort` has been called and
|
|
7533
|
-
* `select-serial-port` has fired if a new serial port becomes available
|
|
7534
|
-
*
|
|
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.
|
|
7535
7499
|
*/
|
|
7536
7500
|
on(event: 'serial-port-added', listener: (event: Event,
|
|
7537
7501
|
port: SerialPort,
|
|
@@ -7547,8 +7511,10 @@ declare namespace Electron {
|
|
|
7547
7511
|
webContents: WebContents) => void): this;
|
|
7548
7512
|
/**
|
|
7549
7513
|
* Emitted after `navigator.serial.requestPort` has been called and
|
|
7550
|
-
* `select-serial-port` has fired if a serial port has been removed
|
|
7551
|
-
*
|
|
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.
|
|
7552
7518
|
*/
|
|
7553
7519
|
on(event: 'serial-port-removed', listener: (event: Event,
|
|
7554
7520
|
port: SerialPort,
|
|
@@ -13979,6 +13945,11 @@ declare namespace Electron {
|
|
|
13979
13945
|
frame: WebFrameMain;
|
|
13980
13946
|
}
|
|
13981
13947
|
|
|
13948
|
+
interface HidDeviceRevokedDetails {
|
|
13949
|
+
device: HIDDevice[];
|
|
13950
|
+
frame: WebFrameMain;
|
|
13951
|
+
}
|
|
13952
|
+
|
|
13982
13953
|
interface IgnoreMouseEventsOptions {
|
|
13983
13954
|
/**
|
|
13984
13955
|
* If true, forwards mouse move messages to Chromium, enabling mouse related events
|
|
@@ -15870,7 +15841,7 @@ declare namespace Electron {
|
|
|
15870
15841
|
footer?: string;
|
|
15871
15842
|
/**
|
|
15872
15843
|
* Specify page size of the printed document. Can be `A3`, `A4`, `A5`, `Legal`,
|
|
15873
|
-
* `Letter`, `Tabloid` or an Object containing `height
|
|
15844
|
+
* `Letter`, `Tabloid` or an Object containing `height` in microns.
|
|
15874
15845
|
*/
|
|
15875
15846
|
pageSize?: (string) | (Size);
|
|
15876
15847
|
}
|
|
@@ -16561,6 +16532,7 @@ declare namespace Electron {
|
|
|
16561
16532
|
type HeapStatistics = Electron.HeapStatistics;
|
|
16562
16533
|
type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
|
|
16563
16534
|
type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
|
|
16535
|
+
type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
|
|
16564
16536
|
type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
|
|
16565
16537
|
type ImportCertificateOptions = Electron.ImportCertificateOptions;
|
|
16566
16538
|
type Info = Electron.Info;
|
|
@@ -16855,6 +16827,7 @@ declare namespace Electron {
|
|
|
16855
16827
|
type HeapStatistics = Electron.HeapStatistics;
|
|
16856
16828
|
type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
|
|
16857
16829
|
type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
|
|
16830
|
+
type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
|
|
16858
16831
|
type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
|
|
16859
16832
|
type ImportCertificateOptions = Electron.ImportCertificateOptions;
|
|
16860
16833
|
type Info = Electron.Info;
|
|
@@ -17086,6 +17059,7 @@ declare namespace Electron {
|
|
|
17086
17059
|
type HeapStatistics = Electron.HeapStatistics;
|
|
17087
17060
|
type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
|
|
17088
17061
|
type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
|
|
17062
|
+
type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
|
|
17089
17063
|
type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
|
|
17090
17064
|
type ImportCertificateOptions = Electron.ImportCertificateOptions;
|
|
17091
17065
|
type Info = Electron.Info;
|
|
@@ -17394,6 +17368,7 @@ declare namespace Electron {
|
|
|
17394
17368
|
type HeapStatistics = Electron.HeapStatistics;
|
|
17395
17369
|
type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
|
|
17396
17370
|
type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
|
|
17371
|
+
type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
|
|
17397
17372
|
type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
|
|
17398
17373
|
type ImportCertificateOptions = Electron.ImportCertificateOptions;
|
|
17399
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.1",
|
|
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",
|