electron 44.5.1 → 44.6.0

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 CHANGED
@@ -1,69 +1,69 @@
1
1
  {
2
- "chromedriver-v44.5.1-darwin-arm64.zip": "04f78defe5e9000b20d0c35e27f2fc7af37cb2b752c181f2b970883a49f66132",
3
- "chromedriver-v44.5.1-darwin-x64.zip": "b698b3454ae5e0b2dde3f825efbcee2ec7d7290b47a7309086bc203d8c0153fa",
4
- "chromedriver-v44.5.1-linux-arm64.zip": "42d7c9c5b338a07240c92b73afcc69ab8c241bab7bc77327415eacbfd45bdf18",
5
- "chromedriver-v44.5.1-linux-x64.zip": "12025ef54128a3b517a3657e63543b700df319d559f5fce0a7d5226d1fa3a166",
6
- "chromedriver-v44.5.1-mas-arm64.zip": "20abba150a700352db89dc5b2061b86881ccc8bb1863611c26b1d72ecddabaea",
7
- "chromedriver-v44.5.1-mas-x64.zip": "690b77deac5ec938f9b6a98920ddc8db2e1247367ca7aaebad6b9c0cc98c17aa",
8
- "chromedriver-v44.5.1-win32-arm64.zip": "6028625a27bac61db3d4657d339afa0fd7e0956d088f813d7ef6eb81b143be5b",
9
- "chromedriver-v44.5.1-win32-x64.zip": "c2d9ca2de6c7118901873d4a2f28ae1ae9b3a6ba6f644f9043540cbee3ca8a54",
10
- "electron-api.json": "f8bef058651c6d18077be03be98b61cc05511d9d1992de5286c6b1bbbe5bee2a",
11
- "electron-v44.5.1-darwin-arm64-dsym-snapshot.zip": "bc47ff782f4f548ab57a7900dd30d5486746efdf342018c46344b0ab28da6a28",
12
- "electron-v44.5.1-darwin-arm64-dsym.tar.xz": "16d9f5be7bef062ffcfa83466436e0b9e04593094076d2e5502d18baef616f43",
13
- "electron-v44.5.1-darwin-arm64-symbols.zip": "b239e3be61c64ff756c434350b894ce9d54fe04d8353352402e6d404209ad13b",
14
- "electron-v44.5.1-darwin-arm64.zip": "1d75703019bb16461ae65f3081d7e6f5c0b11e901d0ccb5c343bcf7bcdd6435c",
15
- "electron-v44.5.1-darwin-x64-dsym-snapshot.zip": "bc47ff782f4f548ab57a7900dd30d5486746efdf342018c46344b0ab28da6a28",
16
- "electron-v44.5.1-darwin-x64-dsym.tar.xz": "17d6e9cf358c06ba93899606b0c2c283a0c264359577c60daf43d8efdaf668c8",
17
- "electron-v44.5.1-darwin-x64-symbols.zip": "4bc59def40b24c350ae48c82b3cabaa12f95bc41791f9dc61fa27138d896292c",
18
- "electron-v44.5.1-darwin-x64.zip": "e567d13833d0e161d7749727355b98643461df3395b537cfa7bdddf8a8bfedff",
19
- "electron-v44.5.1-linux-arm64-debug.zip": "5cf7c414f5610e27c56560f5c1770d595fa6197b20503e0eabf8b29b9a8d4245",
20
- "electron-v44.5.1-linux-arm64-symbols.zip": "de152f8c0921b0cf524d487e77d7c7b8480d308e89a87d9a07e5a40e52d42ba8",
21
- "electron-v44.5.1-linux-arm64.zip": "ee1790d743af1abd6a7e3971589dcd8635b58dab51ca1359123ba5216ce3a453",
22
- "electron-v44.5.1-linux-x64-debug.zip": "1a30ffe1653d7af1a259afee9826af0c6b0aa184713a395d12dd5f40b69a1e79",
23
- "electron-v44.5.1-linux-x64-symbols.zip": "9dbf06f81bfcd6e34b8cece3a9e00fa56455b7eda899027e14dd1134e68451ee",
24
- "electron-v44.5.1-linux-x64.zip": "5bcd217611d6843ececd6c9e9c1fcd1da3ab066c43d8b1a9e4b44689a1fba6f5",
25
- "electron-v44.5.1-mas-arm64-dsym-snapshot.zip": "bc47ff782f4f548ab57a7900dd30d5486746efdf342018c46344b0ab28da6a28",
26
- "electron-v44.5.1-mas-arm64-dsym.tar.xz": "929953212613a1e673da30ae00d098a98072e029abf08e2a3054a906eae521c1",
27
- "electron-v44.5.1-mas-arm64-symbols.zip": "ca4b724077ec7b5f501d134047ebeac7b5300d59cb93b26db174eeb304084084",
28
- "electron-v44.5.1-mas-arm64.zip": "cbf6e07c92c3dde2b116d0080be2619bebedad177e87ef82f6f76a5daa44022c",
29
- "electron-v44.5.1-mas-x64-dsym-snapshot.zip": "bc47ff782f4f548ab57a7900dd30d5486746efdf342018c46344b0ab28da6a28",
30
- "electron-v44.5.1-mas-x64-dsym.tar.xz": "1334f407ac1a8dd70c57bab389fe0794d416ba43844f3a5a20b26da1df5f7c05",
31
- "electron-v44.5.1-mas-x64-symbols.zip": "f7e36e90149a71884ad530dea5f1c64fbd4db2d7eea8e3704822ff1cce0bdb6c",
32
- "electron-v44.5.1-mas-x64.zip": "8b92f89b000febdef8f9df8b8d4305be5ecbb27d7559e1dbde6ab3bb130736bf",
33
- "electron-v44.5.1-win32-arm64-pdb.zip": "2cad5e8434450eb889763f1b4fb1f3aca26572bb89dcdbe8972aaa3dbb2295f2",
34
- "electron-v44.5.1-win32-arm64-symbols.zip": "abb89cada97f491cf3e8089f3dfe3ac04a44b8f77f0a8cbd2afc83d7ef40de52",
35
- "electron-v44.5.1-win32-arm64-toolchain-profile.zip": "90386280bc7e4ac5d451e43e26a7c76ed1c8bcdc0206ec50762c7e4f09c59c28",
36
- "electron-v44.5.1-win32-arm64.zip": "6ba86d5d5cfdf4ce61d51e2d270eaca464a7f88c143d14c6d9b3f43bb0760e9e",
37
- "electron-v44.5.1-win32-x64-pdb.zip": "65d465b9dce32393b8c16ae85ba763fd011f52c5f81c94f40bdd6474df79c18e",
38
- "electron-v44.5.1-win32-x64-symbols.zip": "a2354108a79d199468c5a6328bd6791ec0c3c52191437575433efa7e5b7c17b4",
39
- "electron-v44.5.1-win32-x64-toolchain-profile.zip": "90386280bc7e4ac5d451e43e26a7c76ed1c8bcdc0206ec50762c7e4f09c59c28",
40
- "electron-v44.5.1-win32-x64.zip": "9b382492dcfee91f8f9e92c91f7972550a1b95d2299cac72279dab33a600d7db",
41
- "electron.d.ts": "6bfa87243d506741fdf4195f87538306c45496c6af07fa4552e8e8ffff54c820",
42
- "ffmpeg-v44.5.1-darwin-arm64.zip": "f0d0ff74517f82cd972310b63b9feea4220945b98405be1675d683311f6a17ba",
43
- "ffmpeg-v44.5.1-darwin-x64.zip": "33440c048632267a2921cdb590359063522bf6ce357de2fc15f455eb34e167e7",
44
- "ffmpeg-v44.5.1-linux-arm64.zip": "cc55a714ef37669afd191870e6a7a631717a91867028634a6003851babed8828",
45
- "ffmpeg-v44.5.1-linux-x64.zip": "ece4d79caa6bff099e46d9443a79be6feeecc37575d5897bde738b47033ae6ed",
46
- "ffmpeg-v44.5.1-mas-arm64.zip": "cd50a93dcaec2f1642354962e259c984b0212af2c5df61416fe464e8749618cc",
47
- "ffmpeg-v44.5.1-mas-x64.zip": "0ed00198abf30a29f0d48102f28d5be805723f91f91b067200718813d577b1ac",
48
- "ffmpeg-v44.5.1-win32-arm64.zip": "eceb44827b89900b7b66aa20c68b70afec596892f432799e5d4076c9974c4afe",
49
- "ffmpeg-v44.5.1-win32-x64.zip": "2314c9a80681f66637ce040ed71dea5041546c046c34f00aaa6ad33b4d8c9c1d",
50
- "hunspell_dictionaries.zip": "7a436577e7d7a27e466755b6b7da3a5ace86066468a836ee93163a89dd552449",
51
- "libcxx-objects-v44.5.1-linux-arm64.zip": "cb34de63da09bd16371d0270f7e09d8ac522f0c4d95853475bd66c4f799d98dc",
52
- "libcxx-objects-v44.5.1-linux-x64.zip": "d3e1a8bade0c2478fec3d74aec39f9c488fbaf0fa834fd852afabba3c442e11c",
53
- "libcxx_headers.zip": "70dde8cd5f8990e72d3c6f9195b18c79719c12e464f4b6ea9498c9bbe86fe7bb",
54
- "libcxxabi_headers.zip": "be2f8fe6fea9b0bad2659dfe73aeaf40e8cc1bf25338d6cfb7b5e87c03bd2627",
55
- "mksnapshot-v44.5.1-darwin-arm64.zip": "08db752b3fb305feaebe97ebed846fee22fe96c226a2a3830350d7fd534c9183",
56
- "mksnapshot-v44.5.1-darwin-x64.zip": "58fa7034b9d3abda84d6d167f10e000d4b97996a8d7272aa422810cbb0a4472e",
57
- "mksnapshot-v44.5.1-linux-arm64-x64.zip": "5a4f531af0c152124b69f8d35df41c53189d4626c9b3a9fc9b6e7cc52398914e",
58
- "mksnapshot-v44.5.1-linux-x64.zip": "0e5b0ec1f28b2e99c7bed3d470015a3735842cacd22df16647f5b26b080f5622",
59
- "mksnapshot-v44.5.1-mas-arm64.zip": "890ae141648854f24bd53c0f9bccb151dad813481e4a8173920dd55efbdabb79",
60
- "mksnapshot-v44.5.1-mas-x64.zip": "550eb03314e87a080d0f98d59ee087609bcb81d87ec9eacf167d74505c70f5c2",
61
- "mksnapshot-v44.5.1-win32-arm64-x64.zip": "b5feb304bb97b778f104fef6df2c8daeac8f6a47cd603362b4707eaa24bf6a75",
62
- "mksnapshot-v44.5.1-win32-x64.zip": "4dbb2c444f4494c79352d226adec6aeae6a2e60dc4c4df3b126af7e7e150d576",
63
- "xcache-v44.5.1-darwin-arm64.zip": "f2479f500d8fa1a75f8bd580a6bd5efe71884deaf6e2d307b66de0770dfa4a79",
64
- "xcache-v44.5.1-darwin-x64.zip": "a6577f47425e3b9a3fdfce7ead36155a18a5912cb2c0e7c354d541fef15d49e2",
65
- "xcache-v44.5.1-linux-arm64.zip": "36badfa7601641c2fc0cbcca83830abf03df96d8d352f460cc8a1f138ceb0c09",
66
- "xcache-v44.5.1-linux-x64.zip": "2769f802aa9fe6a3737624c1984c9e21045ec539bcbc93e82fa429d2dee6e91d",
67
- "xcache-v44.5.1-win32-arm64.zip": "b4f082f3c37864d89da109c87c57b23dd06f6300d38d24573c6dd3d422c54c3a",
68
- "xcache-v44.5.1-win32-x64.zip": "0929e35ecd1c9304853ff3a2048594784cbd0ef0351dc91dac4fc99a63298d52"
2
+ "chromedriver-v44.6.0-darwin-arm64.zip": "503cc6bf17a08643043de0207fc4c18f13fbfd3399b3b5bd76f98258ada280b4",
3
+ "chromedriver-v44.6.0-darwin-x64.zip": "ed5b5e8268e1a1c4dcbaa3aedf60e274c3ae88bcd9665cd6e2cd65e7c585b1c1",
4
+ "chromedriver-v44.6.0-linux-arm64.zip": "f2af7d79d2edfd3252a6b277aae28620881130fe30f3d30956eb5bed07abf37e",
5
+ "chromedriver-v44.6.0-linux-x64.zip": "06ce9f963c6392397b7a96110984d84b0415cf5d7819104524f77764d4804738",
6
+ "chromedriver-v44.6.0-mas-arm64.zip": "3626e0740024cde25b45e46d8155e795350bf896810481ffde0432abbbe540c0",
7
+ "chromedriver-v44.6.0-mas-x64.zip": "9d2ecf1bc1c5a9082a6d9cf1881342a443bcf0987039272e0b8eb8a39c13955b",
8
+ "chromedriver-v44.6.0-win32-arm64.zip": "4a4335313882473bdf1d2915d3c4d5c9ec9822d70070b5b5e941138c7e54a9bd",
9
+ "chromedriver-v44.6.0-win32-x64.zip": "b97d6464c62dbe2e27ecaf419f8fd6397ec78120824d0adaa73f445e01b6f113",
10
+ "electron-api.json": "da08166b3197e5dbc565a2654184e551e45333f9160f6b54103de23baafd4618",
11
+ "electron-v44.6.0-darwin-arm64-dsym-snapshot.zip": "7db4f8b1a8f54b16f38b1b1d744342927a81cb0cb3467e7bde53b867be4e410b",
12
+ "electron-v44.6.0-darwin-arm64-dsym.tar.xz": "c5df66b4c3869832b598f4d37176597ecd0e000052c3591ea40a2b7c363d86ea",
13
+ "electron-v44.6.0-darwin-arm64-symbols.zip": "8b254b0045fed20bb8348a4c989d624aceb07693676139cd06e6cfc29838a8c7",
14
+ "electron-v44.6.0-darwin-arm64.zip": "023a69ab3a2e8fac0a62746c2aaaf42f637b7ab07b8d78fb64f00c48e01fef8c",
15
+ "electron-v44.6.0-darwin-x64-dsym-snapshot.zip": "7db4f8b1a8f54b16f38b1b1d744342927a81cb0cb3467e7bde53b867be4e410b",
16
+ "electron-v44.6.0-darwin-x64-dsym.tar.xz": "237c672a0a06f5203f9e05685c7cde06bd2b893e8f552d6382f17225a1d97a00",
17
+ "electron-v44.6.0-darwin-x64-symbols.zip": "611be162f52c4ef8db60cbf05762af1f164c8fd720b7c84e32511e02af99b1da",
18
+ "electron-v44.6.0-darwin-x64.zip": "25076a029742bb6bc4a1110db208658837c9febb0688a6f34acddcc645bdfb45",
19
+ "electron-v44.6.0-linux-arm64-debug.zip": "f9a51e4274f03bfec9ae9ee32c0c44c54d04c5b5c69159a8cdc1a18e327ace66",
20
+ "electron-v44.6.0-linux-arm64-symbols.zip": "449f9ef9a9371d7210dc99246f1a231db39c29992c9f66d85b4cab0ddadc0091",
21
+ "electron-v44.6.0-linux-arm64.zip": "9298bc6fb86528e79fbc643aaefe4e195e58153c40cddcfedec52a59ce114c79",
22
+ "electron-v44.6.0-linux-x64-debug.zip": "dded03ddf1a3d35707fa6da6dad4619234aa32aba31430c6df49b18741a4a353",
23
+ "electron-v44.6.0-linux-x64-symbols.zip": "1e5b67ae6b2bf1d4f7fc5e1f5e625bba634400f9259a9fe806322d5f43827f2a",
24
+ "electron-v44.6.0-linux-x64.zip": "20cafbe96e0ab8ad95cd31804acd683142b361f9e25f1595aecf67177d0a8915",
25
+ "electron-v44.6.0-mas-arm64-dsym-snapshot.zip": "7db4f8b1a8f54b16f38b1b1d744342927a81cb0cb3467e7bde53b867be4e410b",
26
+ "electron-v44.6.0-mas-arm64-dsym.tar.xz": "01eef336e5720e9e28c0e57f7bcfe37c4d010d6ffe7fca229d57ea3ff5578676",
27
+ "electron-v44.6.0-mas-arm64-symbols.zip": "3385ddf5963b209d1ef1d056d3ce8a77c1dfe25f49c45dbbba586dc903e18b49",
28
+ "electron-v44.6.0-mas-arm64.zip": "05f0cefd4f1d079a4feb7a6bfb2e622e992d7ebd75c8e0d92d6f5c47ef874547",
29
+ "electron-v44.6.0-mas-x64-dsym-snapshot.zip": "7db4f8b1a8f54b16f38b1b1d744342927a81cb0cb3467e7bde53b867be4e410b",
30
+ "electron-v44.6.0-mas-x64-dsym.tar.xz": "ea64f8f6a4a44f799da7aa08d53aab28cf115137579973d1aec84e645dc09300",
31
+ "electron-v44.6.0-mas-x64-symbols.zip": "552ff11d9a91365ec4f1b5cf1d2eb82fee54b3688e1aa9a49cfd32983fc9696b",
32
+ "electron-v44.6.0-mas-x64.zip": "8c1ee798f9aab430fb66b3a889b2307995c688b33338f3bce8787b20bbd68b66",
33
+ "electron-v44.6.0-win32-arm64-pdb.zip": "98a576a9fe5e282ef6c9cdac8fdd888d6979e0a2cacecd55a75171e2878001f3",
34
+ "electron-v44.6.0-win32-arm64-symbols.zip": "f69130ca89e3211af4adc0095bb76d1d640a92cb970ccd631cb44ef3d9aef046",
35
+ "electron-v44.6.0-win32-arm64-toolchain-profile.zip": "90386280bc7e4ac5d451e43e26a7c76ed1c8bcdc0206ec50762c7e4f09c59c28",
36
+ "electron-v44.6.0-win32-arm64.zip": "f7992db96756c7df63fba3ccf335585cac4fb204aa8eae5f6fe8ba29403fe7c2",
37
+ "electron-v44.6.0-win32-x64-pdb.zip": "a9141aadd9ba73e762803a72fe8c59454cce29075c07198ed4f81821e0d94e1f",
38
+ "electron-v44.6.0-win32-x64-symbols.zip": "5943bfe35ca43e12c5f1aab427b762aef371c072f9a2f88b02a3ddee0f659e10",
39
+ "electron-v44.6.0-win32-x64-toolchain-profile.zip": "90386280bc7e4ac5d451e43e26a7c76ed1c8bcdc0206ec50762c7e4f09c59c28",
40
+ "electron-v44.6.0-win32-x64.zip": "04d6071f8deca081044e1398f96f65e4c1550ffdb3f882504cd78528d821d422",
41
+ "electron.d.ts": "1ead362490b3beb1ec50fa0c22220c40eba602eba1692d55b21ceb2d2d9c213e",
42
+ "ffmpeg-v44.6.0-darwin-arm64.zip": "d020ce172c3a82486ab84e5f77bcc47d2d865d02a3d04c186bc59bc706d471c2",
43
+ "ffmpeg-v44.6.0-darwin-x64.zip": "2fe2acd0b7a1f11d12e5698e4cd1ad6902bc24a586695c0ef273f8d493e787b8",
44
+ "ffmpeg-v44.6.0-linux-arm64.zip": "f5ab61470855cfc70c2168318fcd6f2f4746f0505e28c09c4f7a99493ff1302d",
45
+ "ffmpeg-v44.6.0-linux-x64.zip": "72160780a613d3171eeaf5995f0af0724ab011af81967254e29e7e7d27409a05",
46
+ "ffmpeg-v44.6.0-mas-arm64.zip": "6b4ef818d29790a38438c0c0cb15817c141b82954615b715949ba777d2816020",
47
+ "ffmpeg-v44.6.0-mas-x64.zip": "ce07527e0b5bc5b8aeae5cf9ed6f0eabb9f1ff830b440b4cfeb8dad7acc7d05e",
48
+ "ffmpeg-v44.6.0-win32-arm64.zip": "8f209b30fe4b97830f8e0ec3c482cab542bf7e063f21ff415f73d346582878c7",
49
+ "ffmpeg-v44.6.0-win32-x64.zip": "baa9f0808b3a8b07d0a5a63e5784a0a5b0e40c6f76a4f0d290ccbe19167872cf",
50
+ "hunspell_dictionaries.zip": "2617e2ea45c63abaffb47e17aa85e0f32da79817c1b525b8938fa0c887b70ecf",
51
+ "libcxx-objects-v44.6.0-linux-arm64.zip": "fad6a3ae9422614b12b17384423c03af4fbe309ab6d288006259d2a4bd1623b2",
52
+ "libcxx-objects-v44.6.0-linux-x64.zip": "c7a10c86a1a37a56f74cfb1f20f722cd47a7b46c55666302afa228ee09350449",
53
+ "libcxx_headers.zip": "7c60f8b49fddcc9395a66e1c8559b5f112fadabecc1e33e65622fdfea3563f32",
54
+ "libcxxabi_headers.zip": "f1129a0445b75092897fc3e036a56e5146132c48c0d6a9f1063f9faa9efa6524",
55
+ "mksnapshot-v44.6.0-darwin-arm64.zip": "6f1e039d050dcf4ba099069e18d0228627892b73dbb0d6d056c7d35451e94ee6",
56
+ "mksnapshot-v44.6.0-darwin-x64.zip": "1520d8aaa4cef828fd01659edd64822897862a87be63f2d0363b306e2b9f9b52",
57
+ "mksnapshot-v44.6.0-linux-arm64-x64.zip": "14b2e1a39ce5416cd6969ca57647b020da06cb287ccde6cbc1b8fe9f9a719d53",
58
+ "mksnapshot-v44.6.0-linux-x64.zip": "e3189173b8c24463c18d2ee437510f7b8b780dc49d84425fdad50ae3f649dbd3",
59
+ "mksnapshot-v44.6.0-mas-arm64.zip": "e8dc4f612a238731ad4fcd167be573b8c99725eb94c2ed0a31ce4c66686c0c90",
60
+ "mksnapshot-v44.6.0-mas-x64.zip": "0cbf65741df4175dac50503aa0e9b7ba85dcf39288c4ba927514f1133a0751fd",
61
+ "mksnapshot-v44.6.0-win32-arm64-x64.zip": "215a701adbd11936fb5267b10ed7da10d81dad2e17a0a56ef34b65f4f47fd512",
62
+ "mksnapshot-v44.6.0-win32-x64.zip": "f83d6e8a368d8a6499cf9dfd08297b35b797f851e21da5ac2a4e65c7641bf0f6",
63
+ "xcache-v44.6.0-darwin-arm64.zip": "924fea5e656a65d423ae980c4240934522eca8ab7bbdbbd32cfd5f26a43c57f2",
64
+ "xcache-v44.6.0-darwin-x64.zip": "a06a379d77fdf1429340ee184ed44e70165d740d9e007c02b0cc47d9af5b12b9",
65
+ "xcache-v44.6.0-linux-arm64.zip": "329669130ebabbfd5e47f131e660e9f6ea59f103344d800781c794943d81da9d",
66
+ "xcache-v44.6.0-linux-x64.zip": "3001de37d35eadbf6e172b30fecfe9ecb68d8f3c83e3ac6f7b7d726ec72a4dc3",
67
+ "xcache-v44.6.0-win32-arm64.zip": "321d6538c6c3ad4763292510f80115cd0ec7bde33469738dc26cb654567199a3",
68
+ "xcache-v44.6.0-win32-x64.zip": "7913a9c82a0d25463d49496b2560b7116bb344fb700eb2d64b272983a6376b39"
69
69
  }
