Browse Source

1.清除忽略electron

2.暂时忽略"ffmpeg-static"包
3.新增mqtt依赖
4.移除electron-packager 依赖
master
DIAMOND 9 months ago
parent
commit
cd8c75be00
  1. 2
      .gitignore
  2. 150
      node_modules/electron/checksums.json
  3. 29
      node_modules/electron/electron.d.ts
  4. 4
      node_modules/electron/node_modules/@types/node/assert.d.ts
  5. 8
      node_modules/electron/node_modules/@types/node/buffer.d.ts
  6. 66
      node_modules/electron/node_modules/@types/node/child_process.d.ts
  7. 2
      node_modules/electron/node_modules/@types/node/console.d.ts
  8. 24
      node_modules/electron/node_modules/@types/node/crypto.d.ts
  9. 16
      node_modules/electron/node_modules/@types/node/dgram.d.ts
  10. 2
      node_modules/electron/node_modules/@types/node/dns.d.ts
  11. 10
      node_modules/electron/node_modules/@types/node/dns/promises.d.ts
  12. 16
      node_modules/electron/node_modules/@types/node/fs.d.ts
  13. 4
      node_modules/electron/node_modules/@types/node/fs/promises.d.ts
  14. 78
      node_modules/electron/node_modules/@types/node/globals.d.ts
  15. 4
      node_modules/electron/node_modules/@types/node/http.d.ts
  16. 19
      node_modules/electron/node_modules/@types/node/http2.d.ts
  17. 46
      node_modules/electron/node_modules/@types/node/module.d.ts
  18. 6
      node_modules/electron/node_modules/@types/node/net.d.ts
  19. 10
      node_modules/electron/node_modules/@types/node/package.json
  20. 2
      node_modules/electron/node_modules/@types/node/perf_hooks.d.ts
  21. 13
      node_modules/electron/node_modules/@types/node/process.d.ts
  22. 2
      node_modules/electron/node_modules/@types/node/punycode.d.ts
  23. 6
      node_modules/electron/node_modules/@types/node/querystring.d.ts
  24. 8
      node_modules/electron/node_modules/@types/node/stream.d.ts
  25. 255
      node_modules/electron/node_modules/@types/node/test.d.ts
  26. 6
      node_modules/electron/node_modules/@types/node/timers.d.ts
  27. 14
      node_modules/electron/node_modules/@types/node/tls.d.ts
  28. 4
      node_modules/electron/node_modules/@types/node/ts4.8/assert.d.ts
  29. 8
      node_modules/electron/node_modules/@types/node/ts4.8/buffer.d.ts
  30. 66
      node_modules/electron/node_modules/@types/node/ts4.8/child_process.d.ts
  31. 2
      node_modules/electron/node_modules/@types/node/ts4.8/console.d.ts
  32. 24
      node_modules/electron/node_modules/@types/node/ts4.8/crypto.d.ts
  33. 16
      node_modules/electron/node_modules/@types/node/ts4.8/dgram.d.ts
  34. 2
      node_modules/electron/node_modules/@types/node/ts4.8/dns.d.ts
  35. 10
      node_modules/electron/node_modules/@types/node/ts4.8/dns/promises.d.ts
  36. 16
      node_modules/electron/node_modules/@types/node/ts4.8/fs.d.ts
  37. 4
      node_modules/electron/node_modules/@types/node/ts4.8/fs/promises.d.ts
  38. 78
      node_modules/electron/node_modules/@types/node/ts4.8/globals.d.ts
  39. 4
      node_modules/electron/node_modules/@types/node/ts4.8/http.d.ts
  40. 19
      node_modules/electron/node_modules/@types/node/ts4.8/http2.d.ts
  41. 46
      node_modules/electron/node_modules/@types/node/ts4.8/module.d.ts
  42. 6
      node_modules/electron/node_modules/@types/node/ts4.8/net.d.ts
  43. 2
      node_modules/electron/node_modules/@types/node/ts4.8/perf_hooks.d.ts
  44. 13
      node_modules/electron/node_modules/@types/node/ts4.8/process.d.ts
  45. 2
      node_modules/electron/node_modules/@types/node/ts4.8/punycode.d.ts
  46. 6
      node_modules/electron/node_modules/@types/node/ts4.8/querystring.d.ts
  47. 8
      node_modules/electron/node_modules/@types/node/ts4.8/stream.d.ts
  48. 255
      node_modules/electron/node_modules/@types/node/ts4.8/test.d.ts
  49. 6
      node_modules/electron/node_modules/@types/node/ts4.8/timers.d.ts
  50. 14
      node_modules/electron/node_modules/@types/node/ts4.8/tls.d.ts
  51. 2
      node_modules/electron/node_modules/@types/node/ts4.8/url.d.ts
  52. 3
      node_modules/electron/node_modules/@types/node/ts4.8/util.d.ts
  53. 12
      node_modules/electron/node_modules/@types/node/ts4.8/vm.d.ts
  54. 2
      node_modules/electron/node_modules/@types/node/ts4.8/wasi.d.ts
  55. 4
      node_modules/electron/node_modules/@types/node/ts4.8/worker_threads.d.ts
  56. 2
      node_modules/electron/node_modules/@types/node/url.d.ts
  57. 3
      node_modules/electron/node_modules/@types/node/util.d.ts
  58. 12
      node_modules/electron/node_modules/@types/node/vm.d.ts
  59. 2
      node_modules/electron/node_modules/@types/node/wasi.d.ts
  60. 4
      node_modules/electron/node_modules/@types/node/worker_threads.d.ts
  61. 2
      node_modules/electron/package.json
  62. 4
      package.json

