@emulsify/cli 1.9.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (524) hide show
  1. package/README.md +20 -13
  2. package/dist/node_modules/.package-lock.json +37 -24
  3. package/dist/node_modules/@types/node/README.md +5 -6
  4. package/dist/node_modules/@types/node/assert/strict.d.ts +8 -0
  5. package/dist/node_modules/@types/node/assert.d.ts +955 -45
  6. package/dist/node_modules/@types/node/async_hooks.d.ts +391 -87
  7. package/dist/node_modules/@types/node/buffer.d.ts +2210 -17
  8. package/dist/node_modules/@types/node/child_process.d.ts +1051 -189
  9. package/dist/node_modules/@types/node/cluster.d.ts +421 -143
  10. package/dist/node_modules/@types/node/console.d.ts +359 -49
  11. package/dist/node_modules/@types/node/constants.d.ts +3 -3
  12. package/dist/node_modules/@types/node/crypto.d.ts +3528 -291
  13. package/dist/node_modules/@types/node/dgram.d.ts +446 -30
  14. package/dist/node_modules/@types/node/diagnostics_channel.d.ts +554 -0
  15. package/dist/node_modules/@types/node/dns/promises.d.ts +476 -0
  16. package/dist/node_modules/@types/node/dns.d.ts +588 -240
  17. package/dist/node_modules/@types/node/dom-events.d.ts +124 -0
  18. package/dist/node_modules/@types/node/domain.d.ts +159 -16
  19. package/dist/node_modules/@types/node/events.d.ts +890 -41
  20. package/dist/node_modules/@types/node/fs/promises.d.ts +980 -369
  21. package/dist/node_modules/@types/node/fs.d.ts +2599 -869
  22. package/dist/node_modules/@types/node/globals.d.ts +374 -727
  23. package/dist/node_modules/@types/node/globals.global.d.ts +1 -1
  24. package/dist/node_modules/@types/node/http.d.ts +1459 -132
  25. package/dist/node_modules/@types/node/http2.d.ts +1333 -123
  26. package/dist/node_modules/@types/node/https.d.ts +289 -13
  27. package/dist/node_modules/@types/node/index.d.ts +37 -46
  28. package/dist/node_modules/@types/node/inspector.d.ts +367 -671
  29. package/dist/node_modules/@types/node/module.d.ts +273 -14
  30. package/dist/node_modules/@types/node/net.d.ts +741 -66
  31. package/dist/node_modules/@types/node/os.d.ts +275 -23
  32. package/dist/node_modules/@types/node/package.json +95 -110
  33. package/dist/node_modules/@types/node/path.d.ts +27 -4
  34. package/dist/node_modules/@types/node/perf_hooks.d.ts +756 -125
  35. package/dist/node_modules/@types/node/process.d.ts +1429 -127
  36. package/dist/node_modules/@types/node/punycode.d.ts +65 -26
  37. package/dist/node_modules/@types/node/querystring.d.ts +121 -9
  38. package/dist/node_modules/@types/node/readline/promises.d.ts +150 -0
  39. package/dist/node_modules/@types/node/readline.d.ts +405 -49
  40. package/dist/node_modules/@types/node/repl.d.ts +99 -73
  41. package/dist/node_modules/@types/node/sea.d.ts +153 -0
  42. package/dist/node_modules/@types/node/stream/consumers.d.ts +12 -0
  43. package/dist/node_modules/@types/node/stream/promises.d.ts +83 -0
  44. package/dist/node_modules/@types/node/stream/web.d.ts +367 -0
  45. package/dist/node_modules/@types/node/stream.d.ts +1462 -273
  46. package/dist/node_modules/@types/node/string_decoder.d.ts +59 -2
  47. package/dist/node_modules/@types/node/test.d.ts +1719 -0
  48. package/dist/node_modules/@types/node/timers/promises.d.ts +97 -0
  49. package/dist/node_modules/@types/node/timers.d.ts +233 -12
  50. package/dist/node_modules/@types/node/tls.d.ts +540 -189
  51. package/dist/node_modules/@types/node/trace_events.d.ts +143 -10
  52. package/dist/node_modules/@types/node/tty.d.ts +156 -17
  53. package/dist/node_modules/@types/node/url.d.ts +812 -47
  54. package/dist/node_modules/@types/node/util.d.ts +2159 -145
  55. package/dist/node_modules/@types/node/v8.d.ts +693 -74
  56. package/dist/node_modules/@types/node/vm.d.ts +813 -44
  57. package/dist/node_modules/@types/node/wasi.d.ts +121 -28
  58. package/dist/node_modules/@types/node/worker_threads.d.ts +514 -61
  59. package/dist/node_modules/@types/node/zlib.d.ts +220 -54
  60. package/dist/node_modules/ajv-formats/node_modules/ajv/README.md +1 -1
  61. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js +1 -0
  62. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js.map +1 -1
  63. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js.map +1 -1
  64. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.d.ts +2 -2
  65. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js.map +1 -1
  66. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.d.ts +1 -1
  67. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js +1 -1
  68. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js.map +1 -1
  69. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/index.d.ts +3 -3
  70. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.d.ts +10 -10
  71. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js +5 -1
  72. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -1
  73. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/code.ts +1 -0
  74. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/index.ts +2 -2
  75. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/resolve.ts +2 -2
  76. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/uri.ts +1 -1
  77. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/index.ts +3 -3
  78. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/json-schema.ts +10 -10
  79. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/index.ts +4 -1
  80. package/dist/node_modules/ajv-formats/node_modules/ajv/package.json +5 -5
  81. package/dist/node_modules/commander/Readme.md +10 -8
  82. package/dist/node_modules/commander/esm.mjs +1 -1
  83. package/dist/node_modules/commander/lib/argument.js +9 -5
  84. package/dist/node_modules/commander/lib/command.js +406 -196
  85. package/dist/node_modules/commander/lib/error.js +0 -4
  86. package/dist/node_modules/commander/lib/help.js +101 -38
  87. package/dist/node_modules/commander/lib/option.js +11 -8
  88. package/dist/node_modules/commander/lib/suggestSimilar.js +5 -4
  89. package/dist/node_modules/commander/package.json +23 -19
  90. package/dist/node_modules/commander/typings/index.d.ts +110 -40
  91. package/dist/node_modules/debug/package.json +4 -3
  92. package/dist/node_modules/debug/src/browser.js +3 -1
  93. package/dist/node_modules/debug/src/node.js +2 -2
  94. package/dist/node_modules/fast-uri/.gitattributes +2 -0
  95. package/dist/node_modules/fast-uri/.github/.stale.yml +21 -0
  96. package/dist/node_modules/fast-uri/.github/dependabot.yml +13 -0
  97. package/dist/node_modules/fast-uri/.github/tests_checker.yml +8 -0
  98. package/dist/node_modules/fast-uri/.github/workflows/ci.yml +23 -0
  99. package/dist/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +20 -0
  100. package/dist/node_modules/fast-uri/.taprc +3 -0
  101. package/dist/node_modules/fast-uri/LICENSE +30 -0
  102. package/dist/node_modules/fast-uri/README.md +125 -0
  103. package/dist/node_modules/fast-uri/benchmark.js +105 -0
  104. package/dist/node_modules/fast-uri/index.js +309 -0
  105. package/dist/node_modules/fast-uri/lib/schemes.js +188 -0
  106. package/dist/node_modules/fast-uri/lib/scopedChars.js +30 -0
  107. package/dist/node_modules/fast-uri/lib/utils.js +242 -0
  108. package/dist/node_modules/fast-uri/package.json +39 -0
  109. package/dist/node_modules/fast-uri/test/.gitkeep +0 -0
  110. package/dist/node_modules/fast-uri/test/ajv.test.js +39 -0
  111. package/dist/node_modules/fast-uri/test/compatibility.test.js +130 -0
  112. package/dist/node_modules/fast-uri/test/equal.test.js +104 -0
  113. package/dist/node_modules/fast-uri/test/parse.test.js +319 -0
  114. package/dist/node_modules/fast-uri/test/resolve.test.js +76 -0
  115. package/dist/node_modules/fast-uri/test/serialize.test.js +144 -0
  116. package/dist/node_modules/fast-uri/test/uri-js.test.js +940 -0
  117. package/dist/node_modules/fast-uri/test/util.test.js +24 -0
  118. package/dist/node_modules/fast-uri/types/index.d.ts +53 -0
  119. package/dist/node_modules/fast-uri/types/index.test-d.ts +17 -0
  120. package/dist/node_modules/fs-extra/README.md +32 -2
  121. package/dist/node_modules/fs-extra/lib/copy/copy-sync.js +3 -11
  122. package/dist/node_modules/fs-extra/lib/copy/copy.js +120 -178
  123. package/dist/node_modules/fs-extra/lib/copy/index.js +1 -1
  124. package/dist/node_modules/fs-extra/lib/ensure/file.js +31 -34
  125. package/dist/node_modules/fs-extra/lib/ensure/link.js +27 -27
  126. package/dist/node_modules/fs-extra/lib/ensure/symlink-paths.js +57 -55
  127. package/dist/node_modules/fs-extra/lib/ensure/symlink-type.js +16 -13
  128. package/dist/node_modules/fs-extra/lib/ensure/symlink.js +29 -44
  129. package/dist/node_modules/fs-extra/lib/esm.mjs +68 -0
  130. package/dist/node_modules/fs-extra/lib/fs/index.js +29 -17
  131. package/dist/node_modules/fs-extra/lib/move/index.js +1 -1
  132. package/dist/node_modules/fs-extra/lib/move/move-sync.js +2 -1
  133. package/dist/node_modules/fs-extra/lib/move/move.js +38 -54
  134. package/dist/node_modules/fs-extra/lib/output-file/index.js +10 -19
  135. package/dist/node_modules/fs-extra/lib/remove/index.js +2 -7
  136. package/dist/node_modules/fs-extra/lib/util/stat.js +46 -42
  137. package/dist/node_modules/fs-extra/lib/util/utimes.js +21 -11
  138. package/dist/node_modules/fs-extra/package.json +11 -7
  139. package/dist/node_modules/simple-git/dist/cjs/index.js +4958 -0
  140. package/dist/node_modules/simple-git/dist/cjs/index.js.map +7 -0
  141. package/dist/node_modules/simple-git/dist/esm/index.js +4813 -0
  142. package/dist/node_modules/simple-git/dist/esm/index.js.map +7 -0
  143. package/dist/node_modules/simple-git/dist/esm/package.json +3 -0
  144. package/dist/node_modules/simple-git/{src → dist/src}/lib/api.d.ts +3 -13
  145. package/dist/node_modules/simple-git/dist/src/lib/args/log-format.d.ts +9 -0
  146. package/dist/node_modules/simple-git/dist/src/lib/args/pathspec.d.ts +3 -0
  147. package/dist/node_modules/simple-git/{src → dist/src}/lib/errors/git-error.d.ts +3 -2
  148. package/dist/node_modules/simple-git/dist/src/lib/errors/git-plugin-error.d.ts +7 -0
  149. package/dist/node_modules/simple-git/dist/src/lib/git-factory.d.ts +15 -0
  150. package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-branch.d.ts +1 -1
  151. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-diff-summary.d.ts +3 -0
  152. package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-list-log-summary.d.ts +2 -1
  153. package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-pull.d.ts +2 -0
  154. package/dist/node_modules/simple-git/dist/src/lib/plugins/abort-plugin.d.ts +3 -0
  155. package/dist/node_modules/simple-git/dist/src/lib/plugins/block-unsafe-operations-plugin.d.ts +3 -0
  156. package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/completion-detection.plugin.d.ts +1 -1
  157. package/dist/node_modules/simple-git/dist/src/lib/plugins/custom-binary.plugin.d.ts +3 -0
  158. package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/index.d.ts +3 -0
  159. package/dist/node_modules/simple-git/dist/src/lib/plugins/plugin-store.d.ts +11 -0
  160. package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/progress-monitor-plugin.d.ts +1 -1
  161. package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/simple-git-plugin.d.ts +10 -0
  162. package/dist/node_modules/simple-git/dist/src/lib/plugins/suffix-paths.plugin.d.ts +2 -0
  163. package/dist/node_modules/simple-git/dist/src/lib/plugins/timout-plugin.d.ts +3 -0
  164. package/dist/node_modules/simple-git/dist/src/lib/responses/BranchSummary.d.ts +14 -0
  165. package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/FileStatusSummary.d.ts +1 -1
  166. package/dist/node_modules/simple-git/dist/src/lib/responses/PullSummary.d.ts +25 -0
  167. package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/StatusSummary.d.ts +2 -1
  168. package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/git-executor-chain.d.ts +1 -1
  169. package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/git-executor.d.ts +3 -4
  170. package/dist/node_modules/simple-git/dist/src/lib/tasks/checkout.d.ts +2 -0
  171. package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/clone.d.ts +3 -2
  172. package/dist/node_modules/simple-git/dist/src/lib/tasks/commit.d.ts +4 -0
  173. package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/config.d.ts +1 -1
  174. package/dist/node_modules/simple-git/dist/src/lib/tasks/count-objects.d.ts +12 -0
  175. package/dist/node_modules/simple-git/dist/src/lib/tasks/diff-name-status.d.ts +12 -0
  176. package/dist/node_modules/simple-git/dist/src/lib/tasks/diff.d.ts +5 -0
  177. package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/fetch.d.ts +2 -1
  178. package/dist/node_modules/simple-git/dist/src/lib/tasks/first-commit.d.ts +2 -0
  179. package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/log.d.ts +3 -3
  180. package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/remote.d.ts +3 -3
  181. package/dist/node_modules/simple-git/dist/src/lib/tasks/show.d.ts +2 -0
  182. package/dist/node_modules/simple-git/dist/src/lib/tasks/stash-list.d.ts +4 -0
  183. package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/task.d.ts +1 -1
  184. package/dist/node_modules/simple-git/dist/src/lib/tasks/version.d.ts +9 -0
  185. package/dist/node_modules/simple-git/{src → dist/src}/lib/types/index.d.ts +64 -5
  186. package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/exit-codes.d.ts +1 -0
  187. package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/line-parser.d.ts +1 -1
  188. package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/task-parser.d.ts +2 -2
  189. package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/util.d.ts +3 -1
  190. package/dist/node_modules/simple-git/{typings → dist/typings}/errors.d.ts +0 -1
  191. package/dist/node_modules/simple-git/{typings → dist/typings}/index.d.ts +2 -1
  192. package/dist/node_modules/simple-git/{typings → dist/typings}/response.d.ts +68 -25
  193. package/dist/node_modules/simple-git/{typings → dist/typings}/simple-git.d.ts +493 -110
  194. package/dist/node_modules/simple-git/dist/typings/types.d.ts +23 -0
  195. package/dist/node_modules/simple-git/package.json +32 -35
  196. package/dist/node_modules/simple-git/promise.js +14 -4
  197. package/dist/node_modules/simple-git/readme.md +372 -389
  198. package/dist/node_modules/undici-types/README.md +6 -0
  199. package/dist/node_modules/undici-types/agent.d.ts +31 -0
  200. package/dist/node_modules/undici-types/api.d.ts +43 -0
  201. package/dist/node_modules/undici-types/balanced-pool.d.ts +18 -0
  202. package/dist/node_modules/undici-types/cache.d.ts +36 -0
  203. package/dist/node_modules/undici-types/client.d.ts +97 -0
  204. package/dist/node_modules/undici-types/connector.d.ts +34 -0
  205. package/dist/node_modules/undici-types/content-type.d.ts +21 -0
  206. package/dist/node_modules/undici-types/cookies.d.ts +28 -0
  207. package/dist/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
  208. package/dist/node_modules/undici-types/dispatcher.d.ts +241 -0
  209. package/dist/node_modules/undici-types/errors.d.ts +128 -0
  210. package/dist/node_modules/undici-types/fetch.d.ts +209 -0
  211. package/dist/node_modules/undici-types/file.d.ts +39 -0
  212. package/dist/node_modules/undici-types/filereader.d.ts +54 -0
  213. package/dist/node_modules/undici-types/formdata.d.ts +108 -0
  214. package/dist/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  215. package/dist/node_modules/undici-types/global-origin.d.ts +7 -0
  216. package/dist/node_modules/undici-types/handlers.d.ts +9 -0
  217. package/dist/node_modules/undici-types/header.d.ts +4 -0
  218. package/dist/node_modules/undici-types/index.d.ts +63 -0
  219. package/dist/node_modules/undici-types/interceptors.d.ts +5 -0
  220. package/dist/node_modules/undici-types/mock-agent.d.ts +50 -0
  221. package/dist/node_modules/undici-types/mock-client.d.ts +25 -0
  222. package/dist/node_modules/undici-types/mock-errors.d.ts +12 -0
  223. package/dist/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  224. package/dist/node_modules/undici-types/mock-pool.d.ts +25 -0
  225. package/dist/node_modules/undici-types/package.json +55 -0
  226. package/dist/node_modules/undici-types/patch.d.ts +71 -0
  227. package/dist/node_modules/undici-types/pool-stats.d.ts +19 -0
  228. package/dist/node_modules/undici-types/pool.d.ts +28 -0
  229. package/dist/node_modules/undici-types/proxy-agent.d.ts +30 -0
  230. package/dist/node_modules/undici-types/readable.d.ts +61 -0
  231. package/dist/node_modules/undici-types/webidl.d.ts +220 -0
  232. package/dist/node_modules/undici-types/websocket.d.ts +131 -0
  233. package/dist/package-lock.json +10146 -0
  234. package/dist/package.json +23 -23
  235. package/dist/schemas/variant.json +5 -21
  236. package/package.json +24 -24
  237. package/dist/node_modules/@types/node/ts4.8/assert.d.ts +0 -130
  238. package/dist/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -237
  239. package/dist/node_modules/@types/node/ts4.8/buffer.d.ts +0 -89
  240. package/dist/node_modules/@types/node/ts4.8/child_process.d.ts +0 -682
  241. package/dist/node_modules/@types/node/ts4.8/cluster.d.ts +0 -300
  242. package/dist/node_modules/@types/node/ts4.8/console.d.ts +0 -142
  243. package/dist/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
  244. package/dist/node_modules/@types/node/ts4.8/crypto.d.ts +0 -1287
  245. package/dist/node_modules/@types/node/ts4.8/dgram.d.ts +0 -180
  246. package/dist/node_modules/@types/node/ts4.8/dns.d.ts +0 -516
  247. package/dist/node_modules/@types/node/ts4.8/domain.d.ts +0 -27
  248. package/dist/node_modules/@types/node/ts4.8/events.d.ts +0 -82
  249. package/dist/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -634
  250. package/dist/node_modules/@types/node/ts4.8/fs.d.ts +0 -2587
  251. package/dist/node_modules/@types/node/ts4.8/globals.d.ts +0 -763
  252. package/dist/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  253. package/dist/node_modules/@types/node/ts4.8/http.d.ts +0 -580
  254. package/dist/node_modules/@types/node/ts4.8/http2.d.ts +0 -1208
  255. package/dist/node_modules/@types/node/ts4.8/https.d.ts +0 -274
  256. package/dist/node_modules/@types/node/ts4.8/index.d.ts +0 -53
  257. package/dist/node_modules/@types/node/ts4.8/inspector.d.ts +0 -3050
  258. package/dist/node_modules/@types/node/ts4.8/module.d.ts +0 -56
  259. package/dist/node_modules/@types/node/ts4.8/net.d.ts +0 -324
  260. package/dist/node_modules/@types/node/ts4.8/os.d.ts +0 -243
  261. package/dist/node_modules/@types/node/ts4.8/path.d.ts +0 -168
  262. package/dist/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -274
  263. package/dist/node_modules/@types/node/ts4.8/process.d.ts +0 -452
  264. package/dist/node_modules/@types/node/ts4.8/punycode.d.ts +0 -78
  265. package/dist/node_modules/@types/node/ts4.8/querystring.d.ts +0 -41
  266. package/dist/node_modules/@types/node/ts4.8/readline.d.ts +0 -184
  267. package/dist/node_modules/@types/node/ts4.8/repl.d.ts +0 -404
  268. package/dist/node_modules/@types/node/ts4.8/stream.d.ts +0 -518
  269. package/dist/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -10
  270. package/dist/node_modules/@types/node/ts4.8/timers.d.ts +0 -19
  271. package/dist/node_modules/@types/node/ts4.8/tls.d.ts +0 -866
  272. package/dist/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -64
  273. package/dist/node_modules/@types/node/ts4.8/tty.d.ts +0 -69
  274. package/dist/node_modules/@types/node/ts4.8/url.d.ts +0 -187
  275. package/dist/node_modules/@types/node/ts4.8/util.d.ts +0 -278
  276. package/dist/node_modules/@types/node/ts4.8/v8.d.ts +0 -189
  277. package/dist/node_modules/@types/node/ts4.8/vm.d.ts +0 -155
  278. package/dist/node_modules/@types/node/ts4.8/wasi.d.ts +0 -88
  279. package/dist/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -241
  280. package/dist/node_modules/@types/node/ts4.8/zlib.d.ts +0 -364
  281. package/dist/node_modules/fs-extra/lib/remove/rimraf.js +0 -302
  282. package/dist/node_modules/simple-git/CHANGELOG.md +0 -529
  283. package/dist/node_modules/simple-git/LICENSE +0 -20
  284. package/dist/node_modules/simple-git/promise.d.ts +0 -46
  285. package/dist/node_modules/simple-git/src/git.js +0 -700
  286. package/dist/node_modules/simple-git/src/index.js +0 -7
  287. package/dist/node_modules/simple-git/src/lib/api.js +0 -26
  288. package/dist/node_modules/simple-git/src/lib/api.js.map +0 -1
  289. package/dist/node_modules/simple-git/src/lib/errors/git-construct-error.js +0 -21
  290. package/dist/node_modules/simple-git/src/lib/errors/git-construct-error.js.map +0 -1
  291. package/dist/node_modules/simple-git/src/lib/errors/git-error.js +0 -37
  292. package/dist/node_modules/simple-git/src/lib/errors/git-error.js.map +0 -1
  293. package/dist/node_modules/simple-git/src/lib/errors/git-plugin-error.d.ts +0 -6
  294. package/dist/node_modules/simple-git/src/lib/errors/git-plugin-error.js +0 -14
  295. package/dist/node_modules/simple-git/src/lib/errors/git-plugin-error.js.map +0 -1
  296. package/dist/node_modules/simple-git/src/lib/errors/git-response-error.js +0 -36
  297. package/dist/node_modules/simple-git/src/lib/errors/git-response-error.js.map +0 -1
  298. package/dist/node_modules/simple-git/src/lib/errors/task-configuration-error.js +0 -19
  299. package/dist/node_modules/simple-git/src/lib/errors/task-configuration-error.js.map +0 -1
  300. package/dist/node_modules/simple-git/src/lib/git-factory.d.ts +0 -25
  301. package/dist/node_modules/simple-git/src/lib/git-factory.js +0 -45
  302. package/dist/node_modules/simple-git/src/lib/git-factory.js.map +0 -1
  303. package/dist/node_modules/simple-git/src/lib/git-logger.js +0 -101
  304. package/dist/node_modules/simple-git/src/lib/git-logger.js.map +0 -1
  305. package/dist/node_modules/simple-git/src/lib/parsers/parse-branch-delete.js +0 -29
  306. package/dist/node_modules/simple-git/src/lib/parsers/parse-branch-delete.js.map +0 -1
  307. package/dist/node_modules/simple-git/src/lib/parsers/parse-branch.js +0 -18
  308. package/dist/node_modules/simple-git/src/lib/parsers/parse-branch.js.map +0 -1
  309. package/dist/node_modules/simple-git/src/lib/parsers/parse-commit.js +0 -53
  310. package/dist/node_modules/simple-git/src/lib/parsers/parse-commit.js.map +0 -1
  311. package/dist/node_modules/simple-git/src/lib/parsers/parse-diff-summary.d.ts +0 -2
  312. package/dist/node_modules/simple-git/src/lib/parsers/parse-diff-summary.js +0 -74
  313. package/dist/node_modules/simple-git/src/lib/parsers/parse-diff-summary.js.map +0 -1
  314. package/dist/node_modules/simple-git/src/lib/parsers/parse-fetch.js +0 -32
  315. package/dist/node_modules/simple-git/src/lib/parsers/parse-fetch.js.map +0 -1
  316. package/dist/node_modules/simple-git/src/lib/parsers/parse-list-log-summary.js +0 -35
  317. package/dist/node_modules/simple-git/src/lib/parsers/parse-list-log-summary.js.map +0 -1
  318. package/dist/node_modules/simple-git/src/lib/parsers/parse-merge.js +0 -39
  319. package/dist/node_modules/simple-git/src/lib/parsers/parse-merge.js.map +0 -1
  320. package/dist/node_modules/simple-git/src/lib/parsers/parse-move.js +0 -14
  321. package/dist/node_modules/simple-git/src/lib/parsers/parse-move.js.map +0 -1
  322. package/dist/node_modules/simple-git/src/lib/parsers/parse-pull.js +0 -42
  323. package/dist/node_modules/simple-git/src/lib/parsers/parse-pull.js.map +0 -1
  324. package/dist/node_modules/simple-git/src/lib/parsers/parse-push.js +0 -58
  325. package/dist/node_modules/simple-git/src/lib/parsers/parse-push.js.map +0 -1
  326. package/dist/node_modules/simple-git/src/lib/parsers/parse-remote-messages.js +0 -33
  327. package/dist/node_modules/simple-git/src/lib/parsers/parse-remote-messages.js.map +0 -1
  328. package/dist/node_modules/simple-git/src/lib/parsers/parse-remote-objects.js +0 -41
  329. package/dist/node_modules/simple-git/src/lib/parsers/parse-remote-objects.js.map +0 -1
  330. package/dist/node_modules/simple-git/src/lib/plugins/command-config-prefixing-plugin.js +0 -15
  331. package/dist/node_modules/simple-git/src/lib/plugins/command-config-prefixing-plugin.js.map +0 -1
  332. package/dist/node_modules/simple-git/src/lib/plugins/completion-detection.plugin.js +0 -80
  333. package/dist/node_modules/simple-git/src/lib/plugins/completion-detection.plugin.js.map +0 -1
  334. package/dist/node_modules/simple-git/src/lib/plugins/error-detection.plugin.js +0 -39
  335. package/dist/node_modules/simple-git/src/lib/plugins/error-detection.plugin.js.map +0 -1
  336. package/dist/node_modules/simple-git/src/lib/plugins/index.js +0 -21
  337. package/dist/node_modules/simple-git/src/lib/plugins/index.js.map +0 -1
  338. package/dist/node_modules/simple-git/src/lib/plugins/plugin-store.d.ts +0 -6
  339. package/dist/node_modules/simple-git/src/lib/plugins/plugin-store.js +0 -28
  340. package/dist/node_modules/simple-git/src/lib/plugins/plugin-store.js.map +0 -1
  341. package/dist/node_modules/simple-git/src/lib/plugins/progress-monitor-plugin.js +0 -45
  342. package/dist/node_modules/simple-git/src/lib/plugins/progress-monitor-plugin.js.map +0 -1
  343. package/dist/node_modules/simple-git/src/lib/plugins/simple-git-plugin.js +0 -3
  344. package/dist/node_modules/simple-git/src/lib/plugins/simple-git-plugin.js.map +0 -1
  345. package/dist/node_modules/simple-git/src/lib/plugins/spawn-options-plugin.js +0 -15
  346. package/dist/node_modules/simple-git/src/lib/plugins/spawn-options-plugin.js.map +0 -1
  347. package/dist/node_modules/simple-git/src/lib/plugins/timout-plugin.d.ts +0 -3
  348. package/dist/node_modules/simple-git/src/lib/plugins/timout-plugin.js +0 -37
  349. package/dist/node_modules/simple-git/src/lib/plugins/timout-plugin.js.map +0 -1
  350. package/dist/node_modules/simple-git/src/lib/responses/BranchDeleteSummary.js +0 -31
  351. package/dist/node_modules/simple-git/src/lib/responses/BranchDeleteSummary.js.map +0 -1
  352. package/dist/node_modules/simple-git/src/lib/responses/BranchSummary.d.ts +0 -10
  353. package/dist/node_modules/simple-git/src/lib/responses/BranchSummary.js +0 -26
  354. package/dist/node_modules/simple-git/src/lib/responses/BranchSummary.js.map +0 -1
  355. package/dist/node_modules/simple-git/src/lib/responses/CheckIgnore.js +0 -13
  356. package/dist/node_modules/simple-git/src/lib/responses/CheckIgnore.js.map +0 -1
  357. package/dist/node_modules/simple-git/src/lib/responses/CleanSummary.js +0 -28
  358. package/dist/node_modules/simple-git/src/lib/responses/CleanSummary.js.map +0 -1
  359. package/dist/node_modules/simple-git/src/lib/responses/ConfigList.js +0 -89
  360. package/dist/node_modules/simple-git/src/lib/responses/ConfigList.js.map +0 -1
  361. package/dist/node_modules/simple-git/src/lib/responses/DiffSummary.js +0 -16
  362. package/dist/node_modules/simple-git/src/lib/responses/DiffSummary.js.map +0 -1
  363. package/dist/node_modules/simple-git/src/lib/responses/FileStatusSummary.js +0 -18
  364. package/dist/node_modules/simple-git/src/lib/responses/FileStatusSummary.js.map +0 -1
  365. package/dist/node_modules/simple-git/src/lib/responses/GetRemoteSummary.js +0 -30
  366. package/dist/node_modules/simple-git/src/lib/responses/GetRemoteSummary.js.map +0 -1
  367. package/dist/node_modules/simple-git/src/lib/responses/InitSummary.js +0 -36
  368. package/dist/node_modules/simple-git/src/lib/responses/InitSummary.js.map +0 -1
  369. package/dist/node_modules/simple-git/src/lib/responses/MergeSummary.js +0 -35
  370. package/dist/node_modules/simple-git/src/lib/responses/MergeSummary.js.map +0 -1
  371. package/dist/node_modules/simple-git/src/lib/responses/PullSummary.d.ts +0 -12
  372. package/dist/node_modules/simple-git/src/lib/responses/PullSummary.js +0 -22
  373. package/dist/node_modules/simple-git/src/lib/responses/PullSummary.js.map +0 -1
  374. package/dist/node_modules/simple-git/src/lib/responses/StatusSummary.js +0 -128
  375. package/dist/node_modules/simple-git/src/lib/responses/StatusSummary.js.map +0 -1
  376. package/dist/node_modules/simple-git/src/lib/responses/TagList.js +0 -56
  377. package/dist/node_modules/simple-git/src/lib/responses/TagList.js.map +0 -1
  378. package/dist/node_modules/simple-git/src/lib/runners/git-executor-chain.js +0 -173
  379. package/dist/node_modules/simple-git/src/lib/runners/git-executor-chain.js.map +0 -1
  380. package/dist/node_modules/simple-git/src/lib/runners/git-executor.js +0 -21
  381. package/dist/node_modules/simple-git/src/lib/runners/git-executor.js.map +0 -1
  382. package/dist/node_modules/simple-git/src/lib/runners/promise-wrapped.js +0 -133
  383. package/dist/node_modules/simple-git/src/lib/runners/promise-wrapped.js.map +0 -1
  384. package/dist/node_modules/simple-git/src/lib/runners/scheduler.js +0 -48
  385. package/dist/node_modules/simple-git/src/lib/runners/scheduler.js.map +0 -1
  386. package/dist/node_modules/simple-git/src/lib/runners/tasks-pending-queue.js +0 -64
  387. package/dist/node_modules/simple-git/src/lib/runners/tasks-pending-queue.js.map +0 -1
  388. package/dist/node_modules/simple-git/src/lib/simple-git-api.js +0 -80
  389. package/dist/node_modules/simple-git/src/lib/simple-git-api.js.map +0 -1
  390. package/dist/node_modules/simple-git/src/lib/task-callback.js +0 -39
  391. package/dist/node_modules/simple-git/src/lib/task-callback.js.map +0 -1
  392. package/dist/node_modules/simple-git/src/lib/tasks/apply-patch.js +0 -9
  393. package/dist/node_modules/simple-git/src/lib/tasks/apply-patch.js.map +0 -1
  394. package/dist/node_modules/simple-git/src/lib/tasks/branch.js +0 -76
  395. package/dist/node_modules/simple-git/src/lib/tasks/branch.js.map +0 -1
  396. package/dist/node_modules/simple-git/src/lib/tasks/change-working-directory.js +0 -15
  397. package/dist/node_modules/simple-git/src/lib/tasks/change-working-directory.js.map +0 -1
  398. package/dist/node_modules/simple-git/src/lib/tasks/check-ignore.js +0 -13
  399. package/dist/node_modules/simple-git/src/lib/tasks/check-ignore.js.map +0 -1
  400. package/dist/node_modules/simple-git/src/lib/tasks/check-is-repo.js +0 -61
  401. package/dist/node_modules/simple-git/src/lib/tasks/check-is-repo.js.map +0 -1
  402. package/dist/node_modules/simple-git/src/lib/tasks/clean.js +0 -85
  403. package/dist/node_modules/simple-git/src/lib/tasks/clean.js.map +0 -1
  404. package/dist/node_modules/simple-git/src/lib/tasks/clone.js +0 -22
  405. package/dist/node_modules/simple-git/src/lib/tasks/clone.js.map +0 -1
  406. package/dist/node_modules/simple-git/src/lib/tasks/commit.d.ts +0 -3
  407. package/dist/node_modules/simple-git/src/lib/tasks/commit.js +0 -16
  408. package/dist/node_modules/simple-git/src/lib/tasks/commit.js.map +0 -1
  409. package/dist/node_modules/simple-git/src/lib/tasks/config.js +0 -73
  410. package/dist/node_modules/simple-git/src/lib/tasks/config.js.map +0 -1
  411. package/dist/node_modules/simple-git/src/lib/tasks/diff.d.ts +0 -3
  412. package/dist/node_modules/simple-git/src/lib/tasks/diff.js +0 -15
  413. package/dist/node_modules/simple-git/src/lib/tasks/diff.js.map +0 -1
  414. package/dist/node_modules/simple-git/src/lib/tasks/fetch.js +0 -17
  415. package/dist/node_modules/simple-git/src/lib/tasks/fetch.js.map +0 -1
  416. package/dist/node_modules/simple-git/src/lib/tasks/grep.js +0 -76
  417. package/dist/node_modules/simple-git/src/lib/tasks/grep.js.map +0 -1
  418. package/dist/node_modules/simple-git/src/lib/tasks/hash-object.js +0 -16
  419. package/dist/node_modules/simple-git/src/lib/tasks/hash-object.js.map +0 -1
  420. package/dist/node_modules/simple-git/src/lib/tasks/init.js +0 -23
  421. package/dist/node_modules/simple-git/src/lib/tasks/init.js.map +0 -1
  422. package/dist/node_modules/simple-git/src/lib/tasks/log.js +0 -109
  423. package/dist/node_modules/simple-git/src/lib/tasks/log.js.map +0 -1
  424. package/dist/node_modules/simple-git/src/lib/tasks/merge.js +0 -24
  425. package/dist/node_modules/simple-git/src/lib/tasks/merge.js.map +0 -1
  426. package/dist/node_modules/simple-git/src/lib/tasks/move.js +0 -14
  427. package/dist/node_modules/simple-git/src/lib/tasks/move.js.map +0 -1
  428. package/dist/node_modules/simple-git/src/lib/tasks/pull.js +0 -19
  429. package/dist/node_modules/simple-git/src/lib/tasks/pull.js.map +0 -1
  430. package/dist/node_modules/simple-git/src/lib/tasks/push.js +0 -29
  431. package/dist/node_modules/simple-git/src/lib/tasks/push.js.map +0 -1
  432. package/dist/node_modules/simple-git/src/lib/tasks/remote.js +0 -42
  433. package/dist/node_modules/simple-git/src/lib/tasks/remote.js.map +0 -1
  434. package/dist/node_modules/simple-git/src/lib/tasks/reset.js +0 -38
  435. package/dist/node_modules/simple-git/src/lib/tasks/reset.js.map +0 -1
  436. package/dist/node_modules/simple-git/src/lib/tasks/stash-list.d.ts +0 -3
  437. package/dist/node_modules/simple-git/src/lib/tasks/stash-list.js +0 -16
  438. package/dist/node_modules/simple-git/src/lib/tasks/stash-list.js.map +0 -1
  439. package/dist/node_modules/simple-git/src/lib/tasks/status.js +0 -15
  440. package/dist/node_modules/simple-git/src/lib/tasks/status.js.map +0 -1
  441. package/dist/node_modules/simple-git/src/lib/tasks/sub-module.js +0 -25
  442. package/dist/node_modules/simple-git/src/lib/tasks/sub-module.js.map +0 -1
  443. package/dist/node_modules/simple-git/src/lib/tasks/tag.js +0 -45
  444. package/dist/node_modules/simple-git/src/lib/tasks/tag.js.map +0 -1
  445. package/dist/node_modules/simple-git/src/lib/tasks/task.js +0 -52
  446. package/dist/node_modules/simple-git/src/lib/tasks/task.js.map +0 -1
  447. package/dist/node_modules/simple-git/src/lib/types/handlers.js +0 -3
  448. package/dist/node_modules/simple-git/src/lib/types/handlers.js.map +0 -1
  449. package/dist/node_modules/simple-git/src/lib/types/index.js +0 -15
  450. package/dist/node_modules/simple-git/src/lib/types/index.js.map +0 -1
  451. package/dist/node_modules/simple-git/src/lib/types/tasks.js +0 -3
  452. package/dist/node_modules/simple-git/src/lib/types/tasks.js.map +0 -1
  453. package/dist/node_modules/simple-git/src/lib/utils/argument-filters.js +0 -47
  454. package/dist/node_modules/simple-git/src/lib/utils/argument-filters.js.map +0 -1
  455. package/dist/node_modules/simple-git/src/lib/utils/exit-codes.js +0 -14
  456. package/dist/node_modules/simple-git/src/lib/utils/exit-codes.js.map +0 -1
  457. package/dist/node_modules/simple-git/src/lib/utils/git-output-streams.js +0 -14
  458. package/dist/node_modules/simple-git/src/lib/utils/git-output-streams.js.map +0 -1
  459. package/dist/node_modules/simple-git/src/lib/utils/index.js +0 -21
  460. package/dist/node_modules/simple-git/src/lib/utils/index.js.map +0 -1
  461. package/dist/node_modules/simple-git/src/lib/utils/line-parser.js +0 -52
  462. package/dist/node_modules/simple-git/src/lib/utils/line-parser.js.map +0 -1
  463. package/dist/node_modules/simple-git/src/lib/utils/simple-git-options.js +0 -16
  464. package/dist/node_modules/simple-git/src/lib/utils/simple-git-options.js.map +0 -1
  465. package/dist/node_modules/simple-git/src/lib/utils/task-options.js +0 -58
  466. package/dist/node_modules/simple-git/src/lib/utils/task-options.js.map +0 -1
  467. package/dist/node_modules/simple-git/src/lib/utils/task-parser.js +0 -24
  468. package/dist/node_modules/simple-git/src/lib/utils/task-parser.js.map +0 -1
  469. package/dist/node_modules/simple-git/src/lib/utils/util.js +0 -146
  470. package/dist/node_modules/simple-git/src/lib/utils/util.js.map +0 -1
  471. package/dist/node_modules/simple-git/typings/types.d.ts +0 -14
  472. /package/dist/node_modules/simple-git/{src → dist/src}/lib/errors/git-construct-error.d.ts +0 -0
  473. /package/dist/node_modules/simple-git/{src → dist/src}/lib/errors/git-response-error.d.ts +0 -0
  474. /package/dist/node_modules/simple-git/{src → dist/src}/lib/errors/task-configuration-error.d.ts +0 -0
  475. /package/dist/node_modules/simple-git/{src → dist/src}/lib/git-logger.d.ts +0 -0
  476. /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-branch-delete.d.ts +0 -0
  477. /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-commit.d.ts +0 -0
  478. /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-fetch.d.ts +0 -0
  479. /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-merge.d.ts +0 -0
  480. /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-move.d.ts +0 -0
  481. /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-push.d.ts +0 -0
  482. /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-remote-messages.d.ts +0 -0
  483. /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-remote-objects.d.ts +0 -0
  484. /package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/command-config-prefixing-plugin.d.ts +0 -0
  485. /package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/error-detection.plugin.d.ts +0 -0
  486. /package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/spawn-options-plugin.d.ts +0 -0
  487. /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/BranchDeleteSummary.d.ts +0 -0
  488. /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/CheckIgnore.d.ts +0 -0
  489. /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/CleanSummary.d.ts +0 -0
  490. /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/ConfigList.d.ts +0 -0
  491. /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/DiffSummary.d.ts +0 -0
  492. /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/GetRemoteSummary.d.ts +0 -0
  493. /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/InitSummary.d.ts +0 -0
  494. /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/MergeSummary.d.ts +0 -0
  495. /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/TagList.d.ts +0 -0
  496. /package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/promise-wrapped.d.ts +0 -0
  497. /package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/scheduler.d.ts +0 -0
  498. /package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/tasks-pending-queue.d.ts +0 -0
  499. /package/dist/node_modules/simple-git/{src → dist/src}/lib/simple-git-api.d.ts +0 -0
  500. /package/dist/node_modules/simple-git/{src → dist/src}/lib/task-callback.d.ts +0 -0
  501. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/apply-patch.d.ts +0 -0
  502. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/branch.d.ts +0 -0
  503. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/change-working-directory.d.ts +0 -0
  504. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/check-ignore.d.ts +0 -0
  505. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/check-is-repo.d.ts +0 -0
  506. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/clean.d.ts +0 -0
  507. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/grep.d.ts +0 -0
  508. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/hash-object.d.ts +0 -0
  509. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/init.d.ts +0 -0
  510. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/merge.d.ts +0 -0
  511. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/move.d.ts +0 -0
  512. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/pull.d.ts +0 -0
  513. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/push.d.ts +0 -0
  514. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/reset.d.ts +0 -0
  515. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/status.d.ts +0 -0
  516. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/sub-module.d.ts +0 -0
  517. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/tag.d.ts +0 -0
  518. /package/dist/node_modules/simple-git/{src → dist/src}/lib/types/handlers.d.ts +0 -0
  519. /package/dist/node_modules/simple-git/{src → dist/src}/lib/types/tasks.d.ts +0 -0
  520. /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/argument-filters.d.ts +0 -0
  521. /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/git-output-streams.d.ts +0 -0
  522. /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/index.d.ts +0 -0
  523. /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/simple-git-options.d.ts +0 -0
  524. /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/task-options.d.ts +0 -0
