From cd8c75be00e3686df6352e4ffca86069efabe417 Mon Sep 17 00:00:00 2001 From: DIAMOND <276397553@qq.com> Date: Mon, 8 Jan 2024 10:41:22 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=B8=85=E9=99=A4=E5=BF=BD=E7=95=A5electron?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2.暂时忽略"ffmpeg-static"包 3.新增mqtt依赖 4.移除electron-packager 依赖 --- .gitignore | 2 - node_modules/electron/checksums.json | 150 ++--- node_modules/electron/electron.d.ts | 29 +- .../node_modules/@types/node/assert.d.ts | 4 +- .../node_modules/@types/node/buffer.d.ts | 8 +- .../@types/node/child_process.d.ts | 66 +- .../node_modules/@types/node/console.d.ts | 2 +- .../node_modules/@types/node/crypto.d.ts | 24 +- .../node_modules/@types/node/dgram.d.ts | 16 +- .../node_modules/@types/node/dns.d.ts | 2 +- .../@types/node/dns/promises.d.ts | 10 +- .../electron/node_modules/@types/node/fs.d.ts | 16 +- .../node_modules/@types/node/fs/promises.d.ts | 4 +- .../node_modules/@types/node/globals.d.ts | 622 ++++++++++-------- .../node_modules/@types/node/http.d.ts | 4 +- .../node_modules/@types/node/http2.d.ts | 19 +- .../node_modules/@types/node/module.d.ts | 46 +- .../node_modules/@types/node/net.d.ts | 6 + .../node_modules/@types/node/package.json | 10 +- .../node_modules/@types/node/perf_hooks.d.ts | 2 +- .../node_modules/@types/node/process.d.ts | 13 + .../node_modules/@types/node/punycode.d.ts | 2 +- .../node_modules/@types/node/querystring.d.ts | 6 +- .../node_modules/@types/node/stream.d.ts | 8 +- .../node_modules/@types/node/test.d.ts | 255 +++++-- .../node_modules/@types/node/timers.d.ts | 6 +- .../node_modules/@types/node/tls.d.ts | 14 +- .../@types/node/ts4.8/assert.d.ts | 4 +- .../@types/node/ts4.8/buffer.d.ts | 8 +- .../@types/node/ts4.8/child_process.d.ts | 66 +- .../@types/node/ts4.8/console.d.ts | 2 +- .../@types/node/ts4.8/crypto.d.ts | 24 +- .../node_modules/@types/node/ts4.8/dgram.d.ts | 16 +- .../node_modules/@types/node/ts4.8/dns.d.ts | 2 +- .../@types/node/ts4.8/dns/promises.d.ts | 10 +- .../node_modules/@types/node/ts4.8/fs.d.ts | 16 +- .../@types/node/ts4.8/fs/promises.d.ts | 4 +- .../@types/node/ts4.8/globals.d.ts | 622 ++++++++++-------- .../node_modules/@types/node/ts4.8/http.d.ts | 4 +- .../node_modules/@types/node/ts4.8/http2.d.ts | 19 +- .../@types/node/ts4.8/module.d.ts | 46 +- .../node_modules/@types/node/ts4.8/net.d.ts | 6 + .../@types/node/ts4.8/perf_hooks.d.ts | 2 +- .../@types/node/ts4.8/process.d.ts | 13 + .../@types/node/ts4.8/punycode.d.ts | 2 +- .../@types/node/ts4.8/querystring.d.ts | 6 +- .../@types/node/ts4.8/stream.d.ts | 8 +- .../node_modules/@types/node/ts4.8/test.d.ts | 255 +++++-- .../@types/node/ts4.8/timers.d.ts | 6 +- .../node_modules/@types/node/ts4.8/tls.d.ts | 14 +- .../node_modules/@types/node/ts4.8/url.d.ts | 2 +- .../node_modules/@types/node/ts4.8/util.d.ts | 3 - .../node_modules/@types/node/ts4.8/vm.d.ts | 12 +- .../node_modules/@types/node/ts4.8/wasi.d.ts | 2 +- .../@types/node/ts4.8/worker_threads.d.ts | 4 +- .../node_modules/@types/node/url.d.ts | 2 +- .../node_modules/@types/node/util.d.ts | 3 - .../electron/node_modules/@types/node/vm.d.ts | 12 +- .../node_modules/@types/node/wasi.d.ts | 2 +- .../@types/node/worker_threads.d.ts | 4 +- node_modules/electron/package.json | 2 +- package.json | 4 +- 62 files changed, 1566 insertions(+), 987 deletions(-) diff --git a/.gitignore b/.gitignore index c3ff717..928212f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,4 @@ node_modules -# !node_modules/electron -# !node_modules/electron-builder .DS_Store .github dist diff --git a/node_modules/electron/checksums.json b/node_modules/electron/checksums.json index f5f683c..1f1ad00 100644 --- a/node_modules/electron/checksums.json +++ b/node_modules/electron/checksums.json @@ -1,77 +1,77 @@ { - "chromedriver-v27.0.2-darwin-arm64.zip": "325d3628d40b8994d50abc1797fff60668537cb2e9956ec86a7ac54ef2c9af9b", - "chromedriver-v27.0.2-darwin-x64.zip": "e57be9b672c7f669159037f3dc8dfe84d5c769d04b4d234c14726ff1554d76e7", - "chromedriver-v27.0.2-linux-arm64.zip": "73e10b2aedef082661a740a5729983a08fdb66f713ca802e68077e735d5b119c", - "chromedriver-v27.0.2-linux-armv7l.zip": "404cb84d7ca98ea2f78a9aae03854a16fd9cc4ec6f377c6ab6b9c66a437d845d", - "chromedriver-v27.0.2-linux-x64.zip": "dcf55cdb29214d77411f3d3f8c390a322aa95a5fc694b1b12f3fad0b95385d6d", - "chromedriver-v27.0.2-mas-arm64.zip": "0c6f032ba5409de273ef6316d1cc15d02a269ffba7553718604e3a263df734c0", - "chromedriver-v27.0.2-mas-x64.zip": "c4c5cce8b4b458a9c83eddbf9be7b31093c5b134f37a4e9a89c5daa1266be17f", - "chromedriver-v27.0.2-win32-arm64.zip": "e9747f4d5fce6cbe9194b6528ec01a01c3a87b9da0478ccf12c6beb1453c1cba", - "chromedriver-v27.0.2-win32-ia32.zip": "c29b910271e5c007b55837b4c9f37bc72ad9410b1ed9dafaafebcea2cb03ff98", - "chromedriver-v27.0.2-win32-x64.zip": "5e1e0573e7568a581346e9a3d68194ae7542551c69dc7a1f3a6855473fc2def5", - "electron-api.json": "6d76e1ee31744c3d3a7ff98c6488a66240107fe74469304a92fd70bccfb2a491", - "electron-v27.0.2-darwin-arm64-dsym-snapshot.zip": "f2af22d197c280a988004579585a563d29c623dbde694089ef0557cafb09184d", - "electron-v27.0.2-darwin-arm64-dsym.zip": "9a5e91b25488a8ab43eab50a9dc209e16c41ab51e1b8b3464eb7c5929572633b", - "electron-v27.0.2-darwin-arm64-symbols.zip": "42323dbfbb256eaaf5d5d9cf40c859df9ac89e6ec628ebac4d719959b38a22ea", - "electron-v27.0.2-darwin-arm64.zip": "b589d51e4e54698efa0403c47ac6f544115eb354858d9117b1728fb0c8202af7", - "electron-v27.0.2-darwin-x64-dsym-snapshot.zip": "1521063d64099b2e61c81cf1c1f7472b545a18b2ea3181d9d70ff1df96c66eec", - "electron-v27.0.2-darwin-x64-dsym.zip": "d0c1d4d37d9f99b517f3f1a91c48aade60c39b62e9afd9cdd5730dfa4675c7be", - "electron-v27.0.2-darwin-x64-symbols.zip": "6bd9228f5fe849f8bbf5b0c290f05fa7b0dac09b45623445afc34e35dccc7a7c", - "electron-v27.0.2-darwin-x64.zip": "f6c7bdadf7b5329b1c22fa1c9da43bd21f808600a9e6287a3b31d16763fd40af", - "electron-v27.0.2-linux-arm64-debug.zip": "50c9c223a296055ec6987b007b4582499504848ed7924a96a9c02e3e873e2bae", - "electron-v27.0.2-linux-arm64-symbols.zip": "d0393a8f70d6ce82ac1953d879a5d4c699c7f4059cf202631d4e8f0d89d5d5a6", - "electron-v27.0.2-linux-arm64.zip": "300d801ae68fd3e01f032d0036303538293bea773d5541dcbc4b457be8a82806", - "electron-v27.0.2-linux-armv7l-debug.zip": "50c9c223a296055ec6987b007b4582499504848ed7924a96a9c02e3e873e2bae", - "electron-v27.0.2-linux-armv7l-symbols.zip": "5e042be464bc2bdd7c91055c6afa72dadb63a4c72e5dd7da02d211b3314dd1cd", - "electron-v27.0.2-linux-armv7l.zip": "99864505f071b8851cb634f56e7554797a1739732b2168d83373d3283c0756ba", - "electron-v27.0.2-linux-x64-debug.zip": "0d527f7d7376551ec54de08da62b642eab734a1efc9b15891296f90bf4d08392", - "electron-v27.0.2-linux-x64-symbols.zip": "e750a7331d2f6f547bf902ffa8e62ae7d018d9b3e4ab5d9b735f3f5e9ceb78fe", - "electron-v27.0.2-linux-x64.zip": "a226a0a922162068a931d843b5120315c6e4c38446641026610a2882e67378b3", - "electron-v27.0.2-mas-arm64-dsym-snapshot.zip": "5997ae1240fc8c8d029212384800e4168fbd89e481316eb6ee32aa23497bc779", - "electron-v27.0.2-mas-arm64-dsym.zip": "0536ec61896b97437f82cc5202c59e0ba92dc8c78272b45ea8558c6a9fae5f89", - "electron-v27.0.2-mas-arm64-symbols.zip": "85cbe40b18942a52ce298a265d3d17ce053dbb6415ee5a7e57c29580b50b4421", - "electron-v27.0.2-mas-arm64.zip": "cb54d713770926806d35e00a2fa0d1b6b2f091587d132e3a0237bfcefeb49d70", - "electron-v27.0.2-mas-x64-dsym-snapshot.zip": "99d603d95c2b6c39e5fdc26596e75823bc82a2b1b2112dbd29f730ca2cd17d9c", - "electron-v27.0.2-mas-x64-dsym.zip": "7fedae3a22ed8ddb4911fb3d6892e17285bfa13a4ba47627b921bc50a2d7b5c6", - "electron-v27.0.2-mas-x64-symbols.zip": "e40e095012a26f9ab4892d32add8a4504816f205187b533f640436aa1e8d65ea", - "electron-v27.0.2-mas-x64.zip": "b75141917c516661b55a6a45f83ae378a3051bfbdf07b7a2fe3a5feceed5ca20", - "electron-v27.0.2-win32-arm64-pdb.zip": "4b9ed27457a8b06ae8e7ee2d660a1211363bd132d8e1a5d756ae1566c7773d37", - "electron-v27.0.2-win32-arm64-symbols.zip": "a5e9b2aba2349dbe341f1f101a0165d4113dfec20eb92fb0b9095dd49b66f3d0", - "electron-v27.0.2-win32-arm64-toolchain-profile.zip": "c9f31ae6408aa6936b5d683eda601773789185890375cd097e61e924d4fed77a", - "electron-v27.0.2-win32-arm64.zip": "9395bb0af3edc9941f62abc0b02a0260d600852bc5b4be0fe96e8d38768c0cb7", - "electron-v27.0.2-win32-ia32-pdb.zip": "befea1ec335ebf4e847bd810b1d11f418f14a6f36f23aac8ea259dcd679468c2", - "electron-v27.0.2-win32-ia32-symbols.zip": "65a354aa5fb1d5eba737f5c5f2ab6f1cf9f66d51c864b3ca37cdde8037c4336d", - "electron-v27.0.2-win32-ia32-toolchain-profile.zip": "c9f31ae6408aa6936b5d683eda601773789185890375cd097e61e924d4fed77a", - "electron-v27.0.2-win32-ia32.zip": "1884eacb4ee6b54e46c391b7c2e57b73f210ff855c1db0c890014649ddd3ffc7", - "electron-v27.0.2-win32-x64-pdb.zip": "6ebfe3179830c5458c4e9e2fead06a599830dc9025e85e331b4105b6449be267", - "electron-v27.0.2-win32-x64-symbols.zip": "c2a19047a893016a64665ceb265ab65fe521de824d600c8ce8788352add3a23d", - "electron-v27.0.2-win32-x64-toolchain-profile.zip": "c9f31ae6408aa6936b5d683eda601773789185890375cd097e61e924d4fed77a", - "electron-v27.0.2-win32-x64.zip": "1545d204937079a1c8fe675062c04351ad45dec37336eec8cbee44acd74d29dc", - "electron.d.ts": "5c050dc1af256c3958d76d038e5e22499c93e9d48e31bd28cb9abb2d3b5b806f", - "ffmpeg-v27.0.2-darwin-arm64.zip": "16f9483ae3dea23ef15c5953447930190bd993bcf20b82df5023588235421b7e", - "ffmpeg-v27.0.2-darwin-x64.zip": "ca7324034465193ebcac15dcc3b028db574220331184c90cd7fc5a5e3f33402c", - "ffmpeg-v27.0.2-linux-arm64.zip": "be517ba93c5b5f36d2e55af148213f4c2fc43177563825601bee6f88dd4f7b05", - "ffmpeg-v27.0.2-linux-armv7l.zip": "926d0da25ffcea3d05a6cbcae15e5d7729d93bc43394ae4439747669d2210e1d", - "ffmpeg-v27.0.2-linux-x64.zip": "6f9c0ef52af14828ad547a80b17f8c63cac51a18b8d5769a2f33e4fa6cccfc7e", - "ffmpeg-v27.0.2-mas-arm64.zip": "5d0b8a430e9471b614167d4922d9827591b846122783f9bd8ee7c4efdddefcf8", - "ffmpeg-v27.0.2-mas-x64.zip": "c08821b6603b1019af84472be587169318311bda99557a63aec349433cc143f3", - "ffmpeg-v27.0.2-win32-arm64.zip": "03f41c1221f99c1b0007984037260e547571a5d5db5de4aca179b880603e24f3", - "ffmpeg-v27.0.2-win32-ia32.zip": "8866ddd7c315e76af1231d5b0e772dc76b24be6052c2400ef4f2a5c856de55a0", - "ffmpeg-v27.0.2-win32-x64.zip": "382f070543878b46a610b9f3ecc5380ad11231559ad59e6fa075e03d8f5836dc", - "hunspell_dictionaries.zip": "909259ef9a97ecc28490755c95c480c56ade9b03a732aa22fffa32dd64e3bac7", - "libcxx-objects-v27.0.2-linux-arm64.zip": "5b05a243b1ba28dc39afe8f38ba8ad8f5275029572ddeb8e66e7807b43e60198", - "libcxx-objects-v27.0.2-linux-armv7l.zip": "6ac7b2f8d28164642772a76606f83c139070e7fc791cebe3aaa4f5f799038d0e", - "libcxx-objects-v27.0.2-linux-x64.zip": "3414038aab538eefe0505ca0cb5ebf7c6f87dc985d0a9f1d3fafacafe1b0680e", - "libcxx_headers.zip": "cb227ed750211f72add262da8ecbdca9a720595cb7190ffbaeac0954d44d83d8", - "libcxxabi_headers.zip": "c7d9304f9312fc683cd83335e469039a5ab9cc1050584b8ce12670cc0990d943", - "mksnapshot-v27.0.2-darwin-arm64.zip": "06a53ac6eb05ade803f2929481dea960d782e4fe8b9a55433aa999f964c08f87", - "mksnapshot-v27.0.2-darwin-x64.zip": "27627bda0dfff589ffdca89a3bf8757ed79d36a8ee366e28816993f7c85eebc7", - "mksnapshot-v27.0.2-linux-arm64-x64.zip": "e9719cc63fcab97d55005953a28f6c73cd84ac4500f41f5f1e0b74c7355ee572", - "mksnapshot-v27.0.2-linux-armv7l-x64.zip": "d52c0f9a48adb797d9d249c415bfd739de735bd46060fdcf0a3eac2adf8442ac", - "mksnapshot-v27.0.2-linux-x64.zip": "e01d180faef1cfbd1655e2894a34c604c296307d9014316b1a4c032b2fe48411", - "mksnapshot-v27.0.2-mas-arm64.zip": "d9f308000566dc2ffffd2b65d09879036f131e7b79ed8a162c3f91f284e0e92d", - "mksnapshot-v27.0.2-mas-x64.zip": "a78406801a1895783e8d881e1066319c54d3201250516f0db13382ea91112a7b", - "mksnapshot-v27.0.2-win32-arm64-x64.zip": "b94b72b333a0f046eeabbab587f9da4eba65032452ef2e5a86eadca9791e6231", - "mksnapshot-v27.0.2-win32-ia32.zip": "b49a9e57f584e6ad9d4a6891d9bcb48dc45422e19c90f065fa7da62c7d21a6fb", - "mksnapshot-v27.0.2-win32-x64.zip": "96e98ea9a426d6cfb2c6d1a0d106f5677e76210d9e661a62c3dd56f47a21e8d9" + "chromedriver-v27.2.1-darwin-arm64.zip": "fa257474711c65fe0f929299fc21a7171a548ef655e393246a48319ee53f702e", + "chromedriver-v27.2.1-darwin-x64.zip": "d3f279d281221ca87510716afda22be95f8ad66641b3d46943885de0ae94b046", + "chromedriver-v27.2.1-linux-arm64.zip": "fc0c512cb87c82b1d5327bb04ef7dfb2046ea884d00896bab89652d607ce1c97", + "chromedriver-v27.2.1-linux-armv7l.zip": "4c33d1a323bc59d776a14b2ebb40229dbf1b8de30d51e5643e6584bd63cd7593", + "chromedriver-v27.2.1-linux-x64.zip": "a60c7fc2f278b7a177eb1ec3dccff6fc9c1c8d120596deb595b544a2b8018a79", + "chromedriver-v27.2.1-mas-arm64.zip": "80bc0e0ce66028436853bb5a625f8a1c6c8456c1a8435070a6e30d0e06b9312b", + "chromedriver-v27.2.1-mas-x64.zip": "67fcfafbc24902d1dff455527115f4453d49308d95010214dda7a1e46a96e6e7", + "chromedriver-v27.2.1-win32-arm64.zip": "1c33c6cadb07c62e7a80ae64de520cb3122cc8496ee73533da67770d0ab1bf5c", + "chromedriver-v27.2.1-win32-ia32.zip": "666042a40a30ab322a66bbcf8552f777c0564bb4a7647122eb7bd260269cd1c3", + "chromedriver-v27.2.1-win32-x64.zip": "af92d72b04760be18ac748c5a0072751b497cff4ebabb4bfeecc23538ea9de8e", + "electron-api.json": "9f626747797f005cfe41076bc905a11ab17ac380a2d7865c3cfba05c63ea6514", + "electron-v27.2.1-darwin-arm64-dsym-snapshot.zip": "a1ea4e720b5ce964bb4aa6f723f0305ec81a0024f8e9fe474fb1b05b79402e51", + "electron-v27.2.1-darwin-arm64-dsym.zip": "60f69390ca803845992dae4aecb0d360c8c3da62c842523f307a8d495bec84e7", + "electron-v27.2.1-darwin-arm64-symbols.zip": "33ed9025a4ac39ec597c6cdcc5f7c425a34aca4e34713732de159685a7884d52", + "electron-v27.2.1-darwin-arm64.zip": "a8d12908b5aad53083e1b257ba8028ea55ac099cab859260c2a8b5ce512597ca", + "electron-v27.2.1-darwin-x64-dsym-snapshot.zip": "68b5e5a021239fc7849986a24dddb54d21f4cc9ffbceb8777b7bfd696c940c50", + "electron-v27.2.1-darwin-x64-dsym.zip": "ed33f31e69925642c3b09b2c318ec66be8877bdfb4984c91ee3b90052fb1bcac", + "electron-v27.2.1-darwin-x64-symbols.zip": "88f7b0fec77ee4e0ae9659cfee4d9cbe3a26b378cc92878236b928254568fb07", + "electron-v27.2.1-darwin-x64.zip": "7ea6d061520afa77483b891bb8623574d87458deb54841f740c51a1adfa88fea", + "electron-v27.2.1-linux-arm64-debug.zip": "e4af2089beecdcdb7625918ce1dfd6b3401b10239c1c0435951a8642ff17568f", + "electron-v27.2.1-linux-arm64-symbols.zip": "c9b009ce848f02fc31c072b546758fbccb39a6ff2779dfea794920c1a83f8f8d", + "electron-v27.2.1-linux-arm64.zip": "32c86c89a4fdc55aac107c8807bf3181fc31cf5c6dc4e0ca00319bb7837ed695", + "electron-v27.2.1-linux-armv7l-debug.zip": "e4af2089beecdcdb7625918ce1dfd6b3401b10239c1c0435951a8642ff17568f", + "electron-v27.2.1-linux-armv7l-symbols.zip": "ceb3f9e7b19f8e1ca0e94858492b1b5eb8bb3c7e91ebde230bdbe463838f2a0a", + "electron-v27.2.1-linux-armv7l.zip": "b4496ae943fa8ee19d418f9f871ce05ad2ffab35b5dfc79052c842478464b5d6", + "electron-v27.2.1-linux-x64-debug.zip": "35bdcb99f7f63a6892dde033046b4eb315ca71a459124461b43f9ffcf9cae579", + "electron-v27.2.1-linux-x64-symbols.zip": "5271540e93fbdb1f69f21a37a3deb51886afaf7e1b9200ed0cbb6dc91f83854c", + "electron-v27.2.1-linux-x64.zip": "b4be96cd85797d23afd422dc7cc6bf321234001810d08b52e32b055a7e8afbd7", + "electron-v27.2.1-mas-arm64-dsym-snapshot.zip": "dc7feb71d7a65bde3ddbcc43e514940a070af9fd8b385f819ac012b9d694ce64", + "electron-v27.2.1-mas-arm64-dsym.zip": "98317e6af5ddb3db98511958a9ad46a54de00c897b67c6d1e3dc3baaf3e3878a", + "electron-v27.2.1-mas-arm64-symbols.zip": "91a78763ac1959c3b4865902e378830c7304917dc20877db7c12283c1d34e510", + "electron-v27.2.1-mas-arm64.zip": "01414a8e5ef3c1f7efb888d32bdfc85ba0ea8b42d4e8093ca7cf0e7a8a728415", + "electron-v27.2.1-mas-x64-dsym-snapshot.zip": "e082d37c20b1af792307fa2db9ff576e4345256d26dd0e0f5f2d807a45673991", + "electron-v27.2.1-mas-x64-dsym.zip": "3a93a95bf05ec4d01268a64db2d58a07bff90463f3059a3dd4a30968297aab36", + "electron-v27.2.1-mas-x64-symbols.zip": "138ac2d1fea73d0f677fa5218a0ba2d5422d22cb6090d865c7ddce99383aa415", + "electron-v27.2.1-mas-x64.zip": "87457c8938858570b20a122c1cdb23c0a41374b7010253626d49e9b6b127a50a", + "electron-v27.2.1-win32-arm64-pdb.zip": "ce3638d29dfb46fc5b375ead5c0bbb98b50eec2c9e42c5b4a0a948a60ef25439", + "electron-v27.2.1-win32-arm64-symbols.zip": "f24636b71937e9b4ca46d046e6131a3acb87edca93be0b26d500d93c6a78abeb", + "electron-v27.2.1-win32-arm64-toolchain-profile.zip": "c9f31ae6408aa6936b5d683eda601773789185890375cd097e61e924d4fed77a", + "electron-v27.2.1-win32-arm64.zip": "5b4fd051b04de97ef14a711533ecd44c99d31ce6fc83f2593c4e041e9550eeb1", + "electron-v27.2.1-win32-ia32-pdb.zip": "c8cd49e0ba8a87666a50d358dc3a2810d0d5f2c13e345c48febf488aed513856", + "electron-v27.2.1-win32-ia32-symbols.zip": "7d28badd01d7f357f0cbbff12df55b1816f2dd08bcceea00fa03b027d7c8bb9b", + "electron-v27.2.1-win32-ia32-toolchain-profile.zip": "c9f31ae6408aa6936b5d683eda601773789185890375cd097e61e924d4fed77a", + "electron-v27.2.1-win32-ia32.zip": "508f29dd2d07c19b1ae6d7546772103230d601d44f33443a79a3b42a5fa9d293", + "electron-v27.2.1-win32-x64-pdb.zip": "1b40186cd080f9d45bb03b1d7f6e4f3c4fc6332bbbe36453f99bd8643545f384", + "electron-v27.2.1-win32-x64-symbols.zip": "e2bc044c06a463d29699b5a0bedecb68714cacfdb5661a70db4047cb211a8246", + "electron-v27.2.1-win32-x64-toolchain-profile.zip": "c9f31ae6408aa6936b5d683eda601773789185890375cd097e61e924d4fed77a", + "electron-v27.2.1-win32-x64.zip": "4d0810c1bc9985e7e471efb06380bd190b5d07f46ef1938c1d3ee496e0cdcccf", + "electron.d.ts": "f48477c175fe9bc34c1541cb75bd9d3eda2c540a799e2f3b715adcdd626c3dc1", + "ffmpeg-v27.2.1-darwin-arm64.zip": "c951898cbf3c65013a21b5b4581d24e38f568183893f785f7d3bab0aedf49d6f", + "ffmpeg-v27.2.1-darwin-x64.zip": "5306f41915ced8307c44858a91250a228819304c82dfdd80c9f584fe092436ad", + "ffmpeg-v27.2.1-linux-arm64.zip": "be517ba93c5b5f36d2e55af148213f4c2fc43177563825601bee6f88dd4f7b05", + "ffmpeg-v27.2.1-linux-armv7l.zip": "926d0da25ffcea3d05a6cbcae15e5d7729d93bc43394ae4439747669d2210e1d", + "ffmpeg-v27.2.1-linux-x64.zip": "6f9c0ef52af14828ad547a80b17f8c63cac51a18b8d5769a2f33e4fa6cccfc7e", + "ffmpeg-v27.2.1-mas-arm64.zip": "bb0036c363cdc2558d9feec90cb896c66133400b499b14fa099421e1d0117bc6", + "ffmpeg-v27.2.1-mas-x64.zip": "33203048fa78450cac7ae1988b708ad51d1a49933d212b505fcf272da201e6d6", + "ffmpeg-v27.2.1-win32-arm64.zip": "954870aaa5ffa56bbe06b04308bd6a4fc937b82cc11d8780542e4a9f25790b37", + "ffmpeg-v27.2.1-win32-ia32.zip": "a46eab4db71ff41a0a1056b8777ec2d01f83f4b7a85687514562045f1f2b4820", + "ffmpeg-v27.2.1-win32-x64.zip": "74841b03157199f2439d2182cf4da66dfdc4014d4e2d76a043055b4dc5d33a9b", + "hunspell_dictionaries.zip": "7f15f0f64083f093a98f9dc002d6256a3a56cc7d720cd861d820a7223d46be83", + "libcxx-objects-v27.2.1-linux-arm64.zip": "6cc8cbde27c4e0ed7689f87a4c444aa50a1bee9bfec35289e26e9854864c1d69", + "libcxx-objects-v27.2.1-linux-armv7l.zip": "ce935631fa896af9d34e8ed01a431c7f4b289d9cc872cede5bfd9e4663ac4d6e", + "libcxx-objects-v27.2.1-linux-x64.zip": "979a65ea5cd9c8c44e6d9760c2cb79bec0914396b68be9270b52d09c1b1a72ee", + "libcxx_headers.zip": "86f961adc7015bbf8762453bc5148d381ff7c7c4580ceed9189c93fd01139fcf", + "libcxxabi_headers.zip": "acb2c0d967dc14fe63784c79c58648193348252efb25a691b61d3c19142d67e9", + "mksnapshot-v27.2.1-darwin-arm64.zip": "07bc91f769fb7320bfb331d7e40d963e787960dec0f404b165c7df9ef49f531b", + "mksnapshot-v27.2.1-darwin-x64.zip": "c9127c412b6f10a706c406865a72119abf34692efd19e58231dec631af91f3c5", + "mksnapshot-v27.2.1-linux-arm64-x64.zip": "d52e6deec09571b4618dab3ee1c615f2996d3d52e97f0df4c8a7ecddc443d847", + "mksnapshot-v27.2.1-linux-armv7l-x64.zip": "23aa985b9d4431d9a92eefe8f635bcd54a50a1b02d008d9883dce1ca90670d9b", + "mksnapshot-v27.2.1-linux-x64.zip": "9aac8616fcfaeda69945742f4fe99309cabfcc355f5a6edae5ac6bdb5de78552", + "mksnapshot-v27.2.1-mas-arm64.zip": "f53004a849ea0d5e19569f48561fc79b95015c3395405ef28800fa34e5a6b37c", + "mksnapshot-v27.2.1-mas-x64.zip": "8b7458854d6e3339220623a53927eeaac2d97e02133172f2615ee976e32a1337", + "mksnapshot-v27.2.1-win32-arm64-x64.zip": "5314c938447f1f24aee9007719d8d65ef4f68a3fac0e103897bc53f26685ed6a", + "mksnapshot-v27.2.1-win32-ia32.zip": "fbae6d4323d20af0a7c5d5c044e9927b6f8396e0d9c8a45c1f6945ce32250715", + "mksnapshot-v27.2.1-win32-x64.zip": "08556f224fcb5dee0928dce8beda23f058258cc85e85da3fe651bf0e84469f5d" } \ No newline at end of file diff --git a/node_modules/electron/electron.d.ts b/node_modules/electron/electron.d.ts index a101b71..93e8eb5 100644 --- a/node_modules/electron/electron.d.ts +++ b/node_modules/electron/electron.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Electron 27.0.2 +// Type definitions for Electron 27.2.1 // Project: http://electronjs.org/ // Definitions by: The Electron Team // Definitions: https://github.com/electron/typescript-definitions @@ -7496,9 +7496,9 @@ declare namespace Electron { * module gets emitted and can be called only once. * * Registers the `scheme` as standard, secure, bypasses content security policy for - * resources, allows registering ServiceWorker, supports fetch API, and streaming - * video/audio. Specify a privilege with the value of `true` to enable the - * capability. + * resources, allows registering ServiceWorker, supports fetch API, streaming + * video/audio, and V8 code cache. Specify a privilege with the value of `true` to + * enable the capability. * * An example of registering a privileged scheme, that bypasses Content Security * Policy: @@ -8629,7 +8629,7 @@ declare namespace Electron { * intercepted request to the built-in handler. webRequest handlers will still be * triggered when bypassing custom protocols. */ - fetch(input: (string) | (GlobalRequest), init?: RequestInit): Promise; + fetch(input: (string) | (GlobalRequest), init?: RequestInit & { bypassCustomProtocolHandlers?: boolean }): Promise; /** * Writes any unwritten DOMStorage data to disk. */ @@ -8784,6 +8784,10 @@ declare namespace Electron { * all operations related to code cache will fail silently inside the runtime. By * default, the directory will be `Code Cache` under the respective user data * folder. + * + * Note that by default code cache is only enabled for http(s) URLs, to enable code + * cache for custom protocols, `codeCache: true` and `standard: true` must be + * specified when registering the protocol. */ setCodeCachePath(path: string): void; /** @@ -8834,7 +8838,7 @@ declare namespace Electron { * `setPermissionCheckHandler` to get complete permission handling. Most web APIs * do a permission check and then make a permission request if the check is denied. */ - setPermissionRequestHandler(handler: ((webContents: WebContents, permission: 'clipboard-read' | 'clipboard-sanitized-write' | 'display-capture' | 'fullscreen' | 'geolocation' | 'idle-detection' | 'media' | 'mediaKeySystem' | 'midi' | 'midiSysex' | 'notifications' | 'pointerLock' | 'openExternal' | 'window-management' | 'unknown', callback: (permissionGranted: boolean) => void, details: PermissionRequestHandlerHandlerDetails) => void) | (null)): void; + setPermissionRequestHandler(handler: ((webContents: WebContents, permission: 'clipboard-read' | 'clipboard-sanitized-write' | 'display-capture' | 'fullscreen' | 'geolocation' | 'idle-detection' | 'media' | 'mediaKeySystem' | 'midi' | 'midiSysex' | 'notifications' | 'pointerLock' | 'keyboardLock' | 'openExternal' | 'window-management' | 'unknown', callback: (permissionGranted: boolean) => void, details: PermissionRequestHandlerHandlerDetails) => void) | (null)): void; /** * Adds scripts that will be executed on ALL web contents that are associated with * this session just before normal `preload` scripts run. @@ -15358,7 +15362,7 @@ declare namespace Electron { stdio?: (Array<'pipe' | 'ignore' | 'inherit'>) | (string); /** * Name of the process that will appear in `name` property of `child-process-gone` - * event of `app`. Default is `node.mojom.NodeService`. + * event of `app`. Default is `Node Utility Process`. */ serviceName?: string; /** @@ -15455,17 +15459,17 @@ declare namespace Electron { } interface HidDeviceAddedDetails { - device: HIDDevice[]; + device: HIDDevice; frame: WebFrameMain; } interface HidDeviceRemovedDetails { - device: HIDDevice[]; + device: HIDDevice; frame: WebFrameMain; } interface HidDeviceRevokedDetails { - device: HIDDevice[]; + device: HIDDevice; /** * The origin that the device has been revoked from. */ @@ -16624,6 +16628,11 @@ declare namespace Electron { * Default false. */ stream?: boolean; + /** + * Enable V8 code cache for the scheme, only works when `standard` is also set to + * true. Default false. + */ + codeCache?: boolean; } interface ProgressBarOptions { diff --git a/node_modules/electron/node_modules/@types/node/assert.d.ts b/node_modules/electron/node_modules/@types/node/assert.d.ts index 6cf6a82..e4a8a78 100644 --- a/node_modules/electron/node_modules/@types/node/assert.d.ts +++ b/node_modules/electron/node_modules/@types/node/assert.d.ts @@ -31,7 +31,7 @@ declare module "assert" { /** The `operator` property on the error instance. */ operator?: string | undefined; /** If provided, the generated stack trace omits frames before this function. */ - // tslint:disable-next-line:ban-types + // eslint-disable-next-line @typescript-eslint/ban-types stackStartFn?: Function | undefined; }); } @@ -217,7 +217,7 @@ declare module "assert" { expected: unknown, message?: string | Error, operator?: string, - // tslint:disable-next-line:ban-types + // eslint-disable-next-line @typescript-eslint/ban-types stackStartFn?: Function, ): never; /** diff --git a/node_modules/electron/node_modules/@types/node/buffer.d.ts b/node_modules/electron/node_modules/@types/node/buffer.d.ts index 5466efb..cfc1f39 100644 --- a/node_modules/electron/node_modules/@types/node/buffer.d.ts +++ b/node_modules/electron/node_modules/@types/node/buffer.d.ts @@ -265,7 +265,7 @@ declare module "buffer" { * @param array The octets to store. * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead. */ - new(array: ReadonlyArray): Buffer; + new(array: readonly any[]): Buffer; /** * Copies the passed {buffer} data onto a new {Buffer} instance. * @@ -299,8 +299,8 @@ declare module "buffer" { * Creates a new Buffer using the passed {data} * @param data data to create a new Buffer */ - from(data: Uint8Array | ReadonlyArray): Buffer; - from(data: WithImplicitCoercion | string>): Buffer; + from(data: Uint8Array | readonly number[]): Buffer; + from(data: WithImplicitCoercion): Buffer; /** * Creates a new Buffer containing the given JavaScript string {str}. * If provided, the {encoding} parameter identifies the character encoding. @@ -428,7 +428,7 @@ declare module "buffer" { * @param list List of `Buffer` or {@link Uint8Array} instances to concatenate. * @param totalLength Total length of the `Buffer` instances in `list` when concatenated. */ - concat(list: ReadonlyArray, totalLength?: number): Buffer; + concat(list: readonly Uint8Array[], totalLength?: number): Buffer; /** * Copies the underlying memory of `view` into a new `Buffer`. * @since v18.16.0 diff --git a/node_modules/electron/node_modules/@types/node/child_process.d.ts b/node_modules/electron/node_modules/@types/node/child_process.d.ts index be7e656..6c7a2c1 100644 --- a/node_modules/electron/node_modules/@types/node/child_process.d.ts +++ b/node_modules/electron/node_modules/@types/node/child_process.d.ts @@ -837,50 +837,50 @@ declare module "child_process" { // overloads of spawn with 'args' function spawn( command: string, - args?: ReadonlyArray, + args?: readonly string[], options?: SpawnOptionsWithoutStdio, ): ChildProcessWithoutNullStreams; function spawn( command: string, - args: ReadonlyArray, + args: readonly string[], options: SpawnOptionsWithStdioTuple, ): ChildProcessByStdio; function spawn( command: string, - args: ReadonlyArray, + args: readonly string[], options: SpawnOptionsWithStdioTuple, ): ChildProcessByStdio; function spawn( command: string, - args: ReadonlyArray, + args: readonly string[], options: SpawnOptionsWithStdioTuple, ): ChildProcessByStdio; function spawn( command: string, - args: ReadonlyArray, + args: readonly string[], options: SpawnOptionsWithStdioTuple, ): ChildProcessByStdio; function spawn( command: string, - args: ReadonlyArray, + args: readonly string[], options: SpawnOptionsWithStdioTuple, ): ChildProcessByStdio; function spawn( command: string, - args: ReadonlyArray, + args: readonly string[], options: SpawnOptionsWithStdioTuple, ): ChildProcessByStdio; function spawn( command: string, - args: ReadonlyArray, + args: readonly string[], options: SpawnOptionsWithStdioTuple, ): ChildProcessByStdio; function spawn( command: string, - args: ReadonlyArray, + args: readonly string[], options: SpawnOptionsWithStdioTuple, ): ChildProcessByStdio; - function spawn(command: string, args: ReadonlyArray, options: SpawnOptions): ChildProcess; + function spawn(command: string, args: readonly string[], options: SpawnOptions): ChildProcess; interface ExecOptions extends CommonOptions { shell?: string | undefined; signal?: AbortSignal | undefined; @@ -1154,10 +1154,10 @@ declare module "child_process" { file: string, options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null, ): ChildProcess; - function execFile(file: string, args?: ReadonlyArray | null): ChildProcess; + function execFile(file: string, args?: readonly string[] | null): ChildProcess; function execFile( file: string, - args: ReadonlyArray | undefined | null, + args: readonly string[] | undefined | null, options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null, ): ChildProcess; // no `options` definitely means stdout/stderr are `string`. @@ -1167,7 +1167,7 @@ declare module "child_process" { ): ChildProcess; function execFile( file: string, - args: ReadonlyArray | undefined | null, + args: readonly string[] | undefined | null, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void, ): ChildProcess; // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`. @@ -1178,7 +1178,7 @@ declare module "child_process" { ): ChildProcess; function execFile( file: string, - args: ReadonlyArray | undefined | null, + args: readonly string[] | undefined | null, options: ExecFileOptionsWithBufferEncoding, callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void, ): ChildProcess; @@ -1190,7 +1190,7 @@ declare module "child_process" { ): ChildProcess; function execFile( file: string, - args: ReadonlyArray | undefined | null, + args: readonly string[] | undefined | null, options: ExecFileOptionsWithStringEncoding, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void, ): ChildProcess; @@ -1203,7 +1203,7 @@ declare module "child_process" { ): ChildProcess; function execFile( file: string, - args: ReadonlyArray | undefined | null, + args: readonly string[] | undefined | null, options: ExecFileOptionsWithOtherEncoding, callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void, ): ChildProcess; @@ -1215,7 +1215,7 @@ declare module "child_process" { ): ChildProcess; function execFile( file: string, - args: ReadonlyArray | undefined | null, + args: readonly string[] | undefined | null, options: ExecFileOptions, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void, ): ChildProcess; @@ -1230,7 +1230,7 @@ declare module "child_process" { ): ChildProcess; function execFile( file: string, - args: ReadonlyArray | undefined | null, + args: readonly string[] | undefined | null, options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null, callback: | ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void) @@ -1244,7 +1244,7 @@ declare module "child_process" { }>; function __promisify__( file: string, - args: ReadonlyArray | undefined | null, + args: readonly string[] | undefined | null, ): PromiseWithChild<{ stdout: string; stderr: string; @@ -1258,7 +1258,7 @@ declare module "child_process" { }>; function __promisify__( file: string, - args: ReadonlyArray | undefined | null, + args: readonly string[] | undefined | null, options: ExecFileOptionsWithBufferEncoding, ): PromiseWithChild<{ stdout: Buffer; @@ -1273,7 +1273,7 @@ declare module "child_process" { }>; function __promisify__( file: string, - args: ReadonlyArray | undefined | null, + args: readonly string[] | undefined | null, options: ExecFileOptionsWithStringEncoding, ): PromiseWithChild<{ stdout: string; @@ -1288,7 +1288,7 @@ declare module "child_process" { }>; function __promisify__( file: string, - args: ReadonlyArray | undefined | null, + args: readonly string[] | undefined | null, options: ExecFileOptionsWithOtherEncoding, ): PromiseWithChild<{ stdout: string | Buffer; @@ -1303,7 +1303,7 @@ declare module "child_process" { }>; function __promisify__( file: string, - args: ReadonlyArray | undefined | null, + args: readonly string[] | undefined | null, options: ExecFileOptions, ): PromiseWithChild<{ stdout: string; @@ -1318,7 +1318,7 @@ declare module "child_process" { }>; function __promisify__( file: string, - args: ReadonlyArray | undefined | null, + args: readonly string[] | undefined | null, options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null, ): PromiseWithChild<{ stdout: string | Buffer; @@ -1392,7 +1392,7 @@ declare module "child_process" { * @param args List of string arguments. */ function fork(modulePath: string, options?: ForkOptions): ChildProcess; - function fork(modulePath: string, args?: ReadonlyArray, options?: ForkOptions): ChildProcess; + function fork(modulePath: string, args?: readonly string[], options?: ForkOptions): ChildProcess; interface SpawnSyncOptions extends CommonSpawnOptions { input?: string | NodeJS.ArrayBufferView | undefined; maxBuffer?: number | undefined; @@ -1432,20 +1432,20 @@ declare module "child_process" { function spawnSync(command: string, options: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns; function spawnSync(command: string, options: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns; function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns; - function spawnSync(command: string, args: ReadonlyArray): SpawnSyncReturns; + function spawnSync(command: string, args: readonly string[]): SpawnSyncReturns; function spawnSync( command: string, - args: ReadonlyArray, + args: readonly string[], options: SpawnSyncOptionsWithStringEncoding, ): SpawnSyncReturns; function spawnSync( command: string, - args: ReadonlyArray, + args: readonly string[], options: SpawnSyncOptionsWithBufferEncoding, ): SpawnSyncReturns; function spawnSync( command: string, - args?: ReadonlyArray, + args?: readonly string[], options?: SpawnSyncOptions, ): SpawnSyncReturns; interface CommonExecOptions extends CommonOptions { @@ -1526,18 +1526,18 @@ declare module "child_process" { function execFileSync(file: string, options: ExecFileSyncOptionsWithStringEncoding): string; function execFileSync(file: string, options: ExecFileSyncOptionsWithBufferEncoding): Buffer; function execFileSync(file: string, options?: ExecFileSyncOptions): string | Buffer; - function execFileSync(file: string, args: ReadonlyArray): Buffer; + function execFileSync(file: string, args: readonly string[]): Buffer; function execFileSync( file: string, - args: ReadonlyArray, + args: readonly string[], options: ExecFileSyncOptionsWithStringEncoding, ): string; function execFileSync( file: string, - args: ReadonlyArray, + args: readonly string[], options: ExecFileSyncOptionsWithBufferEncoding, ): Buffer; - function execFileSync(file: string, args?: ReadonlyArray, options?: ExecFileSyncOptions): string | Buffer; + function execFileSync(file: string, args?: readonly string[], options?: ExecFileSyncOptions): string | Buffer; } declare module "node:child_process" { export * from "child_process"; diff --git a/node_modules/electron/node_modules/@types/node/console.d.ts b/node_modules/electron/node_modules/@types/node/console.d.ts index 7668d1c..c627daf 100644 --- a/node_modules/electron/node_modules/@types/node/console.d.ts +++ b/node_modules/electron/node_modules/@types/node/console.d.ts @@ -250,7 +250,7 @@ declare module "node:console" { * @since v10.0.0 * @param properties Alternate properties for constructing the table. */ - table(tabularData: any, properties?: ReadonlyArray): void; + table(tabularData: any, properties?: readonly string[]): void; /** * Starts a timer that can be used to compute the duration of an operation. Timers * are identified by a unique `label`. Use the same `label` when calling {@link timeEnd} to stop the timer and output the elapsed time in diff --git a/node_modules/electron/node_modules/@types/node/crypto.d.ts b/node_modules/electron/node_modules/@types/node/crypto.d.ts index af9ec03..a2cc7b1 100644 --- a/node_modules/electron/node_modules/@types/node/crypto.d.ts +++ b/node_modules/electron/node_modules/@types/node/crypto.d.ts @@ -655,6 +655,12 @@ declare module "crypto" { export(options: KeyExportOptions<"pem">): string | Buffer; export(options?: KeyExportOptions<"der">): Buffer; export(options?: JwkKeyExportOptions): JsonWebKey; + /** + * Returns `true` or `false` depending on whether the keys have exactly the same type, value, and parameters. + * This method is not [constant time](https://en.wikipedia.org/wiki/Timing_attack). + * @since v16.15.0 + */ + equals(otherKeyObject: KeyObject): boolean; /** * For secret keys, this property represents the size of the key in bytes. This * property is `undefined` for asymmetric keys. @@ -2493,6 +2499,10 @@ declare module "crypto" { * Name of the curve to use */ namedCurve: string; + /** + * Must be `'named'` or `'explicit'`. Default: `'named'`. + */ + paramEncoding?: "explicit" | "named" | undefined; } interface RSAKeyPairKeyObjectOptions { /** @@ -2603,11 +2613,7 @@ declare module "crypto" { type: "pkcs8"; }; } - interface ECKeyPairOptions { - /** - * Name of the curve to use. - */ - namedCurve: string; + interface ECKeyPairOptions extends ECKeyPairKeyObjectOptions { publicKeyEncoding: { type: "pkcs1" | "spki"; format: PubF; @@ -4203,7 +4209,7 @@ declare module "crypto" { | HkdfParams | Pbkdf2Params, extractable: boolean, - keyUsages: ReadonlyArray, + keyUsages: readonly KeyUsage[], ): Promise; /** * Using the method identified by `algorithm`, `subtle.digest()` attempts to generate a digest of `data`. @@ -4283,12 +4289,12 @@ declare module "crypto" { generateKey( algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, - keyUsages: ReadonlyArray, + keyUsages: readonly KeyUsage[], ): Promise; generateKey( algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, - keyUsages: ReadonlyArray, + keyUsages: readonly KeyUsage[], ): Promise; generateKey( algorithm: AlgorithmIdentifier, @@ -4315,7 +4321,7 @@ declare module "crypto" { | HmacImportParams | AesKeyAlgorithm, extractable: boolean, - keyUsages: ReadonlyArray, + keyUsages: readonly KeyUsage[], ): Promise; importKey( format: Exclude, diff --git a/node_modules/electron/node_modules/@types/node/dgram.d.ts b/node_modules/electron/node_modules/@types/node/dgram.d.ts index b1c674d..25a4f65 100644 --- a/node_modules/electron/node_modules/@types/node/dgram.d.ts +++ b/node_modules/electron/node_modules/@types/node/dgram.d.ts @@ -227,6 +227,16 @@ declare module "dgram" { * @return the `SO_SNDBUF` socket send buffer size in bytes. */ getSendBufferSize(): number; + /** + * @since v18.8.0 + * @return the number of bytes queued for sending. + */ + getSendQueueSize(): number; + /** + * @since v18.8.0 + * @return the number of send requests currently in the queue awaiting to be processed. + */ + getSendQueueCount(): number; /** * By default, binding a socket will cause it to block the Node.js process from * exiting as long as the socket is open. The `socket.unref()` method can be used @@ -342,18 +352,18 @@ declare module "dgram" { * @param callback Called when the message has been sent. */ send( - msg: string | Uint8Array | ReadonlyArray, + msg: string | Uint8Array | readonly any[], port?: number, address?: string, callback?: (error: Error | null, bytes: number) => void, ): void; send( - msg: string | Uint8Array | ReadonlyArray, + msg: string | Uint8Array | readonly any[], port?: number, callback?: (error: Error | null, bytes: number) => void, ): void; send( - msg: string | Uint8Array | ReadonlyArray, + msg: string | Uint8Array | readonly any[], callback?: (error: Error | null, bytes: number) => void, ): void; send( diff --git a/node_modules/electron/node_modules/@types/node/dns.d.ts b/node_modules/electron/node_modules/@types/node/dns.d.ts index 0e4e876..104dd76 100644 --- a/node_modules/electron/node_modules/@types/node/dns.d.ts +++ b/node_modules/electron/node_modules/@types/node/dns.d.ts @@ -661,7 +661,7 @@ declare module "dns" { * @since v0.11.3 * @param servers array of `RFC 5952` formatted addresses */ - export function setServers(servers: ReadonlyArray): void; + export function setServers(servers: readonly string[]): void; /** * Returns an array of IP address strings, formatted according to [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6), * that are currently configured for DNS resolution. A string will include a port diff --git a/node_modules/electron/node_modules/@types/node/dns/promises.d.ts b/node_modules/electron/node_modules/@types/node/dns/promises.d.ts index 0866e18..282ec72 100644 --- a/node_modules/electron/node_modules/@types/node/dns/promises.d.ts +++ b/node_modules/electron/node_modules/@types/node/dns/promises.d.ts @@ -307,6 +307,14 @@ declare module "dns/promises" { * @since v10.6.0 */ function reverse(ip: string): Promise; + /** + * Get the default value for `verbatim` in {@link lookup} and `dnsPromises.lookup()`. The value could be: + * + * * `ipv4first`: for `verbatim` defaulting to `false`. + * * `verbatim`: for `verbatim` defaulting to `true`. + * @since v18.17.0 + */ + function getDefaultResultOrder(): "ipv4first" | "verbatim"; /** * Sets the IP address and port of servers to be used when performing DNS * resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted @@ -333,7 +341,7 @@ declare module "dns/promises" { * @since v10.6.0 * @param servers array of `RFC 5952` formatted addresses */ - function setServers(servers: ReadonlyArray): void; + function setServers(servers: readonly string[]): void; /** * Set the default value of `verbatim` in `dns.lookup()` and `dnsPromises.lookup()`. The value could be: * diff --git a/node_modules/electron/node_modules/@types/node/fs.d.ts b/node_modules/electron/node_modules/@types/node/fs.d.ts index 6acd33b..1d7be30 100644 --- a/node_modules/electron/node_modules/@types/node/fs.d.ts +++ b/node_modules/electron/node_modules/@types/node/fs.d.ts @@ -3991,12 +3991,12 @@ declare module "fs" { */ export function writev( fd: number, - buffers: ReadonlyArray, + buffers: readonly NodeJS.ArrayBufferView[], cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void, ): void; export function writev( fd: number, - buffers: ReadonlyArray, + buffers: readonly NodeJS.ArrayBufferView[], position: number, cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void, ): void; @@ -4007,7 +4007,7 @@ declare module "fs" { export namespace writev { function __promisify__( fd: number, - buffers: ReadonlyArray, + buffers: readonly NodeJS.ArrayBufferView[], position?: number, ): Promise; } @@ -4017,7 +4017,7 @@ declare module "fs" { * @since v12.9.0 * @return The number of bytes written. */ - export function writevSync(fd: number, buffers: ReadonlyArray, position?: number): number; + export function writevSync(fd: number, buffers: readonly NodeJS.ArrayBufferView[], position?: number): number; /** * Read from a file specified by `fd` and write to an array of `ArrayBufferView`s * using `readv()`. @@ -4034,12 +4034,12 @@ declare module "fs" { */ export function readv( fd: number, - buffers: ReadonlyArray, + buffers: readonly NodeJS.ArrayBufferView[], cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void, ): void; export function readv( fd: number, - buffers: ReadonlyArray, + buffers: readonly NodeJS.ArrayBufferView[], position: number, cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void, ): void; @@ -4050,7 +4050,7 @@ declare module "fs" { export namespace readv { function __promisify__( fd: number, - buffers: ReadonlyArray, + buffers: readonly NodeJS.ArrayBufferView[], position?: number, ): Promise; } @@ -4060,7 +4060,7 @@ declare module "fs" { * @since v13.13.0, v12.17.0 * @return The number of bytes read. */ - export function readvSync(fd: number, buffers: ReadonlyArray, position?: number): number; + export function readvSync(fd: number, buffers: readonly NodeJS.ArrayBufferView[], position?: number): number; export interface OpenDirOptions { encoding?: BufferEncoding | undefined; /** diff --git a/node_modules/electron/node_modules/@types/node/fs/promises.d.ts b/node_modules/electron/node_modules/@types/node/fs/promises.d.ts index 253f374..7e55f89 100644 --- a/node_modules/electron/node_modules/@types/node/fs/promises.d.ts +++ b/node_modules/electron/node_modules/@types/node/fs/promises.d.ts @@ -442,14 +442,14 @@ declare module "fs/promises" { * @param position The offset from the beginning of the file where the data from `buffers` should be written. If `position` is not a `number`, the data will be written at the current * position. */ - writev(buffers: ReadonlyArray, position?: number): Promise; + writev(buffers: readonly NodeJS.ArrayBufferView[], position?: number): Promise; /** * Read from a file and write to an array of [ArrayBufferView](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView) s * @since v13.13.0, v12.17.0 * @param position The offset from the beginning of the file where the data should be read from. If `position` is not a `number`, the data will be read from the current position. * @return Fulfills upon success an object containing two properties: */ - readv(buffers: ReadonlyArray, position?: number): Promise; + readv(buffers: readonly NodeJS.ArrayBufferView[], position?: number): Promise; /** * Closes the file handle after waiting for any pending operation on the handle to * complete. diff --git a/node_modules/electron/node_modules/@types/node/globals.d.ts b/node_modules/electron/node_modules/@types/node/globals.d.ts index 64d1a2e..f6c95e9 100644 --- a/node_modules/electron/node_modules/@types/node/globals.d.ts +++ b/node_modules/electron/node_modules/@types/node/globals.d.ts @@ -1,323 +1,377 @@ -// Declare "static" methods in Error -interface ErrorConstructor { - /** Create .stack property on a target object */ - captureStackTrace(targetObject: object, constructorOpt?: Function): void; +export {}; // Make this a module + +// #region Fetch and friends +// Conditional type aliases, used at the end of this file. +// Will either be empty if lib-dom is included, or the undici version otherwise. +type _Request = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Request; +type _Response = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Response; +type _FormData = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").FormData; +type _Headers = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Headers; +type _RequestInit = typeof globalThis extends { onmessage: any } ? {} + : import("undici-types").RequestInit; +type _ResponseInit = typeof globalThis extends { onmessage: any } ? {} + : import("undici-types").ResponseInit; +// #endregion Fetch and friends + +declare global { + // Declare "static" methods in Error + interface ErrorConstructor { + /** Create .stack property on a target object */ + captureStackTrace(targetObject: object, constructorOpt?: Function): void; - /** - * Optional override for formatting stack traces - * - * @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces - */ - prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; - - stackTraceLimit: number; -} - -/*-----------------------------------------------* - * * - * GLOBAL * - * * - ------------------------------------------------*/ - -// For backwards compability -interface NodeRequire extends NodeJS.Require {} -interface RequireResolve extends NodeJS.RequireResolve {} -interface NodeModule extends NodeJS.Module {} - -declare var process: NodeJS.Process; -declare var console: Console; - -declare var __filename: string; -declare var __dirname: string; - -declare var require: NodeRequire; -declare var module: NodeModule; - -// Same as module.exports -declare var exports: any; - -/** - * Only available if `--expose-gc` is passed to the process. - */ -declare var gc: undefined | (() => void); + /** + * Optional override for formatting stack traces + * + * @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces + */ + prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; -// #region borrowed -// from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib -/** A controller object that allows you to abort one or more DOM requests as and when desired. */ -interface AbortController { - /** - * Returns the AbortSignal object associated with this object. - */ + stackTraceLimit: number; + } - readonly signal: AbortSignal; - /** - * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. - */ - abort(reason?: any): void; -} + /*-----------------------------------------------* + * * + * GLOBAL * + * * + ------------------------------------------------*/ -/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */ -interface AbortSignal extends EventTarget { - /** - * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. - */ - readonly aborted: boolean; - readonly reason: any; - onabort: null | ((this: AbortSignal, event: Event) => any); - throwIfAborted(): void; -} + // For backwards compability + interface NodeRequire extends NodeJS.Require {} + interface RequireResolve extends NodeJS.RequireResolve {} + interface NodeModule extends NodeJS.Module {} -declare var AbortController: typeof globalThis extends { onmessage: any; AbortController: infer T } ? T - : { - prototype: AbortController; - new(): AbortController; - }; - -declare var AbortSignal: typeof globalThis extends { onmessage: any; AbortSignal: infer T } ? T - : { - prototype: AbortSignal; - new(): AbortSignal; - abort(reason?: any): AbortSignal; - timeout(milliseconds: number): AbortSignal; - }; -// #endregion borrowed - -// #region Disposable -interface SymbolConstructor { - /** - * A method that is used to release resources held by an object. Called by the semantics of the `using` statement. - */ - readonly dispose: unique symbol; + var process: NodeJS.Process; + var console: Console; - /** - * A method that is used to asynchronously release resources held by an object. Called by the semantics of the `await using` statement. - */ - readonly asyncDispose: unique symbol; -} + var __filename: string; + var __dirname: string; -interface Disposable { - [Symbol.dispose](): void; -} + var require: NodeRequire; + var module: NodeModule; -interface AsyncDisposable { - [Symbol.asyncDispose](): PromiseLike; -} -// #endregion Disposable + // Same as module.exports + var exports: any; -// #region ArrayLike.at() -interface RelativeIndexable { /** - * Takes an integer value and returns the item at that index, - * allowing for positive and negative integers. - * Negative integers count back from the last item in the array. + * Only available if `--expose-gc` is passed to the process. */ - at(index: number): T | undefined; -} -interface String extends RelativeIndexable {} -interface Array extends RelativeIndexable {} -interface ReadonlyArray extends RelativeIndexable {} -interface Int8Array extends RelativeIndexable {} -interface Uint8Array extends RelativeIndexable {} -interface Uint8ClampedArray extends RelativeIndexable {} -interface Int16Array extends RelativeIndexable {} -interface Uint16Array extends RelativeIndexable {} -interface Int32Array extends RelativeIndexable {} -interface Uint32Array extends RelativeIndexable {} -interface Float32Array extends RelativeIndexable {} -interface Float64Array extends RelativeIndexable {} -interface BigInt64Array extends RelativeIndexable {} -interface BigUint64Array extends RelativeIndexable {} -// #endregion ArrayLike.at() end - -/** - * @since v17.0.0 - * - * Creates a deep clone of an object. - */ -declare function structuredClone( - value: T, - transfer?: { transfer: ReadonlyArray }, -): T; - -/*----------------------------------------------* -* * -* GLOBAL INTERFACES * -* * -*-----------------------------------------------*/ -declare namespace NodeJS { - interface CallSite { - /** - * Value of "this" - */ - getThis(): unknown; - - /** - * Type of "this" as a string. - * This is the name of the function stored in the constructor field of - * "this", if available. Otherwise the object's [[Class]] internal - * property. - */ - getTypeName(): string | null; - - /** - * Current function - */ - getFunction(): Function | undefined; - - /** - * Name of the current function, typically its name property. - * If a name property is not available an attempt will be made to try - * to infer a name from the function's context. - */ - getFunctionName(): string | null; + var gc: undefined | (() => void); + // #region borrowed + // from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib + /** A controller object that allows you to abort one or more DOM requests as and when desired. */ + interface AbortController { /** - * Name of the property [of "this" or one of its prototypes] that holds - * the current function + * Returns the AbortSignal object associated with this object. */ - getMethodName(): string | null; + readonly signal: AbortSignal; /** - * Name of the script [if this function was defined in a script] + * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. */ - getFileName(): string | undefined; - - /** - * Current line number [if this function was defined in a script] - */ - getLineNumber(): number | null; - - /** - * Current column number [if this function was defined in a script] - */ - getColumnNumber(): number | null; - - /** - * A call site object representing the location where eval was called - * [if this function was created using a call to eval] - */ - getEvalOrigin(): string | undefined; - - /** - * Is this a toplevel invocation, that is, is "this" the global object? - */ - isToplevel(): boolean; + abort(reason?: any): void; + } + /** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */ + interface AbortSignal extends EventTarget { /** - * Does this call take place in code defined by a call to eval? + * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */ - isEval(): boolean; + readonly aborted: boolean; + readonly reason: any; + onabort: null | ((this: AbortSignal, event: Event) => any); + throwIfAborted(): void; + } + var AbortController: typeof globalThis extends { onmessage: any; AbortController: infer T } ? T + : { + prototype: AbortController; + new(): AbortController; + }; + + var AbortSignal: typeof globalThis extends { onmessage: any; AbortSignal: infer T } ? T + : { + prototype: AbortSignal; + new(): AbortSignal; + abort(reason?: any): AbortSignal; + timeout(milliseconds: number): AbortSignal; + }; + // #endregion borrowed + + // #region Disposable + interface SymbolConstructor { /** - * Is this call in native V8 code? + * A method that is used to release resources held by an object. Called by the semantics of the `using` statement. */ - isNative(): boolean; + readonly dispose: unique symbol; /** - * Is this a constructor call? + * A method that is used to asynchronously release resources held by an object. Called by the semantics of the `await using` statement. */ - isConstructor(): boolean; + readonly asyncDispose: unique symbol; } - interface ErrnoException extends Error { - errno?: number | undefined; - code?: string | undefined; - path?: string | undefined; - syscall?: string | undefined; + interface Disposable { + [Symbol.dispose](): void; } - interface ReadableStream extends EventEmitter { - readable: boolean; - read(size?: number): string | Buffer; - setEncoding(encoding: BufferEncoding): this; - pause(): this; - resume(): this; - isPaused(): boolean; - pipe(destination: T, options?: { end?: boolean | undefined }): T; - unpipe(destination?: WritableStream): this; - unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void; - wrap(oldStream: ReadableStream): this; - [Symbol.asyncIterator](): AsyncIterableIterator; + interface AsyncDisposable { + [Symbol.asyncDispose](): PromiseLike; } + // #endregion Disposable - interface WritableStream extends EventEmitter { - writable: boolean; - write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean; - write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean; - end(cb?: () => void): this; - end(data: string | Uint8Array, cb?: () => void): this; - end(str: string, encoding?: BufferEncoding, cb?: () => void): this; - } - - interface ReadWriteStream extends ReadableStream, WritableStream {} - - interface RefCounted { - ref(): this; - unref(): this; - } - - type TypedArray = - | Uint8Array - | Uint8ClampedArray - | Uint16Array - | Uint32Array - | Int8Array - | Int16Array - | Int32Array - | BigUint64Array - | BigInt64Array - | Float32Array - | Float64Array; - type ArrayBufferView = TypedArray | DataView; - - interface Require { - (id: string): any; - resolve: RequireResolve; - cache: Dict; + // #region ArrayLike.at() + interface RelativeIndexable { /** - * @deprecated + * Takes an integer value and returns the item at that index, + * allowing for positive and negative integers. + * Negative integers count back from the last item in the array. */ - extensions: RequireExtensions; - main: Module | undefined; + at(index: number): T | undefined; } + interface String extends RelativeIndexable {} + interface Array extends RelativeIndexable {} + interface ReadonlyArray extends RelativeIndexable {} + interface Int8Array extends RelativeIndexable {} + interface Uint8Array extends RelativeIndexable {} + interface Uint8ClampedArray extends RelativeIndexable {} + interface Int16Array extends RelativeIndexable {} + interface Uint16Array extends RelativeIndexable {} + interface Int32Array extends RelativeIndexable {} + interface Uint32Array extends RelativeIndexable {} + interface Float32Array extends RelativeIndexable {} + interface Float64Array extends RelativeIndexable {} + interface BigInt64Array extends RelativeIndexable {} + interface BigUint64Array extends RelativeIndexable {} + // #endregion ArrayLike.at() end - interface RequireResolve { - (id: string, options?: { paths?: string[] | undefined }): string; - paths(request: string): string[] | null; - } - - interface RequireExtensions extends Dict<(m: Module, filename: string) => any> { - ".js": (m: Module, filename: string) => any; - ".json": (m: Module, filename: string) => any; - ".node": (m: Module, filename: string) => any; - } - interface Module { - /** - * `true` if the module is running during the Node.js preload - */ - isPreloading: boolean; - exports: any; - require: Require; - id: string; - filename: string; - loaded: boolean; - /** @deprecated since v14.6.0 Please use `require.main` and `module.children` instead. */ - parent: Module | null | undefined; - children: Module[]; - /** - * @since v11.14.0 - * - * The directory name of the module. This is usually the same as the path.dirname() of the module.id. - */ - path: string; - paths: string[]; - } - - interface Dict { - [key: string]: T | undefined; + /** + * @since v17.0.0 + * + * Creates a deep clone of an object. + */ + function structuredClone( + value: T, + transfer?: { transfer: ReadonlyArray }, + ): T; + + /*----------------------------------------------* + * * + * GLOBAL INTERFACES * + * * + *-----------------------------------------------*/ + namespace NodeJS { + interface CallSite { + /** + * Value of "this" + */ + getThis(): unknown; + + /** + * Type of "this" as a string. + * This is the name of the function stored in the constructor field of + * "this", if available. Otherwise the object's [[Class]] internal + * property. + */ + getTypeName(): string | null; + + /** + * Current function + */ + getFunction(): Function | undefined; + + /** + * Name of the current function, typically its name property. + * If a name property is not available an attempt will be made to try + * to infer a name from the function's context. + */ + getFunctionName(): string | null; + + /** + * Name of the property [of "this" or one of its prototypes] that holds + * the current function + */ + getMethodName(): string | null; + + /** + * Name of the script [if this function was defined in a script] + */ + getFileName(): string | undefined; + + /** + * Current line number [if this function was defined in a script] + */ + getLineNumber(): number | null; + + /** + * Current column number [if this function was defined in a script] + */ + getColumnNumber(): number | null; + + /** + * A call site object representing the location where eval was called + * [if this function was created using a call to eval] + */ + getEvalOrigin(): string | undefined; + + /** + * Is this a toplevel invocation, that is, is "this" the global object? + */ + isToplevel(): boolean; + + /** + * Does this call take place in code defined by a call to eval? + */ + isEval(): boolean; + + /** + * Is this call in native V8 code? + */ + isNative(): boolean; + + /** + * Is this a constructor call? + */ + isConstructor(): boolean; + } + + interface ErrnoException extends Error { + errno?: number | undefined; + code?: string | undefined; + path?: string | undefined; + syscall?: string | undefined; + } + + interface ReadableStream extends EventEmitter { + readable: boolean; + read(size?: number): string | Buffer; + setEncoding(encoding: BufferEncoding): this; + pause(): this; + resume(): this; + isPaused(): boolean; + pipe(destination: T, options?: { end?: boolean | undefined }): T; + unpipe(destination?: WritableStream): this; + unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void; + wrap(oldStream: ReadableStream): this; + [Symbol.asyncIterator](): AsyncIterableIterator; + } + + interface WritableStream extends EventEmitter { + writable: boolean; + write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean; + write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean; + end(cb?: () => void): this; + end(data: string | Uint8Array, cb?: () => void): this; + end(str: string, encoding?: BufferEncoding, cb?: () => void): this; + } + + interface ReadWriteStream extends ReadableStream, WritableStream {} + + interface RefCounted { + ref(): this; + unref(): this; + } + + type TypedArray = + | Uint8Array + | Uint8ClampedArray + | Uint16Array + | Uint32Array + | Int8Array + | Int16Array + | Int32Array + | BigUint64Array + | BigInt64Array + | Float32Array + | Float64Array; + type ArrayBufferView = TypedArray | DataView; + + interface Require { + (id: string): any; + resolve: RequireResolve; + cache: Dict; + /** + * @deprecated + */ + extensions: RequireExtensions; + main: Module | undefined; + } + + interface RequireResolve { + (id: string, options?: { paths?: string[] | undefined }): string; + paths(request: string): string[] | null; + } + + interface RequireExtensions extends Dict<(m: Module, filename: string) => any> { + ".js": (m: Module, filename: string) => any; + ".json": (m: Module, filename: string) => any; + ".node": (m: Module, filename: string) => any; + } + interface Module { + /** + * `true` if the module is running during the Node.js preload + */ + isPreloading: boolean; + exports: any; + require: Require; + id: string; + filename: string; + loaded: boolean; + /** @deprecated since v14.6.0 Please use `require.main` and `module.children` instead. */ + parent: Module | null | undefined; + children: Module[]; + /** + * @since v11.14.0 + * + * The directory name of the module. This is usually the same as the path.dirname() of the module.id. + */ + path: string; + paths: string[]; + } + + interface Dict { + [key: string]: T | undefined; + } + + interface ReadOnlyDict { + readonly [key: string]: T | undefined; + } } - interface ReadOnlyDict { - readonly [key: string]: T | undefined; - } + interface RequestInit extends _RequestInit {} + + function fetch( + input: string | URL | Request, + init?: RequestInit, + ): Promise; + + interface Request extends _Request {} + var Request: typeof globalThis extends { + onmessage: any; + Request: infer T; + } ? T + : typeof import("undici-types").Request; + + interface ResponseInit extends _ResponseInit {} + + interface Response extends _Response {} + var Response: typeof globalThis extends { + onmessage: any; + Response: infer T; + } ? T + : typeof import("undici-types").Response; + + interface FormData extends _FormData {} + var FormData: typeof globalThis extends { + onmessage: any; + FormData: infer T; + } ? T + : typeof import("undici-types").FormData; + + interface Headers extends _Headers {} + var Headers: typeof globalThis extends { + onmessage: any; + Headers: infer T; + } ? T + : typeof import("undici-types").Headers; } diff --git a/node_modules/electron/node_modules/@types/node/http.d.ts b/node_modules/electron/node_modules/@types/node/http.d.ts index b1868b9..73fd70a 100644 --- a/node_modules/electron/node_modules/@types/node/http.d.ts +++ b/node_modules/electron/node_modules/@types/node/http.d.ts @@ -584,7 +584,7 @@ declare module "http" { * @param name Header name * @param value Header value */ - setHeader(name: string, value: number | string | ReadonlyArray): this; + setHeader(name: string, value: number | string | readonly string[]): this; /** * Append a single header value for the header object. * @@ -598,7 +598,7 @@ declare module "http" { * @param name Header name * @param value Header value */ - appendHeader(name: string, value: string | ReadonlyArray): this; + appendHeader(name: string, value: string | readonly string[]): this; /** * Gets the value of HTTP header with the given name. If such a name doesn't * exist in message, it will be `undefined`. diff --git a/node_modules/electron/node_modules/@types/node/http2.d.ts b/node_modules/electron/node_modules/@types/node/http2.d.ts index 1898071..03e92ab 100644 --- a/node_modules/electron/node_modules/@types/node/http2.d.ts +++ b/node_modules/electron/node_modules/@types/node/http2.d.ts @@ -55,6 +55,7 @@ declare module "http2" { length: number; } export interface ServerStreamFileResponseOptions { + // eslint-disable-next-line @typescript-eslint/no-invalid-void-type statCheck?(stats: fs.Stats, headers: OutgoingHttpHeaders, statOptions: StatOptions): void | boolean; waitForTrailers?: boolean | undefined; offset?: number | undefined; @@ -850,7 +851,7 @@ declare module "http2" { ): this; addListener( event: "goaway", - listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void, + listener: (errorCode: number, lastStreamID: number, opaqueData?: Buffer) => void, ): this; addListener(event: "localSettings", listener: (settings: Settings) => void): this; addListener(event: "ping", listener: () => void): this; @@ -860,7 +861,7 @@ declare module "http2" { emit(event: "close"): boolean; emit(event: "error", err: Error): boolean; emit(event: "frameError", frameType: number, errorCode: number, streamID: number): boolean; - emit(event: "goaway", errorCode: number, lastStreamID: number, opaqueData: Buffer): boolean; + emit(event: "goaway", errorCode: number, lastStreamID: number, opaqueData?: Buffer): boolean; emit(event: "localSettings", settings: Settings): boolean; emit(event: "ping"): boolean; emit(event: "remoteSettings", settings: Settings): boolean; @@ -869,7 +870,7 @@ declare module "http2" { on(event: "close", listener: () => void): this; on(event: "error", listener: (err: Error) => void): this; on(event: "frameError", listener: (frameType: number, errorCode: number, streamID: number) => void): this; - on(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void): this; + on(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData?: Buffer) => void): this; on(event: "localSettings", listener: (settings: Settings) => void): this; on(event: "ping", listener: () => void): this; on(event: "remoteSettings", listener: (settings: Settings) => void): this; @@ -878,7 +879,7 @@ declare module "http2" { once(event: "close", listener: () => void): this; once(event: "error", listener: (err: Error) => void): this; once(event: "frameError", listener: (frameType: number, errorCode: number, streamID: number) => void): this; - once(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void): this; + once(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData?: Buffer) => void): this; once(event: "localSettings", listener: (settings: Settings) => void): this; once(event: "ping", listener: () => void): this; once(event: "remoteSettings", listener: (settings: Settings) => void): this; @@ -892,7 +893,7 @@ declare module "http2" { ): this; prependListener( event: "goaway", - listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void, + listener: (errorCode: number, lastStreamID: number, opaqueData?: Buffer) => void, ): this; prependListener(event: "localSettings", listener: (settings: Settings) => void): this; prependListener(event: "ping", listener: () => void): this; @@ -907,7 +908,7 @@ declare module "http2" { ): this; prependOnceListener( event: "goaway", - listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void, + listener: (errorCode: number, lastStreamID: number, opaqueData?: Buffer) => void, ): this; prependOnceListener(event: "localSettings", listener: (settings: Settings) => void): this; prependOnceListener(event: "ping", listener: () => void): this; @@ -978,7 +979,7 @@ declare module "http2" { ): this; addListener(event: string | symbol, listener: (...args: any[]) => void): this; emit(event: "altsvc", alt: string, origin: string, stream: number): boolean; - emit(event: "origin", origins: ReadonlyArray): boolean; + emit(event: "origin", origins: readonly string[]): boolean; emit(event: "connect", session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket): boolean; emit( event: "stream", @@ -1416,7 +1417,7 @@ declare module "http2" { stream: ServerHttp2Stream, headers: IncomingHttpHeaders, options: stream.ReadableOptions, - rawHeaders: ReadonlyArray, + rawHeaders: readonly string[], ); /** * The `request.aborted` property will be `true` if the request has @@ -1857,7 +1858,7 @@ declare module "http2" { * ``` * @since v8.4.0 */ - setHeader(name: string, value: number | string | ReadonlyArray): void; + setHeader(name: string, value: number | string | readonly string[]): void; /** * Sets the `Http2Stream`'s timeout value to `msecs`. If a callback is * provided, then it is added as a listener on the `'timeout'` event on diff --git a/node_modules/electron/node_modules/@types/node/module.d.ts b/node_modules/electron/node_modules/@types/node/module.d.ts index 9e6e414..3a08656 100644 --- a/node_modules/electron/node_modules/@types/node/module.d.ts +++ b/node_modules/electron/node_modules/@types/node/module.d.ts @@ -120,7 +120,9 @@ declare module "module" { */ findOrigin(lineNumber: number, columnNumber: number): SourceOrigin | {}; } - interface ImportAssertions extends NodeJS.Dict { + /** @deprecated Use `ImportAttributes` instead */ + interface ImportAssertions extends ImportAttributes {} + interface ImportAttributes extends NodeJS.Dict { type?: string | undefined; } type ModuleFormat = "builtin" | "commonjs" | "json" | "module" | "wasm"; @@ -129,6 +131,9 @@ declare module "module" { port: MessagePort; } /** + * @deprecated This hook will be removed in a future version. + * Use `initialize` instead. When a loader has an `initialize` export, `globalPreload` will be ignored. + * * Sometimes it might be necessary to run some code inside of the same global scope that the application runs in. * This hook allows the return of a string that is run as a sloppy-mode script on startup. * @@ -136,15 +141,27 @@ declare module "module" { * @return Code to run before application startup */ type GlobalPreloadHook = (context: GlobalPreloadContext) => string; + /** + * The `initialize` hook provides a way to define a custom function that runs in the hooks thread + * when the hooks module is initialized. Initialization happens when the hooks module is registered via `register`. + * + * This hook can receive data from a `register` invocation, including ports and other transferrable objects. + * The return value of `initialize` can be a `Promise`, in which case it will be awaited before the main application thread execution resumes. + */ + type InitializeHook = (data: Data) => void | Promise; interface ResolveHookContext { /** * Export conditions of the relevant `package.json` */ conditions: string[]; + /** + * @deprecated Use `importAttributes` instead + */ + importAssertions: ImportAttributes; /** * An object whose key-value pairs represent the assertions for the module to import */ - importAssertions: ImportAssertions; + importAttributes: ImportAttributes; /** * The module importing this one, or undefined if this is the Node.js entry point */ @@ -156,9 +173,13 @@ declare module "module" { */ format?: ModuleFormat | null | undefined; /** - * The import assertions to use when caching the module (optional; if excluded the input will be used) + * @deprecated Use `importAttributes` instead */ - importAssertions?: ImportAssertions | undefined; + importAssertions?: ImportAttributes | undefined; + /** + * The import attributes to use when caching the module (optional; if excluded the input will be used) + */ + importAttributes?: ImportAttributes | undefined; /** * A signal that this hook intends to terminate the chain of `resolve` hooks. * @default false @@ -195,10 +216,14 @@ declare module "module" { * The format optionally supplied by the `resolve` hook chain */ format: ModuleFormat; + /** + * @deprecated Use `importAttributes` instead + */ + importAssertions: ImportAttributes; /** * An object whose key-value pairs represent the assertions for the module to import */ - importAssertions: ImportAssertions; + importAttributes: ImportAttributes; } interface LoadFnOutput { format: ModuleFormat; @@ -226,6 +251,11 @@ declare module "module" { nextLoad: (url: string, context?: LoadHookContext) => LoadFnOutput | Promise, ) => LoadFnOutput | Promise; } + interface RegisterOptions { + parentURL: string | URL; + data?: Data | undefined; + transferList?: any[] | undefined; + } interface Module extends NodeModule {} class Module { static runMain(): void; @@ -234,6 +264,12 @@ declare module "module" { static builtinModules: string[]; static isBuiltin(moduleName: string): boolean; static Module: typeof Module; + static register( + specifier: string | URL, + parentURL?: string | URL, + options?: RegisterOptions, + ): void; + static register(specifier: string | URL, options?: RegisterOptions): void; constructor(id: string, parent?: Module); } global { diff --git a/node_modules/electron/node_modules/@types/node/net.d.ts b/node_modules/electron/node_modules/@types/node/net.d.ts index 34275fe..782b891 100644 --- a/node_modules/electron/node_modules/@types/node/net.d.ts +++ b/node_modules/electron/node_modules/@types/node/net.d.ts @@ -91,6 +91,12 @@ declare module "net" { */ class Socket extends stream.Duplex { constructor(options?: SocketConstructorOpts); + /** + * Destroys the socket after all data is written. If the `finish` event was already emitted the socket is destroyed immediately. + * If the socket is still writable it implicitly calls `socket.end()`. + * @since v0.3.4 + */ + destroySoon(): void; /** * Sends data on the socket. The second parameter specifies the encoding in the * case of a string. It defaults to UTF8 encoding. diff --git a/node_modules/electron/node_modules/@types/node/package.json b/node_modules/electron/node_modules/@types/node/package.json index 5ec0967..9ce1070 100644 --- a/node_modules/electron/node_modules/@types/node/package.json +++ b/node_modules/electron/node_modules/@types/node/package.json @@ -1,6 +1,6 @@ { "name": "@types/node", - "version": "18.18.6", + "version": "18.19.5", "description": "TypeScript definitions for node", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node", "license": "MIT", @@ -226,8 +226,10 @@ "directory": "types/node" }, "scripts": {}, - "dependencies": {}, - "typesPublisherContentHash": "9d2769f7b79caa5e0b224d89e2c891cf96cb53c13b2cb123b796ccd46157c968", - "typeScriptVersion": "4.5", + "dependencies": { + "undici-types": "~5.26.4" + }, + "typesPublisherContentHash": "dcdc78cd657aa105c570b15ae7596b589ad1e4c097fa5d8d51fe01b075ab1651", + "typeScriptVersion": "4.6", "nonNpm": true } \ No newline at end of file diff --git a/node_modules/electron/node_modules/@types/node/perf_hooks.d.ts b/node_modules/electron/node_modules/@types/node/perf_hooks.d.ts index f84f9ac..9ad41b9 100644 --- a/node_modules/electron/node_modules/@types/node/perf_hooks.d.ts +++ b/node_modules/electron/node_modules/@types/node/perf_hooks.d.ts @@ -445,7 +445,7 @@ declare module "perf_hooks" { observe( options: | { - entryTypes: ReadonlyArray; + entryTypes: readonly EntryType[]; buffered?: boolean | undefined; } | { diff --git a/node_modules/electron/node_modules/@types/node/process.d.ts b/node_modules/electron/node_modules/@types/node/process.d.ts index e71ff8e..81d84f0 100644 --- a/node_modules/electron/node_modules/@types/node/process.d.ts +++ b/node_modules/electron/node_modules/@types/node/process.d.ts @@ -894,6 +894,19 @@ declare module "process" { * @since v9.3.0 */ hasUncaughtExceptionCaptureCallback(): boolean; + /** + * This function enables or disables the Source Map v3 support for stack traces. + * It provides same features as launching Node.js process with commandline options --enable-source-maps. + * @since v16.6.0 + * @experimental + */ + setSourceMapsEnabled(value: boolean): void; + /** + * The `process.sourceMapsEnabled` property returns whether the [Source Map v3](https://sourcemaps.info/spec.html) support for stack traces is enabled. + * @since v18.19.0 + * @experimental + */ + readonly sourceMapsEnabled: boolean; /** * The `process.version` property contains the Node.js version string. * diff --git a/node_modules/electron/node_modules/@types/node/punycode.d.ts b/node_modules/electron/node_modules/@types/node/punycode.d.ts index eacef7c..cfe559b 100644 --- a/node_modules/electron/node_modules/@types/node/punycode.d.ts +++ b/node_modules/electron/node_modules/@types/node/punycode.d.ts @@ -101,7 +101,7 @@ declare module "punycode" { * Users currently depending on the punycode module should switch to using * the userland-provided Punycode.js module instead. */ - encode(codePoints: ReadonlyArray): string; + encode(codePoints: readonly number[]): string; } /** * @deprecated since v7.0.0 diff --git a/node_modules/electron/node_modules/@types/node/querystring.d.ts b/node_modules/electron/node_modules/@types/node/querystring.d.ts index a9b4fd8..1837171 100644 --- a/node_modules/electron/node_modules/@types/node/querystring.d.ts +++ b/node_modules/electron/node_modules/@types/node/querystring.d.ts @@ -25,9 +25,9 @@ declare module "querystring" { | string | number | boolean - | ReadonlyArray - | ReadonlyArray - | ReadonlyArray + | readonly string[] + | readonly number[] + | readonly boolean[] | null > {} diff --git a/node_modules/electron/node_modules/@types/node/stream.d.ts b/node_modules/electron/node_modules/@types/node/stream.d.ts index c1b8a25..f7d2afb 100644 --- a/node_modules/electron/node_modules/@types/node/stream.d.ts +++ b/node_modules/electron/node_modules/@types/node/stream.d.ts @@ -46,7 +46,7 @@ declare module "stream" { highWaterMark?: number | undefined; objectMode?: boolean | undefined; construct?(this: T, callback: (error?: Error | null) => void): void; - destroy?(this: T, error: Error | null, callback: (error: Error | null) => void): void; + destroy?(this: T, error: Error | null, callback: (error?: Error | null) => void): void; autoDestroy?: boolean | undefined; } interface ReadableOptions extends StreamOptions { @@ -1025,7 +1025,7 @@ declare module "stream" { callback: (error?: Error | null) => void, ): void; final?(this: Duplex, callback: (error?: Error | null) => void): void; - destroy?(this: Duplex, error: Error | null, callback: (error: Error | null) => void): void; + destroy?(this: Duplex, error: Error | null, callback: (error?: Error | null) => void): void; } /** * Duplex streams are streams that implement both the `Readable` and `Writable` interfaces. @@ -1100,7 +1100,7 @@ declare module "stream" { }>, callback: (error?: Error | null) => void, ): void; - _destroy(error: Error | null, callback: (error: Error | null) => void): void; + _destroy(error: Error | null, callback: (error?: Error | null) => void): void; _final(callback: (error?: Error | null) => void): void; write(chunk: any, encoding?: BufferEncoding, cb?: (error: Error | null | undefined) => void): boolean; write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean; @@ -1229,7 +1229,7 @@ declare module "stream" { callback: (error?: Error | null) => void, ): void; final?(this: Transform, callback: (error?: Error | null) => void): void; - destroy?(this: Transform, error: Error | null, callback: (error: Error | null) => void): void; + destroy?(this: Transform, error: Error | null, callback: (error?: Error | null) => void): void; transform?(this: Transform, chunk: any, encoding: BufferEncoding, callback: TransformCallback): void; flush?(this: Transform, callback: TransformCallback): void; } diff --git a/node_modules/electron/node_modules/@types/node/test.d.ts b/node_modules/electron/node_modules/@types/node/test.d.ts index 99b9cce..5557822 100644 --- a/node_modules/electron/node_modules/@types/node/test.d.ts +++ b/node_modules/electron/node_modules/@types/node/test.d.ts @@ -148,19 +148,26 @@ declare module "node:test" { function only(name?: string, fn?: TestFn): Promise; function only(options?: TestOptions, fn?: TestFn): Promise; function only(fn?: TestFn): Promise; - /** * The type of a function under test. The first argument to this function is a * {@link TestContext} object. If the test uses callbacks, the callback function is passed as * the second argument. */ type TestFn = (t: TestContext, done: (result?: any) => void) => any; - /** * The type of a function under Suite. */ type SuiteFn = (s: SuiteContext) => void | Promise; - + interface TestShard { + /** + * A positive integer between 1 and `` that specifies the index of the shard to run. + */ + index: number; + /** + * A positive integer that specifies the total number of shards to split the test files to. + */ + total: number; + } interface RunOptions { /** * If a number is provided, then that many files would run in parallel. @@ -170,26 +177,22 @@ declare module "node:test" { * @default true */ concurrency?: number | boolean | undefined; - /** * An array containing the list of files to run. * If unspecified, the test runner execution model will be used. */ files?: readonly string[] | undefined; - /** * Allows aborting an in-progress test execution. * @default undefined */ signal?: AbortSignal | undefined; - /** * A number of milliseconds the test will fail after. * If unspecified, subtests inherit this value from their parent. * @default Infinity */ timeout?: number | undefined; - /** * Sets inspector port of test child process. * If a nullish value is provided, each process gets its own port, @@ -202,6 +205,11 @@ declare module "node:test" { * For each test that is executed, any corresponding test hooks, such as `beforeEach()`, are also run. */ testNamePatterns?: string | RegExp | string[] | RegExp[]; + /** + * If truthy, the test context will only run tests that have the `only` option set + * @since v18.19.0 + */ + only?: boolean; /** * A function that accepts the TestsStream instance and can be used to setup listeners before any tests are run. */ @@ -211,6 +219,12 @@ declare module "node:test" { * @default false */ watch?: boolean | undefined; + /** + * Running tests in a specific shard. + * @since v18.19.0 + * @default undefined + */ + shard?: TestShard | undefined; } class Test extends AsyncResource { concurrency: number; @@ -561,7 +575,6 @@ declare module "node:test" { implementation?: Implementation, options?: MockFunctionOptions, ): Mock; - /** * This function is used to create a mock on an existing object method. * @param object The object whose method is being mocked. @@ -600,7 +613,6 @@ declare module "node:test" { implementation: Function, options: MockMethodOptions, ): Mock; - /** * This function is syntax sugar for {@link MockTracker.method} with `options.getter` set to `true`. */ @@ -622,7 +634,6 @@ declare module "node:test" { implementation?: Implementation, options?: MockFunctionOptions, ): Mock<(() => MockedObject[MethodName]) | Implementation>; - /** * This function is syntax sugar for {@link MockTracker.method} with `options.setter` set to `true`. */ @@ -644,7 +655,6 @@ declare module "node:test" { implementation?: Implementation, options?: MockFunctionOptions, ): Mock<((value: MockedObject[MethodName]) => void) | Implementation>; - /** * This function restores the default behavior of all mocks that were previously created by this `MockTracker` * and disassociates the mocks from the `MockTracker` instance. Once disassociated, the mocks can still be used, @@ -654,12 +664,12 @@ declare module "node:test" { * If the global `MockTracker` is used extensively, calling this function manually is recommended. */ reset(): void; - /** * This function restores the default behavior of all mocks that were previously created by this `MockTracker`. * Unlike `mock.reset()`, `mock.restoreAll()` does not disassociate the mocks from the `MockTracker` instance. */ restoreAll(): void; + timers: MockTimers; } const mock: MockTracker; @@ -742,11 +752,172 @@ declare module "node:test" { */ restore(): void; } + type Timer = "setInterval" | "clearInterval" | "setTimeout" | "clearTimeout"; + /** + * Mocking timers is a technique commonly used in software testing to simulate and + * control the behavior of timers, such as `setInterval` and `setTimeout`, + * without actually waiting for the specified time intervals. + * + * The `MockTracker` provides a top-level `timers` export + * which is a `MockTimers` instance. + * @since v18.19.0 + * @experimental + */ + class MockTimers { + /** + * Enables timer mocking for the specified timers. + * + * **Note:** When you enable mocking for a specific timer, its associated + * clear function will also be implicitly mocked. + * + * Example usage: + * + * ```js + * import { mock } from 'node:test'; + * mock.timers.enable(['setInterval']); + * ``` + * + * The above example enables mocking for the `setInterval` timer and + * implicitly mocks the `clearInterval` function. Only the `setInterval`and `clearInterval` functions from `node:timers`,`node:timers/promises`, and`globalThis` will be mocked. + * + * Alternatively, if you call `mock.timers.enable()` without any parameters: + * + * All timers (`'setInterval'`, `'clearInterval'`, `'setTimeout'`, and `'clearTimeout'`) + * will be mocked. The `setInterval`, `clearInterval`, `setTimeout`, and `clearTimeout`functions from `node:timers`, `node:timers/promises`, + * and `globalThis` will be mocked. + * @since v18.19.0 + */ + enable(timers?: Timer[]): void; + /** + * This function restores the default behavior of all mocks that were previously + * created by this `MockTimers` instance and disassociates the mocks + * from the `MockTracker` instance. + * + * **Note:** After each test completes, this function is called on + * the test context's `MockTracker`. + * + * ```js + * import { mock } from 'node:test'; + * mock.timers.reset(); + * ``` + * @since v18.19.0 + */ + reset(): void; + /** + * Advances time for all mocked timers. + * + * **Note:** This diverges from how `setTimeout` in Node.js behaves and accepts + * only positive numbers. In Node.js, `setTimeout` with negative numbers is + * only supported for web compatibility reasons. + * + * The following example mocks a `setTimeout` function and + * by using `.tick` advances in + * time triggering all pending timers. + * + * ```js + * import assert from 'node:assert'; + * import { test } from 'node:test'; + * + * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => { + * const fn = context.mock.fn(); + * + * context.mock.timers.enable(['setTimeout']); + * + * setTimeout(fn, 9999); + * + * assert.strictEqual(fn.mock.callCount(), 0); + * + * // Advance in time + * context.mock.timers.tick(9999); + * + * assert.strictEqual(fn.mock.callCount(), 1); + * }); + * ``` + * + * Alternativelly, the `.tick` function can be called many times + * + * ```js + * import assert from 'node:assert'; + * import { test } from 'node:test'; + * + * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => { + * const fn = context.mock.fn(); + * context.mock.timers.enable(['setTimeout']); + * const nineSecs = 9000; + * setTimeout(fn, nineSecs); + * + * const twoSeconds = 3000; + * context.mock.timers.tick(twoSeconds); + * context.mock.timers.tick(twoSeconds); + * context.mock.timers.tick(twoSeconds); + * + * assert.strictEqual(fn.mock.callCount(), 1); + * }); + * ``` + * @since v18.19.0 + */ + tick(milliseconds: number): void; + /** + * Triggers all pending mocked timers immediately. + * + * The example below triggers all pending timers immediately, + * causing them to execute without any delay. + * + * ```js + * import assert from 'node:assert'; + * import { test } from 'node:test'; + * + * test('runAll functions following the given order', (context) => { + * context.mock.timers.enable(['setTimeout']); + * const results = []; + * setTimeout(() => results.push(1), 9999); + * + * // Notice that if both timers have the same timeout, + * // the order of execution is guaranteed + * setTimeout(() => results.push(3), 8888); + * setTimeout(() => results.push(2), 8888); + * + * assert.deepStrictEqual(results, []); + * + * context.mock.timers.runAll(); + * + * assert.deepStrictEqual(results, [3, 2, 1]); + * }); + * ``` + * + * **Note:** The `runAll()` function is specifically designed for + * triggering timers in the context of timer mocking. + * It does not have any effect on real-time system + * clocks or actual timers outside of the mocking environment. + * @since v18.19.0 + */ + runAll(): void; + /** + * Calls {@link MockTimers.reset()}. + */ + [Symbol.dispose](): void; + } export { after, afterEach, before, beforeEach, describe, it, mock, run, test, test as default }; } -interface DiagnosticData { +interface TestLocationInfo { + /** + * The column number where the test is defined, or + * `undefined` if the test was run through the REPL. + */ + column?: number; + /** + * The path of the test file, `undefined` if test is not ran through a file. + */ + file?: string; + /** + * The line number where the test is defined, or + * `undefined` if the test was run through the REPL. + */ + line?: number; +} +interface DiagnosticData extends TestLocationInfo { /** * The diagnostic message. */ @@ -755,12 +926,8 @@ interface DiagnosticData { * The nesting level of the test. */ nesting: number; - /** - * The path of the test file, undefined if test is not ran through a file. - */ - file?: string; } -interface TestFail { +interface TestFail extends TestLocationInfo { /** * Additional execution metadata. */ @@ -799,12 +966,8 @@ interface TestFail { * Present if `context.skip` is called. */ skip?: string | boolean; - /** - * The path of the test file, undefined if test is not ran through a file. - */ - file?: string; } -interface TestPass { +interface TestPass extends TestLocationInfo { /** * Additional execution metadata. */ @@ -839,12 +1002,8 @@ interface TestPass { * Present if `context.skip` is called. */ skip?: string | boolean; - /** - * The path of the test file, undefined if test is not ran through a file. - */ - file?: string; } -interface TestPlan { +interface TestPlan extends TestLocationInfo { /** * The nesting level of the test. */ @@ -853,12 +1012,8 @@ interface TestPlan { * The number of subtests that have ran. */ count: number; - /** - * The path of the test file, undefined if test is not ran through a file. - */ - file?: string; } -interface TestStart { +interface TestStart extends TestLocationInfo { /** * The test name. */ @@ -867,54 +1022,34 @@ interface TestStart { * The nesting level of the test. */ nesting: number; - /** - * The path of the test file, undefined if test is not ran through a file. - */ - file?: string; } -interface TestStderr { - /** - * The path of the test file, undefined if test is not ran through a file. - */ - file?: string; +interface TestStderr extends TestLocationInfo { /** * The message written to `stderr` */ message: string; } -interface TestStdout { - /** - * The path of the test file, undefined if test is not ran through a file. - */ - file?: string; +interface TestStdout extends TestLocationInfo { /** * The message written to `stdout` */ message: string; } -interface TestEnqueue { +interface TestEnqueue extends TestLocationInfo { /** * The test name */ name: string; - /** - * The path of the test file, undefined if test is not ran through a file. - */ - file?: string; /** * The nesting level of the test. */ nesting: number; } -interface TestDequeue { +interface TestDequeue extends TestLocationInfo { /** * The test name */ name: string; - /** - * The path of the test file, undefined if test is not ran through a file. - */ - file?: string; /** * The nesting level of the test. */ @@ -970,5 +1105,9 @@ declare module "node:test/reporters" { class Spec extends Transform { constructor(); } - export { dot, Spec as spec, tap, TestEvent }; + /** + * The `junit` reporter outputs test results in a jUnit XML format + */ + function junit(source: TestEventGenerator): AsyncGenerator; + export { dot, junit, Spec as spec, tap, TestEvent }; } diff --git a/node_modules/electron/node_modules/@types/node/timers.d.ts b/node_modules/electron/node_modules/@types/node/timers.d.ts index 7b23bd3..0d1beed 100644 --- a/node_modules/electron/node_modules/@types/node/timers.d.ts +++ b/node_modules/electron/node_modules/@types/node/timers.d.ts @@ -89,7 +89,7 @@ declare module "timers" { ...args: TArgs ): NodeJS.Timeout; // util.promisify no rest args compability - // tslint:disable-next-line void-return + // eslint-disable-next-line @typescript-eslint/no-invalid-void-type function setTimeout(callback: (args: void) => void, ms?: number): NodeJS.Timeout; namespace setTimeout { const __promisify__: typeof setTimeoutPromise; @@ -101,7 +101,7 @@ declare module "timers" { ...args: TArgs ): NodeJS.Timeout; // util.promisify no rest args compability - // tslint:disable-next-line void-return + // eslint-disable-next-line @typescript-eslint/no-invalid-void-type function setInterval(callback: (args: void) => void, ms?: number): NodeJS.Timeout; namespace setInterval { const __promisify__: typeof setIntervalPromise; @@ -112,7 +112,7 @@ declare module "timers" { ...args: TArgs ): NodeJS.Immediate; // util.promisify no rest args compability - // tslint:disable-next-line void-return + // eslint-disable-next-line @typescript-eslint/no-invalid-void-type function setImmediate(callback: (args: void) => void): NodeJS.Immediate; namespace setImmediate { const __promisify__: typeof setImmediatePromise; diff --git a/node_modules/electron/node_modules/@types/node/tls.d.ts b/node_modules/electron/node_modules/@types/node/tls.d.ts index 653c8be..8c6ff90 100644 --- a/node_modules/electron/node_modules/@types/node/tls.d.ts +++ b/node_modules/electron/node_modules/@types/node/tls.d.ts @@ -797,6 +797,18 @@ declare module "tls" { } type SecureVersion = "TLSv1.3" | "TLSv1.2" | "TLSv1.1" | "TLSv1"; interface SecureContextOptions { + /** + * If set, this will be called when a client opens a connection using the ALPN extension. + * One argument will be passed to the callback: an object containing `servername` and `protocols` fields, + * respectively containing the server name from the SNI extension (if any) and an array of + * ALPN protocol name strings. The callback must return either one of the strings listed in `protocols`, + * which will be returned to the client as the selected ALPN protocol, or `undefined`, + * to reject the connection with a fatal alert. If a string is returned that does not match one of + * the client's ALPN protocols, an error will be thrown. + * This option cannot be used with the `ALPNProtocols` option, and setting both options will throw an error. + * @since v18.19.0 + */ + ALPNCallback?: ((arg: { servername: string; protocols: string[] }) => string | undefined) | undefined; /** * Optionally override the trusted CA certificates. Default is to trust * the well-known CAs curated by Mozilla. Mozilla's CAs are completely @@ -1184,7 +1196,7 @@ declare module "tls" { * format) used for verifying peer certificates. This is the default value * of the ca option to tls.createSecureContext(). */ - const rootCertificates: ReadonlyArray; + const rootCertificates: readonly string[]; } declare module "node:tls" { export * from "tls"; diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/assert.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/assert.d.ts index 6cf6a82..e4a8a78 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/assert.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/assert.d.ts @@ -31,7 +31,7 @@ declare module "assert" { /** The `operator` property on the error instance. */ operator?: string | undefined; /** If provided, the generated stack trace omits frames before this function. */ - // tslint:disable-next-line:ban-types + // eslint-disable-next-line @typescript-eslint/ban-types stackStartFn?: Function | undefined; }); } @@ -217,7 +217,7 @@ declare module "assert" { expected: unknown, message?: string | Error, operator?: string, - // tslint:disable-next-line:ban-types + // eslint-disable-next-line @typescript-eslint/ban-types stackStartFn?: Function, ): never; /** diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/buffer.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/buffer.d.ts index 5466efb..cfc1f39 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/buffer.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/buffer.d.ts @@ -265,7 +265,7 @@ declare module "buffer" { * @param array The octets to store. * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead. */ - new(array: ReadonlyArray): Buffer; + new(array: readonly any[]): Buffer; /** * Copies the passed {buffer} data onto a new {Buffer} instance. * @@ -299,8 +299,8 @@ declare module "buffer" { * Creates a new Buffer using the passed {data} * @param data data to create a new Buffer */ - from(data: Uint8Array | ReadonlyArray): Buffer; - from(data: WithImplicitCoercion | string>): Buffer; + from(data: Uint8Array | readonly number[]): Buffer; + from(data: WithImplicitCoercion): Buffer; /** * Creates a new Buffer containing the given JavaScript string {str}. * If provided, the {encoding} parameter identifies the character encoding. @@ -428,7 +428,7 @@ declare module "buffer" { * @param list List of `Buffer` or {@link Uint8Array} instances to concatenate. * @param totalLength Total length of the `Buffer` instances in `list` when concatenated. */ - concat(list: ReadonlyArray, totalLength?: number): Buffer; + concat(list: readonly Uint8Array[], totalLength?: number): Buffer; /** * Copies the underlying memory of `view` into a new `Buffer`. * @since v18.16.0 diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/child_process.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/child_process.d.ts index be7e656..6c7a2c1 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/child_process.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/child_process.d.ts @@ -837,50 +837,50 @@ declare module "child_process" { // overloads of spawn with 'args' function spawn( command: string, - args?: ReadonlyArray, + args?: readonly string[], options?: SpawnOptionsWithoutStdio, ): ChildProcessWithoutNullStreams; function spawn( command: string, - args: ReadonlyArray, + args: readonly string[], options: SpawnOptionsWithStdioTuple, ): ChildProcessByStdio; function spawn( command: string, - args: ReadonlyArray, + args: readonly string[], options: SpawnOptionsWithStdioTuple, ): ChildProcessByStdio; function spawn( command: string, - args: ReadonlyArray, + args: readonly string[], options: SpawnOptionsWithStdioTuple, ): ChildProcessByStdio; function spawn( command: string, - args: ReadonlyArray, + args: readonly string[], options: SpawnOptionsWithStdioTuple, ): ChildProcessByStdio; function spawn( command: string, - args: ReadonlyArray, + args: readonly string[], options: SpawnOptionsWithStdioTuple, ): ChildProcessByStdio; function spawn( command: string, - args: ReadonlyArray, + args: readonly string[], options: SpawnOptionsWithStdioTuple, ): ChildProcessByStdio; function spawn( command: string, - args: ReadonlyArray, + args: readonly string[], options: SpawnOptionsWithStdioTuple, ): ChildProcessByStdio; function spawn( command: string, - args: ReadonlyArray, + args: readonly string[], options: SpawnOptionsWithStdioTuple, ): ChildProcessByStdio; - function spawn(command: string, args: ReadonlyArray, options: SpawnOptions): ChildProcess; + function spawn(command: string, args: readonly string[], options: SpawnOptions): ChildProcess; interface ExecOptions extends CommonOptions { shell?: string | undefined; signal?: AbortSignal | undefined; @@ -1154,10 +1154,10 @@ declare module "child_process" { file: string, options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null, ): ChildProcess; - function execFile(file: string, args?: ReadonlyArray | null): ChildProcess; + function execFile(file: string, args?: readonly string[] | null): ChildProcess; function execFile( file: string, - args: ReadonlyArray | undefined | null, + args: readonly string[] | undefined | null, options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null, ): ChildProcess; // no `options` definitely means stdout/stderr are `string`. @@ -1167,7 +1167,7 @@ declare module "child_process" { ): ChildProcess; function execFile( file: string, - args: ReadonlyArray | undefined | null, + args: readonly string[] | undefined | null, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void, ): ChildProcess; // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`. @@ -1178,7 +1178,7 @@ declare module "child_process" { ): ChildProcess; function execFile( file: string, - args: ReadonlyArray | undefined | null, + args: readonly string[] | undefined | null, options: ExecFileOptionsWithBufferEncoding, callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void, ): ChildProcess; @@ -1190,7 +1190,7 @@ declare module "child_process" { ): ChildProcess; function execFile( file: string, - args: ReadonlyArray | undefined | null, + args: readonly string[] | undefined | null, options: ExecFileOptionsWithStringEncoding, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void, ): ChildProcess; @@ -1203,7 +1203,7 @@ declare module "child_process" { ): ChildProcess; function execFile( file: string, - args: ReadonlyArray | undefined | null, + args: readonly string[] | undefined | null, options: ExecFileOptionsWithOtherEncoding, callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void, ): ChildProcess; @@ -1215,7 +1215,7 @@ declare module "child_process" { ): ChildProcess; function execFile( file: string, - args: ReadonlyArray | undefined | null, + args: readonly string[] | undefined | null, options: ExecFileOptions, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void, ): ChildProcess; @@ -1230,7 +1230,7 @@ declare module "child_process" { ): ChildProcess; function execFile( file: string, - args: ReadonlyArray | undefined | null, + args: readonly string[] | undefined | null, options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null, callback: | ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void) @@ -1244,7 +1244,7 @@ declare module "child_process" { }>; function __promisify__( file: string, - args: ReadonlyArray | undefined | null, + args: readonly string[] | undefined | null, ): PromiseWithChild<{ stdout: string; stderr: string; @@ -1258,7 +1258,7 @@ declare module "child_process" { }>; function __promisify__( file: string, - args: ReadonlyArray | undefined | null, + args: readonly string[] | undefined | null, options: ExecFileOptionsWithBufferEncoding, ): PromiseWithChild<{ stdout: Buffer; @@ -1273,7 +1273,7 @@ declare module "child_process" { }>; function __promisify__( file: string, - args: ReadonlyArray | undefined | null, + args: readonly string[] | undefined | null, options: ExecFileOptionsWithStringEncoding, ): PromiseWithChild<{ stdout: string; @@ -1288,7 +1288,7 @@ declare module "child_process" { }>; function __promisify__( file: string, - args: ReadonlyArray | undefined | null, + args: readonly string[] | undefined | null, options: ExecFileOptionsWithOtherEncoding, ): PromiseWithChild<{ stdout: string | Buffer; @@ -1303,7 +1303,7 @@ declare module "child_process" { }>; function __promisify__( file: string, - args: ReadonlyArray | undefined | null, + args: readonly string[] | undefined | null, options: ExecFileOptions, ): PromiseWithChild<{ stdout: string; @@ -1318,7 +1318,7 @@ declare module "child_process" { }>; function __promisify__( file: string, - args: ReadonlyArray | undefined | null, + args: readonly string[] | undefined | null, options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null, ): PromiseWithChild<{ stdout: string | Buffer; @@ -1392,7 +1392,7 @@ declare module "child_process" { * @param args List of string arguments. */ function fork(modulePath: string, options?: ForkOptions): ChildProcess; - function fork(modulePath: string, args?: ReadonlyArray, options?: ForkOptions): ChildProcess; + function fork(modulePath: string, args?: readonly string[], options?: ForkOptions): ChildProcess; interface SpawnSyncOptions extends CommonSpawnOptions { input?: string | NodeJS.ArrayBufferView | undefined; maxBuffer?: number | undefined; @@ -1432,20 +1432,20 @@ declare module "child_process" { function spawnSync(command: string, options: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns; function spawnSync(command: string, options: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns; function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns; - function spawnSync(command: string, args: ReadonlyArray): SpawnSyncReturns; + function spawnSync(command: string, args: readonly string[]): SpawnSyncReturns; function spawnSync( command: string, - args: ReadonlyArray, + args: readonly string[], options: SpawnSyncOptionsWithStringEncoding, ): SpawnSyncReturns; function spawnSync( command: string, - args: ReadonlyArray, + args: readonly string[], options: SpawnSyncOptionsWithBufferEncoding, ): SpawnSyncReturns; function spawnSync( command: string, - args?: ReadonlyArray, + args?: readonly string[], options?: SpawnSyncOptions, ): SpawnSyncReturns; interface CommonExecOptions extends CommonOptions { @@ -1526,18 +1526,18 @@ declare module "child_process" { function execFileSync(file: string, options: ExecFileSyncOptionsWithStringEncoding): string; function execFileSync(file: string, options: ExecFileSyncOptionsWithBufferEncoding): Buffer; function execFileSync(file: string, options?: ExecFileSyncOptions): string | Buffer; - function execFileSync(file: string, args: ReadonlyArray): Buffer; + function execFileSync(file: string, args: readonly string[]): Buffer; function execFileSync( file: string, - args: ReadonlyArray, + args: readonly string[], options: ExecFileSyncOptionsWithStringEncoding, ): string; function execFileSync( file: string, - args: ReadonlyArray, + args: readonly string[], options: ExecFileSyncOptionsWithBufferEncoding, ): Buffer; - function execFileSync(file: string, args?: ReadonlyArray, options?: ExecFileSyncOptions): string | Buffer; + function execFileSync(file: string, args?: readonly string[], options?: ExecFileSyncOptions): string | Buffer; } declare module "node:child_process" { export * from "child_process"; diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/console.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/console.d.ts index 7668d1c..c627daf 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/console.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/console.d.ts @@ -250,7 +250,7 @@ declare module "node:console" { * @since v10.0.0 * @param properties Alternate properties for constructing the table. */ - table(tabularData: any, properties?: ReadonlyArray): void; + table(tabularData: any, properties?: readonly string[]): void; /** * Starts a timer that can be used to compute the duration of an operation. Timers * are identified by a unique `label`. Use the same `label` when calling {@link timeEnd} to stop the timer and output the elapsed time in diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/crypto.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/crypto.d.ts index 4b38c8e..ee6cba3 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/crypto.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/crypto.d.ts @@ -655,6 +655,12 @@ declare module "crypto" { export(options: KeyExportOptions<"pem">): string | Buffer; export(options?: KeyExportOptions<"der">): Buffer; export(options?: JwkKeyExportOptions): JsonWebKey; + /** + * Returns `true` or `false` depending on whether the keys have exactly the same type, value, and parameters. + * This method is not [constant time](https://en.wikipedia.org/wiki/Timing_attack). + * @since v16.15.0 + */ + equals(otherKeyObject: KeyObject): boolean; /** * For secret keys, this property represents the size of the key in bytes. This * property is `undefined` for asymmetric keys. @@ -2493,6 +2499,10 @@ declare module "crypto" { * Name of the curve to use */ namedCurve: string; + /** + * Must be `'named'` or `'explicit'`. Default: `'named'`. + */ + paramEncoding?: "explicit" | "named" | undefined; } interface RSAKeyPairKeyObjectOptions { /** @@ -2603,11 +2613,7 @@ declare module "crypto" { type: "pkcs8"; }; } - interface ECKeyPairOptions { - /** - * Name of the curve to use. - */ - namedCurve: string; + interface ECKeyPairOptions extends ECKeyPairKeyObjectOptions { publicKeyEncoding: { type: "pkcs1" | "spki"; format: PubF; @@ -4202,7 +4208,7 @@ declare module "crypto" { | HkdfParams | Pbkdf2Params, extractable: boolean, - keyUsages: ReadonlyArray, + keyUsages: readonly KeyUsage[], ): Promise; /** * Using the method identified by `algorithm`, `subtle.digest()` attempts to generate a digest of `data`. @@ -4282,12 +4288,12 @@ declare module "crypto" { generateKey( algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, - keyUsages: ReadonlyArray, + keyUsages: readonly KeyUsage[], ): Promise; generateKey( algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, - keyUsages: ReadonlyArray, + keyUsages: readonly KeyUsage[], ): Promise; generateKey( algorithm: AlgorithmIdentifier, @@ -4314,7 +4320,7 @@ declare module "crypto" { | HmacImportParams | AesKeyAlgorithm, extractable: boolean, - keyUsages: ReadonlyArray, + keyUsages: readonly KeyUsage[], ): Promise; importKey( format: Exclude, diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/dgram.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/dgram.d.ts index b1c674d..25a4f65 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/dgram.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/dgram.d.ts @@ -227,6 +227,16 @@ declare module "dgram" { * @return the `SO_SNDBUF` socket send buffer size in bytes. */ getSendBufferSize(): number; + /** + * @since v18.8.0 + * @return the number of bytes queued for sending. + */ + getSendQueueSize(): number; + /** + * @since v18.8.0 + * @return the number of send requests currently in the queue awaiting to be processed. + */ + getSendQueueCount(): number; /** * By default, binding a socket will cause it to block the Node.js process from * exiting as long as the socket is open. The `socket.unref()` method can be used @@ -342,18 +352,18 @@ declare module "dgram" { * @param callback Called when the message has been sent. */ send( - msg: string | Uint8Array | ReadonlyArray, + msg: string | Uint8Array | readonly any[], port?: number, address?: string, callback?: (error: Error | null, bytes: number) => void, ): void; send( - msg: string | Uint8Array | ReadonlyArray, + msg: string | Uint8Array | readonly any[], port?: number, callback?: (error: Error | null, bytes: number) => void, ): void; send( - msg: string | Uint8Array | ReadonlyArray, + msg: string | Uint8Array | readonly any[], callback?: (error: Error | null, bytes: number) => void, ): void; send( diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/dns.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/dns.d.ts index 0e4e876..104dd76 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/dns.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/dns.d.ts @@ -661,7 +661,7 @@ declare module "dns" { * @since v0.11.3 * @param servers array of `RFC 5952` formatted addresses */ - export function setServers(servers: ReadonlyArray): void; + export function setServers(servers: readonly string[]): void; /** * Returns an array of IP address strings, formatted according to [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6), * that are currently configured for DNS resolution. A string will include a port diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/dns/promises.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/dns/promises.d.ts index 0866e18..282ec72 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/dns/promises.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/dns/promises.d.ts @@ -307,6 +307,14 @@ declare module "dns/promises" { * @since v10.6.0 */ function reverse(ip: string): Promise; + /** + * Get the default value for `verbatim` in {@link lookup} and `dnsPromises.lookup()`. The value could be: + * + * * `ipv4first`: for `verbatim` defaulting to `false`. + * * `verbatim`: for `verbatim` defaulting to `true`. + * @since v18.17.0 + */ + function getDefaultResultOrder(): "ipv4first" | "verbatim"; /** * Sets the IP address and port of servers to be used when performing DNS * resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted @@ -333,7 +341,7 @@ declare module "dns/promises" { * @since v10.6.0 * @param servers array of `RFC 5952` formatted addresses */ - function setServers(servers: ReadonlyArray): void; + function setServers(servers: readonly string[]): void; /** * Set the default value of `verbatim` in `dns.lookup()` and `dnsPromises.lookup()`. The value could be: * diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/fs.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/fs.d.ts index 6acd33b..1d7be30 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/fs.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/fs.d.ts @@ -3991,12 +3991,12 @@ declare module "fs" { */ export function writev( fd: number, - buffers: ReadonlyArray, + buffers: readonly NodeJS.ArrayBufferView[], cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void, ): void; export function writev( fd: number, - buffers: ReadonlyArray, + buffers: readonly NodeJS.ArrayBufferView[], position: number, cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void, ): void; @@ -4007,7 +4007,7 @@ declare module "fs" { export namespace writev { function __promisify__( fd: number, - buffers: ReadonlyArray, + buffers: readonly NodeJS.ArrayBufferView[], position?: number, ): Promise; } @@ -4017,7 +4017,7 @@ declare module "fs" { * @since v12.9.0 * @return The number of bytes written. */ - export function writevSync(fd: number, buffers: ReadonlyArray, position?: number): number; + export function writevSync(fd: number, buffers: readonly NodeJS.ArrayBufferView[], position?: number): number; /** * Read from a file specified by `fd` and write to an array of `ArrayBufferView`s * using `readv()`. @@ -4034,12 +4034,12 @@ declare module "fs" { */ export function readv( fd: number, - buffers: ReadonlyArray, + buffers: readonly NodeJS.ArrayBufferView[], cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void, ): void; export function readv( fd: number, - buffers: ReadonlyArray, + buffers: readonly NodeJS.ArrayBufferView[], position: number, cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void, ): void; @@ -4050,7 +4050,7 @@ declare module "fs" { export namespace readv { function __promisify__( fd: number, - buffers: ReadonlyArray, + buffers: readonly NodeJS.ArrayBufferView[], position?: number, ): Promise; } @@ -4060,7 +4060,7 @@ declare module "fs" { * @since v13.13.0, v12.17.0 * @return The number of bytes read. */ - export function readvSync(fd: number, buffers: ReadonlyArray, position?: number): number; + export function readvSync(fd: number, buffers: readonly NodeJS.ArrayBufferView[], position?: number): number; export interface OpenDirOptions { encoding?: BufferEncoding | undefined; /** diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/fs/promises.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/fs/promises.d.ts index 253f374..7e55f89 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/fs/promises.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/fs/promises.d.ts @@ -442,14 +442,14 @@ declare module "fs/promises" { * @param position The offset from the beginning of the file where the data from `buffers` should be written. If `position` is not a `number`, the data will be written at the current * position. */ - writev(buffers: ReadonlyArray, position?: number): Promise; + writev(buffers: readonly NodeJS.ArrayBufferView[], position?: number): Promise; /** * Read from a file and write to an array of [ArrayBufferView](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView) s * @since v13.13.0, v12.17.0 * @param position The offset from the beginning of the file where the data should be read from. If `position` is not a `number`, the data will be read from the current position. * @return Fulfills upon success an object containing two properties: */ - readv(buffers: ReadonlyArray, position?: number): Promise; + readv(buffers: readonly NodeJS.ArrayBufferView[], position?: number): Promise; /** * Closes the file handle after waiting for any pending operation on the handle to * complete. diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/globals.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/globals.d.ts index 64d1a2e..f6c95e9 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/globals.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/globals.d.ts @@ -1,323 +1,377 @@ -// Declare "static" methods in Error -interface ErrorConstructor { - /** Create .stack property on a target object */ - captureStackTrace(targetObject: object, constructorOpt?: Function): void; +export {}; // Make this a module + +// #region Fetch and friends +// Conditional type aliases, used at the end of this file. +// Will either be empty if lib-dom is included, or the undici version otherwise. +type _Request = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Request; +type _Response = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Response; +type _FormData = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").FormData; +type _Headers = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Headers; +type _RequestInit = typeof globalThis extends { onmessage: any } ? {} + : import("undici-types").RequestInit; +type _ResponseInit = typeof globalThis extends { onmessage: any } ? {} + : import("undici-types").ResponseInit; +// #endregion Fetch and friends + +declare global { + // Declare "static" methods in Error + interface ErrorConstructor { + /** Create .stack property on a target object */ + captureStackTrace(targetObject: object, constructorOpt?: Function): void; - /** - * Optional override for formatting stack traces - * - * @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces - */ - prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; - - stackTraceLimit: number; -} - -/*-----------------------------------------------* - * * - * GLOBAL * - * * - ------------------------------------------------*/ - -// For backwards compability -interface NodeRequire extends NodeJS.Require {} -interface RequireResolve extends NodeJS.RequireResolve {} -interface NodeModule extends NodeJS.Module {} - -declare var process: NodeJS.Process; -declare var console: Console; - -declare var __filename: string; -declare var __dirname: string; - -declare var require: NodeRequire; -declare var module: NodeModule; - -// Same as module.exports -declare var exports: any; - -/** - * Only available if `--expose-gc` is passed to the process. - */ -declare var gc: undefined | (() => void); + /** + * Optional override for formatting stack traces + * + * @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces + */ + prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; -// #region borrowed -// from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib -/** A controller object that allows you to abort one or more DOM requests as and when desired. */ -interface AbortController { - /** - * Returns the AbortSignal object associated with this object. - */ + stackTraceLimit: number; + } - readonly signal: AbortSignal; - /** - * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. - */ - abort(reason?: any): void; -} + /*-----------------------------------------------* + * * + * GLOBAL * + * * + ------------------------------------------------*/ -/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */ -interface AbortSignal extends EventTarget { - /** - * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. - */ - readonly aborted: boolean; - readonly reason: any; - onabort: null | ((this: AbortSignal, event: Event) => any); - throwIfAborted(): void; -} + // For backwards compability + interface NodeRequire extends NodeJS.Require {} + interface RequireResolve extends NodeJS.RequireResolve {} + interface NodeModule extends NodeJS.Module {} -declare var AbortController: typeof globalThis extends { onmessage: any; AbortController: infer T } ? T - : { - prototype: AbortController; - new(): AbortController; - }; - -declare var AbortSignal: typeof globalThis extends { onmessage: any; AbortSignal: infer T } ? T - : { - prototype: AbortSignal; - new(): AbortSignal; - abort(reason?: any): AbortSignal; - timeout(milliseconds: number): AbortSignal; - }; -// #endregion borrowed - -// #region Disposable -interface SymbolConstructor { - /** - * A method that is used to release resources held by an object. Called by the semantics of the `using` statement. - */ - readonly dispose: unique symbol; + var process: NodeJS.Process; + var console: Console; - /** - * A method that is used to asynchronously release resources held by an object. Called by the semantics of the `await using` statement. - */ - readonly asyncDispose: unique symbol; -} + var __filename: string; + var __dirname: string; -interface Disposable { - [Symbol.dispose](): void; -} + var require: NodeRequire; + var module: NodeModule; -interface AsyncDisposable { - [Symbol.asyncDispose](): PromiseLike; -} -// #endregion Disposable + // Same as module.exports + var exports: any; -// #region ArrayLike.at() -interface RelativeIndexable { /** - * Takes an integer value and returns the item at that index, - * allowing for positive and negative integers. - * Negative integers count back from the last item in the array. + * Only available if `--expose-gc` is passed to the process. */ - at(index: number): T | undefined; -} -interface String extends RelativeIndexable {} -interface Array extends RelativeIndexable {} -interface ReadonlyArray extends RelativeIndexable {} -interface Int8Array extends RelativeIndexable {} -interface Uint8Array extends RelativeIndexable {} -interface Uint8ClampedArray extends RelativeIndexable {} -interface Int16Array extends RelativeIndexable {} -interface Uint16Array extends RelativeIndexable {} -interface Int32Array extends RelativeIndexable {} -interface Uint32Array extends RelativeIndexable {} -interface Float32Array extends RelativeIndexable {} -interface Float64Array extends RelativeIndexable {} -interface BigInt64Array extends RelativeIndexable {} -interface BigUint64Array extends RelativeIndexable {} -// #endregion ArrayLike.at() end - -/** - * @since v17.0.0 - * - * Creates a deep clone of an object. - */ -declare function structuredClone( - value: T, - transfer?: { transfer: ReadonlyArray }, -): T; - -/*----------------------------------------------* -* * -* GLOBAL INTERFACES * -* * -*-----------------------------------------------*/ -declare namespace NodeJS { - interface CallSite { - /** - * Value of "this" - */ - getThis(): unknown; - - /** - * Type of "this" as a string. - * This is the name of the function stored in the constructor field of - * "this", if available. Otherwise the object's [[Class]] internal - * property. - */ - getTypeName(): string | null; - - /** - * Current function - */ - getFunction(): Function | undefined; - - /** - * Name of the current function, typically its name property. - * If a name property is not available an attempt will be made to try - * to infer a name from the function's context. - */ - getFunctionName(): string | null; + var gc: undefined | (() => void); + // #region borrowed + // from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib + /** A controller object that allows you to abort one or more DOM requests as and when desired. */ + interface AbortController { /** - * Name of the property [of "this" or one of its prototypes] that holds - * the current function + * Returns the AbortSignal object associated with this object. */ - getMethodName(): string | null; + readonly signal: AbortSignal; /** - * Name of the script [if this function was defined in a script] + * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. */ - getFileName(): string | undefined; - - /** - * Current line number [if this function was defined in a script] - */ - getLineNumber(): number | null; - - /** - * Current column number [if this function was defined in a script] - */ - getColumnNumber(): number | null; - - /** - * A call site object representing the location where eval was called - * [if this function was created using a call to eval] - */ - getEvalOrigin(): string | undefined; - - /** - * Is this a toplevel invocation, that is, is "this" the global object? - */ - isToplevel(): boolean; + abort(reason?: any): void; + } + /** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */ + interface AbortSignal extends EventTarget { /** - * Does this call take place in code defined by a call to eval? + * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */ - isEval(): boolean; + readonly aborted: boolean; + readonly reason: any; + onabort: null | ((this: AbortSignal, event: Event) => any); + throwIfAborted(): void; + } + var AbortController: typeof globalThis extends { onmessage: any; AbortController: infer T } ? T + : { + prototype: AbortController; + new(): AbortController; + }; + + var AbortSignal: typeof globalThis extends { onmessage: any; AbortSignal: infer T } ? T + : { + prototype: AbortSignal; + new(): AbortSignal; + abort(reason?: any): AbortSignal; + timeout(milliseconds: number): AbortSignal; + }; + // #endregion borrowed + + // #region Disposable + interface SymbolConstructor { /** - * Is this call in native V8 code? + * A method that is used to release resources held by an object. Called by the semantics of the `using` statement. */ - isNative(): boolean; + readonly dispose: unique symbol; /** - * Is this a constructor call? + * A method that is used to asynchronously release resources held by an object. Called by the semantics of the `await using` statement. */ - isConstructor(): boolean; + readonly asyncDispose: unique symbol; } - interface ErrnoException extends Error { - errno?: number | undefined; - code?: string | undefined; - path?: string | undefined; - syscall?: string | undefined; + interface Disposable { + [Symbol.dispose](): void; } - interface ReadableStream extends EventEmitter { - readable: boolean; - read(size?: number): string | Buffer; - setEncoding(encoding: BufferEncoding): this; - pause(): this; - resume(): this; - isPaused(): boolean; - pipe(destination: T, options?: { end?: boolean | undefined }): T; - unpipe(destination?: WritableStream): this; - unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void; - wrap(oldStream: ReadableStream): this; - [Symbol.asyncIterator](): AsyncIterableIterator; + interface AsyncDisposable { + [Symbol.asyncDispose](): PromiseLike; } + // #endregion Disposable - interface WritableStream extends EventEmitter { - writable: boolean; - write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean; - write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean; - end(cb?: () => void): this; - end(data: string | Uint8Array, cb?: () => void): this; - end(str: string, encoding?: BufferEncoding, cb?: () => void): this; - } - - interface ReadWriteStream extends ReadableStream, WritableStream {} - - interface RefCounted { - ref(): this; - unref(): this; - } - - type TypedArray = - | Uint8Array - | Uint8ClampedArray - | Uint16Array - | Uint32Array - | Int8Array - | Int16Array - | Int32Array - | BigUint64Array - | BigInt64Array - | Float32Array - | Float64Array; - type ArrayBufferView = TypedArray | DataView; - - interface Require { - (id: string): any; - resolve: RequireResolve; - cache: Dict; + // #region ArrayLike.at() + interface RelativeIndexable { /** - * @deprecated + * Takes an integer value and returns the item at that index, + * allowing for positive and negative integers. + * Negative integers count back from the last item in the array. */ - extensions: RequireExtensions; - main: Module | undefined; + at(index: number): T | undefined; } + interface String extends RelativeIndexable {} + interface Array extends RelativeIndexable {} + interface ReadonlyArray extends RelativeIndexable {} + interface Int8Array extends RelativeIndexable {} + interface Uint8Array extends RelativeIndexable {} + interface Uint8ClampedArray extends RelativeIndexable {} + interface Int16Array extends RelativeIndexable {} + interface Uint16Array extends RelativeIndexable {} + interface Int32Array extends RelativeIndexable {} + interface Uint32Array extends RelativeIndexable {} + interface Float32Array extends RelativeIndexable {} + interface Float64Array extends RelativeIndexable {} + interface BigInt64Array extends RelativeIndexable {} + interface BigUint64Array extends RelativeIndexable {} + // #endregion ArrayLike.at() end - interface RequireResolve { - (id: string, options?: { paths?: string[] | undefined }): string; - paths(request: string): string[] | null; - } - - interface RequireExtensions extends Dict<(m: Module, filename: string) => any> { - ".js": (m: Module, filename: string) => any; - ".json": (m: Module, filename: string) => any; - ".node": (m: Module, filename: string) => any; - } - interface Module { - /** - * `true` if the module is running during the Node.js preload - */ - isPreloading: boolean; - exports: any; - require: Require; - id: string; - filename: string; - loaded: boolean; - /** @deprecated since v14.6.0 Please use `require.main` and `module.children` instead. */ - parent: Module | null | undefined; - children: Module[]; - /** - * @since v11.14.0 - * - * The directory name of the module. This is usually the same as the path.dirname() of the module.id. - */ - path: string; - paths: string[]; - } - - interface Dict { - [key: string]: T | undefined; + /** + * @since v17.0.0 + * + * Creates a deep clone of an object. + */ + function structuredClone( + value: T, + transfer?: { transfer: ReadonlyArray }, + ): T; + + /*----------------------------------------------* + * * + * GLOBAL INTERFACES * + * * + *-----------------------------------------------*/ + namespace NodeJS { + interface CallSite { + /** + * Value of "this" + */ + getThis(): unknown; + + /** + * Type of "this" as a string. + * This is the name of the function stored in the constructor field of + * "this", if available. Otherwise the object's [[Class]] internal + * property. + */ + getTypeName(): string | null; + + /** + * Current function + */ + getFunction(): Function | undefined; + + /** + * Name of the current function, typically its name property. + * If a name property is not available an attempt will be made to try + * to infer a name from the function's context. + */ + getFunctionName(): string | null; + + /** + * Name of the property [of "this" or one of its prototypes] that holds + * the current function + */ + getMethodName(): string | null; + + /** + * Name of the script [if this function was defined in a script] + */ + getFileName(): string | undefined; + + /** + * Current line number [if this function was defined in a script] + */ + getLineNumber(): number | null; + + /** + * Current column number [if this function was defined in a script] + */ + getColumnNumber(): number | null; + + /** + * A call site object representing the location where eval was called + * [if this function was created using a call to eval] + */ + getEvalOrigin(): string | undefined; + + /** + * Is this a toplevel invocation, that is, is "this" the global object? + */ + isToplevel(): boolean; + + /** + * Does this call take place in code defined by a call to eval? + */ + isEval(): boolean; + + /** + * Is this call in native V8 code? + */ + isNative(): boolean; + + /** + * Is this a constructor call? + */ + isConstructor(): boolean; + } + + interface ErrnoException extends Error { + errno?: number | undefined; + code?: string | undefined; + path?: string | undefined; + syscall?: string | undefined; + } + + interface ReadableStream extends EventEmitter { + readable: boolean; + read(size?: number): string | Buffer; + setEncoding(encoding: BufferEncoding): this; + pause(): this; + resume(): this; + isPaused(): boolean; + pipe(destination: T, options?: { end?: boolean | undefined }): T; + unpipe(destination?: WritableStream): this; + unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void; + wrap(oldStream: ReadableStream): this; + [Symbol.asyncIterator](): AsyncIterableIterator; + } + + interface WritableStream extends EventEmitter { + writable: boolean; + write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean; + write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean; + end(cb?: () => void): this; + end(data: string | Uint8Array, cb?: () => void): this; + end(str: string, encoding?: BufferEncoding, cb?: () => void): this; + } + + interface ReadWriteStream extends ReadableStream, WritableStream {} + + interface RefCounted { + ref(): this; + unref(): this; + } + + type TypedArray = + | Uint8Array + | Uint8ClampedArray + | Uint16Array + | Uint32Array + | Int8Array + | Int16Array + | Int32Array + | BigUint64Array + | BigInt64Array + | Float32Array + | Float64Array; + type ArrayBufferView = TypedArray | DataView; + + interface Require { + (id: string): any; + resolve: RequireResolve; + cache: Dict; + /** + * @deprecated + */ + extensions: RequireExtensions; + main: Module | undefined; + } + + interface RequireResolve { + (id: string, options?: { paths?: string[] | undefined }): string; + paths(request: string): string[] | null; + } + + interface RequireExtensions extends Dict<(m: Module, filename: string) => any> { + ".js": (m: Module, filename: string) => any; + ".json": (m: Module, filename: string) => any; + ".node": (m: Module, filename: string) => any; + } + interface Module { + /** + * `true` if the module is running during the Node.js preload + */ + isPreloading: boolean; + exports: any; + require: Require; + id: string; + filename: string; + loaded: boolean; + /** @deprecated since v14.6.0 Please use `require.main` and `module.children` instead. */ + parent: Module | null | undefined; + children: Module[]; + /** + * @since v11.14.0 + * + * The directory name of the module. This is usually the same as the path.dirname() of the module.id. + */ + path: string; + paths: string[]; + } + + interface Dict { + [key: string]: T | undefined; + } + + interface ReadOnlyDict { + readonly [key: string]: T | undefined; + } } - interface ReadOnlyDict { - readonly [key: string]: T | undefined; - } + interface RequestInit extends _RequestInit {} + + function fetch( + input: string | URL | Request, + init?: RequestInit, + ): Promise; + + interface Request extends _Request {} + var Request: typeof globalThis extends { + onmessage: any; + Request: infer T; + } ? T + : typeof import("undici-types").Request; + + interface ResponseInit extends _ResponseInit {} + + interface Response extends _Response {} + var Response: typeof globalThis extends { + onmessage: any; + Response: infer T; + } ? T + : typeof import("undici-types").Response; + + interface FormData extends _FormData {} + var FormData: typeof globalThis extends { + onmessage: any; + FormData: infer T; + } ? T + : typeof import("undici-types").FormData; + + interface Headers extends _Headers {} + var Headers: typeof globalThis extends { + onmessage: any; + Headers: infer T; + } ? T + : typeof import("undici-types").Headers; } diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/http.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/http.d.ts index b1868b9..73fd70a 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/http.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/http.d.ts @@ -584,7 +584,7 @@ declare module "http" { * @param name Header name * @param value Header value */ - setHeader(name: string, value: number | string | ReadonlyArray): this; + setHeader(name: string, value: number | string | readonly string[]): this; /** * Append a single header value for the header object. * @@ -598,7 +598,7 @@ declare module "http" { * @param name Header name * @param value Header value */ - appendHeader(name: string, value: string | ReadonlyArray): this; + appendHeader(name: string, value: string | readonly string[]): this; /** * Gets the value of HTTP header with the given name. If such a name doesn't * exist in message, it will be `undefined`. diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/http2.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/http2.d.ts index 1898071..03e92ab 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/http2.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/http2.d.ts @@ -55,6 +55,7 @@ declare module "http2" { length: number; } export interface ServerStreamFileResponseOptions { + // eslint-disable-next-line @typescript-eslint/no-invalid-void-type statCheck?(stats: fs.Stats, headers: OutgoingHttpHeaders, statOptions: StatOptions): void | boolean; waitForTrailers?: boolean | undefined; offset?: number | undefined; @@ -850,7 +851,7 @@ declare module "http2" { ): this; addListener( event: "goaway", - listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void, + listener: (errorCode: number, lastStreamID: number, opaqueData?: Buffer) => void, ): this; addListener(event: "localSettings", listener: (settings: Settings) => void): this; addListener(event: "ping", listener: () => void): this; @@ -860,7 +861,7 @@ declare module "http2" { emit(event: "close"): boolean; emit(event: "error", err: Error): boolean; emit(event: "frameError", frameType: number, errorCode: number, streamID: number): boolean; - emit(event: "goaway", errorCode: number, lastStreamID: number, opaqueData: Buffer): boolean; + emit(event: "goaway", errorCode: number, lastStreamID: number, opaqueData?: Buffer): boolean; emit(event: "localSettings", settings: Settings): boolean; emit(event: "ping"): boolean; emit(event: "remoteSettings", settings: Settings): boolean; @@ -869,7 +870,7 @@ declare module "http2" { on(event: "close", listener: () => void): this; on(event: "error", listener: (err: Error) => void): this; on(event: "frameError", listener: (frameType: number, errorCode: number, streamID: number) => void): this; - on(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void): this; + on(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData?: Buffer) => void): this; on(event: "localSettings", listener: (settings: Settings) => void): this; on(event: "ping", listener: () => void): this; on(event: "remoteSettings", listener: (settings: Settings) => void): this; @@ -878,7 +879,7 @@ declare module "http2" { once(event: "close", listener: () => void): this; once(event: "error", listener: (err: Error) => void): this; once(event: "frameError", listener: (frameType: number, errorCode: number, streamID: number) => void): this; - once(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void): this; + once(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData?: Buffer) => void): this; once(event: "localSettings", listener: (settings: Settings) => void): this; once(event: "ping", listener: () => void): this; once(event: "remoteSettings", listener: (settings: Settings) => void): this; @@ -892,7 +893,7 @@ declare module "http2" { ): this; prependListener( event: "goaway", - listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void, + listener: (errorCode: number, lastStreamID: number, opaqueData?: Buffer) => void, ): this; prependListener(event: "localSettings", listener: (settings: Settings) => void): this; prependListener(event: "ping", listener: () => void): this; @@ -907,7 +908,7 @@ declare module "http2" { ): this; prependOnceListener( event: "goaway", - listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void, + listener: (errorCode: number, lastStreamID: number, opaqueData?: Buffer) => void, ): this; prependOnceListener(event: "localSettings", listener: (settings: Settings) => void): this; prependOnceListener(event: "ping", listener: () => void): this; @@ -978,7 +979,7 @@ declare module "http2" { ): this; addListener(event: string | symbol, listener: (...args: any[]) => void): this; emit(event: "altsvc", alt: string, origin: string, stream: number): boolean; - emit(event: "origin", origins: ReadonlyArray): boolean; + emit(event: "origin", origins: readonly string[]): boolean; emit(event: "connect", session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket): boolean; emit( event: "stream", @@ -1416,7 +1417,7 @@ declare module "http2" { stream: ServerHttp2Stream, headers: IncomingHttpHeaders, options: stream.ReadableOptions, - rawHeaders: ReadonlyArray, + rawHeaders: readonly string[], ); /** * The `request.aborted` property will be `true` if the request has @@ -1857,7 +1858,7 @@ declare module "http2" { * ``` * @since v8.4.0 */ - setHeader(name: string, value: number | string | ReadonlyArray): void; + setHeader(name: string, value: number | string | readonly string[]): void; /** * Sets the `Http2Stream`'s timeout value to `msecs`. If a callback is * provided, then it is added as a listener on the `'timeout'` event on diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/module.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/module.d.ts index 9e6e414..3a08656 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/module.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/module.d.ts @@ -120,7 +120,9 @@ declare module "module" { */ findOrigin(lineNumber: number, columnNumber: number): SourceOrigin | {}; } - interface ImportAssertions extends NodeJS.Dict { + /** @deprecated Use `ImportAttributes` instead */ + interface ImportAssertions extends ImportAttributes {} + interface ImportAttributes extends NodeJS.Dict { type?: string | undefined; } type ModuleFormat = "builtin" | "commonjs" | "json" | "module" | "wasm"; @@ -129,6 +131,9 @@ declare module "module" { port: MessagePort; } /** + * @deprecated This hook will be removed in a future version. + * Use `initialize` instead. When a loader has an `initialize` export, `globalPreload` will be ignored. + * * Sometimes it might be necessary to run some code inside of the same global scope that the application runs in. * This hook allows the return of a string that is run as a sloppy-mode script on startup. * @@ -136,15 +141,27 @@ declare module "module" { * @return Code to run before application startup */ type GlobalPreloadHook = (context: GlobalPreloadContext) => string; + /** + * The `initialize` hook provides a way to define a custom function that runs in the hooks thread + * when the hooks module is initialized. Initialization happens when the hooks module is registered via `register`. + * + * This hook can receive data from a `register` invocation, including ports and other transferrable objects. + * The return value of `initialize` can be a `Promise`, in which case it will be awaited before the main application thread execution resumes. + */ + type InitializeHook = (data: Data) => void | Promise; interface ResolveHookContext { /** * Export conditions of the relevant `package.json` */ conditions: string[]; + /** + * @deprecated Use `importAttributes` instead + */ + importAssertions: ImportAttributes; /** * An object whose key-value pairs represent the assertions for the module to import */ - importAssertions: ImportAssertions; + importAttributes: ImportAttributes; /** * The module importing this one, or undefined if this is the Node.js entry point */ @@ -156,9 +173,13 @@ declare module "module" { */ format?: ModuleFormat | null | undefined; /** - * The import assertions to use when caching the module (optional; if excluded the input will be used) + * @deprecated Use `importAttributes` instead */ - importAssertions?: ImportAssertions | undefined; + importAssertions?: ImportAttributes | undefined; + /** + * The import attributes to use when caching the module (optional; if excluded the input will be used) + */ + importAttributes?: ImportAttributes | undefined; /** * A signal that this hook intends to terminate the chain of `resolve` hooks. * @default false @@ -195,10 +216,14 @@ declare module "module" { * The format optionally supplied by the `resolve` hook chain */ format: ModuleFormat; + /** + * @deprecated Use `importAttributes` instead + */ + importAssertions: ImportAttributes; /** * An object whose key-value pairs represent the assertions for the module to import */ - importAssertions: ImportAssertions; + importAttributes: ImportAttributes; } interface LoadFnOutput { format: ModuleFormat; @@ -226,6 +251,11 @@ declare module "module" { nextLoad: (url: string, context?: LoadHookContext) => LoadFnOutput | Promise, ) => LoadFnOutput | Promise; } + interface RegisterOptions { + parentURL: string | URL; + data?: Data | undefined; + transferList?: any[] | undefined; + } interface Module extends NodeModule {} class Module { static runMain(): void; @@ -234,6 +264,12 @@ declare module "module" { static builtinModules: string[]; static isBuiltin(moduleName: string): boolean; static Module: typeof Module; + static register( + specifier: string | URL, + parentURL?: string | URL, + options?: RegisterOptions, + ): void; + static register(specifier: string | URL, options?: RegisterOptions): void; constructor(id: string, parent?: Module); } global { diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/net.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/net.d.ts index 34275fe..782b891 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/net.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/net.d.ts @@ -91,6 +91,12 @@ declare module "net" { */ class Socket extends stream.Duplex { constructor(options?: SocketConstructorOpts); + /** + * Destroys the socket after all data is written. If the `finish` event was already emitted the socket is destroyed immediately. + * If the socket is still writable it implicitly calls `socket.end()`. + * @since v0.3.4 + */ + destroySoon(): void; /** * Sends data on the socket. The second parameter specifies the encoding in the * case of a string. It defaults to UTF8 encoding. diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/perf_hooks.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/perf_hooks.d.ts index 33f5a67..1960fb3 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/perf_hooks.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/perf_hooks.d.ts @@ -445,7 +445,7 @@ declare module "perf_hooks" { observe( options: | { - entryTypes: ReadonlyArray; + entryTypes: readonly EntryType[]; buffered?: boolean | undefined; } | { diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/process.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/process.d.ts index e71ff8e..81d84f0 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/process.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/process.d.ts @@ -894,6 +894,19 @@ declare module "process" { * @since v9.3.0 */ hasUncaughtExceptionCaptureCallback(): boolean; + /** + * This function enables or disables the Source Map v3 support for stack traces. + * It provides same features as launching Node.js process with commandline options --enable-source-maps. + * @since v16.6.0 + * @experimental + */ + setSourceMapsEnabled(value: boolean): void; + /** + * The `process.sourceMapsEnabled` property returns whether the [Source Map v3](https://sourcemaps.info/spec.html) support for stack traces is enabled. + * @since v18.19.0 + * @experimental + */ + readonly sourceMapsEnabled: boolean; /** * The `process.version` property contains the Node.js version string. * diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/punycode.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/punycode.d.ts index eacef7c..cfe559b 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/punycode.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/punycode.d.ts @@ -101,7 +101,7 @@ declare module "punycode" { * Users currently depending on the punycode module should switch to using * the userland-provided Punycode.js module instead. */ - encode(codePoints: ReadonlyArray): string; + encode(codePoints: readonly number[]): string; } /** * @deprecated since v7.0.0 diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/querystring.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/querystring.d.ts index a9b4fd8..1837171 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/querystring.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/querystring.d.ts @@ -25,9 +25,9 @@ declare module "querystring" { | string | number | boolean - | ReadonlyArray - | ReadonlyArray - | ReadonlyArray + | readonly string[] + | readonly number[] + | readonly boolean[] | null > {} diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/stream.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/stream.d.ts index c1b8a25..f7d2afb 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/stream.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/stream.d.ts @@ -46,7 +46,7 @@ declare module "stream" { highWaterMark?: number | undefined; objectMode?: boolean | undefined; construct?(this: T, callback: (error?: Error | null) => void): void; - destroy?(this: T, error: Error | null, callback: (error: Error | null) => void): void; + destroy?(this: T, error: Error | null, callback: (error?: Error | null) => void): void; autoDestroy?: boolean | undefined; } interface ReadableOptions extends StreamOptions { @@ -1025,7 +1025,7 @@ declare module "stream" { callback: (error?: Error | null) => void, ): void; final?(this: Duplex, callback: (error?: Error | null) => void): void; - destroy?(this: Duplex, error: Error | null, callback: (error: Error | null) => void): void; + destroy?(this: Duplex, error: Error | null, callback: (error?: Error | null) => void): void; } /** * Duplex streams are streams that implement both the `Readable` and `Writable` interfaces. @@ -1100,7 +1100,7 @@ declare module "stream" { }>, callback: (error?: Error | null) => void, ): void; - _destroy(error: Error | null, callback: (error: Error | null) => void): void; + _destroy(error: Error | null, callback: (error?: Error | null) => void): void; _final(callback: (error?: Error | null) => void): void; write(chunk: any, encoding?: BufferEncoding, cb?: (error: Error | null | undefined) => void): boolean; write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean; @@ -1229,7 +1229,7 @@ declare module "stream" { callback: (error?: Error | null) => void, ): void; final?(this: Transform, callback: (error?: Error | null) => void): void; - destroy?(this: Transform, error: Error | null, callback: (error: Error | null) => void): void; + destroy?(this: Transform, error: Error | null, callback: (error?: Error | null) => void): void; transform?(this: Transform, chunk: any, encoding: BufferEncoding, callback: TransformCallback): void; flush?(this: Transform, callback: TransformCallback): void; } diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/test.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/test.d.ts index 99b9cce..5557822 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/test.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/test.d.ts @@ -148,19 +148,26 @@ declare module "node:test" { function only(name?: string, fn?: TestFn): Promise; function only(options?: TestOptions, fn?: TestFn): Promise; function only(fn?: TestFn): Promise; - /** * The type of a function under test. The first argument to this function is a * {@link TestContext} object. If the test uses callbacks, the callback function is passed as * the second argument. */ type TestFn = (t: TestContext, done: (result?: any) => void) => any; - /** * The type of a function under Suite. */ type SuiteFn = (s: SuiteContext) => void | Promise; - + interface TestShard { + /** + * A positive integer between 1 and `` that specifies the index of the shard to run. + */ + index: number; + /** + * A positive integer that specifies the total number of shards to split the test files to. + */ + total: number; + } interface RunOptions { /** * If a number is provided, then that many files would run in parallel. @@ -170,26 +177,22 @@ declare module "node:test" { * @default true */ concurrency?: number | boolean | undefined; - /** * An array containing the list of files to run. * If unspecified, the test runner execution model will be used. */ files?: readonly string[] | undefined; - /** * Allows aborting an in-progress test execution. * @default undefined */ signal?: AbortSignal | undefined; - /** * A number of milliseconds the test will fail after. * If unspecified, subtests inherit this value from their parent. * @default Infinity */ timeout?: number | undefined; - /** * Sets inspector port of test child process. * If a nullish value is provided, each process gets its own port, @@ -202,6 +205,11 @@ declare module "node:test" { * For each test that is executed, any corresponding test hooks, such as `beforeEach()`, are also run. */ testNamePatterns?: string | RegExp | string[] | RegExp[]; + /** + * If truthy, the test context will only run tests that have the `only` option set + * @since v18.19.0 + */ + only?: boolean; /** * A function that accepts the TestsStream instance and can be used to setup listeners before any tests are run. */ @@ -211,6 +219,12 @@ declare module "node:test" { * @default false */ watch?: boolean | undefined; + /** + * Running tests in a specific shard. + * @since v18.19.0 + * @default undefined + */ + shard?: TestShard | undefined; } class Test extends AsyncResource { concurrency: number; @@ -561,7 +575,6 @@ declare module "node:test" { implementation?: Implementation, options?: MockFunctionOptions, ): Mock; - /** * This function is used to create a mock on an existing object method. * @param object The object whose method is being mocked. @@ -600,7 +613,6 @@ declare module "node:test" { implementation: Function, options: MockMethodOptions, ): Mock; - /** * This function is syntax sugar for {@link MockTracker.method} with `options.getter` set to `true`. */ @@ -622,7 +634,6 @@ declare module "node:test" { implementation?: Implementation, options?: MockFunctionOptions, ): Mock<(() => MockedObject[MethodName]) | Implementation>; - /** * This function is syntax sugar for {@link MockTracker.method} with `options.setter` set to `true`. */ @@ -644,7 +655,6 @@ declare module "node:test" { implementation?: Implementation, options?: MockFunctionOptions, ): Mock<((value: MockedObject[MethodName]) => void) | Implementation>; - /** * This function restores the default behavior of all mocks that were previously created by this `MockTracker` * and disassociates the mocks from the `MockTracker` instance. Once disassociated, the mocks can still be used, @@ -654,12 +664,12 @@ declare module "node:test" { * If the global `MockTracker` is used extensively, calling this function manually is recommended. */ reset(): void; - /** * This function restores the default behavior of all mocks that were previously created by this `MockTracker`. * Unlike `mock.reset()`, `mock.restoreAll()` does not disassociate the mocks from the `MockTracker` instance. */ restoreAll(): void; + timers: MockTimers; } const mock: MockTracker; @@ -742,11 +752,172 @@ declare module "node:test" { */ restore(): void; } + type Timer = "setInterval" | "clearInterval" | "setTimeout" | "clearTimeout"; + /** + * Mocking timers is a technique commonly used in software testing to simulate and + * control the behavior of timers, such as `setInterval` and `setTimeout`, + * without actually waiting for the specified time intervals. + * + * The `MockTracker` provides a top-level `timers` export + * which is a `MockTimers` instance. + * @since v18.19.0 + * @experimental + */ + class MockTimers { + /** + * Enables timer mocking for the specified timers. + * + * **Note:** When you enable mocking for a specific timer, its associated + * clear function will also be implicitly mocked. + * + * Example usage: + * + * ```js + * import { mock } from 'node:test'; + * mock.timers.enable(['setInterval']); + * ``` + * + * The above example enables mocking for the `setInterval` timer and + * implicitly mocks the `clearInterval` function. Only the `setInterval`and `clearInterval` functions from `node:timers`,`node:timers/promises`, and`globalThis` will be mocked. + * + * Alternatively, if you call `mock.timers.enable()` without any parameters: + * + * All timers (`'setInterval'`, `'clearInterval'`, `'setTimeout'`, and `'clearTimeout'`) + * will be mocked. The `setInterval`, `clearInterval`, `setTimeout`, and `clearTimeout`functions from `node:timers`, `node:timers/promises`, + * and `globalThis` will be mocked. + * @since v18.19.0 + */ + enable(timers?: Timer[]): void; + /** + * This function restores the default behavior of all mocks that were previously + * created by this `MockTimers` instance and disassociates the mocks + * from the `MockTracker` instance. + * + * **Note:** After each test completes, this function is called on + * the test context's `MockTracker`. + * + * ```js + * import { mock } from 'node:test'; + * mock.timers.reset(); + * ``` + * @since v18.19.0 + */ + reset(): void; + /** + * Advances time for all mocked timers. + * + * **Note:** This diverges from how `setTimeout` in Node.js behaves and accepts + * only positive numbers. In Node.js, `setTimeout` with negative numbers is + * only supported for web compatibility reasons. + * + * The following example mocks a `setTimeout` function and + * by using `.tick` advances in + * time triggering all pending timers. + * + * ```js + * import assert from 'node:assert'; + * import { test } from 'node:test'; + * + * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => { + * const fn = context.mock.fn(); + * + * context.mock.timers.enable(['setTimeout']); + * + * setTimeout(fn, 9999); + * + * assert.strictEqual(fn.mock.callCount(), 0); + * + * // Advance in time + * context.mock.timers.tick(9999); + * + * assert.strictEqual(fn.mock.callCount(), 1); + * }); + * ``` + * + * Alternativelly, the `.tick` function can be called many times + * + * ```js + * import assert from 'node:assert'; + * import { test } from 'node:test'; + * + * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => { + * const fn = context.mock.fn(); + * context.mock.timers.enable(['setTimeout']); + * const nineSecs = 9000; + * setTimeout(fn, nineSecs); + * + * const twoSeconds = 3000; + * context.mock.timers.tick(twoSeconds); + * context.mock.timers.tick(twoSeconds); + * context.mock.timers.tick(twoSeconds); + * + * assert.strictEqual(fn.mock.callCount(), 1); + * }); + * ``` + * @since v18.19.0 + */ + tick(milliseconds: number): void; + /** + * Triggers all pending mocked timers immediately. + * + * The example below triggers all pending timers immediately, + * causing them to execute without any delay. + * + * ```js + * import assert from 'node:assert'; + * import { test } from 'node:test'; + * + * test('runAll functions following the given order', (context) => { + * context.mock.timers.enable(['setTimeout']); + * const results = []; + * setTimeout(() => results.push(1), 9999); + * + * // Notice that if both timers have the same timeout, + * // the order of execution is guaranteed + * setTimeout(() => results.push(3), 8888); + * setTimeout(() => results.push(2), 8888); + * + * assert.deepStrictEqual(results, []); + * + * context.mock.timers.runAll(); + * + * assert.deepStrictEqual(results, [3, 2, 1]); + * }); + * ``` + * + * **Note:** The `runAll()` function is specifically designed for + * triggering timers in the context of timer mocking. + * It does not have any effect on real-time system + * clocks or actual timers outside of the mocking environment. + * @since v18.19.0 + */ + runAll(): void; + /** + * Calls {@link MockTimers.reset()}. + */ + [Symbol.dispose](): void; + } export { after, afterEach, before, beforeEach, describe, it, mock, run, test, test as default }; } -interface DiagnosticData { +interface TestLocationInfo { + /** + * The column number where the test is defined, or + * `undefined` if the test was run through the REPL. + */ + column?: number; + /** + * The path of the test file, `undefined` if test is not ran through a file. + */ + file?: string; + /** + * The line number where the test is defined, or + * `undefined` if the test was run through the REPL. + */ + line?: number; +} +interface DiagnosticData extends TestLocationInfo { /** * The diagnostic message. */ @@ -755,12 +926,8 @@ interface DiagnosticData { * The nesting level of the test. */ nesting: number; - /** - * The path of the test file, undefined if test is not ran through a file. - */ - file?: string; } -interface TestFail { +interface TestFail extends TestLocationInfo { /** * Additional execution metadata. */ @@ -799,12 +966,8 @@ interface TestFail { * Present if `context.skip` is called. */ skip?: string | boolean; - /** - * The path of the test file, undefined if test is not ran through a file. - */ - file?: string; } -interface TestPass { +interface TestPass extends TestLocationInfo { /** * Additional execution metadata. */ @@ -839,12 +1002,8 @@ interface TestPass { * Present if `context.skip` is called. */ skip?: string | boolean; - /** - * The path of the test file, undefined if test is not ran through a file. - */ - file?: string; } -interface TestPlan { +interface TestPlan extends TestLocationInfo { /** * The nesting level of the test. */ @@ -853,12 +1012,8 @@ interface TestPlan { * The number of subtests that have ran. */ count: number; - /** - * The path of the test file, undefined if test is not ran through a file. - */ - file?: string; } -interface TestStart { +interface TestStart extends TestLocationInfo { /** * The test name. */ @@ -867,54 +1022,34 @@ interface TestStart { * The nesting level of the test. */ nesting: number; - /** - * The path of the test file, undefined if test is not ran through a file. - */ - file?: string; } -interface TestStderr { - /** - * The path of the test file, undefined if test is not ran through a file. - */ - file?: string; +interface TestStderr extends TestLocationInfo { /** * The message written to `stderr` */ message: string; } -interface TestStdout { - /** - * The path of the test file, undefined if test is not ran through a file. - */ - file?: string; +interface TestStdout extends TestLocationInfo { /** * The message written to `stdout` */ message: string; } -interface TestEnqueue { +interface TestEnqueue extends TestLocationInfo { /** * The test name */ name: string; - /** - * The path of the test file, undefined if test is not ran through a file. - */ - file?: string; /** * The nesting level of the test. */ nesting: number; } -interface TestDequeue { +interface TestDequeue extends TestLocationInfo { /** * The test name */ name: string; - /** - * The path of the test file, undefined if test is not ran through a file. - */ - file?: string; /** * The nesting level of the test. */ @@ -970,5 +1105,9 @@ declare module "node:test/reporters" { class Spec extends Transform { constructor(); } - export { dot, Spec as spec, tap, TestEvent }; + /** + * The `junit` reporter outputs test results in a jUnit XML format + */ + function junit(source: TestEventGenerator): AsyncGenerator; + export { dot, junit, Spec as spec, tap, TestEvent }; } diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/timers.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/timers.d.ts index 7b23bd3..0d1beed 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/timers.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/timers.d.ts @@ -89,7 +89,7 @@ declare module "timers" { ...args: TArgs ): NodeJS.Timeout; // util.promisify no rest args compability - // tslint:disable-next-line void-return + // eslint-disable-next-line @typescript-eslint/no-invalid-void-type function setTimeout(callback: (args: void) => void, ms?: number): NodeJS.Timeout; namespace setTimeout { const __promisify__: typeof setTimeoutPromise; @@ -101,7 +101,7 @@ declare module "timers" { ...args: TArgs ): NodeJS.Timeout; // util.promisify no rest args compability - // tslint:disable-next-line void-return + // eslint-disable-next-line @typescript-eslint/no-invalid-void-type function setInterval(callback: (args: void) => void, ms?: number): NodeJS.Timeout; namespace setInterval { const __promisify__: typeof setIntervalPromise; @@ -112,7 +112,7 @@ declare module "timers" { ...args: TArgs ): NodeJS.Immediate; // util.promisify no rest args compability - // tslint:disable-next-line void-return + // eslint-disable-next-line @typescript-eslint/no-invalid-void-type function setImmediate(callback: (args: void) => void): NodeJS.Immediate; namespace setImmediate { const __promisify__: typeof setImmediatePromise; diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/tls.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/tls.d.ts index 653c8be..8c6ff90 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/tls.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/tls.d.ts @@ -797,6 +797,18 @@ declare module "tls" { } type SecureVersion = "TLSv1.3" | "TLSv1.2" | "TLSv1.1" | "TLSv1"; interface SecureContextOptions { + /** + * If set, this will be called when a client opens a connection using the ALPN extension. + * One argument will be passed to the callback: an object containing `servername` and `protocols` fields, + * respectively containing the server name from the SNI extension (if any) and an array of + * ALPN protocol name strings. The callback must return either one of the strings listed in `protocols`, + * which will be returned to the client as the selected ALPN protocol, or `undefined`, + * to reject the connection with a fatal alert. If a string is returned that does not match one of + * the client's ALPN protocols, an error will be thrown. + * This option cannot be used with the `ALPNProtocols` option, and setting both options will throw an error. + * @since v18.19.0 + */ + ALPNCallback?: ((arg: { servername: string; protocols: string[] }) => string | undefined) | undefined; /** * Optionally override the trusted CA certificates. Default is to trust * the well-known CAs curated by Mozilla. Mozilla's CAs are completely @@ -1184,7 +1196,7 @@ declare module "tls" { * format) used for verifying peer certificates. This is the default value * of the ca option to tls.createSecureContext(). */ - const rootCertificates: ReadonlyArray; + const rootCertificates: readonly string[]; } declare module "node:tls" { export * from "tls"; diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/url.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/url.d.ts index f01836c..ea7b7b1 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/url.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/url.d.ts @@ -774,7 +774,7 @@ declare module "url" { init?: | URLSearchParams | string - | Record> + | Record | Iterable<[string, string]> | ReadonlyArray<[string, string]>, ); diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/util.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/util.d.ts index ed3fdb2..3b1d9f9 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/util.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/util.d.ts @@ -1574,9 +1574,6 @@ declare module "util" { [Symbol.iterator]: typeof MIMEParams.prototype.entries; } } -declare module "util/types" { - export * from "util/types"; -} declare module "util/types" { import { KeyObject, webcrypto } from "node:crypto"; /** diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/vm.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/vm.d.ts index ee007ca..c63d156 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/vm.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/vm.d.ts @@ -37,7 +37,7 @@ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/vm.js) */ declare module "vm" { - import { ImportAssertions } from "node:module"; + import { ImportAttributes } from "node:module"; interface Context extends NodeJS.Dict {} interface BaseOptions { /** @@ -68,7 +68,7 @@ declare module "vm" { * If this option is not specified, calls to `import()` will reject with `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING`. */ importModuleDynamically?: - | ((specifier: string, script: Script, importAssertions: ImportAssertions) => Module) + | ((specifier: string, script: Script, importAttributes: ImportAttributes) => Module) | undefined; } interface RunningScriptOptions extends BaseOptions { @@ -489,7 +489,7 @@ declare module "vm" { */ function compileFunction( code: string, - params?: ReadonlyArray, + params?: readonly string[], options?: CompileFunctionOptions, ): Function & { cachedData?: Script["cachedData"] | undefined; @@ -560,7 +560,11 @@ declare module "vm" { type ModuleLinker = ( specifier: string, referencingModule: Module, - extra: { assert: Object }, + extra: { + /** @deprecated Use `attributes` instead */ + assert: ImportAttributes; + attributes: ImportAttributes; + }, ) => Module | Promise; type ModuleStatus = "unlinked" | "linking" | "linked" | "evaluating" | "evaluated" | "errored"; class Module { diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/wasi.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/wasi.d.ts index 9af8059..6bad90a 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/wasi.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/wasi.d.ts @@ -133,7 +133,7 @@ declare module "wasi" { * If `start()` is called more than once, an exception is thrown. * @since v13.3.0, v12.16.0 */ - start(instance: object): void; // TODO: avoid DOM dependency until WASM moved to own lib. + start(instance: object): number; // TODO: avoid DOM dependency until WASM moved to own lib. /** * Attempt to initialize `instance` as a WASI reactor by invoking its`_initialize()` export, if it is present. If `instance` contains a `_start()`export, then an exception is thrown. * diff --git a/node_modules/electron/node_modules/@types/node/ts4.8/worker_threads.d.ts b/node_modules/electron/node_modules/@types/node/ts4.8/worker_threads.d.ts index 252fda7..ad76c4c 100644 --- a/node_modules/electron/node_modules/@types/node/ts4.8/worker_threads.d.ts +++ b/node_modules/electron/node_modules/@types/node/ts4.8/worker_threads.d.ts @@ -173,7 +173,7 @@ declare module "worker_threads" { * behind this API, see the `serialization API of the v8 module`. * @since v10.5.0 */ - postMessage(value: any, transferList?: ReadonlyArray): void; + postMessage(value: any, transferList?: readonly TransferListItem[]): void; /** * Opposite of `unref()`. Calling `ref()` on a previously `unref()`ed port does _not_ let the program exit if it's the only active handle left (the default * behavior). If the port is `ref()`ed, calling `ref()` again has no effect. @@ -404,7 +404,7 @@ declare module "worker_threads" { * See `port.postMessage()` for more details. * @since v10.5.0 */ - postMessage(value: any, transferList?: ReadonlyArray): void; + postMessage(value: any, transferList?: readonly TransferListItem[]): void; /** * Opposite of `unref()`, calling `ref()` on a previously `unref()`ed worker does _not_ let the program exit if it's the only active handle left (the default * behavior). If the worker is `ref()`ed, calling `ref()` again has diff --git a/node_modules/electron/node_modules/@types/node/url.d.ts b/node_modules/electron/node_modules/@types/node/url.d.ts index f01836c..ea7b7b1 100644 --- a/node_modules/electron/node_modules/@types/node/url.d.ts +++ b/node_modules/electron/node_modules/@types/node/url.d.ts @@ -774,7 +774,7 @@ declare module "url" { init?: | URLSearchParams | string - | Record> + | Record | Iterable<[string, string]> | ReadonlyArray<[string, string]>, ); diff --git a/node_modules/electron/node_modules/@types/node/util.d.ts b/node_modules/electron/node_modules/@types/node/util.d.ts index 845332a..6adf5db 100644 --- a/node_modules/electron/node_modules/@types/node/util.d.ts +++ b/node_modules/electron/node_modules/@types/node/util.d.ts @@ -1574,9 +1574,6 @@ declare module "util" { [Symbol.iterator]: typeof MIMEParams.prototype.entries; } } -declare module "util/types" { - export * from "util/types"; -} declare module "util/types" { import { KeyObject, webcrypto } from "node:crypto"; /** diff --git a/node_modules/electron/node_modules/@types/node/vm.d.ts b/node_modules/electron/node_modules/@types/node/vm.d.ts index ee007ca..c63d156 100644 --- a/node_modules/electron/node_modules/@types/node/vm.d.ts +++ b/node_modules/electron/node_modules/@types/node/vm.d.ts @@ -37,7 +37,7 @@ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/vm.js) */ declare module "vm" { - import { ImportAssertions } from "node:module"; + import { ImportAttributes } from "node:module"; interface Context extends NodeJS.Dict {} interface BaseOptions { /** @@ -68,7 +68,7 @@ declare module "vm" { * If this option is not specified, calls to `import()` will reject with `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING`. */ importModuleDynamically?: - | ((specifier: string, script: Script, importAssertions: ImportAssertions) => Module) + | ((specifier: string, script: Script, importAttributes: ImportAttributes) => Module) | undefined; } interface RunningScriptOptions extends BaseOptions { @@ -489,7 +489,7 @@ declare module "vm" { */ function compileFunction( code: string, - params?: ReadonlyArray, + params?: readonly string[], options?: CompileFunctionOptions, ): Function & { cachedData?: Script["cachedData"] | undefined; @@ -560,7 +560,11 @@ declare module "vm" { type ModuleLinker = ( specifier: string, referencingModule: Module, - extra: { assert: Object }, + extra: { + /** @deprecated Use `attributes` instead */ + assert: ImportAttributes; + attributes: ImportAttributes; + }, ) => Module | Promise; type ModuleStatus = "unlinked" | "linking" | "linked" | "evaluating" | "evaluated" | "errored"; class Module { diff --git a/node_modules/electron/node_modules/@types/node/wasi.d.ts b/node_modules/electron/node_modules/@types/node/wasi.d.ts index 9af8059..6bad90a 100644 --- a/node_modules/electron/node_modules/@types/node/wasi.d.ts +++ b/node_modules/electron/node_modules/@types/node/wasi.d.ts @@ -133,7 +133,7 @@ declare module "wasi" { * If `start()` is called more than once, an exception is thrown. * @since v13.3.0, v12.16.0 */ - start(instance: object): void; // TODO: avoid DOM dependency until WASM moved to own lib. + start(instance: object): number; // TODO: avoid DOM dependency until WASM moved to own lib. /** * Attempt to initialize `instance` as a WASI reactor by invoking its`_initialize()` export, if it is present. If `instance` contains a `_start()`export, then an exception is thrown. * diff --git a/node_modules/electron/node_modules/@types/node/worker_threads.d.ts b/node_modules/electron/node_modules/@types/node/worker_threads.d.ts index 252fda7..ad76c4c 100644 --- a/node_modules/electron/node_modules/@types/node/worker_threads.d.ts +++ b/node_modules/electron/node_modules/@types/node/worker_threads.d.ts @@ -173,7 +173,7 @@ declare module "worker_threads" { * behind this API, see the `serialization API of the v8 module`. * @since v10.5.0 */ - postMessage(value: any, transferList?: ReadonlyArray): void; + postMessage(value: any, transferList?: readonly TransferListItem[]): void; /** * Opposite of `unref()`. Calling `ref()` on a previously `unref()`ed port does _not_ let the program exit if it's the only active handle left (the default * behavior). If the port is `ref()`ed, calling `ref()` again has no effect. @@ -404,7 +404,7 @@ declare module "worker_threads" { * See `port.postMessage()` for more details. * @since v10.5.0 */ - postMessage(value: any, transferList?: ReadonlyArray): void; + postMessage(value: any, transferList?: readonly TransferListItem[]): void; /** * Opposite of `unref()`, calling `ref()` on a previously `unref()`ed worker does _not_ let the program exit if it's the only active handle left (the default * behavior). If the worker is `ref()`ed, calling `ref()` again has diff --git a/node_modules/electron/package.json b/node_modules/electron/package.json index 09f2a80..d09782d 100644 --- a/node_modules/electron/package.json +++ b/node_modules/electron/package.json @@ -23,5 +23,5 @@ "keywords": [ "electron" ], - "version": "27.0.2" + "version": "27.2.1" } \ No newline at end of file diff --git a/package.json b/package.json index 3497d74..70cca1e 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,6 @@ "mac": { "category": "public.app-category.utilities" }, - "nsis": { "oneClick": false, "allowToChangeInstallationDirectory": true @@ -97,10 +96,8 @@ "dom-align": "^1.12.2", "earthsdk": "^1.7.16", "echarts": "^5.3.2", - "electron-packager": "^17.1.2", "emoji-mart-vue-fast": "^11.1.1", "enquire.js": "^2.1.6", - "ffmpeg-static": "^5.2.0", "intro.js": "^5.1.0", "jquery": "^3.7.0", "jsmpeg-player": "^3.0.3", @@ -111,6 +108,7 @@ "mitt": "^3.0.1", "mockjs": "^1.1.0", "moment": "^2.29.4", + "mqtt": "^5.3.4", "node-rtsp-stream": "^0.0.9", "nprogress": "^0.2.0", "particles.vue3": "^2.11.0",