2
.gitignore

@ -1,6 +1,4 @@
node_modules
# !node_modules/electron
# !node_modules/electron-builder
.DS_Store
.github
dist

150
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"
}

29
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 <https://github.com/electron/electron>
// 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<GlobalResponse>;
fetch(input: (string) | (GlobalRequest), init?: RequestInit & { bypassCustomProtocolHandlers?: boolean }): Promise<GlobalResponse>;
/**
* 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 {

4
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;
/**

8
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<any>): 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<number>): Buffer;
from(data: WithImplicitCoercion<Uint8Array | ReadonlyArray<number> | string>): Buffer;
from(data: Uint8Array | readonly number[]): Buffer;
from(data: WithImplicitCoercion<Uint8Array | readonly number[] | string>): 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<Uint8Array>, totalLength?: number): Buffer;
concat(list: readonly Uint8Array[], totalLength?: number): Buffer;
/**
* Copies the underlying memory of `view` into a new `Buffer`.
* @since v18.16.0

66
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<string>,
args?: readonly string[],
options?: SpawnOptionsWithoutStdio,
): ChildProcessWithoutNullStreams;
function spawn(
command: string,
args: ReadonlyArray<string>,
args: readonly string[],
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioPipe>,
): ChildProcessByStdio<Writable, Readable, Readable>;
function spawn(
command: string,
args: ReadonlyArray<string>,
args: readonly string[],
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioNull>,
): ChildProcessByStdio<Writable, Readable, null>;
function spawn(
command: string,
args: ReadonlyArray<string>,
args: readonly string[],
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioPipe>,
): ChildProcessByStdio<Writable, null, Readable>;
function spawn(
command: string,
args: ReadonlyArray<string>,
args: readonly string[],
options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioPipe>,
): ChildProcessByStdio<null, Readable, Readable>;
function spawn(
command: string,
args: ReadonlyArray<string>,
args: readonly string[],
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioNull>,
): ChildProcessByStdio<Writable, null, null>;
function spawn(
command: string,
args: ReadonlyArray<string>,
args: readonly string[],
options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioNull>,
): ChildProcessByStdio<null, Readable, null>;
function spawn(
command: string,
args: ReadonlyArray<string>,
args: readonly string[],
options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioPipe>,
): ChildProcessByStdio<null, null, Readable>;
function spawn(
command: string,
args: ReadonlyArray<string>,
args: readonly string[],
options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioNull>,
): ChildProcessByStdio<null, null, null>;
function spawn(command: string, args: ReadonlyArray<string>, 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<string> | null): ChildProcess;
function execFile(file: string, args?: readonly string[] | null): ChildProcess;
function execFile(
file: string,
args: ReadonlyArray<string> | 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<string> | 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<string> | 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<string> | 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<string> | 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<string> | 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<string> | 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<string> | 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<string> | 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<string> | 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<string> | 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<string> | 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<string> | 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<string>, 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<string>;
function spawnSync(command: string, options: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
function spawnSync(command: string, args: ReadonlyArray<string>): SpawnSyncReturns<Buffer>;
function spawnSync(command: string, args: readonly string[]): SpawnSyncReturns<Buffer>;
function spawnSync(
command: string,
args: ReadonlyArray<string>,
args: readonly string[],
options: SpawnSyncOptionsWithStringEncoding,
): SpawnSyncReturns<string>;
function spawnSync(
command: string,
args: ReadonlyArray<string>,
args: readonly string[],
options: SpawnSyncOptionsWithBufferEncoding,
): SpawnSyncReturns<Buffer>;
function spawnSync(
command: string,
args?: ReadonlyArray<string>,
args?: readonly string[],
options?: SpawnSyncOptions,
): SpawnSyncReturns<string | Buffer>;
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<string>): Buffer;
function execFileSync(file: string, args: readonly string[]): Buffer;
function execFileSync(
file: string,
args: ReadonlyArray<string>,
args: readonly string[],
options: ExecFileSyncOptionsWithStringEncoding,
): string;
function execFileSync(
file: string,
args: ReadonlyArray<string>,
args: readonly string[],
options: ExecFileSyncOptionsWithBufferEncoding,
): Buffer;
function execFileSync(file: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): string | Buffer;
function execFileSync(file: string, args?: readonly string[], options?: ExecFileSyncOptions): string | Buffer;
}
declare module "node:child_process" {
export * from "child_process";

2
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<string>): 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

24
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<PubF extends KeyFormat, PrivF extends KeyFormat> {
/**
* Name of the curve to use.
*/
namedCurve: string;
interface ECKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> extends ECKeyPairKeyObjectOptions {
publicKeyEncoding: {
type: "pkcs1" | "spki";
format: PubF;
@ -4203,7 +4209,7 @@ declare module "crypto" {
| HkdfParams
| Pbkdf2Params,
extractable: boolean,
keyUsages: ReadonlyArray<KeyUsage>,
keyUsages: readonly KeyUsage[],
): Promise<CryptoKey>;
/**
* 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<KeyUsage>,
keyUsages: readonly KeyUsage[],
): Promise<CryptoKeyPair>;
generateKey(
algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params,
extractable: boolean,
keyUsages: ReadonlyArray<KeyUsage>,
keyUsages: readonly KeyUsage[],
): Promise<CryptoKey>;
generateKey(
algorithm: AlgorithmIdentifier,
@ -4315,7 +4321,7 @@ declare module "crypto" {
| HmacImportParams
| AesKeyAlgorithm,
extractable: boolean,
keyUsages: ReadonlyArray<KeyUsage>,
keyUsages: readonly KeyUsage[],
): Promise<CryptoKey>;
importKey(
format: Exclude<KeyFormat, "jwk">,

16
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<any>,
msg: string | Uint8Array | readonly any[],
port?: number,
address?: string,
callback?: (error: Error | null, bytes: number) => void,
): void;
send(
msg: string | Uint8Array | ReadonlyArray<any>,
msg: string | Uint8Array | readonly any[],
port?: number,
callback?: (error: Error | null, bytes: number) => void,
): void;
send(
msg: string | Uint8Array | ReadonlyArray<any>,
msg: string | Uint8Array | readonly any[],
callback?: (error: Error | null, bytes: number) => void,
): void;
send(

2
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<string>): 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

10
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<string[]>;
/**
* 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<string>): void;
function setServers(servers: readonly string[]): void;
/**
* Set the default value of `verbatim` in `dns.lookup()` and `dnsPromises.lookup()`. The value could be:
*

16
node_modules/electron/node_modules/@types/node/fs.d.ts

@ -3991,12 +3991,12 @@ declare module "fs" {
*/
export function writev(
fd: number,
buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
buffers: readonly NodeJS.ArrayBufferView[],
cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void,
): void;
export function writev(
fd: number,
buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
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<NodeJS.ArrayBufferView>,
buffers: readonly NodeJS.ArrayBufferView[],
position?: number,
): Promise<WriteVResult>;
}
@ -4017,7 +4017,7 @@ declare module "fs" {
* @since v12.9.0
* @return The number of bytes written.
*/
export function writevSync(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, 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<NodeJS.ArrayBufferView>,
buffers: readonly NodeJS.ArrayBufferView[],
cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void,
): void;
export function readv(
fd: number,
buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
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<NodeJS.ArrayBufferView>,
buffers: readonly NodeJS.ArrayBufferView[],
position?: number,
): Promise<ReadVResult>;
}
@ -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<NodeJS.ArrayBufferView>, position?: number): number;
export function readvSync(fd: number, buffers: readonly NodeJS.ArrayBufferView[], position?: number): number;
export interface OpenDirOptions {
encoding?: BufferEncoding | undefined;
/**

4
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<NodeJS.ArrayBufferView>, position?: number): Promise<WriteVResult>;
writev(buffers: readonly NodeJS.ArrayBufferView[], position?: number): Promise<WriteVResult>;
/**
* 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<NodeJS.ArrayBufferView>, position?: number): Promise<ReadVResult>;
readv(buffers: readonly NodeJS.ArrayBufferView[], position?: number): Promise<ReadVResult>;
/**
* Closes the file handle after waiting for any pending operation on the handle to
* complete.

78
node_modules/electron/node_modules/@types/node/globals.d.ts

@ -1,3 +1,19 @@
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 */
@ -24,22 +40,22 @@ interface NodeRequire extends NodeJS.Require {}
interface RequireResolve extends NodeJS.RequireResolve {}
interface NodeModule extends NodeJS.Module {}
declare var process: NodeJS.Process;
declare var console: Console;
var process: NodeJS.Process;
var console: Console;
declare var __filename: string;
declare var __dirname: string;
var __filename: string;
var __dirname: string;
declare var require: NodeRequire;
declare var module: NodeModule;
var require: NodeRequire;
var module: NodeModule;
// Same as module.exports
declare var exports: any;
var exports: any;
/**
* Only available if `--expose-gc` is passed to the process.
*/
declare var gc: undefined | (() => void);
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
@ -67,13 +83,13 @@ interface AbortSignal extends EventTarget {
throwIfAborted(): void;
}
declare var AbortController: typeof globalThis extends { onmessage: any; AbortController: infer T } ? T
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
var AbortSignal: typeof globalThis extends { onmessage: any; AbortSignal: infer T } ? T
: {
prototype: AbortSignal;
new(): AbortSignal;
@ -134,7 +150,7 @@ interface BigUint64Array extends RelativeIndexable<bigint> {}
*
* Creates a deep clone of an object.
*/
declare function structuredClone<T>(
function structuredClone<T>(
value: T,
transfer?: { transfer: ReadonlyArray<import("worker_threads").TransferListItem> },
): T;
@ -144,7 +160,7 @@ declare function structuredClone<T>(
* GLOBAL INTERFACES *
* *
*-----------------------------------------------*/
declare namespace NodeJS {
namespace NodeJS {
interface CallSite {
/**
* Value of "this"
@ -321,3 +337,41 @@ declare namespace NodeJS {
readonly [key: string]: T | undefined;
}
}
interface RequestInit extends _RequestInit {}
function fetch(
input: string | URL | Request,
init?: RequestInit,
): Promise<Response>;
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;
}

4
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<string>): 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<string>): 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`.

19
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<string>): 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<string>,
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<string>): 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

46
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<string> {
/** @deprecated Use `ImportAttributes` instead */
interface ImportAssertions extends ImportAttributes {}
interface ImportAttributes extends NodeJS.Dict<string> {
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 = any> = (data: Data) => void | Promise<void>;
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>,
) => LoadFnOutput | Promise<LoadFnOutput>;
}
interface RegisterOptions<Data> {
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<Data = any>(
specifier: string | URL,
parentURL?: string | URL,
options?: RegisterOptions<Data>,
): void;
static register<Data = any>(specifier: string | URL, options?: RegisterOptions<Data>): void;
constructor(id: string, parent?: Module);
}
global {

6
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.

10
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
}

2
node_modules/electron/node_modules/@types/node/perf_hooks.d.ts

@ -445,7 +445,7 @@ declare module "perf_hooks" {
observe(
options:
| {
entryTypes: ReadonlyArray<EntryType>;
entryTypes: readonly EntryType[];
buffered?: boolean | undefined;
}
| {

13
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.
*

2
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<number>): string;
encode(codePoints: readonly number[]): string;
}
/**
* @deprecated since v7.0.0

6
node_modules/electron/node_modules/@types/node/querystring.d.ts

@ -25,9 +25,9 @@ declare module "querystring" {
| string
| number
| boolean
| ReadonlyArray<string>
| ReadonlyArray<number>
| ReadonlyArray<boolean>
| readonly string[]
| readonly number[]
| readonly boolean[]
| null
>
{}

8
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<Readable> {
@ -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;
}

255
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<void>;
function only(options?: TestOptions, fn?: TestFn): Promise<void>;
function only(fn?: TestFn): Promise<void>;
/**
* 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<void>;
interface TestShard {
/**
* A positive integer between 1 and `<total>` 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<F | Implementation>;
/**
* 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<Function>;
/**
* 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<string, void>;
export { dot, junit, Spec as spec, tap, TestEvent };
}

6
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;

14
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<string>;
const rootCertificates: readonly string[];
}
declare module "node:tls" {
export * from "tls";

4
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;
/**

8
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<any>): 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<number>): Buffer;
from(data: WithImplicitCoercion<Uint8Array | ReadonlyArray<number> | string>): Buffer;
from(data: Uint8Array | readonly number[]): Buffer;
from(data: WithImplicitCoercion<Uint8Array | readonly number[] | string>): 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<Uint8Array>, totalLength?: number): Buffer;
concat(list: readonly Uint8Array[], totalLength?: number): Buffer;
/**
* Copies the underlying memory of `view` into a new `Buffer`.
* @since v18.16.0

66
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<string>,
args?: readonly string[],
options?: SpawnOptionsWithoutStdio,
): ChildProcessWithoutNullStreams;
function spawn(
command: string,
args: ReadonlyArray<string>,
args: readonly string[],
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioPipe>,
): ChildProcessByStdio<Writable, Readable, Readable>;
function spawn(
command: string,
args: ReadonlyArray<string>,
args: readonly string[],
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioNull>,
): ChildProcessByStdio<Writable, Readable, null>;
function spawn(
command: string,
args: ReadonlyArray<string>,
args: readonly string[],
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioPipe>,
): ChildProcessByStdio<Writable, null, Readable>;
function spawn(
command: string,
args: ReadonlyArray<string>,
args: readonly string[],
options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioPipe>,
): ChildProcessByStdio<null, Readable, Readable>;
function spawn(
command: string,
args: ReadonlyArray<string>,
args: readonly string[],
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioNull>,
): ChildProcessByStdio<Writable, null, null>;
function spawn(
command: string,
args: ReadonlyArray<string>,
args: readonly string[],
options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioNull>,
): ChildProcessByStdio<null, Readable, null>;
function spawn(
command: string,
args: ReadonlyArray<string>,
args: readonly string[],
options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioPipe>,
): ChildProcessByStdio<null, null, Readable>;
function spawn(
command: string,
args: ReadonlyArray<string>,
args: readonly string[],
options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioNull>,
): ChildProcessByStdio<null, null, null>;
function spawn(command: string, args: ReadonlyArray<string>, 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<string> | null): ChildProcess;
function execFile(file: string, args?: readonly string[] | null): ChildProcess;
function execFile(
file: string,
args: ReadonlyArray<string> | 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<string> | 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<string> | 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<string> | 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<string> | 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<string> | 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<string> | 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<string> | 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<string> | 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<string> | 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<string> | 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<string> | 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<string> | 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<string>, 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<string>;
function spawnSync(command: string, options: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
function spawnSync(command: string, args: ReadonlyArray<string>): SpawnSyncReturns<Buffer>;
function spawnSync(command: string, args: readonly string[]): SpawnSyncReturns<Buffer>;
function spawnSync(
command: string,
args: ReadonlyArray<string>,
args: readonly string[],
options: SpawnSyncOptionsWithStringEncoding,
): SpawnSyncReturns<string>;
function spawnSync(
command: string,
args: ReadonlyArray<string>,
args: readonly string[],
options: SpawnSyncOptionsWithBufferEncoding,
): SpawnSyncReturns<Buffer>;
function spawnSync(
command: string,
args?: ReadonlyArray<string>,
args?: readonly string[],
options?: SpawnSyncOptions,
): SpawnSyncReturns<string | Buffer>;
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<string>): Buffer;
function execFileSync(file: string, args: readonly string[]): Buffer;
function execFileSync(
file: string,
args: ReadonlyArray<string>,
args: readonly string[],
options: ExecFileSyncOptionsWithStringEncoding,
): string;
function execFileSync(
file: string,
args: ReadonlyArray<string>,
args: readonly string[],
options: ExecFileSyncOptionsWithBufferEncoding,
): Buffer;
function execFileSync(file: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): string | Buffer;
function execFileSync(file: string, args?: readonly string[], options?: ExecFileSyncOptions): string | Buffer;
}
declare module "node:child_process" {
export * from "child_process";

2
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<string>): 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

24
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<PubF extends KeyFormat, PrivF extends KeyFormat> {
/**
* Name of the curve to use.
*/
namedCurve: string;
interface ECKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> extends ECKeyPairKeyObjectOptions {
publicKeyEncoding: {
type: "pkcs1" | "spki";
format: PubF;
@ -4202,7 +4208,7 @@ declare module "crypto" {
| HkdfParams
| Pbkdf2Params,
extractable: boolean,
keyUsages: ReadonlyArray<KeyUsage>,
keyUsages: readonly KeyUsage[],
): Promise<CryptoKey>;
/**
* 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<KeyUsage>,
keyUsages: readonly KeyUsage[],
): Promise<CryptoKeyPair>;
generateKey(
algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params,
extractable: boolean,
keyUsages: ReadonlyArray<KeyUsage>,
keyUsages: readonly KeyUsage[],
): Promise<CryptoKey>;
generateKey(
algorithm: AlgorithmIdentifier,
@ -4314,7 +4320,7 @@ declare module "crypto" {
| HmacImportParams
| AesKeyAlgorithm,
extractable: boolean,
keyUsages: ReadonlyArray<KeyUsage>,
keyUsages: readonly KeyUsage[],
): Promise<CryptoKey>;
importKey(
format: Exclude<KeyFormat, "jwk">,

16
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<any>,
msg: string | Uint8Array | readonly any[],
port?: number,
address?: string,
callback?: (error: Error | null, bytes: number) => void,
): void;
send(
msg: string | Uint8Array | ReadonlyArray<any>,
msg: string | Uint8Array | readonly any[],
port?: number,
callback?: (error: Error | null, bytes: number) => void,
): void;
send(
msg: string | Uint8Array | ReadonlyArray<any>,
msg: string | Uint8Array | readonly any[],
callback?: (error: Error | null, bytes: number) => void,
): void;
send(

2
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<string>): 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

10
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<string[]>;
/**
* 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<string>): void;
function setServers(servers: readonly string[]): void;
/**
* Set the default value of `verbatim` in `dns.lookup()` and `dnsPromises.lookup()`. The value could be:
*

16
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<NodeJS.ArrayBufferView>,
buffers: readonly NodeJS.ArrayBufferView[],
cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void,
): void;
export function writev(
fd: number,
buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
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<NodeJS.ArrayBufferView>,
buffers: readonly NodeJS.ArrayBufferView[],
position?: number,
): Promise<WriteVResult>;
}
@ -4017,7 +4017,7 @@ declare module "fs" {
* @since v12.9.0
* @return The number of bytes written.
*/
export function writevSync(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, 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<NodeJS.ArrayBufferView>,
buffers: readonly NodeJS.ArrayBufferView[],
cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void,
): void;
export function readv(
fd: number,
buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
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<NodeJS.ArrayBufferView>,
buffers: readonly NodeJS.ArrayBufferView[],
position?: number,
): Promise<ReadVResult>;
}
@ -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<NodeJS.ArrayBufferView>, position?: number): number;
export function readvSync(fd: number, buffers: readonly NodeJS.ArrayBufferView[], position?: number): number;
export interface OpenDirOptions {
encoding?: BufferEncoding | undefined;
/**

4
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<NodeJS.ArrayBufferView>, position?: number): Promise<WriteVResult>;
writev(buffers: readonly NodeJS.ArrayBufferView[], position?: number): Promise<WriteVResult>;
/**
* 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<NodeJS.ArrayBufferView>, position?: number): Promise<ReadVResult>;
readv(buffers: readonly NodeJS.ArrayBufferView[], position?: number): Promise<ReadVResult>;
/**
* Closes the file handle after waiting for any pending operation on the handle to
* complete.

78
node_modules/electron/node_modules/@types/node/ts4.8/globals.d.ts

@ -1,3 +1,19 @@
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 */
@ -24,22 +40,22 @@ interface NodeRequire extends NodeJS.Require {}
interface RequireResolve extends NodeJS.RequireResolve {}
interface NodeModule extends NodeJS.Module {}
declare var process: NodeJS.Process;
declare var console: Console;
var process: NodeJS.Process;
var console: Console;
declare var __filename: string;
declare var __dirname: string;
var __filename: string;
var __dirname: string;
declare var require: NodeRequire;
declare var module: NodeModule;
var require: NodeRequire;
var module: NodeModule;
// Same as module.exports
declare var exports: any;
var exports: any;
/**
* Only available if `--expose-gc` is passed to the process.
*/
declare var gc: undefined | (() => void);
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
@ -67,13 +83,13 @@ interface AbortSignal extends EventTarget {
throwIfAborted(): void;
}
declare var AbortController: typeof globalThis extends { onmessage: any; AbortController: infer T } ? T
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
var AbortSignal: typeof globalThis extends { onmessage: any; AbortSignal: infer T } ? T
: {
prototype: AbortSignal;
new(): AbortSignal;
@ -134,7 +150,7 @@ interface BigUint64Array extends RelativeIndexable<bigint> {}
*
* Creates a deep clone of an object.
*/
declare function structuredClone<T>(
function structuredClone<T>(
value: T,
transfer?: { transfer: ReadonlyArray<import("worker_threads").TransferListItem> },
): T;
@ -144,7 +160,7 @@ declare function structuredClone<T>(
* GLOBAL INTERFACES *
* *
*-----------------------------------------------*/
declare namespace NodeJS {
namespace NodeJS {
interface CallSite {
/**
* Value of "this"
@ -321,3 +337,41 @@ declare namespace NodeJS {
readonly [key: string]: T | undefined;
}
}
interface RequestInit extends _RequestInit {}
function fetch(
input: string | URL | Request,
init?: RequestInit,
): Promise<Response>;
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;
}

4
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<string>): 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<string>): 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`.

19
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<string>): 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<string>,
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<string>): 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

46
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<string> {
/** @deprecated Use `ImportAttributes` instead */
interface ImportAssertions extends ImportAttributes {}
interface ImportAttributes extends NodeJS.Dict<string> {
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 = any> = (data: Data) => void | Promise<void>;
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>,
) => LoadFnOutput | Promise<LoadFnOutput>;
}
interface RegisterOptions<Data> {
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<Data = any>(
specifier: string | URL,
parentURL?: string | URL,
options?: RegisterOptions<Data>,
): void;
static register<Data = any>(specifier: string | URL, options?: RegisterOptions<Data>): void;
constructor(id: string, parent?: Module);
}
global {

6
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.

2
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<EntryType>;
entryTypes: readonly EntryType[];
buffered?: boolean | undefined;
}
| {

13
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.
*

2
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<number>): string;
encode(codePoints: readonly number[]): string;
}
/**
* @deprecated since v7.0.0

6
node_modules/electron/node_modules/@types/node/ts4.8/querystring.d.ts

@ -25,9 +25,9 @@ declare module "querystring" {
| string
| number
| boolean
| ReadonlyArray<string>
| ReadonlyArray<number>
| ReadonlyArray<boolean>
| readonly string[]
| readonly number[]
| readonly boolean[]
| null
>
{}

8
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<Readable> {
@ -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;
}

255
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<void>;
function only(options?: TestOptions, fn?: TestFn): Promise<void>;
function only(fn?: TestFn): Promise<void>;
/**
* 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<void>;
interface TestShard {
/**
* A positive integer between 1 and `<total>` 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<F | Implementation>;
/**
* 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<Function>;
/**
* 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<string, void>;
export { dot, junit, Spec as spec, tap, TestEvent };
}

6
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;

14
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<string>;
const rootCertificates: readonly string[];
}
declare module "node:tls" {
export * from "tls";

2
node_modules/electron/node_modules/@types/node/ts4.8/url.d.ts

@ -774,7 +774,7 @@ declare module "url" {
init?:
| URLSearchParams
| string
| Record<string, string | ReadonlyArray<string>>
| Record<string, string | readonly string[]>
| Iterable<[string, string]>
| ReadonlyArray<[string, string]>,
);

3
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";
/**

12
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<any> {}
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<string>,
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<Module>;
type ModuleStatus = "unlinked" | "linking" | "linked" | "evaluating" | "evaluated" | "errored";
class Module {

2
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.
*

4
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<TransferListItem>): 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<TransferListItem>): 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

2
node_modules/electron/node_modules/@types/node/url.d.ts

@ -774,7 +774,7 @@ declare module "url" {
init?:
| URLSearchParams
| string
| Record<string, string | ReadonlyArray<string>>
| Record<string, string | readonly string[]>
| Iterable<[string, string]>
| ReadonlyArray<[string, string]>,
);

3
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";
/**

12
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<any> {}
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<string>,
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<Module>;
type ModuleStatus = "unlinked" | "linking" | "linked" | "evaluating" | "evaluated" | "errored";
class Module {

2
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.
*

4
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<TransferListItem>): 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<TransferListItem>): 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

2
node_modules/electron/package.json

@ -23,5 +23,5 @@
"keywords": [
"electron"
],
"version": "27.0.2"
"version": "27.2.1"
}

4
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",

Loading…
Cancel
Save