package/electron.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 44.5.1
1
+ // Type definitions for Electron 44.6.0
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
@@ -11615,6 +11615,12 @@ declare namespace Electron {
11615
11615
 
11616
11616
  // Docs: https://electronjs.org/docs/api/protocol
11617
11617
 
11618
+ /**
11619
+ * The source registered for `scheme` with `protocol.registerSource`, or `null`.
11620
+ *
11621
+ * @experimental
11622
+ */
11623
+ getSource(scheme: string): (ProtocolSource) | (null);
11618
11624
  /**
11619
11625
  * Register a protocol handler for `scheme`. Requests made to URLs with this scheme
11620
11626
  * will delegate to this handler to determine what response should be sent.
@@ -11678,7 +11684,7 @@ declare namespace Electron {
11678
11684
  */
11679
11685
  interceptStringProtocol(scheme: string, handler: (request: ProtocolRequest, callback: (response: (string) | (ProtocolResponse)) => void) => void): boolean;
11680
11686
  /**
11681
- * Whether `scheme` is already handled.
11687
+ * Whether `scheme` already has a handler or a source.
11682
11688
  */
11683
11689
  isProtocolHandled(scheme: string): boolean;
11684
11690
  /**
@@ -11773,6 +11779,28 @@ declare namespace Electron {
11773
11779
  * correctly expect streaming responses.
11774
11780
  */
11775
11781
  registerSchemesAsPrivileged(customSchemes: CustomScheme[]): void;
11782
+ /**
11783
+ * Serves `scheme` from directories on disk without a JavaScript handler. Each
11784
+ * request is matched against `routes` (a route with a `host` wins over one
11785
+ * without, then the longest `path` prefix wins), the rest of the URL's path is
11786
+ * resolved inside that route's `root`, and the file is streamed to the requester
11787
+ * the way `file:` URLs are, including from `asar` archives, with `Content-Type`
11788
+ * taken from the file extension. A path that resolves outside `root`, a missing
11789
+ * file, a request that matches no route, or a method other than `GET`/`HEAD` fails
11790
+ * with `net::ERR_FILE_NOT_FOUND`. A URL whose path ends in `/` serves the route's
11791
+ * `index` file.
11792
+ *
11793
+ * Use this instead of `protocol.handle` when a scheme only serves an app's own
11794
+ * bundled files: no request touches the main thread, so pages and their
11795
+ * subresources load at the same speed whether or not the main process is busy.
11796
+ *
11797
+ * A scheme has either a handler or a source; `protocol.unhandle` removes either,
11798
+ * and `protocol.isProtocolHandled` reports both. `webRequest` listeners apply to
11799
+ * these requests as to any other.
11800
+ *
11801
+ * @experimental
11802
+ */
11803
+ registerSource(scheme: string, source: ProtocolSource): void;
11776
11804
  /**
11777
11805
  * Whether the protocol was successfully registered
11778
11806
  *
@@ -11803,7 +11831,8 @@ declare namespace Electron {
11803
11831
  */
11804
11832
  registerStringProtocol(scheme: string, handler: (request: ProtocolRequest, callback: (response: (string) | (ProtocolResponse)) => void) => void): boolean;
11805
11833
  /**
11806
- * Removes a protocol handler registered with `protocol.handle`.
11834
+ * Removes a protocol handler registered with `protocol.handle` or a source
11835
+ * registered with `protocol.registerSource`.
11807
11836
  */
11808
11837
  unhandle(scheme: string): void;
11809
11838
  /**
@@ -11920,6 +11949,32 @@ declare namespace Electron {
11920
11949
  data: (string) | (Buffer);
11921
11950
  }
11922
11951
 
11952
+ interface ProtocolRoute {
11953
+
11954
+ // Docs: https://electronjs.org/docs/api/structures/protocol-route
11955
+
11956
+ /**
11957
+ * Which URLs on the scheme this route serves. A route without `match` serves every
11958
+ * URL.
11959
+ */
11960
+ match?: Match;
11961
+ /**
11962
+ * What the matched URLs are served from.
11963
+ */
11964
+ source: Source;
11965
+ }
11966
+
11967
+ interface ProtocolSource {
11968
+
11969
+ // Docs: https://electronjs.org/docs/api/structures/protocol-source
11970
+
11971
+ /**
11972
+ * How URLs on the scheme map to directories on disk; see
11973
+ * `protocol.registerSource`.
11974
+ */
11975
+ routes: ProtocolRoute[];
11976
+ }
11977
+
11923
11978
  interface ProxyConfig {
11924
11979
 
11925
11980
  // Docs: https://electronjs.org/docs/api/structures/proxy-config
@@ -13521,7 +13576,7 @@ declare namespace Electron {
13521
13576
  *
13522
13577
  * Passing `null` instead of a function resets the handler to its default state.
13523
13578
  */
13524
- setDisplayMediaRequestHandler(handler: ((request: DisplayMediaRequestHandlerHandlerRequest, callback: (streams: Streams) => void) => void) | (null), opts?: DisplayMediaRequestHandlerOpts): void;
13579
+ setDisplayMediaRequestHandler(handler: ((request: DisplayMediaRequestHandlerHandlerRequest, callback: (streams: (Streams) | (null)) => void) => void) | (null), opts?: DisplayMediaRequestHandlerOpts): void;
13525
13580
  /**
13526
13581
  * Sets download saving directory. By default, the download directory will be the
13527
13582
  * `Downloads` under the respective app folder.
@@ -22493,6 +22548,20 @@ declare namespace Electron {
22493
22548
  args?: string[];
22494
22549
  }
22495
22550
 
22551
+ interface Match {
22552
+ /**
22553
+ * Host name to match, for standard schemes. It is compared with the URL's host as
22554
+ * a whole, case-insensitively; there is no wildcard or subdomain matching. Omit to
22555
+ * match any host.
22556
+ */
22557
+ host?: string;
22558
+ /**
22559
+ * Path prefix to match, starting with `/` and written as it appears in a URL
22560
+ * (percent-encoded). Defaults to `/`.
22561
+ */
22562
+ path?: string;
22563
+ }
22564
+
22496
22565
  interface MenuItemConstructorOptions {
22497
22566
  /**
22498
22567
  * Will be called with `click(menuItem, window, event)` when the menu item is
@@ -23992,6 +24061,30 @@ declare namespace Electron {
23992
24061
  topFrameSite: string;
23993
24062
  }
23994
24063
 
24064
+ interface Source {
24065
+ /**
24066
+ * Must be `directory`.
24067
+ */
24068
+ type: string;
24069
+ /**
24070
+ * Absolute path of the directory. The part of the URL's path after `match.path` is
24071
+ * resolved inside it; paths that would leave it are not served. May point into an
24072
+ * `asar` archive.
24073
+ */
24074
+ root: string;
24075
+ /**
24076
+ * File served for a URL whose path ends in `/`. Defaults to `index.html`; an empty
24077
+ * string disables it.
24078
+ */
24079
+ index?: string;
24080
+ /**
24081
+ * Response headers added to every file served by this route. Headers computed by
24082
+ * the file loader, including `Content-Type`, `Content-Length`, and
24083
+ * `Content-Range`, will override these supplied values.
24084
+ */
24085
+ headers?: Record<string, string>;
24086
+ }
24087
+
23995
24088
  interface SourcesOptions {
23996
24089
  /**
23997
24090
  * An array of strings that lists the types of desktop sources to be captured,
@@ -25429,6 +25522,7 @@ declare namespace Electron {
25429
25522
  type LoadURLOptions = Electron.LoadURLOptions;
25430
25523
  type LoginItemSettings = Electron.LoginItemSettings;
25431
25524
  type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
25525
+ type Match = Electron.Match;
25432
25526
  type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
25433
25527
  type MessageBoxOptions = Electron.MessageBoxOptions;
25434
25528
  type MessageBoxReturnValue = Electron.MessageBoxReturnValue;
@@ -25492,6 +25586,7 @@ declare namespace Electron {
25492
25586
  type ServiceWorkersRunningStatusChangedEventParams = Electron.ServiceWorkersRunningStatusChangedEventParams;
25493
25587
  type Settings = Electron.Settings;
25494
25588
  type SharedDictionaryInfoOptions = Electron.SharedDictionaryInfoOptions;
25589
+ type Source = Electron.Source;
25495
25590
  type SourcesOptions = Electron.SourcesOptions;
25496
25591
  type StartLoggingOptions = Electron.StartLoggingOptions;
25497
25592
  type StartTask = Electron.StartTask;
@@ -25619,6 +25714,8 @@ declare namespace Electron {
25619
25714
  type ProtocolRequest = Electron.ProtocolRequest;
25620
25715
  type ProtocolResponse = Electron.ProtocolResponse;
25621
25716
  type ProtocolResponseUploadData = Electron.ProtocolResponseUploadData;
25717
+ type ProtocolRoute = Electron.ProtocolRoute;
25718
+ type ProtocolSource = Electron.ProtocolSource;
25622
25719
  type ProxyConfig = Electron.ProxyConfig;
25623
25720
  type Rectangle = Electron.Rectangle;
25624
25721
  type Referrer = Electron.Referrer;
@@ -25842,6 +25939,7 @@ declare namespace Electron {
25842
25939
  type LoadURLOptions = Electron.LoadURLOptions;
25843
25940
  type LoginItemSettings = Electron.LoginItemSettings;
25844
25941
  type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
25942
+ type Match = Electron.Match;
25845
25943
  type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
25846
25944
  type MessageBoxOptions = Electron.MessageBoxOptions;
25847
25945
  type MessageBoxReturnValue = Electron.MessageBoxReturnValue;
@@ -25905,6 +26003,7 @@ declare namespace Electron {
25905
26003
  type ServiceWorkersRunningStatusChangedEventParams = Electron.ServiceWorkersRunningStatusChangedEventParams;
25906
26004
  type Settings = Electron.Settings;
25907
26005
  type SharedDictionaryInfoOptions = Electron.SharedDictionaryInfoOptions;
26006
+ type Source = Electron.Source;
25908
26007
  type SourcesOptions = Electron.SourcesOptions;
25909
26008
  type StartLoggingOptions = Electron.StartLoggingOptions;
25910
26009
  type StartTask = Electron.StartTask;
@@ -26032,6 +26131,8 @@ declare namespace Electron {
26032
26131
  type ProtocolRequest = Electron.ProtocolRequest;
26033
26132
  type ProtocolResponse = Electron.ProtocolResponse;
26034
26133
  type ProtocolResponseUploadData = Electron.ProtocolResponseUploadData;
26134
+ type ProtocolRoute = Electron.ProtocolRoute;
26135
+ type ProtocolSource = Electron.ProtocolSource;
26035
26136
  type ProxyConfig = Electron.ProxyConfig;
26036
26137
  type Rectangle = Electron.Rectangle;
26037
26138
  type Referrer = Electron.Referrer;
@@ -26179,6 +26280,7 @@ declare namespace Electron {
26179
26280
  type LoadURLOptions = Electron.LoadURLOptions;
26180
26281
  type LoginItemSettings = Electron.LoginItemSettings;
26181
26282
  type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
26283
+ type Match = Electron.Match;
26182
26284
  type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
26183
26285
  type MessageBoxOptions = Electron.MessageBoxOptions;
26184
26286
  type MessageBoxReturnValue = Electron.MessageBoxReturnValue;
@@ -26242,6 +26344,7 @@ declare namespace Electron {
26242
26344
  type ServiceWorkersRunningStatusChangedEventParams = Electron.ServiceWorkersRunningStatusChangedEventParams;
26243
26345
  type Settings = Electron.Settings;
26244
26346
  type SharedDictionaryInfoOptions = Electron.SharedDictionaryInfoOptions;
26347
+ type Source = Electron.Source;
26245
26348
  type SourcesOptions = Electron.SourcesOptions;
26246
26349
  type StartLoggingOptions = Electron.StartLoggingOptions;
26247
26350
  type StartTask = Electron.StartTask;
@@ -26369,6 +26472,8 @@ declare namespace Electron {
26369
26472
  type ProtocolRequest = Electron.ProtocolRequest;
26370
26473
  type ProtocolResponse = Electron.ProtocolResponse;
26371
26474
  type ProtocolResponseUploadData = Electron.ProtocolResponseUploadData;
26475
+ type ProtocolRoute = Electron.ProtocolRoute;
26476
+ type ProtocolSource = Electron.ProtocolSource;
26372
26477
  type ProxyConfig = Electron.ProxyConfig;
26373
26478
  type Rectangle = Electron.Rectangle;
26374
26479
  type Referrer = Electron.Referrer;
@@ -26515,6 +26620,7 @@ declare namespace Electron {
26515
26620
  type LoadURLOptions = Electron.LoadURLOptions;
26516
26621
  type LoginItemSettings = Electron.LoginItemSettings;
26517
26622
  type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
26623
+ type Match = Electron.Match;
26518
26624
  type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
26519
26625
  type MessageBoxOptions = Electron.MessageBoxOptions;
26520
26626
  type MessageBoxReturnValue = Electron.MessageBoxReturnValue;
@@ -26578,6 +26684,7 @@ declare namespace Electron {
26578
26684
  type ServiceWorkersRunningStatusChangedEventParams = Electron.ServiceWorkersRunningStatusChangedEventParams;
26579
26685
  type Settings = Electron.Settings;
26580
26686
  type SharedDictionaryInfoOptions = Electron.SharedDictionaryInfoOptions;
26687
+ type Source = Electron.Source;
26581
26688
  type SourcesOptions = Electron.SourcesOptions;
26582
26689
  type StartLoggingOptions = Electron.StartLoggingOptions;
26583
26690
  type StartTask = Electron.StartTask;
@@ -26705,6 +26812,8 @@ declare namespace Electron {
26705
26812
  type ProtocolRequest = Electron.ProtocolRequest;
26706
26813
  type ProtocolResponse = Electron.ProtocolResponse;
26707
26814
  type ProtocolResponseUploadData = Electron.ProtocolResponseUploadData;
26815
+ type ProtocolRoute = Electron.ProtocolRoute;
26816
+ type ProtocolSource = Electron.ProtocolSource;
26708
26817
  type ProxyConfig = Electron.ProxyConfig;
26709
26818
  type Rectangle = Electron.Rectangle;
26710
26819
  type Referrer = Electron.Referrer;
@@ -26947,6 +27056,7 @@ declare namespace Electron {
26947
27056
  type LoadURLOptions = Electron.LoadURLOptions;
26948
27057
  type LoginItemSettings = Electron.LoginItemSettings;
26949
27058
  type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
27059
+ type Match = Electron.Match;
26950
27060
  type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
26951
27061
  type MessageBoxOptions = Electron.MessageBoxOptions;
26952
27062
  type MessageBoxReturnValue = Electron.MessageBoxReturnValue;
@@ -27010,6 +27120,7 @@ declare namespace Electron {
27010
27120
  type ServiceWorkersRunningStatusChangedEventParams = Electron.ServiceWorkersRunningStatusChangedEventParams;
27011
27121
  type Settings = Electron.Settings;
27012
27122
  type SharedDictionaryInfoOptions = Electron.SharedDictionaryInfoOptions;
27123
+ type Source = Electron.Source;
27013
27124
  type SourcesOptions = Electron.SourcesOptions;
27014
27125
  type StartLoggingOptions = Electron.StartLoggingOptions;
27015
27126
  type StartTask = Electron.StartTask;
@@ -27137,6 +27248,8 @@ declare namespace Electron {
27137
27248
  type ProtocolRequest = Electron.ProtocolRequest;
27138
27249
  type ProtocolResponse = Electron.ProtocolResponse;
27139
27250
  type ProtocolResponseUploadData = Electron.ProtocolResponseUploadData;
27251
+ type ProtocolRoute = Electron.ProtocolRoute;
27252
+ type ProtocolSource = Electron.ProtocolSource;
27140
27253
  type ProxyConfig = Electron.ProxyConfig;
27141
27254
  type Rectangle = Electron.Rectangle;
27142
27255
  type Referrer = Electron.Referrer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron",
3
- "version": "44.5.1",
3
+ "version": "44.6.0",
4
4
  "repository": "https://github.com/electron/electron",
5
5
  "description": "Build cross platform desktop apps with JavaScript, HTML, and CSS",
6
6
  "license": "MIT",