electron 44.0.0-beta.4 → 44.0.0-beta.6
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 +60 -60
- package/electron.d.ts +61 -19
- package/install.js +6 -2
- package/package.json +1 -1
package/checksums.json
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
{
|
|
2
|
-
"chromedriver-v44.0.0-beta.
|
|
3
|
-
"chromedriver-v44.0.0-beta.
|
|
4
|
-
"chromedriver-v44.0.0-beta.
|
|
5
|
-
"chromedriver-v44.0.0-beta.
|
|
6
|
-
"chromedriver-v44.0.0-beta.
|
|
7
|
-
"chromedriver-v44.0.0-beta.
|
|
8
|
-
"chromedriver-v44.0.0-beta.
|
|
9
|
-
"chromedriver-v44.0.0-beta.
|
|
10
|
-
"electron-api.json": "
|
|
11
|
-
"electron-v44.0.0-beta.
|
|
12
|
-
"electron-v44.0.0-beta.
|
|
13
|
-
"electron-v44.0.0-beta.
|
|
14
|
-
"electron-v44.0.0-beta.
|
|
15
|
-
"electron-v44.0.0-beta.
|
|
16
|
-
"electron-v44.0.0-beta.
|
|
17
|
-
"electron-v44.0.0-beta.
|
|
18
|
-
"electron-v44.0.0-beta.
|
|
19
|
-
"electron-v44.0.0-beta.
|
|
20
|
-
"electron-v44.0.0-beta.
|
|
21
|
-
"electron-v44.0.0-beta.
|
|
22
|
-
"electron-v44.0.0-beta.
|
|
23
|
-
"electron-v44.0.0-beta.
|
|
24
|
-
"electron-v44.0.0-beta.
|
|
25
|
-
"electron-v44.0.0-beta.
|
|
26
|
-
"electron-v44.0.0-beta.
|
|
27
|
-
"electron-v44.0.0-beta.
|
|
28
|
-
"electron-v44.0.0-beta.
|
|
29
|
-
"electron-v44.0.0-beta.
|
|
30
|
-
"electron-v44.0.0-beta.
|
|
31
|
-
"electron-v44.0.0-beta.
|
|
32
|
-
"electron-v44.0.0-beta.
|
|
33
|
-
"electron-v44.0.0-beta.
|
|
34
|
-
"electron-v44.0.0-beta.
|
|
35
|
-
"electron-v44.0.0-beta.
|
|
36
|
-
"electron-v44.0.0-beta.
|
|
37
|
-
"electron-v44.0.0-beta.
|
|
38
|
-
"electron-v44.0.0-beta.
|
|
39
|
-
"electron-v44.0.0-beta.
|
|
40
|
-
"electron-v44.0.0-beta.
|
|
41
|
-
"electron.d.ts": "
|
|
42
|
-
"ffmpeg-v44.0.0-beta.
|
|
43
|
-
"ffmpeg-v44.0.0-beta.
|
|
44
|
-
"ffmpeg-v44.0.0-beta.
|
|
45
|
-
"ffmpeg-v44.0.0-beta.
|
|
46
|
-
"ffmpeg-v44.0.0-beta.
|
|
47
|
-
"ffmpeg-v44.0.0-beta.
|
|
48
|
-
"ffmpeg-v44.0.0-beta.
|
|
49
|
-
"ffmpeg-v44.0.0-beta.
|
|
50
|
-
"hunspell_dictionaries.zip": "
|
|
51
|
-
"libcxx-objects-v44.0.0-beta.
|
|
52
|
-
"libcxx-objects-v44.0.0-beta.
|
|
53
|
-
"libcxx_headers.zip": "
|
|
2
|
+
"chromedriver-v44.0.0-beta.6-darwin-arm64.zip": "abaa31c0be158351b4509178db919ab71c5fd515707419fdcdd8d02ba76cfc5e",
|
|
3
|
+
"chromedriver-v44.0.0-beta.6-darwin-x64.zip": "b8b5aa9947f9e9d823bf7ab1cad2c13649e21bfa1141ed836b47870aef27d513",
|
|
4
|
+
"chromedriver-v44.0.0-beta.6-linux-arm64.zip": "068ac260859373b7e4e2ee51ddd94b2e0ca669a2ae21173c041e649de66f8782",
|
|
5
|
+
"chromedriver-v44.0.0-beta.6-linux-x64.zip": "ca5bb246475ee972c2e36d2cce673a0e8371bb7728b62a19eb64a726d1796c81",
|
|
6
|
+
"chromedriver-v44.0.0-beta.6-mas-arm64.zip": "9f7a407a0bf511efa8d85863147f8bda5814d30691b350a6d1342133d92ad3d5",
|
|
7
|
+
"chromedriver-v44.0.0-beta.6-mas-x64.zip": "a3959128d2dfc4df9f12103c97055a5dfd72ba77fd652af72381f8072ef32250",
|
|
8
|
+
"chromedriver-v44.0.0-beta.6-win32-arm64.zip": "919e1040cfe813221ede1dd85ec85ff04da5b6d7da7095ff75510239592cafda",
|
|
9
|
+
"chromedriver-v44.0.0-beta.6-win32-x64.zip": "9d62c8794094160c1fa468cc62997aaae1f91c0db7f5d0e98a98774f15421a99",
|
|
10
|
+
"electron-api.json": "7fec068669c5f2c65969a87cc2426bd6d05c90b2cb5c84fc45c592b4a75ea2e2",
|
|
11
|
+
"electron-v44.0.0-beta.6-darwin-arm64-dsym-snapshot.zip": "ec474d668df6452472b5d5457a0c0c5e2e1c63df6a1de9a3ee68a9d8e8cef68f",
|
|
12
|
+
"electron-v44.0.0-beta.6-darwin-arm64-dsym.tar.xz": "9005b8df2534eb753d823b82662593e8bd2e39a3af1b05b09f745616316ade79",
|
|
13
|
+
"electron-v44.0.0-beta.6-darwin-arm64-symbols.zip": "8bf46750ac2a979fcab523672288bdf36acbb535f818f1f36de18a5880c8c96c",
|
|
14
|
+
"electron-v44.0.0-beta.6-darwin-arm64.zip": "9b4073fa5a1415da9b1ed37a4b1bbd51cf1c23d933593bbc6d6a86eddc688d44",
|
|
15
|
+
"electron-v44.0.0-beta.6-darwin-x64-dsym-snapshot.zip": "ec474d668df6452472b5d5457a0c0c5e2e1c63df6a1de9a3ee68a9d8e8cef68f",
|
|
16
|
+
"electron-v44.0.0-beta.6-darwin-x64-dsym.tar.xz": "2c48e631b14e56ef32e4eea2e3547e513dc6908727338f75cf4ec71ca4a28e1d",
|
|
17
|
+
"electron-v44.0.0-beta.6-darwin-x64-symbols.zip": "d49650f4c7b6e7e1f399d518ea7abe2c6036464b60bda3a97da2420ac806fd7c",
|
|
18
|
+
"electron-v44.0.0-beta.6-darwin-x64.zip": "cd00daf393795c9d5ecb131c8852700bf6308194702c2154df2a46dbec66b2b8",
|
|
19
|
+
"electron-v44.0.0-beta.6-linux-arm64-debug.zip": "631747b10cf9764fdfd88437a38e6697f71ebf72f9f9c583713fbd7f773c1a4a",
|
|
20
|
+
"electron-v44.0.0-beta.6-linux-arm64-symbols.zip": "a4888c47ac9eda78d19f522a77a4510009de32e23b06db2781991409087bfaaf",
|
|
21
|
+
"electron-v44.0.0-beta.6-linux-arm64.zip": "57371cc024ed6b70b7f007cae2825fd44f70582fe651abaee0e1cb2446b081ae",
|
|
22
|
+
"electron-v44.0.0-beta.6-linux-x64-debug.zip": "47cc2eb71f575225296bff92f89c92a0c6235faf013306af643fd46bce325611",
|
|
23
|
+
"electron-v44.0.0-beta.6-linux-x64-symbols.zip": "1bc24cca538232a3cbdcbcb724bdbdbcc97e9b135877082a6a3174560478b069",
|
|
24
|
+
"electron-v44.0.0-beta.6-linux-x64.zip": "a4f62e514cfda6f8dd6dc4f0ab560516b37490d6eca6417dd77ba362571427b9",
|
|
25
|
+
"electron-v44.0.0-beta.6-mas-arm64-dsym-snapshot.zip": "ec474d668df6452472b5d5457a0c0c5e2e1c63df6a1de9a3ee68a9d8e8cef68f",
|
|
26
|
+
"electron-v44.0.0-beta.6-mas-arm64-dsym.tar.xz": "fbc1d6cfe417aa78c8fd56292a298535448612d662bc4049bc9bb468cc62258f",
|
|
27
|
+
"electron-v44.0.0-beta.6-mas-arm64-symbols.zip": "7d204c12e6a2e697027c6a924edd98cbb140ee66c4cda8e34a8caf9737c72e67",
|
|
28
|
+
"electron-v44.0.0-beta.6-mas-arm64.zip": "9affc6748636141c68e40b146be4977d884df8d5635039b1c4562775d247909e",
|
|
29
|
+
"electron-v44.0.0-beta.6-mas-x64-dsym-snapshot.zip": "ec474d668df6452472b5d5457a0c0c5e2e1c63df6a1de9a3ee68a9d8e8cef68f",
|
|
30
|
+
"electron-v44.0.0-beta.6-mas-x64-dsym.tar.xz": "d580ffbb843286475cfbc1a8c51c6cbd8b55b8952c298d53f3f7e44e096a117d",
|
|
31
|
+
"electron-v44.0.0-beta.6-mas-x64-symbols.zip": "d49a88638e7bff700a6b321f218129c68542aadff8d1cabcb34533d530986580",
|
|
32
|
+
"electron-v44.0.0-beta.6-mas-x64.zip": "1ab7a2176cf0a203baf0c89af1c8ff98b4d3f536f09497e52bfe28ddb3130544",
|
|
33
|
+
"electron-v44.0.0-beta.6-win32-arm64-pdb.zip": "27d8c00705ea5fdef7f03b8cabb87fcc2d8e029a895520bff781211009808f6d",
|
|
34
|
+
"electron-v44.0.0-beta.6-win32-arm64-symbols.zip": "8f3a2a9692852edbc62a840e15129b0cfcbe3c83f5ba8e445fdb0ba2b1fdbd8d",
|
|
35
|
+
"electron-v44.0.0-beta.6-win32-arm64-toolchain-profile.zip": "90386280bc7e4ac5d451e43e26a7c76ed1c8bcdc0206ec50762c7e4f09c59c28",
|
|
36
|
+
"electron-v44.0.0-beta.6-win32-arm64.zip": "fc3291d1fe1a6d80fc28f164a57f4cd56bf3f757f62b6e4fe122b40d6e10212d",
|
|
37
|
+
"electron-v44.0.0-beta.6-win32-x64-pdb.zip": "d3cf48a78f12f5e5bbd39fe096428b2646f8148a282f3c31736a0db69e657693",
|
|
38
|
+
"electron-v44.0.0-beta.6-win32-x64-symbols.zip": "89081a56f76a232d166a381f4e4c6886677efee4a4dd915b7ad21ab80a98a07f",
|
|
39
|
+
"electron-v44.0.0-beta.6-win32-x64-toolchain-profile.zip": "90386280bc7e4ac5d451e43e26a7c76ed1c8bcdc0206ec50762c7e4f09c59c28",
|
|
40
|
+
"electron-v44.0.0-beta.6-win32-x64.zip": "5207b4d059db7baa853321f2b09c97328656c6b8c741c1e9cd456a3a8744a763",
|
|
41
|
+
"electron.d.ts": "59917134f9854348e3b861b894501e44c3acadb241941926447591377019eb05",
|
|
42
|
+
"ffmpeg-v44.0.0-beta.6-darwin-arm64.zip": "9c6f31139acbd687e6f01828aec7be1cc3dd5f22cefd83c4aa0209c110ac2350",
|
|
43
|
+
"ffmpeg-v44.0.0-beta.6-darwin-x64.zip": "dfbcadd5286bcabb0adab5982ce9d05fb5707ba815f65a7da31c2a533bf9a4da",
|
|
44
|
+
"ffmpeg-v44.0.0-beta.6-linux-arm64.zip": "a9dfc32c463595c6e0133070f1982aa1abbd3ddbdbf030af03880f482ab9bfcd",
|
|
45
|
+
"ffmpeg-v44.0.0-beta.6-linux-x64.zip": "5cb4d11e0fc349af83ebbdafa3af741dd208a5a624e0608bb54605914d896941",
|
|
46
|
+
"ffmpeg-v44.0.0-beta.6-mas-arm64.zip": "57f1dea4125729091eb05a7e1acceb55239900d4e81673f04d0a675c381bc9fc",
|
|
47
|
+
"ffmpeg-v44.0.0-beta.6-mas-x64.zip": "4a74a531e5901aca840b60c012a9b231d826a8eb91455ed1b8e41cda7c8bc201",
|
|
48
|
+
"ffmpeg-v44.0.0-beta.6-win32-arm64.zip": "354a1760ca6436ad882eb1220a5f36481354aa56e65db9273fcd49a328444720",
|
|
49
|
+
"ffmpeg-v44.0.0-beta.6-win32-x64.zip": "ed2576e75013e5f721769204a6d8ee3a2998ad47b474f24147215feaca456a4e",
|
|
50
|
+
"hunspell_dictionaries.zip": "9d2ec1702c987315047891d72835af57794ca2e96fc734f05ac2db6004fe1053",
|
|
51
|
+
"libcxx-objects-v44.0.0-beta.6-linux-arm64.zip": "97d6e17cac66140e6efb5e063dabc31a9ec68e54b136b7f568992ce22c7fda54",
|
|
52
|
+
"libcxx-objects-v44.0.0-beta.6-linux-x64.zip": "78e3b08c385d34c9dadb8d8922edaf534c195ac899f5aca7baf44f91fcc0c968",
|
|
53
|
+
"libcxx_headers.zip": "c39660c1509f1b265785b1f8fec26583406e5c925e33537d53560f7a5af6d925",
|
|
54
54
|
"libcxxabi_headers.zip": "44ead66e0b119cac843fc863d990a03da030f6a59192ec6fa6b77747cb2a3ed2",
|
|
55
|
-
"mksnapshot-v44.0.0-beta.
|
|
56
|
-
"mksnapshot-v44.0.0-beta.
|
|
57
|
-
"mksnapshot-v44.0.0-beta.
|
|
58
|
-
"mksnapshot-v44.0.0-beta.
|
|
59
|
-
"mksnapshot-v44.0.0-beta.
|
|
60
|
-
"mksnapshot-v44.0.0-beta.
|
|
61
|
-
"mksnapshot-v44.0.0-beta.
|
|
62
|
-
"mksnapshot-v44.0.0-beta.
|
|
55
|
+
"mksnapshot-v44.0.0-beta.6-darwin-arm64.zip": "00c485079028933b1ce1e84a56881ca3d319a1207338a019bf5781e65695deda",
|
|
56
|
+
"mksnapshot-v44.0.0-beta.6-darwin-x64.zip": "8850c1da31746c8b8ff28deddc3fcf7b95e2e213c6fb06fe18f55377bd453879",
|
|
57
|
+
"mksnapshot-v44.0.0-beta.6-linux-arm64-x64.zip": "971d0c33f5544287cafadf3465f755b06cd6e2fa1bd4e356b1cddf1455154766",
|
|
58
|
+
"mksnapshot-v44.0.0-beta.6-linux-x64.zip": "94e48a2139d6483a0ce8799265a5baa290cacd5a66e9d9eac3c5427d2f2eae02",
|
|
59
|
+
"mksnapshot-v44.0.0-beta.6-mas-arm64.zip": "268e6876b2ed8f17a1b5e80e10092be66380f24105545eff25f76601995b1aed",
|
|
60
|
+
"mksnapshot-v44.0.0-beta.6-mas-x64.zip": "5d9a9ecaec0dc467e5053275fdaf14864915f42d56e0500235467b6b5c34a9f9",
|
|
61
|
+
"mksnapshot-v44.0.0-beta.6-win32-arm64-x64.zip": "4ce5d39570c5a87ee539dc6aaee7fc40fd97c8813771b433a15bccc3a4b07d2b",
|
|
62
|
+
"mksnapshot-v44.0.0-beta.6-win32-x64.zip": "1fbdc18869467a76ebfd7f22cbac3c57558fe5ea72148ad7458197a0d1f9e932"
|
|
63
63
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 44.0.0-beta.
|
|
1
|
+
// Type definitions for Electron 44.0.0-beta.6
|
|
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
|
|
@@ -1551,6 +1551,11 @@ declare namespace Electron {
|
|
|
1551
1551
|
* line, the system's single instance mechanism will be bypassed, and you have to
|
|
1552
1552
|
* use this method to ensure single instance.
|
|
1553
1553
|
*
|
|
1554
|
+
* > [!NOTE] On macOS and Linux, the second instance's command line arguments and
|
|
1555
|
+
* `additionalData` are sent to the primary instance in a single message that is
|
|
1556
|
+
* limited to 32 MB. Larger messages are dropped: this method still returns
|
|
1557
|
+
* `false`, but the primary instance does not emit `second-instance`.
|
|
1558
|
+
*
|
|
1554
1559
|
* An example of activating the window of primary instance when a second instance
|
|
1555
1560
|
* starts:
|
|
1556
1561
|
*/
|
|
@@ -1671,13 +1676,20 @@ declare namespace Electron {
|
|
|
1671
1676
|
/**
|
|
1672
1677
|
* Whether the call succeeded.
|
|
1673
1678
|
*
|
|
1674
|
-
* Sets the
|
|
1675
|
-
*
|
|
1679
|
+
* Sets the counter badge for current app. Setting the count to `0` will hide the
|
|
1680
|
+
* badge.
|
|
1676
1681
|
*
|
|
1677
|
-
*
|
|
1678
|
-
*
|
|
1682
|
+
* On macOS, it shows on the Dock icon. On Linux, it shows on docks and taskbars
|
|
1683
|
+
* that support the LauncherEntry D-Bus API,
|
|
1679
1684
|
*
|
|
1680
|
-
*
|
|
1685
|
+
* > [!NOTE] On Linux, the badge is associated with the app's `.desktop` file, so
|
|
1686
|
+
* `app.setDesktopName` (or the `desktopName` field in `package.json`) must match
|
|
1687
|
+
* the name of the app's actual `.desktop` file.
|
|
1688
|
+
*
|
|
1689
|
+
* > [!NOTE] On macOS, you need to ensure that your application has the permission
|
|
1690
|
+
* to display notifications for this method to work.
|
|
1691
|
+
*
|
|
1692
|
+
* @platform linux,darwin
|
|
1681
1693
|
*/
|
|
1682
1694
|
setBadgeCount(count?: number): boolean;
|
|
1683
1695
|
/**
|
|
@@ -1686,14 +1698,31 @@ declare namespace Electron {
|
|
|
1686
1698
|
*/
|
|
1687
1699
|
setClientCertRequestPasswordHandler(handler: (clientCertRequestParams: ClientCertRequestParams) => Promise<string>): void;
|
|
1688
1700
|
/**
|
|
1689
|
-
* Sets the `.desktop` filename on Linux. This
|
|
1690
|
-
*
|
|
1701
|
+
* Sets the `.desktop` filename on Linux. This must match the base filename of the
|
|
1702
|
+
* app's installed `.desktop` file. The `.desktop` suffix is optional.
|
|
1703
|
+
*
|
|
1704
|
+
* The name (without the `.desktop` suffix) is the app's identity for Linux desktop
|
|
1705
|
+
* integration. It should be a reverse-DNS style ID such as `com.example.MyApp`,
|
|
1706
|
+
* following the desktop entry naming conventions. This value is used as:
|
|
1707
|
+
*
|
|
1708
|
+
* * the XDG application ID (`app_id`) on Wayland and `WM_CLASS` on X11, used to
|
|
1709
|
+
* match the app's icon and window grouping.
|
|
1710
|
+
* * the app ID that `xdg-desktop-portal` reports to portal backends such as
|
|
1711
|
+
* GlobalShortcuts.
|
|
1691
1712
|
*
|
|
1692
|
-
*
|
|
1693
|
-
*
|
|
1694
|
-
*
|
|
1695
|
-
*
|
|
1696
|
-
*
|
|
1713
|
+
* Portals increasingly enforce this identity. If the name is not a valid
|
|
1714
|
+
* reverse-DNS ID or does not match an installed `.desktop` file:
|
|
1715
|
+
*
|
|
1716
|
+
* * GNOME 50.0/50.1 (Ubuntu 26.04) rejects `globalShortcut` binds with
|
|
1717
|
+
* `org.freedesktop.portal.Error.NotAllowed` — with no error surfaced to the app
|
|
1718
|
+
* (see #52218).
|
|
1719
|
+
* * `xdg-desktop-portal` 1.21 and later refuses portal sessions for app IDs it
|
|
1720
|
+
* cannot resolve to a `.desktop` file.
|
|
1721
|
+
*
|
|
1722
|
+
* If this value is not set and `desktopName` is not present in `package.json`,
|
|
1723
|
+
* Electron falls back to a lowercased, hyphenated slug of the app's name (e.g. `My
|
|
1724
|
+
* App` → `my-app.desktop`), which is unlikely to be a valid portal identity —
|
|
1725
|
+
* packaged apps should always set it explicitly.
|
|
1697
1726
|
*
|
|
1698
1727
|
* This API must be called before the `ready` event. The value can also be set
|
|
1699
1728
|
* using `desktopName` in `package.json`.
|
|
@@ -1907,12 +1936,12 @@ declare namespace Electron {
|
|
|
1907
1936
|
/**
|
|
1908
1937
|
* An `Integer` property that returns the badge count for current app. Setting the
|
|
1909
1938
|
* count to `0` will hide the badge. Setting this with any nonzero integer shows
|
|
1910
|
-
* the count on the Dock icon.
|
|
1939
|
+
* the count on the Dock icon on macOS, or on the launcher on Linux.
|
|
1911
1940
|
*
|
|
1912
|
-
* > [!NOTE]
|
|
1913
|
-
* notifications for this property to take effect.
|
|
1941
|
+
* > [!NOTE] On macOS, you need to ensure that your application has the permission
|
|
1942
|
+
* to display notifications for this property to take effect.
|
|
1914
1943
|
*
|
|
1915
|
-
* @platform darwin
|
|
1944
|
+
* @platform linux,darwin
|
|
1916
1945
|
*/
|
|
1917
1946
|
badgeCount: number;
|
|
1918
1947
|
/**
|
|
@@ -3415,7 +3444,10 @@ declare namespace Electron {
|
|
|
3415
3444
|
* `indeterminate`, `error`, and `paused`. If you call `setProgressBar` without a
|
|
3416
3445
|
* mode set (but with a value within the valid range), `normal` will be assumed.
|
|
3417
3446
|
*
|
|
3418
|
-
*
|
|
3447
|
+
* On Linux, the progress bar shows on docks and taskbars that support the
|
|
3448
|
+
* LauncherEntry D-Bus API. It is associated with the app's `.desktop` file, so
|
|
3449
|
+
* `app.setDesktopName` must match the name of the app's actual `.desktop` file.
|
|
3450
|
+
* Indeterminate mode is not supported.
|
|
3419
3451
|
*/
|
|
3420
3452
|
setProgressBar(progress: number, options?: ProgressBarOptions): void;
|
|
3421
3453
|
/**
|
|
@@ -6235,7 +6267,10 @@ declare namespace Electron {
|
|
|
6235
6267
|
* `indeterminate`, `error`, and `paused`. If you call `setProgressBar` without a
|
|
6236
6268
|
* mode set (but with a value within the valid range), `normal` will be assumed.
|
|
6237
6269
|
*
|
|
6238
|
-
*
|
|
6270
|
+
* On Linux, the progress bar shows on docks and taskbars that support the
|
|
6271
|
+
* LauncherEntry D-Bus API. It is associated with the app's `.desktop` file, so
|
|
6272
|
+
* `app.setDesktopName` must match the name of the app's actual `.desktop` file.
|
|
6273
|
+
* Indeterminate mode is not supported.
|
|
6239
6274
|
*/
|
|
6240
6275
|
setProgressBar(progress: number, options?: ProgressBarOptions): void;
|
|
6241
6276
|
/**
|
|
@@ -20411,6 +20446,13 @@ declare namespace Electron {
|
|
|
20411
20446
|
* another value by including an `=`, followed by the value. Special values `yes`
|
|
20412
20447
|
* and `1` are interpreted as `true`, while `no` and `0` are interpreted as
|
|
20413
20448
|
* `false`.
|
|
20449
|
+
*
|
|
20450
|
+
* Security-critical preferences cannot be used to make the guest less secure than
|
|
20451
|
+
* its embedder. When the embedder has any of `contextIsolation`, `javascript`,
|
|
20452
|
+
* `nodeIntegration`, `nodeIntegrationInWorker`, `sandbox`,
|
|
20453
|
+
* `nodeIntegrationInSubFrames` or `enableWebSQL` set to its more secure value, the
|
|
20454
|
+
* guest inherits that value and the corresponding `webpreferences` entry is
|
|
20455
|
+
* ignored.
|
|
20414
20456
|
*/
|
|
20415
20457
|
webpreferences: string;
|
|
20416
20458
|
}
|
package/install.js
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
const { downloadArtifact } = require('@electron/get');
|
|
4
4
|
|
|
5
|
-
const { extract } = require('@electron-internal/extract-zip');
|
|
6
|
-
|
|
7
5
|
const childProcess = require('child_process');
|
|
8
6
|
const fs = require('fs');
|
|
9
7
|
const os = require('os');
|
|
@@ -77,6 +75,12 @@ function isInstalled() {
|
|
|
77
75
|
|
|
78
76
|
// unzips and makes path.txt point at the correct executable
|
|
79
77
|
function extractFile(zipPath) {
|
|
78
|
+
// Loaded here, not at the top of the file: the extractor has a native
|
|
79
|
+
// binding, and an OS policy can block its load (see electron/electron#52481).
|
|
80
|
+
// A lazy require keeps `isInstalled()` working in that case, so an
|
|
81
|
+
// already-installed dist does not need the extractor at all.
|
|
82
|
+
const { extract } = require('@electron-internal/extract-zip');
|
|
83
|
+
|
|
80
84
|
const distPath = process.env.ELECTRON_OVERRIDE_DIST_PATH || path.join(__dirname, 'dist');
|
|
81
85
|
|
|
82
86
|
return extract(zipPath, { dir: path.join(__dirname, 'dist') }).then(() => {
|
package/package.json
CHANGED