@@ -1,72 +1,246 @@
1
+ /**
2
+ * The `node:worker_threads` module enables the use of threads that execute
3
+ * JavaScript in parallel. To access it:
4
+ *
5
+ * ```js
6
+ * const worker = require('node:worker_threads');
7
+ * ```
8
+ *
9
+ * Workers (threads) are useful for performing CPU-intensive JavaScript operations.
10
+ * They do not help much with I/O-intensive work. The Node.js built-in
11
+ * asynchronous I/O operations are more efficient than Workers can be.
12
+ *
13
+ * Unlike `child_process` or `cluster`, `worker_threads` can share memory. They do
14
+ * so by transferring `ArrayBuffer` instances or sharing `SharedArrayBuffer` instances.
15
+ *
16
+ * ```js
17
+ * const {
18
+ * Worker, isMainThread, parentPort, workerData,
19
+ * } = require('node:worker_threads');
20
+ *
21
+ * if (isMainThread) {
22
+ * module.exports = function parseJSAsync(script) {
23
+ * return new Promise((resolve, reject) => {
24
+ * const worker = new Worker(__filename, {
25
+ * workerData: script,
26
+ * });
27
+ * worker.on('message', resolve);
28
+ * worker.on('error', reject);
29
+ * worker.on('exit', (code) => {
30
+ * if (code !== 0)
31
+ * reject(new Error(`Worker stopped with exit code ${code}`));
32
+ * });
33
+ * });
34
+ * };
35
+ * } else {
36
+ * const { parse } = require('some-js-parsing-library');
37
+ * const script = workerData;
38
+ * parentPort.postMessage(parse(script));
39
+ * }
40
+ * ```
41
+ *
42
+ * The above example spawns a Worker thread for each `parseJSAsync()` call. In
43
+ * practice, use a pool of Workers for these kinds of tasks. Otherwise, the
44
+ * overhead of creating Workers would likely exceed their benefit.
45
+ *
46
+ * When implementing a worker pool, use the `AsyncResource` API to inform
47
+ * diagnostic tools (e.g. to provide asynchronous stack traces) about the
48
+ * correlation between tasks and their outcomes. See `"Using AsyncResource for a Worker thread pool"` in the `async_hooks` documentation for an example implementation.
49
+ *
50
+ * Worker threads inherit non-process-specific options by default. Refer to `Worker constructor options` to know how to customize worker thread options,
51
+ * specifically `argv` and `execArgv` options.
52
+ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/worker_threads.js)
53
+ */
1
54
  declare module "worker_threads" {
2
- import { Context } from "vm";
3
- import EventEmitter = require("events");
4
- import { Readable, Writable } from "stream";
5
- import { URL } from "url";
6
- import { FileHandle } from "fs/promises";
7
-
55
+ import { Blob } from "node:buffer";
56
+ import { Context } from "node:vm";
57
+ import { EventEmitter } from "node:events";
58
+ import { EventLoopUtilityFunction } from "node:perf_hooks";
59
+ import { FileHandle } from "node:fs/promises";
60
+ import { Readable, Writable } from "node:stream";
61
+ import { URL } from "node:url";
62
+ import { X509Certificate } from "node:crypto";
8
63
  const isMainThread: boolean;
9
64
  const parentPort: null | MessagePort;
10
65
  const resourceLimits: ResourceLimits;
11
66
  const SHARE_ENV: unique symbol;
12
67
  const threadId: number;
13
68
  const workerData: any;
14
-
69
+ /**
70
+ * Instances of the `worker.MessageChannel` class represent an asynchronous,
71
+ * two-way communications channel.
72
+ * The `MessageChannel` has no methods of its own. `new MessageChannel()` yields an object with `port1` and `port2` properties, which refer to linked `MessagePort` instances.
73
+ *
74
+ * ```js
75
+ * const { MessageChannel } = require('node:worker_threads');
76
+ *
77
+ * const { port1, port2 } = new MessageChannel();
78
+ * port1.on('message', (message) => console.log('received', message));
79
+ * port2.postMessage({ foo: 'bar' });
80
+ * // Prints: received { foo: 'bar' } from the `port1.on('message')` listener
81
+ * ```
82
+ * @since v10.5.0
83
+ */
15
84
  class MessageChannel {
16
85
  readonly port1: MessagePort;
17
86
  readonly port2: MessagePort;
18
87
  }
19
-
20
- type TransferListItem = ArrayBuffer | MessagePort | FileHandle;
21
-
88
+ interface WorkerPerformance {
89
+ eventLoopUtilization: EventLoopUtilityFunction;
90
+ }
91
+ type TransferListItem = ArrayBuffer | MessagePort | FileHandle | X509Certificate | Blob;
92
+ /**
93
+ * Instances of the `worker.MessagePort` class represent one end of an
94
+ * asynchronous, two-way communications channel. It can be used to transfer
95
+ * structured data, memory regions and other `MessagePort`s between different `Worker`s.
96
+ *
97
+ * This implementation matches [browser `MessagePort`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort) s.
98
+ * @since v10.5.0
99
+ */
22
100
  class MessagePort extends EventEmitter {
101
+ /**
102
+ * Disables further sending of messages on either side of the connection.
103
+ * This method can be called when no further communication will happen over this `MessagePort`.
104
+ *
105
+ * The `'close' event` is emitted on both `MessagePort` instances that
106
+ * are part of the channel.
107
+ * @since v10.5.0
108
+ */
23
109
  close(): void;
24
- postMessage(value: any, transferList?: ReadonlyArray<TransferListItem>): void;
110
+ /**
111
+ * Sends a JavaScript value to the receiving side of this channel. `value` is transferred in a way which is compatible with
112
+ * the [HTML structured clone algorithm](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm).
113
+ *
114
+ * In particular, the significant differences to `JSON` are:
115
+ *
116
+ * * `value` may contain circular references.
117
+ * * `value` may contain instances of builtin JS types such as `RegExp`s, `BigInt`s, `Map`s, `Set`s, etc.
118
+ * * `value` may contain typed arrays, both using `ArrayBuffer`s
119
+ * and `SharedArrayBuffer`s.
120
+ * * `value` may contain [`WebAssembly.Module`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module) instances.
121
+ * * `value` may not contain native (C++-backed) objects other than:
122
+ *
123
+ * ```js
124
+ * const { MessageChannel } = require('node:worker_threads');
125
+ * const { port1, port2 } = new MessageChannel();
126
+ *
127
+ * port1.on('message', (message) => console.log(message));
128
+ *
129
+ * const circularData = {};
130
+ * circularData.foo = circularData;
131
+ * // Prints: { foo: [Circular] }
132
+ * port2.postMessage(circularData);
133
+ * ```
134
+ *
135
+ * `transferList` may be a list of [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer), `MessagePort`, and `FileHandle` objects.
136
+ * After transferring, they are not usable on the sending side of the channel
137
+ * anymore (even if they are not contained in `value`). Unlike with `child processes`, transferring handles such as network sockets is currently
138
+ * not supported.
139
+ *
140
+ * If `value` contains [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instances, those are accessible
141
+ * from either thread. They cannot be listed in `transferList`.
142
+ *
143
+ * `value` may still contain `ArrayBuffer` instances that are not in `transferList`; in that case, the underlying memory is copied rather than moved.
144
+ *
145
+ * ```js
146
+ * const { MessageChannel } = require('node:worker_threads');
147
+ * const { port1, port2 } = new MessageChannel();
148
+ *
149
+ * port1.on('message', (message) => console.log(message));
150
+ *
151
+ * const uint8Array = new Uint8Array([ 1, 2, 3, 4 ]);
152
+ * // This posts a copy of `uint8Array`:
153
+ * port2.postMessage(uint8Array);
154
+ * // This does not copy data, but renders `uint8Array` unusable:
155
+ * port2.postMessage(uint8Array, [ uint8Array.buffer ]);
156
+ *
157
+ * // The memory for the `sharedUint8Array` is accessible from both the
158
+ * // original and the copy received by `.on('message')`:
159
+ * const sharedUint8Array = new Uint8Array(new SharedArrayBuffer(4));
160
+ * port2.postMessage(sharedUint8Array);
161
+ *
162
+ * // This transfers a freshly created message port to the receiver.
163
+ * // This can be used, for example, to create communication channels between
164
+ * // multiple `Worker` threads that are children of the same parent thread.
165
+ * const otherChannel = new MessageChannel();
166
+ * port2.postMessage({ port: otherChannel.port1 }, [ otherChannel.port1 ]);
167
+ * ```
168
+ *
169
+ * The message object is cloned immediately, and can be modified after
170
+ * posting without having side effects.
171
+ *
172
+ * For more information on the serialization and deserialization mechanisms
173
+ * behind this API, see the `serialization API of the node:v8 module`.
174
+ * @since v10.5.0
175
+ */
176
+ postMessage(value: any, transferList?: readonly TransferListItem[]): void;
177
+ /**
178
+ * 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
179
+ * behavior). If the port is `ref()`ed, calling `ref()` again has no effect.
180
+ *
181
+ * If listeners are attached or removed using `.on('message')`, the port
182
+ * is `ref()`ed and `unref()`ed automatically depending on whether
183
+ * listeners for the event exist.
184
+ * @since v10.5.0
185
+ */
25
186
  ref(): void;
187
+ /**
188
+ * Calling `unref()` on a port allows the thread to exit if this is the only
189
+ * active handle in the event system. If the port is already `unref()`ed calling `unref()` again has no effect.
190
+ *
191
+ * If listeners are attached or removed using `.on('message')`, the port is `ref()`ed and `unref()`ed automatically depending on whether
192
+ * listeners for the event exist.
193
+ * @since v10.5.0
194
+ */
26
195
  unref(): void;
196
+ /**
197
+ * Starts receiving messages on this `MessagePort`. When using this port
198
+ * as an event emitter, this is called automatically once `'message'` listeners are attached.
199
+ *
200
+ * This method exists for parity with the Web `MessagePort` API. In Node.js,
201
+ * it is only useful for ignoring messages when no event listener is present.
202
+ * Node.js also diverges in its handling of `.onmessage`. Setting it
203
+ * automatically calls `.start()`, but unsetting it lets messages queue up
204
+ * until a new handler is set or the port is discarded.
205
+ * @since v10.5.0
206
+ */
27
207
  start(): void;
28
-
29
208
  addListener(event: "close", listener: () => void): this;
30
209
  addListener(event: "message", listener: (value: any) => void): this;
31
210
  addListener(event: "messageerror", listener: (error: Error) => void): this;
32
211
  addListener(event: string | symbol, listener: (...args: any[]) => void): this;
33
-
34
212
  emit(event: "close"): boolean;
35
213
  emit(event: "message", value: any): boolean;
36
214
  emit(event: "messageerror", error: Error): boolean;
37
215
  emit(event: string | symbol, ...args: any[]): boolean;
38
-
39
216
  on(event: "close", listener: () => void): this;
40
217
  on(event: "message", listener: (value: any) => void): this;
41
218
  on(event: "messageerror", listener: (error: Error) => void): this;
42
219
  on(event: string | symbol, listener: (...args: any[]) => void): this;
43
-
44
220
  once(event: "close", listener: () => void): this;
45
221
  once(event: "message", listener: (value: any) => void): this;
46
222
  once(event: "messageerror", listener: (error: Error) => void): this;
47
223
  once(event: string | symbol, listener: (...args: any[]) => void): this;
48
-
49
224
  prependListener(event: "close", listener: () => void): this;
50
225
  prependListener(event: "message", listener: (value: any) => void): this;
51
226
  prependListener(event: "messageerror", listener: (error: Error) => void): this;
52
227
  prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
53
-
54
228
  prependOnceListener(event: "close", listener: () => void): this;
55
229
  prependOnceListener(event: "message", listener: (value: any) => void): this;
56
230
  prependOnceListener(event: "messageerror", listener: (error: Error) => void): this;
57
231
  prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
58
-
59
232
  removeListener(event: "close", listener: () => void): this;
60
233
  removeListener(event: "message", listener: (value: any) => void): this;
61
234
  removeListener(event: "messageerror", listener: (error: Error) => void): this;
62
235
  removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
63
-
64
236
  off(event: "close", listener: () => void): this;
65
237
  off(event: "message", listener: (value: any) => void): this;
66
238
  off(event: "messageerror", listener: (error: Error) => void): this;
67
239
  off(event: string | symbol, listener: (...args: any[]) => void): this;
240
+ addEventListener: EventTarget["addEventListener"];
241
+ dispatchEvent: EventTarget["dispatchEvent"];
242
+ removeEventListener: EventTarget["removeEventListener"];
68
243
  }
69
-
70
244
  interface WorkerOptions {
71
245
  /**
72
246
  * List of arguments which would be stringified and appended to
@@ -87,9 +261,17 @@ declare module "worker_threads" {
87
261
  * Additional data to send in the first worker message.
88
262
  */
89
263
  transferList?: TransferListItem[] | undefined;
264
+ /**
265
+ * @default true
266
+ */
90
267
  trackUnmanagedFds?: boolean | undefined;
268
+ /**
269
+ * An optional `name` to be appended to the worker title
270
+ * for debuggin/identification purposes, making the final title as
271
+ * `[worker ${id}] ${name}`.
272
+ */
273
+ name?: string | undefined;
91
274
  }
92
-
93
275
  interface ResourceLimits {
94
276
  /**
95
277
  * The maximum size of a heap space for recently created objects.
@@ -109,89 +291,195 @@ declare module "worker_threads" {
109
291
  */
110
292
  stackSizeMb?: number | undefined;
111
293
  }
112
-
294
+ /**
295
+ * The `Worker` class represents an independent JavaScript execution thread.
296
+ * Most Node.js APIs are available inside of it.
297
+ *
298
+ * Notable differences inside a Worker environment are:
299
+ *
300
+ * * The `process.stdin`, `process.stdout`, and `process.stderr` streams may be redirected by the parent thread.
301
+ * * The `require('node:worker_threads').isMainThread` property is set to `false`.
302
+ * * The `require('node:worker_threads').parentPort` message port is available.
303
+ * * `process.exit()` does not stop the whole program, just the single thread,
304
+ * and `process.abort()` is not available.
305
+ * * `process.chdir()` and `process` methods that set group or user ids
306
+ * are not available.
307
+ * * `process.env` is a copy of the parent thread's environment variables,
308
+ * unless otherwise specified. Changes to one copy are not visible in other
309
+ * threads, and are not visible to native add-ons (unless `worker.SHARE_ENV` is passed as the `env` option to the `Worker` constructor). On Windows, unlike the main thread, a copy of the
310
+ * environment variables operates in a case-sensitive manner.
311
+ * * `process.title` cannot be modified.
312
+ * * Signals are not delivered through `process.on('...')`.
313
+ * * Execution may stop at any point as a result of `worker.terminate()` being invoked.
314
+ * * IPC channels from parent processes are not accessible.
315
+ * * The `trace_events` module is not supported.
316
+ * * Native add-ons can only be loaded from multiple threads if they fulfill `certain conditions`.
317
+ *
318
+ * Creating `Worker` instances inside of other `Worker`s is possible.
319
+ *
320
+ * Like [Web Workers](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API) and the `node:cluster module`, two-way communication
321
+ * can be achieved through inter-thread message passing. Internally, a `Worker` has
322
+ * a built-in pair of `MessagePort` s that are already associated with each
323
+ * other when the `Worker` is created. While the `MessagePort` object on the parent
324
+ * side is not directly exposed, its functionalities are exposed through `worker.postMessage()` and the `worker.on('message')` event
325
+ * on the `Worker` object for the parent thread.
326
+ *
327
+ * To create custom messaging channels (which is encouraged over using the default
328
+ * global channel because it facilitates separation of concerns), users can create
329
+ * a `MessageChannel` object on either thread and pass one of the`MessagePort`s on that `MessageChannel` to the other thread through a
330
+ * pre-existing channel, such as the global one.
331
+ *
332
+ * See `port.postMessage()` for more information on how messages are passed,
333
+ * and what kind of JavaScript values can be successfully transported through
334
+ * the thread barrier.
335
+ *
336
+ * ```js
337
+ * const assert = require('node:assert');
338
+ * const {
339
+ * Worker, MessageChannel, MessagePort, isMainThread, parentPort,
340
+ * } = require('node:worker_threads');
341
+ * if (isMainThread) {
342
+ * const worker = new Worker(__filename);
343
+ * const subChannel = new MessageChannel();
344
+ * worker.postMessage({ hereIsYourPort: subChannel.port1 }, [subChannel.port1]);
345
+ * subChannel.port2.on('message', (value) => {
346
+ * console.log('received:', value);
347
+ * });
348
+ * } else {
349
+ * parentPort.once('message', (value) => {
350
+ * assert(value.hereIsYourPort instanceof MessagePort);
351
+ * value.hereIsYourPort.postMessage('the worker is sending this');
352
+ * value.hereIsYourPort.close();
353
+ * });
354
+ * }
355
+ * ```
356
+ * @since v10.5.0
357
+ */
113
358
  class Worker extends EventEmitter {
359
+ /**
360
+ * If `stdin: true` was passed to the `Worker` constructor, this is a
361
+ * writable stream. The data written to this stream will be made available in
362
+ * the worker thread as `process.stdin`.
363
+ * @since v10.5.0
364
+ */
114
365
  readonly stdin: Writable | null;
366
+ /**
367
+ * This is a readable stream which contains data written to `process.stdout` inside the worker thread. If `stdout: true` was not passed to the `Worker` constructor, then data is piped to the
368
+ * parent thread's `process.stdout` stream.
369
+ * @since v10.5.0
370
+ */
115
371
  readonly stdout: Readable;
372
+ /**
373
+ * This is a readable stream which contains data written to `process.stderr` inside the worker thread. If `stderr: true` was not passed to the `Worker` constructor, then data is piped to the
374
+ * parent thread's `process.stderr` stream.
375
+ * @since v10.5.0
376
+ */
116
377
  readonly stderr: Readable;
378
+ /**
379
+ * An integer identifier for the referenced thread. Inside the worker thread,
380
+ * it is available as `require('node:worker_threads').threadId`.
381
+ * This value is unique for each `Worker` instance inside a single process.
382
+ * @since v10.5.0
383
+ */
117
384
  readonly threadId: number;
385
+ /**
386
+ * Provides the set of JS engine resource constraints for this Worker thread.
387
+ * If the `resourceLimits` option was passed to the `Worker` constructor,
388
+ * this matches its values.
389
+ *
390
+ * If the worker has stopped, the return value is an empty object.
391
+ * @since v13.2.0, v12.16.0
392
+ */
118
393
  readonly resourceLimits?: ResourceLimits | undefined;
119
-
394
+ /**
395
+ * An object that can be used to query performance information from a worker
396
+ * instance. Similar to `perf_hooks.performance`.
397
+ * @since v15.1.0, v14.17.0, v12.22.0
398
+ */
399
+ readonly performance: WorkerPerformance;
120
400
  /**
121
401
  * @param filename The path to the Worker’s main script or module.
122
402
  * Must be either an absolute path or a relative path (i.e. relative to the current working directory) starting with ./ or ../,
123
403
  * or a WHATWG URL object using file: protocol. If options.eval is true, this is a string containing JavaScript code rather than a path.
124
404
  */
125
405
  constructor(filename: string | URL, options?: WorkerOptions);
126
-
127
- postMessage(value: any, transferList?: ReadonlyArray<TransferListItem>): void;
406
+ /**
407
+ * Send a message to the worker that is received via `require('node:worker_threads').parentPort.on('message')`.
408
+ * See `port.postMessage()` for more details.
409
+ * @since v10.5.0
410
+ */
411
+ postMessage(value: any, transferList?: readonly TransferListItem[]): void;
412
+ /**
413
+ * 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
414
+ * behavior). If the worker is `ref()`ed, calling `ref()` again has
415
+ * no effect.
416
+ * @since v10.5.0
417
+ */
128
418
  ref(): void;
419
+ /**
420
+ * Calling `unref()` on a worker allows the thread to exit if this is the only
421
+ * active handle in the event system. If the worker is already `unref()`ed calling `unref()` again has no effect.
422
+ * @since v10.5.0
423
+ */
129
424
  unref(): void;
130
425
  /**
131
426
  * Stop all JavaScript execution in the worker thread as soon as possible.
132
- * Returns a Promise for the exit code that is fulfilled when the `exit` event is emitted.
427
+ * Returns a Promise for the exit code that is fulfilled when the `'exit' event` is emitted.
428
+ * @since v10.5.0
133
429
  */
134
430
  terminate(): Promise<number>;
135
-
136
431
  /**
137
432
  * Returns a readable stream for a V8 snapshot of the current state of the Worker.
138
- * See [`v8.getHeapSnapshot()`][] for more details.
433
+ * See `v8.getHeapSnapshot()` for more details.
139
434
  *
140
- * If the Worker thread is no longer running, which may occur before the
141
- * [`'exit'` event][] is emitted, the returned `Promise` will be rejected
142
- * immediately with an [`ERR_WORKER_NOT_RUNNING`][] error
435
+ * If the Worker thread is no longer running, which may occur before the `'exit' event` is emitted, the returned `Promise` is rejected
436
+ * immediately with an `ERR_WORKER_NOT_RUNNING` error.
437
+ * @since v13.9.0, v12.17.0
438
+ * @return A promise for a Readable Stream containing a V8 heap snapshot
143
439
  */
144
440
  getHeapSnapshot(): Promise<Readable>;
145
-
146
441
  addListener(event: "error", listener: (err: Error) => void): this;
147
442
  addListener(event: "exit", listener: (exitCode: number) => void): this;
148
443
  addListener(event: "message", listener: (value: any) => void): this;
149
444
  addListener(event: "messageerror", listener: (error: Error) => void): this;
150
445
  addListener(event: "online", listener: () => void): this;
151
446
  addListener(event: string | symbol, listener: (...args: any[]) => void): this;
152
-
153
447
  emit(event: "error", err: Error): boolean;
154
448
  emit(event: "exit", exitCode: number): boolean;
155
449
  emit(event: "message", value: any): boolean;
156
450
  emit(event: "messageerror", error: Error): boolean;
157
451
  emit(event: "online"): boolean;
158
452
  emit(event: string | symbol, ...args: any[]): boolean;
159
-
160
453
  on(event: "error", listener: (err: Error) => void): this;
161
454
  on(event: "exit", listener: (exitCode: number) => void): this;
162
455
  on(event: "message", listener: (value: any) => void): this;
163
456
  on(event: "messageerror", listener: (error: Error) => void): this;
164
457
  on(event: "online", listener: () => void): this;
165
458
  on(event: string | symbol, listener: (...args: any[]) => void): this;
166
-
167
459
  once(event: "error", listener: (err: Error) => void): this;
168
460
  once(event: "exit", listener: (exitCode: number) => void): this;
169
461
  once(event: "message", listener: (value: any) => void): this;
170
462
  once(event: "messageerror", listener: (error: Error) => void): this;
171
463
  once(event: "online", listener: () => void): this;
172
464
  once(event: string | symbol, listener: (...args: any[]) => void): this;
173
-
174
465
  prependListener(event: "error", listener: (err: Error) => void): this;
175
466
  prependListener(event: "exit", listener: (exitCode: number) => void): this;
176
467
  prependListener(event: "message", listener: (value: any) => void): this;
177
468
  prependListener(event: "messageerror", listener: (error: Error) => void): this;
178
469
  prependListener(event: "online", listener: () => void): this;
179
470
  prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
180
-
181
471
  prependOnceListener(event: "error", listener: (err: Error) => void): this;
182
472
  prependOnceListener(event: "exit", listener: (exitCode: number) => void): this;
183
473
  prependOnceListener(event: "message", listener: (value: any) => void): this;
184
474
  prependOnceListener(event: "messageerror", listener: (error: Error) => void): this;
185
475
  prependOnceListener(event: "online", listener: () => void): this;
186
476
  prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
187
-
188
477
  removeListener(event: "error", listener: (err: Error) => void): this;
189
478
  removeListener(event: "exit", listener: (exitCode: number) => void): this;
190
479
  removeListener(event: "message", listener: (value: any) => void): this;
191
480
  removeListener(event: "messageerror", listener: (error: Error) => void): this;
192
481
  removeListener(event: "online", listener: () => void): this;
193
482
  removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
194
-
195
483
  off(event: "error", listener: (err: Error) => void): this;
196
484
  off(event: "exit", listener: (exitCode: number) => void): this;
197
485
  off(event: "message", listener: (value: any) => void): this;
@@ -199,42 +487,207 @@ declare module "worker_threads" {
199
487
  off(event: "online", listener: () => void): this;
200
488
  off(event: string | symbol, listener: (...args: any[]) => void): this;
201
489
  }
202
-
490
+ interface BroadcastChannel extends NodeJS.RefCounted {}
491
+ /**
492
+ * Instances of `BroadcastChannel` allow asynchronous one-to-many communication
493
+ * with all other `BroadcastChannel` instances bound to the same channel name.
494
+ *
495
+ * ```js
496
+ * 'use strict';
497
+ *
498
+ * const {
499
+ * isMainThread,
500
+ * BroadcastChannel,
501
+ * Worker,
502
+ * } = require('node:worker_threads');
503
+ *
504
+ * const bc = new BroadcastChannel('hello');
505
+ *
506
+ * if (isMainThread) {
507
+ * let c = 0;
508
+ * bc.onmessage = (event) => {
509
+ * console.log(event.data);
510
+ * if (++c === 10) bc.close();
511
+ * };
512
+ * for (let n = 0; n < 10; n++)
513
+ * new Worker(__filename);
514
+ * } else {
515
+ * bc.postMessage('hello from every worker');
516
+ * bc.close();
517
+ * }
518
+ * ```
519
+ * @since v15.4.0
520
+ */
521
+ class BroadcastChannel {
522
+ readonly name: string;
523
+ /**
524
+ * Invoked with a single \`MessageEvent\` argument when a message is received.
525
+ * @since v15.4.0
526
+ */
527
+ onmessage: (message: unknown) => void;
528
+ /**
529
+ * Invoked with a received message cannot be deserialized.
530
+ * @since v15.4.0
531
+ */
532
+ onmessageerror: (message: unknown) => void;
533
+ constructor(name: string);
534
+ /**
535
+ * Closes the `BroadcastChannel` connection.
536
+ * @since v15.4.0
537
+ */
538
+ close(): void;
539
+ /**
540
+ * @since v15.4.0
541
+ * @param message Any cloneable JavaScript value.
542
+ */
543
+ postMessage(message: unknown): void;
544
+ }
203
545
  /**
204
- * Mark an object as not transferable.
205
- * If `object` occurs in the transfer list of a `port.postMessage()` call, it will be ignored.
546
+ * Mark an object as not transferable. If `object` occurs in the transfer list of
547
+ * a `port.postMessage()` call, it is ignored.
206
548
  *
207
- * In particular, this makes sense for objects that can be cloned, rather than transferred,
208
- * and which are used by other objects on the sending side. For example, Node.js marks
209
- * the `ArrayBuffer`s it uses for its Buffer pool with this.
549
+ * In particular, this makes sense for objects that can be cloned, rather than
550
+ * transferred, and which are used by other objects on the sending side.
551
+ * For example, Node.js marks the `ArrayBuffer`s it uses for its `Buffer pool` with this.
210
552
  *
211
553
  * This operation cannot be undone.
554
+ *
555
+ * ```js
556
+ * const { MessageChannel, markAsUntransferable } = require('node:worker_threads');
557
+ *
558
+ * const pooledBuffer = new ArrayBuffer(8);
559
+ * const typedArray1 = new Uint8Array(pooledBuffer);
560
+ * const typedArray2 = new Float64Array(pooledBuffer);
561
+ *
562
+ * markAsUntransferable(pooledBuffer);
563
+ *
564
+ * const { port1 } = new MessageChannel();
565
+ * port1.postMessage(typedArray1, [ typedArray1.buffer ]);
566
+ *
567
+ * // The following line prints the contents of typedArray1 -- it still owns
568
+ * // its memory and has been cloned, not transferred. Without
569
+ * // `markAsUntransferable()`, this would print an empty Uint8Array.
570
+ * // typedArray2 is intact as well.
571
+ * console.log(typedArray1);
572
+ * console.log(typedArray2);
573
+ * ```
574
+ *
575
+ * There is no equivalent to this API in browsers.
576
+ * @since v14.5.0, v12.19.0
212
577
  */
213
578
  function markAsUntransferable(object: object): void;
214
-
215
579
  /**
216
- * Transfer a `MessagePort` to a different `vm` Context. The original `port`
217
- * object will be rendered unusable, and the returned `MessagePort` instance will
218
- * take its place.
580
+ * Transfer a `MessagePort` to a different `vm` Context. The original `port` object is rendered unusable, and the returned `MessagePort` instance
581
+ * takes its place.
219
582
  *
220
- * The returned `MessagePort` will be an object in the target context, and will
221
- * inherit from its global `Object` class. Objects passed to the
222
- * `port.onmessage()` listener will also be created in the target context
583
+ * The returned `MessagePort` is an object in the target context and
584
+ * inherits from its global `Object` class. Objects passed to the [`port.onmessage()`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessage) listener are also created in the
585
+ * target context
223
586
  * and inherit from its global `Object` class.
224
587
  *
225
- * However, the created `MessagePort` will no longer inherit from
226
- * `EventEmitter`, and only `port.onmessage()` can be used to receive
588
+ * However, the created `MessagePort` no longer inherits from [`EventTarget`](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget), and only
589
+ * [`port.onmessage()`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessage) can be used to receive
227
590
  * events using it.
591
+ * @since v11.13.0
592
+ * @param port The message port to transfer.
593
+ * @param contextifiedSandbox A `contextified` object as returned by the `vm.createContext()` method.
228
594
  */
229
- function moveMessagePortToContext(port: MessagePort, context: Context): MessagePort;
230
-
595
+ function moveMessagePortToContext(port: MessagePort, contextifiedSandbox: Context): MessagePort;
231
596
  /**
232
- * Receive a single message from a given `MessagePort`. If no message is available,
233
- * `undefined` is returned, otherwise an object with a single `message` property
234
- * that contains the message payload, corresponding to the oldest message in the
235
- * `MessagePort`’s queue.
597
+ * Receive a single message from a given `MessagePort`. If no message is available,`undefined` is returned, otherwise an object with a single `message` property
598
+ * that contains the message payload, corresponding to the oldest message in the `MessagePort`'s queue.
599
+ *
600
+ * ```js
601
+ * const { MessageChannel, receiveMessageOnPort } = require('node:worker_threads');
602
+ * const { port1, port2 } = new MessageChannel();
603
+ * port1.postMessage({ hello: 'world' });
604
+ *
605
+ * console.log(receiveMessageOnPort(port2));
606
+ * // Prints: { message: { hello: 'world' } }
607
+ * console.log(receiveMessageOnPort(port2));
608
+ * // Prints: undefined
609
+ * ```
610
+ *
611
+ * When this function is used, no `'message'` event is emitted and the `onmessage` listener is not invoked.
612
+ * @since v12.3.0
613
+ */
614
+ function receiveMessageOnPort(port: MessagePort):
615
+ | {
616
+ message: any;
617
+ }
618
+ | undefined;
619
+ type Serializable = string | object | number | boolean | bigint;
620
+ /**
621
+ * Within a worker thread, `worker.getEnvironmentData()` returns a clone
622
+ * of data passed to the spawning thread's `worker.setEnvironmentData()`.
623
+ * Every new `Worker` receives its own copy of the environment data
624
+ * automatically.
625
+ *
626
+ * ```js
627
+ * const {
628
+ * Worker,
629
+ * isMainThread,
630
+ * setEnvironmentData,
631
+ * getEnvironmentData,
632
+ * } = require('node:worker_threads');
633
+ *
634
+ * if (isMainThread) {
635
+ * setEnvironmentData('Hello', 'World!');
636
+ * const worker = new Worker(__filename);
637
+ * } else {
638
+ * console.log(getEnvironmentData('Hello')); // Prints 'World!'.
639
+ * }
640
+ * ```
641
+ * @since v15.12.0, v14.18.0
642
+ * @param key Any arbitrary, cloneable JavaScript value that can be used as a {Map} key.
643
+ */
644
+ function getEnvironmentData(key: Serializable): Serializable;
645
+ /**
646
+ * The `worker.setEnvironmentData()` API sets the content of `worker.getEnvironmentData()` in the current thread and all new `Worker` instances spawned from the current context.
647
+ * @since v15.12.0, v14.18.0
648
+ * @param key Any arbitrary, cloneable JavaScript value that can be used as a {Map} key.
649
+ * @param value Any arbitrary, cloneable JavaScript value that will be cloned and passed automatically to all new `Worker` instances. If `value` is passed as `undefined`, any previously set value
650
+ * for the `key` will be deleted.
236
651
  */
237
- function receiveMessageOnPort(port: MessagePort): { message: any } | undefined;
652
+ function setEnvironmentData(key: Serializable, value: Serializable): void;
653
+
654
+ import {
655
+ BroadcastChannel as _BroadcastChannel,
656
+ MessageChannel as _MessageChannel,
657
+ MessagePort as _MessagePort,
658
+ } from "worker_threads";
659
+ global {
660
+ /**
661
+ * `BroadcastChannel` class is a global reference for `require('worker_threads').BroadcastChannel`
662
+ * https://nodejs.org/api/globals.html#broadcastchannel
663
+ * @since v18.0.0
664
+ */
665
+ var BroadcastChannel: typeof globalThis extends {
666
+ onmessage: any;
667
+ BroadcastChannel: infer T;
668
+ } ? T
669
+ : typeof _BroadcastChannel;
670
+ /**
671
+ * `MessageChannel` class is a global reference for `require('worker_threads').MessageChannel`
672
+ * https://nodejs.org/api/globals.html#messagechannel
673
+ * @since v15.0.0
674
+ */
675
+ var MessageChannel: typeof globalThis extends {
676
+ onmessage: any;
677
+ MessageChannel: infer T;
678
+ } ? T
679
+ : typeof _MessageChannel;
680
+ /**
681
+ * `MessagePort` class is a global reference for `require('worker_threads').MessagePort`
682
+ * https://nodejs.org/api/globals.html#messageport
683
+ * @since v15.0.0
684
+ */
685
+ var MessagePort: typeof globalThis extends {
686
+ onmessage: any;
687
+ MessagePort: infer T;
688
+ } ? T
689
+ : typeof _MessagePort;
690
+ }
238
691
  }
239
692
  declare module "node:worker_threads" {
240
693
  export * from "worker_threads";