@emulsify/cli 1.8.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 (525) hide show
  1. package/README.md +20 -13
  2. package/dist/index.js +14 -6
  3. package/dist/node_modules/.package-lock.json +37 -24
  4. package/dist/node_modules/@types/node/README.md +5 -6
  5. package/dist/node_modules/@types/node/assert/strict.d.ts +8 -0
  6. package/dist/node_modules/@types/node/assert.d.ts +955 -45
  7. package/dist/node_modules/@types/node/async_hooks.d.ts +391 -87
  8. package/dist/node_modules/@types/node/buffer.d.ts +2210 -17
  9. package/dist/node_modules/@types/node/child_process.d.ts +1051 -189
  10. package/dist/node_modules/@types/node/cluster.d.ts +421 -143
  11. package/dist/node_modules/@types/node/console.d.ts +359 -49
  12. package/dist/node_modules/@types/node/constants.d.ts +3 -3
  13. package/dist/node_modules/@types/node/crypto.d.ts +3528 -291
  14. package/dist/node_modules/@types/node/dgram.d.ts +446 -30
  15. package/dist/node_modules/@types/node/diagnostics_channel.d.ts +554 -0
  16. package/dist/node_modules/@types/node/dns/promises.d.ts +476 -0
  17. package/dist/node_modules/@types/node/dns.d.ts +588 -240
  18. package/dist/node_modules/@types/node/dom-events.d.ts +124 -0
  19. package/dist/node_modules/@types/node/domain.d.ts +159 -16
  20. package/dist/node_modules/@types/node/events.d.ts +890 -41
  21. package/dist/node_modules/@types/node/fs/promises.d.ts +980 -369
  22. package/dist/node_modules/@types/node/fs.d.ts +2599 -869
  23. package/dist/node_modules/@types/node/globals.d.ts +374 -727
  24. package/dist/node_modules/@types/node/globals.global.d.ts +1 -1
  25. package/dist/node_modules/@types/node/http.d.ts +1459 -132
  26. package/dist/node_modules/@types/node/http2.d.ts +1333 -123
  27. package/dist/node_modules/@types/node/https.d.ts +289 -13
  28. package/dist/node_modules/@types/node/index.d.ts +37 -46
  29. package/dist/node_modules/@types/node/inspector.d.ts +367 -671
  30. package/dist/node_modules/@types/node/module.d.ts +273 -14
  31. package/dist/node_modules/@types/node/net.d.ts +741 -66
  32. package/dist/node_modules/@types/node/os.d.ts +275 -23
  33. package/dist/node_modules/@types/node/package.json +95 -110
  34. package/dist/node_modules/@types/node/path.d.ts +27 -4
  35. package/dist/node_modules/@types/node/perf_hooks.d.ts +756 -125
  36. package/dist/node_modules/@types/node/process.d.ts +1429 -127
  37. package/dist/node_modules/@types/node/punycode.d.ts +65 -26
  38. package/dist/node_modules/@types/node/querystring.d.ts +121 -9
  39. package/dist/node_modules/@types/node/readline/promises.d.ts +150 -0
  40. package/dist/node_modules/@types/node/readline.d.ts +405 -49
  41. package/dist/node_modules/@types/node/repl.d.ts +99 -73
  42. package/dist/node_modules/@types/node/sea.d.ts +153 -0
  43. package/dist/node_modules/@types/node/stream/consumers.d.ts +12 -0
  44. package/dist/node_modules/@types/node/stream/promises.d.ts +83 -0
  45. package/dist/node_modules/@types/node/stream/web.d.ts +367 -0
  46. package/dist/node_modules/@types/node/stream.d.ts +1462 -273
  47. package/dist/node_modules/@types/node/string_decoder.d.ts +59 -2
  48. package/dist/node_modules/@types/node/test.d.ts +1719 -0
  49. package/dist/node_modules/@types/node/timers/promises.d.ts +97 -0
  50. package/dist/node_modules/@types/node/timers.d.ts +233 -12
  51. package/dist/node_modules/@types/node/tls.d.ts +540 -189
  52. package/dist/node_modules/@types/node/trace_events.d.ts +143 -10
  53. package/dist/node_modules/@types/node/tty.d.ts +156 -17
  54. package/dist/node_modules/@types/node/url.d.ts +812 -47
  55. package/dist/node_modules/@types/node/util.d.ts +2159 -145
  56. package/dist/node_modules/@types/node/v8.d.ts +693 -74
  57. package/dist/node_modules/@types/node/vm.d.ts +813 -44
  58. package/dist/node_modules/@types/node/wasi.d.ts +121 -28
  59. package/dist/node_modules/@types/node/worker_threads.d.ts +514 -61
  60. package/dist/node_modules/@types/node/zlib.d.ts +220 -54
  61. package/dist/node_modules/ajv-formats/node_modules/ajv/README.md +1 -1
  62. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js +1 -0
  63. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js.map +1 -1
  64. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js.map +1 -1
  65. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.d.ts +2 -2
  66. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js.map +1 -1
  67. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.d.ts +1 -1
  68. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js +1 -1
  69. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js.map +1 -1
  70. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/index.d.ts +3 -3
  71. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.d.ts +10 -10
  72. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js +5 -1
  73. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -1
  74. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/code.ts +1 -0
  75. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/index.ts +2 -2
  76. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/resolve.ts +2 -2
  77. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/uri.ts +1 -1
  78. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/index.ts +3 -3
  79. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/json-schema.ts +10 -10
  80. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/index.ts +4 -1
  81. package/dist/node_modules/ajv-formats/node_modules/ajv/package.json +5 -5
  82. package/dist/node_modules/commander/Readme.md +10 -8
  83. package/dist/node_modules/commander/esm.mjs +1 -1
  84. package/dist/node_modules/commander/lib/argument.js +9 -5
  85. package/dist/node_modules/commander/lib/command.js +406 -196
  86. package/dist/node_modules/commander/lib/error.js +0 -4
  87. package/dist/node_modules/commander/lib/help.js +101 -38
  88. package/dist/node_modules/commander/lib/option.js +11 -8
  89. package/dist/node_modules/commander/lib/suggestSimilar.js +5 -4
  90. package/dist/node_modules/commander/package.json +23 -19
  91. package/dist/node_modules/commander/typings/index.d.ts +110 -40
  92. package/dist/node_modules/debug/package.json +4 -3
  93. package/dist/node_modules/debug/src/browser.js +3 -1
  94. package/dist/node_modules/debug/src/node.js +2 -2
  95. package/dist/node_modules/fast-uri/.gitattributes +2 -0
  96. package/dist/node_modules/fast-uri/.github/.stale.yml +21 -0
  97. package/dist/node_modules/fast-uri/.github/dependabot.yml +13 -0
  98. package/dist/node_modules/fast-uri/.github/tests_checker.yml +8 -0
  99. package/dist/node_modules/fast-uri/.github/workflows/ci.yml +23 -0
  100. package/dist/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +20 -0
  101. package/dist/node_modules/fast-uri/.taprc +3 -0
  102. package/dist/node_modules/fast-uri/LICENSE +30 -0
  103. package/dist/node_modules/fast-uri/README.md +125 -0
  104. package/dist/node_modules/fast-uri/benchmark.js +105 -0
  105. package/dist/node_modules/fast-uri/index.js +309 -0
  106. package/dist/node_modules/fast-uri/lib/schemes.js +188 -0
  107. package/dist/node_modules/fast-uri/lib/scopedChars.js +30 -0
  108. package/dist/node_modules/fast-uri/lib/utils.js +242 -0
  109. package/dist/node_modules/fast-uri/package.json +39 -0
  110. package/dist/node_modules/fast-uri/test/.gitkeep +0 -0
  111. package/dist/node_modules/fast-uri/test/ajv.test.js +39 -0
  112. package/dist/node_modules/fast-uri/test/compatibility.test.js +130 -0
  113. package/dist/node_modules/fast-uri/test/equal.test.js +104 -0
  114. package/dist/node_modules/fast-uri/test/parse.test.js +319 -0
  115. package/dist/node_modules/fast-uri/test/resolve.test.js +76 -0
  116. package/dist/node_modules/fast-uri/test/serialize.test.js +144 -0
  117. package/dist/node_modules/fast-uri/test/uri-js.test.js +940 -0
  118. package/dist/node_modules/fast-uri/test/util.test.js +24 -0
  119. package/dist/node_modules/fast-uri/types/index.d.ts +53 -0
  120. package/dist/node_modules/fast-uri/types/index.test-d.ts +17 -0
  121. package/dist/node_modules/fs-extra/README.md +32 -2
  122. package/dist/node_modules/fs-extra/lib/copy/copy-sync.js +3 -11
  123. package/dist/node_modules/fs-extra/lib/copy/copy.js +120 -178
  124. package/dist/node_modules/fs-extra/lib/copy/index.js +1 -1
  125. package/dist/node_modules/fs-extra/lib/ensure/file.js +31 -34
  126. package/dist/node_modules/fs-extra/lib/ensure/link.js +27 -27
  127. package/dist/node_modules/fs-extra/lib/ensure/symlink-paths.js +57 -55
  128. package/dist/node_modules/fs-extra/lib/ensure/symlink-type.js +16 -13
  129. package/dist/node_modules/fs-extra/lib/ensure/symlink.js +29 -44
  130. package/dist/node_modules/fs-extra/lib/esm.mjs +68 -0
  131. package/dist/node_modules/fs-extra/lib/fs/index.js +29 -17
  132. package/dist/node_modules/fs-extra/lib/move/index.js +1 -1
  133. package/dist/node_modules/fs-extra/lib/move/move-sync.js +2 -1
  134. package/dist/node_modules/fs-extra/lib/move/move.js +38 -54
  135. package/dist/node_modules/fs-extra/lib/output-file/index.js +10 -19
  136. package/dist/node_modules/fs-extra/lib/remove/index.js +2 -7
  137. package/dist/node_modules/fs-extra/lib/util/stat.js +46 -42
  138. package/dist/node_modules/fs-extra/lib/util/utimes.js +21 -11
  139. package/dist/node_modules/fs-extra/package.json +11 -7
  140. package/dist/node_modules/simple-git/dist/cjs/index.js +4958 -0
  141. package/dist/node_modules/simple-git/dist/cjs/index.js.map +7 -0
  142. package/dist/node_modules/simple-git/dist/esm/index.js +4813 -0
  143. package/dist/node_modules/simple-git/dist/esm/index.js.map +7 -0
  144. package/dist/node_modules/simple-git/dist/esm/package.json +3 -0
  145. package/dist/node_modules/simple-git/{src → dist/src}/lib/api.d.ts +3 -13
  146. package/dist/node_modules/simple-git/dist/src/lib/args/log-format.d.ts +9 -0
  147. package/dist/node_modules/simple-git/dist/src/lib/args/pathspec.d.ts +3 -0
  148. package/dist/node_modules/simple-git/{src → dist/src}/lib/errors/git-error.d.ts +3 -2
  149. package/dist/node_modules/simple-git/dist/src/lib/errors/git-plugin-error.d.ts +7 -0
  150. package/dist/node_modules/simple-git/dist/src/lib/git-factory.d.ts +15 -0
  151. package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-branch.d.ts +1 -1
  152. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-diff-summary.d.ts +3 -0
  153. package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-list-log-summary.d.ts +2 -1
  154. package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-pull.d.ts +2 -0
  155. package/dist/node_modules/simple-git/dist/src/lib/plugins/abort-plugin.d.ts +3 -0
  156. package/dist/node_modules/simple-git/dist/src/lib/plugins/block-unsafe-operations-plugin.d.ts +3 -0
  157. package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/completion-detection.plugin.d.ts +1 -1
  158. package/dist/node_modules/simple-git/dist/src/lib/plugins/custom-binary.plugin.d.ts +3 -0
  159. package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/index.d.ts +3 -0
  160. package/dist/node_modules/simple-git/dist/src/lib/plugins/plugin-store.d.ts +11 -0
  161. package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/progress-monitor-plugin.d.ts +1 -1
  162. package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/simple-git-plugin.d.ts +10 -0
  163. package/dist/node_modules/simple-git/dist/src/lib/plugins/suffix-paths.plugin.d.ts +2 -0
  164. package/dist/node_modules/simple-git/dist/src/lib/plugins/timout-plugin.d.ts +3 -0
  165. package/dist/node_modules/simple-git/dist/src/lib/responses/BranchSummary.d.ts +14 -0
  166. package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/FileStatusSummary.d.ts +1 -1
  167. package/dist/node_modules/simple-git/dist/src/lib/responses/PullSummary.d.ts +25 -0
  168. package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/StatusSummary.d.ts +2 -1
  169. package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/git-executor-chain.d.ts +1 -1
  170. package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/git-executor.d.ts +3 -4
  171. package/dist/node_modules/simple-git/dist/src/lib/tasks/checkout.d.ts +2 -0
  172. package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/clone.d.ts +3 -2
  173. package/dist/node_modules/simple-git/dist/src/lib/tasks/commit.d.ts +4 -0
  174. package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/config.d.ts +1 -1
  175. package/dist/node_modules/simple-git/dist/src/lib/tasks/count-objects.d.ts +12 -0
  176. package/dist/node_modules/simple-git/dist/src/lib/tasks/diff-name-status.d.ts +12 -0
  177. package/dist/node_modules/simple-git/dist/src/lib/tasks/diff.d.ts +5 -0
  178. package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/fetch.d.ts +2 -1
  179. package/dist/node_modules/simple-git/dist/src/lib/tasks/first-commit.d.ts +2 -0
  180. package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/log.d.ts +3 -3
  181. package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/remote.d.ts +3 -3
  182. package/dist/node_modules/simple-git/dist/src/lib/tasks/show.d.ts +2 -0
  183. package/dist/node_modules/simple-git/dist/src/lib/tasks/stash-list.d.ts +4 -0
  184. package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/task.d.ts +1 -1
  185. package/dist/node_modules/simple-git/dist/src/lib/tasks/version.d.ts +9 -0
  186. package/dist/node_modules/simple-git/{src → dist/src}/lib/types/index.d.ts +64 -5
  187. package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/exit-codes.d.ts +1 -0
  188. package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/line-parser.d.ts +1 -1
  189. package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/task-parser.d.ts +2 -2
  190. package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/util.d.ts +3 -1
  191. package/dist/node_modules/simple-git/{typings → dist/typings}/errors.d.ts +0 -1
  192. package/dist/node_modules/simple-git/{typings → dist/typings}/index.d.ts +2 -1
  193. package/dist/node_modules/simple-git/{typings → dist/typings}/response.d.ts +68 -25
  194. package/dist/node_modules/simple-git/{typings → dist/typings}/simple-git.d.ts +493 -110
  195. package/dist/node_modules/simple-git/dist/typings/types.d.ts +23 -0
  196. package/dist/node_modules/simple-git/package.json +32 -35
  197. package/dist/node_modules/simple-git/promise.js +14 -4
  198. package/dist/node_modules/simple-git/readme.md +372 -389
  199. package/dist/node_modules/undici-types/README.md +6 -0
  200. package/dist/node_modules/undici-types/agent.d.ts +31 -0
  201. package/dist/node_modules/undici-types/api.d.ts +43 -0
  202. package/dist/node_modules/undici-types/balanced-pool.d.ts +18 -0
  203. package/dist/node_modules/undici-types/cache.d.ts +36 -0
  204. package/dist/node_modules/undici-types/client.d.ts +97 -0
  205. package/dist/node_modules/undici-types/connector.d.ts +34 -0
  206. package/dist/node_modules/undici-types/content-type.d.ts +21 -0
  207. package/dist/node_modules/undici-types/cookies.d.ts +28 -0
  208. package/dist/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
  209. package/dist/node_modules/undici-types/dispatcher.d.ts +241 -0
  210. package/dist/node_modules/undici-types/errors.d.ts +128 -0
  211. package/dist/node_modules/undici-types/fetch.d.ts +209 -0
  212. package/dist/node_modules/undici-types/file.d.ts +39 -0
  213. package/dist/node_modules/undici-types/filereader.d.ts +54 -0
  214. package/dist/node_modules/undici-types/formdata.d.ts +108 -0
  215. package/dist/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  216. package/dist/node_modules/undici-types/global-origin.d.ts +7 -0
  217. package/dist/node_modules/undici-types/handlers.d.ts +9 -0
  218. package/dist/node_modules/undici-types/header.d.ts +4 -0
  219. package/dist/node_modules/undici-types/index.d.ts +63 -0
  220. package/dist/node_modules/undici-types/interceptors.d.ts +5 -0
  221. package/dist/node_modules/undici-types/mock-agent.d.ts +50 -0
  222. package/dist/node_modules/undici-types/mock-client.d.ts +25 -0
  223. package/dist/node_modules/undici-types/mock-errors.d.ts +12 -0
  224. package/dist/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  225. package/dist/node_modules/undici-types/mock-pool.d.ts +25 -0
  226. package/dist/node_modules/undici-types/package.json +55 -0
  227. package/dist/node_modules/undici-types/patch.d.ts +71 -0
  228. package/dist/node_modules/undici-types/pool-stats.d.ts +19 -0
  229. package/dist/node_modules/undici-types/pool.d.ts +28 -0
  230. package/dist/node_modules/undici-types/proxy-agent.d.ts +30 -0
  231. package/dist/node_modules/undici-types/readable.d.ts +61 -0
  232. package/dist/node_modules/undici-types/webidl.d.ts +220 -0
  233. package/dist/node_modules/undici-types/websocket.d.ts +131 -0
  234. package/dist/package-lock.json +10146 -0
  235. package/dist/package.json +23 -23
  236. package/dist/schemas/variant.json +5 -21
  237. package/package.json +24 -24
  238. package/dist/node_modules/@types/node/ts4.8/assert.d.ts +0 -130
  239. package/dist/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -237
  240. package/dist/node_modules/@types/node/ts4.8/buffer.d.ts +0 -89
  241. package/dist/node_modules/@types/node/ts4.8/child_process.d.ts +0 -682
  242. package/dist/node_modules/@types/node/ts4.8/cluster.d.ts +0 -300
  243. package/dist/node_modules/@types/node/ts4.8/console.d.ts +0 -142
  244. package/dist/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
  245. package/dist/node_modules/@types/node/ts4.8/crypto.d.ts +0 -1287
  246. package/dist/node_modules/@types/node/ts4.8/dgram.d.ts +0 -180
  247. package/dist/node_modules/@types/node/ts4.8/dns.d.ts +0 -516
  248. package/dist/node_modules/@types/node/ts4.8/domain.d.ts +0 -27
  249. package/dist/node_modules/@types/node/ts4.8/events.d.ts +0 -82
  250. package/dist/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -634
  251. package/dist/node_modules/@types/node/ts4.8/fs.d.ts +0 -2587
  252. package/dist/node_modules/@types/node/ts4.8/globals.d.ts +0 -763
  253. package/dist/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  254. package/dist/node_modules/@types/node/ts4.8/http.d.ts +0 -580
  255. package/dist/node_modules/@types/node/ts4.8/http2.d.ts +0 -1208
  256. package/dist/node_modules/@types/node/ts4.8/https.d.ts +0 -274
  257. package/dist/node_modules/@types/node/ts4.8/index.d.ts +0 -53
  258. package/dist/node_modules/@types/node/ts4.8/inspector.d.ts +0 -3050
  259. package/dist/node_modules/@types/node/ts4.8/module.d.ts +0 -56
  260. package/dist/node_modules/@types/node/ts4.8/net.d.ts +0 -324
  261. package/dist/node_modules/@types/node/ts4.8/os.d.ts +0 -243
  262. package/dist/node_modules/@types/node/ts4.8/path.d.ts +0 -168
  263. package/dist/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -274
  264. package/dist/node_modules/@types/node/ts4.8/process.d.ts +0 -452
  265. package/dist/node_modules/@types/node/ts4.8/punycode.d.ts +0 -78
  266. package/dist/node_modules/@types/node/ts4.8/querystring.d.ts +0 -41
  267. package/dist/node_modules/@types/node/ts4.8/readline.d.ts +0 -184
  268. package/dist/node_modules/@types/node/ts4.8/repl.d.ts +0 -404
  269. package/dist/node_modules/@types/node/ts4.8/stream.d.ts +0 -518
  270. package/dist/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -10
  271. package/dist/node_modules/@types/node/ts4.8/timers.d.ts +0 -19
  272. package/dist/node_modules/@types/node/ts4.8/tls.d.ts +0 -866
  273. package/dist/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -64
  274. package/dist/node_modules/@types/node/ts4.8/tty.d.ts +0 -69
  275. package/dist/node_modules/@types/node/ts4.8/url.d.ts +0 -187
  276. package/dist/node_modules/@types/node/ts4.8/util.d.ts +0 -278
  277. package/dist/node_modules/@types/node/ts4.8/v8.d.ts +0 -189
  278. package/dist/node_modules/@types/node/ts4.8/vm.d.ts +0 -155
  279. package/dist/node_modules/@types/node/ts4.8/wasi.d.ts +0 -88
  280. package/dist/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -241
  281. package/dist/node_modules/@types/node/ts4.8/zlib.d.ts +0 -364
  282. package/dist/node_modules/fs-extra/lib/remove/rimraf.js +0 -302
  283. package/dist/node_modules/simple-git/CHANGELOG.md +0 -529
  284. package/dist/node_modules/simple-git/LICENSE +0 -20
  285. package/dist/node_modules/simple-git/promise.d.ts +0 -46
  286. package/dist/node_modules/simple-git/src/git.js +0 -700
  287. package/dist/node_modules/simple-git/src/index.js +0 -7
  288. package/dist/node_modules/simple-git/src/lib/api.js +0 -26
  289. package/dist/node_modules/simple-git/src/lib/api.js.map +0 -1
  290. package/dist/node_modules/simple-git/src/lib/errors/git-construct-error.js +0 -21
  291. package/dist/node_modules/simple-git/src/lib/errors/git-construct-error.js.map +0 -1
  292. package/dist/node_modules/simple-git/src/lib/errors/git-error.js +0 -37
  293. package/dist/node_modules/simple-git/src/lib/errors/git-error.js.map +0 -1
  294. package/dist/node_modules/simple-git/src/lib/errors/git-plugin-error.d.ts +0 -6
  295. package/dist/node_modules/simple-git/src/lib/errors/git-plugin-error.js +0 -14
  296. package/dist/node_modules/simple-git/src/lib/errors/git-plugin-error.js.map +0 -1
  297. package/dist/node_modules/simple-git/src/lib/errors/git-response-error.js +0 -36
  298. package/dist/node_modules/simple-git/src/lib/errors/git-response-error.js.map +0 -1
  299. package/dist/node_modules/simple-git/src/lib/errors/task-configuration-error.js +0 -19
  300. package/dist/node_modules/simple-git/src/lib/errors/task-configuration-error.js.map +0 -1
  301. package/dist/node_modules/simple-git/src/lib/git-factory.d.ts +0 -25
  302. package/dist/node_modules/simple-git/src/lib/git-factory.js +0 -45
  303. package/dist/node_modules/simple-git/src/lib/git-factory.js.map +0 -1
  304. package/dist/node_modules/simple-git/src/lib/git-logger.js +0 -101
  305. package/dist/node_modules/simple-git/src/lib/git-logger.js.map +0 -1
  306. package/dist/node_modules/simple-git/src/lib/parsers/parse-branch-delete.js +0 -29
  307. package/dist/node_modules/simple-git/src/lib/parsers/parse-branch-delete.js.map +0 -1
  308. package/dist/node_modules/simple-git/src/lib/parsers/parse-branch.js +0 -18
  309. package/dist/node_modules/simple-git/src/lib/parsers/parse-branch.js.map +0 -1
  310. package/dist/node_modules/simple-git/src/lib/parsers/parse-commit.js +0 -53
  311. package/dist/node_modules/simple-git/src/lib/parsers/parse-commit.js.map +0 -1
  312. package/dist/node_modules/simple-git/src/lib/parsers/parse-diff-summary.d.ts +0 -2
  313. package/dist/node_modules/simple-git/src/lib/parsers/parse-diff-summary.js +0 -74
  314. package/dist/node_modules/simple-git/src/lib/parsers/parse-diff-summary.js.map +0 -1
  315. package/dist/node_modules/simple-git/src/lib/parsers/parse-fetch.js +0 -32
  316. package/dist/node_modules/simple-git/src/lib/parsers/parse-fetch.js.map +0 -1
  317. package/dist/node_modules/simple-git/src/lib/parsers/parse-list-log-summary.js +0 -35
  318. package/dist/node_modules/simple-git/src/lib/parsers/parse-list-log-summary.js.map +0 -1
  319. package/dist/node_modules/simple-git/src/lib/parsers/parse-merge.js +0 -39
  320. package/dist/node_modules/simple-git/src/lib/parsers/parse-merge.js.map +0 -1
  321. package/dist/node_modules/simple-git/src/lib/parsers/parse-move.js +0 -14
  322. package/dist/node_modules/simple-git/src/lib/parsers/parse-move.js.map +0 -1
  323. package/dist/node_modules/simple-git/src/lib/parsers/parse-pull.js +0 -42
  324. package/dist/node_modules/simple-git/src/lib/parsers/parse-pull.js.map +0 -1
  325. package/dist/node_modules/simple-git/src/lib/parsers/parse-push.js +0 -58
  326. package/dist/node_modules/simple-git/src/lib/parsers/parse-push.js.map +0 -1
  327. package/dist/node_modules/simple-git/src/lib/parsers/parse-remote-messages.js +0 -33
  328. package/dist/node_modules/simple-git/src/lib/parsers/parse-remote-messages.js.map +0 -1
  329. package/dist/node_modules/simple-git/src/lib/parsers/parse-remote-objects.js +0 -41
  330. package/dist/node_modules/simple-git/src/lib/parsers/parse-remote-objects.js.map +0 -1
  331. package/dist/node_modules/simple-git/src/lib/plugins/command-config-prefixing-plugin.js +0 -15
  332. package/dist/node_modules/simple-git/src/lib/plugins/command-config-prefixing-plugin.js.map +0 -1
  333. package/dist/node_modules/simple-git/src/lib/plugins/completion-detection.plugin.js +0 -80
  334. package/dist/node_modules/simple-git/src/lib/plugins/completion-detection.plugin.js.map +0 -1
  335. package/dist/node_modules/simple-git/src/lib/plugins/error-detection.plugin.js +0 -39
  336. package/dist/node_modules/simple-git/src/lib/plugins/error-detection.plugin.js.map +0 -1
  337. package/dist/node_modules/simple-git/src/lib/plugins/index.js +0 -21
  338. package/dist/node_modules/simple-git/src/lib/plugins/index.js.map +0 -1
  339. package/dist/node_modules/simple-git/src/lib/plugins/plugin-store.d.ts +0 -6
  340. package/dist/node_modules/simple-git/src/lib/plugins/plugin-store.js +0 -28
  341. package/dist/node_modules/simple-git/src/lib/plugins/plugin-store.js.map +0 -1
  342. package/dist/node_modules/simple-git/src/lib/plugins/progress-monitor-plugin.js +0 -45
  343. package/dist/node_modules/simple-git/src/lib/plugins/progress-monitor-plugin.js.map +0 -1
  344. package/dist/node_modules/simple-git/src/lib/plugins/simple-git-plugin.js +0 -3
  345. package/dist/node_modules/simple-git/src/lib/plugins/simple-git-plugin.js.map +0 -1
  346. package/dist/node_modules/simple-git/src/lib/plugins/spawn-options-plugin.js +0 -15
  347. package/dist/node_modules/simple-git/src/lib/plugins/spawn-options-plugin.js.map +0 -1
  348. package/dist/node_modules/simple-git/src/lib/plugins/timout-plugin.d.ts +0 -3
  349. package/dist/node_modules/simple-git/src/lib/plugins/timout-plugin.js +0 -37
  350. package/dist/node_modules/simple-git/src/lib/plugins/timout-plugin.js.map +0 -1
  351. package/dist/node_modules/simple-git/src/lib/responses/BranchDeleteSummary.js +0 -31
  352. package/dist/node_modules/simple-git/src/lib/responses/BranchDeleteSummary.js.map +0 -1
  353. package/dist/node_modules/simple-git/src/lib/responses/BranchSummary.d.ts +0 -10
  354. package/dist/node_modules/simple-git/src/lib/responses/BranchSummary.js +0 -26
  355. package/dist/node_modules/simple-git/src/lib/responses/BranchSummary.js.map +0 -1
  356. package/dist/node_modules/simple-git/src/lib/responses/CheckIgnore.js +0 -13
  357. package/dist/node_modules/simple-git/src/lib/responses/CheckIgnore.js.map +0 -1
  358. package/dist/node_modules/simple-git/src/lib/responses/CleanSummary.js +0 -28
  359. package/dist/node_modules/simple-git/src/lib/responses/CleanSummary.js.map +0 -1
  360. package/dist/node_modules/simple-git/src/lib/responses/ConfigList.js +0 -89
  361. package/dist/node_modules/simple-git/src/lib/responses/ConfigList.js.map +0 -1
  362. package/dist/node_modules/simple-git/src/lib/responses/DiffSummary.js +0 -16
  363. package/dist/node_modules/simple-git/src/lib/responses/DiffSummary.js.map +0 -1
  364. package/dist/node_modules/simple-git/src/lib/responses/FileStatusSummary.js +0 -18
  365. package/dist/node_modules/simple-git/src/lib/responses/FileStatusSummary.js.map +0 -1
  366. package/dist/node_modules/simple-git/src/lib/responses/GetRemoteSummary.js +0 -30
  367. package/dist/node_modules/simple-git/src/lib/responses/GetRemoteSummary.js.map +0 -1
  368. package/dist/node_modules/simple-git/src/lib/responses/InitSummary.js +0 -36
  369. package/dist/node_modules/simple-git/src/lib/responses/InitSummary.js.map +0 -1
  370. package/dist/node_modules/simple-git/src/lib/responses/MergeSummary.js +0 -35
  371. package/dist/node_modules/simple-git/src/lib/responses/MergeSummary.js.map +0 -1
  372. package/dist/node_modules/simple-git/src/lib/responses/PullSummary.d.ts +0 -12
  373. package/dist/node_modules/simple-git/src/lib/responses/PullSummary.js +0 -22
  374. package/dist/node_modules/simple-git/src/lib/responses/PullSummary.js.map +0 -1
  375. package/dist/node_modules/simple-git/src/lib/responses/StatusSummary.js +0 -128
  376. package/dist/node_modules/simple-git/src/lib/responses/StatusSummary.js.map +0 -1
  377. package/dist/node_modules/simple-git/src/lib/responses/TagList.js +0 -56
  378. package/dist/node_modules/simple-git/src/lib/responses/TagList.js.map +0 -1
  379. package/dist/node_modules/simple-git/src/lib/runners/git-executor-chain.js +0 -173
  380. package/dist/node_modules/simple-git/src/lib/runners/git-executor-chain.js.map +0 -1
  381. package/dist/node_modules/simple-git/src/lib/runners/git-executor.js +0 -21
  382. package/dist/node_modules/simple-git/src/lib/runners/git-executor.js.map +0 -1
  383. package/dist/node_modules/simple-git/src/lib/runners/promise-wrapped.js +0 -133
  384. package/dist/node_modules/simple-git/src/lib/runners/promise-wrapped.js.map +0 -1
  385. package/dist/node_modules/simple-git/src/lib/runners/scheduler.js +0 -48
  386. package/dist/node_modules/simple-git/src/lib/runners/scheduler.js.map +0 -1
  387. package/dist/node_modules/simple-git/src/lib/runners/tasks-pending-queue.js +0 -64
  388. package/dist/node_modules/simple-git/src/lib/runners/tasks-pending-queue.js.map +0 -1
  389. package/dist/node_modules/simple-git/src/lib/simple-git-api.js +0 -80
  390. package/dist/node_modules/simple-git/src/lib/simple-git-api.js.map +0 -1
  391. package/dist/node_modules/simple-git/src/lib/task-callback.js +0 -39
  392. package/dist/node_modules/simple-git/src/lib/task-callback.js.map +0 -1
  393. package/dist/node_modules/simple-git/src/lib/tasks/apply-patch.js +0 -9
  394. package/dist/node_modules/simple-git/src/lib/tasks/apply-patch.js.map +0 -1
  395. package/dist/node_modules/simple-git/src/lib/tasks/branch.js +0 -76
  396. package/dist/node_modules/simple-git/src/lib/tasks/branch.js.map +0 -1
  397. package/dist/node_modules/simple-git/src/lib/tasks/change-working-directory.js +0 -15
  398. package/dist/node_modules/simple-git/src/lib/tasks/change-working-directory.js.map +0 -1
  399. package/dist/node_modules/simple-git/src/lib/tasks/check-ignore.js +0 -13
  400. package/dist/node_modules/simple-git/src/lib/tasks/check-ignore.js.map +0 -1
  401. package/dist/node_modules/simple-git/src/lib/tasks/check-is-repo.js +0 -61
  402. package/dist/node_modules/simple-git/src/lib/tasks/check-is-repo.js.map +0 -1
  403. package/dist/node_modules/simple-git/src/lib/tasks/clean.js +0 -85
  404. package/dist/node_modules/simple-git/src/lib/tasks/clean.js.map +0 -1
  405. package/dist/node_modules/simple-git/src/lib/tasks/clone.js +0 -22
  406. package/dist/node_modules/simple-git/src/lib/tasks/clone.js.map +0 -1
  407. package/dist/node_modules/simple-git/src/lib/tasks/commit.d.ts +0 -3
  408. package/dist/node_modules/simple-git/src/lib/tasks/commit.js +0 -16
  409. package/dist/node_modules/simple-git/src/lib/tasks/commit.js.map +0 -1
  410. package/dist/node_modules/simple-git/src/lib/tasks/config.js +0 -73
  411. package/dist/node_modules/simple-git/src/lib/tasks/config.js.map +0 -1
  412. package/dist/node_modules/simple-git/src/lib/tasks/diff.d.ts +0 -3
  413. package/dist/node_modules/simple-git/src/lib/tasks/diff.js +0 -15
  414. package/dist/node_modules/simple-git/src/lib/tasks/diff.js.map +0 -1
  415. package/dist/node_modules/simple-git/src/lib/tasks/fetch.js +0 -17
  416. package/dist/node_modules/simple-git/src/lib/tasks/fetch.js.map +0 -1
  417. package/dist/node_modules/simple-git/src/lib/tasks/grep.js +0 -76
  418. package/dist/node_modules/simple-git/src/lib/tasks/grep.js.map +0 -1
  419. package/dist/node_modules/simple-git/src/lib/tasks/hash-object.js +0 -16
  420. package/dist/node_modules/simple-git/src/lib/tasks/hash-object.js.map +0 -1
  421. package/dist/node_modules/simple-git/src/lib/tasks/init.js +0 -23
  422. package/dist/node_modules/simple-git/src/lib/tasks/init.js.map +0 -1
  423. package/dist/node_modules/simple-git/src/lib/tasks/log.js +0 -109
  424. package/dist/node_modules/simple-git/src/lib/tasks/log.js.map +0 -1
  425. package/dist/node_modules/simple-git/src/lib/tasks/merge.js +0 -24
  426. package/dist/node_modules/simple-git/src/lib/tasks/merge.js.map +0 -1
  427. package/dist/node_modules/simple-git/src/lib/tasks/move.js +0 -14
  428. package/dist/node_modules/simple-git/src/lib/tasks/move.js.map +0 -1
  429. package/dist/node_modules/simple-git/src/lib/tasks/pull.js +0 -19
  430. package/dist/node_modules/simple-git/src/lib/tasks/pull.js.map +0 -1
  431. package/dist/node_modules/simple-git/src/lib/tasks/push.js +0 -29
  432. package/dist/node_modules/simple-git/src/lib/tasks/push.js.map +0 -1
  433. package/dist/node_modules/simple-git/src/lib/tasks/remote.js +0 -42
  434. package/dist/node_modules/simple-git/src/lib/tasks/remote.js.map +0 -1
  435. package/dist/node_modules/simple-git/src/lib/tasks/reset.js +0 -38
  436. package/dist/node_modules/simple-git/src/lib/tasks/reset.js.map +0 -1
  437. package/dist/node_modules/simple-git/src/lib/tasks/stash-list.d.ts +0 -3
  438. package/dist/node_modules/simple-git/src/lib/tasks/stash-list.js +0 -16
  439. package/dist/node_modules/simple-git/src/lib/tasks/stash-list.js.map +0 -1
  440. package/dist/node_modules/simple-git/src/lib/tasks/status.js +0 -15
  441. package/dist/node_modules/simple-git/src/lib/tasks/status.js.map +0 -1
  442. package/dist/node_modules/simple-git/src/lib/tasks/sub-module.js +0 -25
  443. package/dist/node_modules/simple-git/src/lib/tasks/sub-module.js.map +0 -1
  444. package/dist/node_modules/simple-git/src/lib/tasks/tag.js +0 -45
  445. package/dist/node_modules/simple-git/src/lib/tasks/tag.js.map +0 -1
  446. package/dist/node_modules/simple-git/src/lib/tasks/task.js +0 -52
  447. package/dist/node_modules/simple-git/src/lib/tasks/task.js.map +0 -1
  448. package/dist/node_modules/simple-git/src/lib/types/handlers.js +0 -3
  449. package/dist/node_modules/simple-git/src/lib/types/handlers.js.map +0 -1
  450. package/dist/node_modules/simple-git/src/lib/types/index.js +0 -15
  451. package/dist/node_modules/simple-git/src/lib/types/index.js.map +0 -1
  452. package/dist/node_modules/simple-git/src/lib/types/tasks.js +0 -3
  453. package/dist/node_modules/simple-git/src/lib/types/tasks.js.map +0 -1
  454. package/dist/node_modules/simple-git/src/lib/utils/argument-filters.js +0 -47
  455. package/dist/node_modules/simple-git/src/lib/utils/argument-filters.js.map +0 -1
  456. package/dist/node_modules/simple-git/src/lib/utils/exit-codes.js +0 -14
  457. package/dist/node_modules/simple-git/src/lib/utils/exit-codes.js.map +0 -1
  458. package/dist/node_modules/simple-git/src/lib/utils/git-output-streams.js +0 -14
  459. package/dist/node_modules/simple-git/src/lib/utils/git-output-streams.js.map +0 -1
  460. package/dist/node_modules/simple-git/src/lib/utils/index.js +0 -21
  461. package/dist/node_modules/simple-git/src/lib/utils/index.js.map +0 -1
  462. package/dist/node_modules/simple-git/src/lib/utils/line-parser.js +0 -52
  463. package/dist/node_modules/simple-git/src/lib/utils/line-parser.js.map +0 -1
  464. package/dist/node_modules/simple-git/src/lib/utils/simple-git-options.js +0 -16
  465. package/dist/node_modules/simple-git/src/lib/utils/simple-git-options.js.map +0 -1
  466. package/dist/node_modules/simple-git/src/lib/utils/task-options.js +0 -58
  467. package/dist/node_modules/simple-git/src/lib/utils/task-options.js.map +0 -1
  468. package/dist/node_modules/simple-git/src/lib/utils/task-parser.js +0 -24
  469. package/dist/node_modules/simple-git/src/lib/utils/task-parser.js.map +0 -1
  470. package/dist/node_modules/simple-git/src/lib/utils/util.js +0 -146
  471. package/dist/node_modules/simple-git/src/lib/utils/util.js.map +0 -1
  472. package/dist/node_modules/simple-git/typings/types.d.ts +0 -14
  473. /package/dist/node_modules/simple-git/{src → dist/src}/lib/errors/git-construct-error.d.ts +0 -0
  474. /package/dist/node_modules/simple-git/{src → dist/src}/lib/errors/git-response-error.d.ts +0 -0
  475. /package/dist/node_modules/simple-git/{src → dist/src}/lib/errors/task-configuration-error.d.ts +0 -0
  476. /package/dist/node_modules/simple-git/{src → dist/src}/lib/git-logger.d.ts +0 -0
  477. /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-branch-delete.d.ts +0 -0
  478. /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-commit.d.ts +0 -0
  479. /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-fetch.d.ts +0 -0
  480. /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-merge.d.ts +0 -0
  481. /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-move.d.ts +0 -0
  482. /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-push.d.ts +0 -0
  483. /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-remote-messages.d.ts +0 -0
  484. /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-remote-objects.d.ts +0 -0
  485. /package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/command-config-prefixing-plugin.d.ts +0 -0
  486. /package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/error-detection.plugin.d.ts +0 -0
  487. /package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/spawn-options-plugin.d.ts +0 -0
  488. /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/BranchDeleteSummary.d.ts +0 -0
  489. /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/CheckIgnore.d.ts +0 -0
  490. /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/CleanSummary.d.ts +0 -0
  491. /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/ConfigList.d.ts +0 -0
  492. /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/DiffSummary.d.ts +0 -0
  493. /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/GetRemoteSummary.d.ts +0 -0
  494. /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/InitSummary.d.ts +0 -0
  495. /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/MergeSummary.d.ts +0 -0
  496. /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/TagList.d.ts +0 -0
  497. /package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/promise-wrapped.d.ts +0 -0
  498. /package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/scheduler.d.ts +0 -0
  499. /package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/tasks-pending-queue.d.ts +0 -0
  500. /package/dist/node_modules/simple-git/{src → dist/src}/lib/simple-git-api.d.ts +0 -0
  501. /package/dist/node_modules/simple-git/{src → dist/src}/lib/task-callback.d.ts +0 -0
  502. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/apply-patch.d.ts +0 -0
  503. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/branch.d.ts +0 -0
  504. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/change-working-directory.d.ts +0 -0
  505. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/check-ignore.d.ts +0 -0
  506. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/check-is-repo.d.ts +0 -0
  507. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/clean.d.ts +0 -0
  508. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/grep.d.ts +0 -0
  509. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/hash-object.d.ts +0 -0
  510. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/init.d.ts +0 -0
  511. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/merge.d.ts +0 -0
  512. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/move.d.ts +0 -0
  513. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/pull.d.ts +0 -0
  514. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/push.d.ts +0 -0
  515. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/reset.d.ts +0 -0
  516. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/status.d.ts +0 -0
  517. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/sub-module.d.ts +0 -0
  518. /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/tag.d.ts +0 -0
  519. /package/dist/node_modules/simple-git/{src → dist/src}/lib/types/handlers.d.ts +0 -0
  520. /package/dist/node_modules/simple-git/{src → dist/src}/lib/types/tasks.d.ts +0 -0
  521. /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/argument-filters.d.ts +0 -0
  522. /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/git-output-streams.d.ts +0 -0
  523. /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/index.d.ts +0 -0
  524. /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/simple-git-options.d.ts +0 -0
  525. /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/task-options.d.ts +0 -0
@@ -1,29 +1,53 @@
1
1
  declare module "process" {
2
- import * as tty from "tty";
3
-
2
+ import * as net from "node:net";
3
+ import * as os from "node:os";
4
+ import * as tty from "node:tty";
5
+ import { Worker } from "node:worker_threads";
4
6
  global {
5
7
  var process: NodeJS.Process;
6
-
7
8
  namespace NodeJS {
8
9
  // this namespace merge is here because these are specifically used
9
10
  // as the type for process.stdin, process.stdout, and process.stderr.
10
11
  // they can't live in tty.d.ts because we need to disambiguate the imported name.
11
12
  interface ReadStream extends tty.ReadStream {}
12
13
  interface WriteStream extends tty.WriteStream {}
13
-
14
+ interface MemoryUsageFn {
15
+ /**
16
+ * The `process.memoryUsage()` method iterate over each page to gather informations about memory
17
+ * usage which can be slow depending on the program memory allocations.
18
+ */
19
+ (): MemoryUsage;
20
+ /**
21
+ * method returns an integer representing the Resident Set Size (RSS) in bytes.
22
+ */
23
+ rss(): number;
24
+ }
14
25
  interface MemoryUsage {
26
+ /**
27
+ * Resident Set Size, is the amount of space occupied in the main memory device (that is a subset of the total allocated memory) for the
28
+ * process, including all C++ and JavaScript objects and code.
29
+ */
15
30
  rss: number;
31
+ /**
32
+ * Refers to V8's memory usage.
33
+ */
16
34
  heapTotal: number;
35
+ /**
36
+ * Refers to V8's memory usage.
37
+ */
17
38
  heapUsed: number;
18
39
  external: number;
40
+ /**
41
+ * Refers to memory allocated for `ArrayBuffer`s and `SharedArrayBuffer`s, including all Node.js Buffers. This is also included
42
+ * in the external value. When Node.js is used as an embedded library, this value may be `0` because allocations for `ArrayBuffer`s
43
+ * may not be tracked in that case.
44
+ */
19
45
  arrayBuffers: number;
20
46
  }
21
-
22
47
  interface CpuUsage {
23
48
  user: number;
24
49
  system: number;
25
50
  }
26
-
27
51
  interface ProcessRelease {
28
52
  name: string;
29
53
  sourceUrl?: string | undefined;
@@ -31,7 +55,6 @@ declare module "process" {
31
55
  libUrl?: string | undefined;
32
56
  lts?: string | undefined;
33
57
  }
34
-
35
58
  interface ProcessVersions extends Dict<string> {
36
59
  http_parser: string;
37
60
  node: string;
@@ -42,19 +65,31 @@ declare module "process" {
42
65
  modules: string;
43
66
  openssl: string;
44
67
  }
45
-
46
68
  type Platform =
47
69
  | "aix"
48
70
  | "android"
49
71
  | "darwin"
50
72
  | "freebsd"
73
+ | "haiku"
51
74
  | "linux"
52
75
  | "openbsd"
53
76
  | "sunos"
54
77
  | "win32"
55
78
  | "cygwin"
56
79
  | "netbsd";
57
-
80
+ type Architecture =
81
+ | "arm"
82
+ | "arm64"
83
+ | "ia32"
84
+ | "loong64"
85
+ | "mips"
86
+ | "mipsel"
87
+ | "ppc"
88
+ | "ppc64"
89
+ | "riscv64"
90
+ | "s390"
91
+ | "s390x"
92
+ | "x64";
58
93
  type Signals =
59
94
  | "SIGABRT"
60
95
  | "SIGALRM"
@@ -93,35 +128,86 @@ declare module "process" {
93
128
  | "SIGBREAK"
94
129
  | "SIGLOST"
95
130
  | "SIGINFO";
96
-
97
131
  type UncaughtExceptionOrigin = "uncaughtException" | "unhandledRejection";
98
132
  type MultipleResolveType = "resolve" | "reject";
99
-
100
133
  type BeforeExitListener = (code: number) => void;
101
134
  type DisconnectListener = () => void;
102
135
  type ExitListener = (code: number) => void;
103
- type RejectionHandledListener = (promise: Promise<any>) => void;
136
+ type RejectionHandledListener = (promise: Promise<unknown>) => void;
104
137
  type UncaughtExceptionListener = (error: Error, origin: UncaughtExceptionOrigin) => void;
105
- type UnhandledRejectionListener = (reason: {} | null | undefined, promise: Promise<any>) => void;
138
+ /**
139
+ * Most of the time the unhandledRejection will be an Error, but this should not be relied upon
140
+ * as *anything* can be thrown/rejected, it is therefore unsafe to assume that the value is an Error.
141
+ */
142
+ type UnhandledRejectionListener = (reason: unknown, promise: Promise<unknown>) => void;
106
143
  type WarningListener = (warning: Error) => void;
107
- type MessageListener = (message: any, sendHandle: any) => void;
144
+ type MessageListener = (message: unknown, sendHandle: unknown) => void;
108
145
  type SignalsListener = (signal: Signals) => void;
109
- type NewListenerListener = (type: string | symbol, listener: (...args: any[]) => void) => void;
110
- type RemoveListenerListener = (type: string | symbol, listener: (...args: any[]) => void) => void;
111
- type MultipleResolveListener = (type: MultipleResolveType, promise: Promise<any>, value: any) => void;
112
-
146
+ type MultipleResolveListener = (
147
+ type: MultipleResolveType,
148
+ promise: Promise<unknown>,
149
+ value: unknown,
150
+ ) => void;
151
+ type WorkerListener = (worker: Worker) => void;
113
152
  interface Socket extends ReadWriteStream {
114
153
  isTTY?: true | undefined;
115
154
  }
116
-
117
155
  // Alias for compatibility
118
- interface ProcessEnv extends Dict<string> {}
119
-
156
+ interface ProcessEnv extends Dict<string> {
157
+ /**
158
+ * Can be used to change the default timezone at runtime
159
+ */
160
+ TZ?: string;
161
+ }
120
162
  interface HRTime {
121
163
  (time?: [number, number]): [number, number];
164
+ /**
165
+ * The `bigint` version of the `{@link hrtime()}` method returning the current high-resolution real time in nanoseconds as a `bigint`.
166
+ *
167
+ * Unlike `{@link hrtime()}`, it does not support an additional time argument since the difference can just be computed directly by subtraction of the two `bigint`s.
168
+ * ```js
169
+ * import { hrtime } from 'node:process';
170
+ *
171
+ * const start = hrtime.bigint();
172
+ * // 191051479007711n
173
+ *
174
+ * setTimeout(() => {
175
+ * const end = hrtime.bigint();
176
+ * // 191052633396993n
177
+ *
178
+ * console.log(`Benchmark took ${end - start} nanoseconds`);
179
+ * // Benchmark took 1154389282 nanoseconds
180
+ * }, 1000);
181
+ * ```
182
+ */
122
183
  bigint(): bigint;
123
184
  }
124
-
185
+ interface ProcessPermission {
186
+ /**
187
+ * Verifies that the process is able to access the given scope and reference.
188
+ * If no reference is provided, a global scope is assumed, for instance, `process.permission.has('fs.read')`
189
+ * will check if the process has ALL file system read permissions.
190
+ *
191
+ * The reference has a meaning based on the provided scope. For example, the reference when the scope is File System means files and folders.
192
+ *
193
+ * The available scopes are:
194
+ *
195
+ * * `fs` - All File System
196
+ * * `fs.read` - File System read operations
197
+ * * `fs.write` - File System write operations
198
+ * * `child` - Child process spawning operations
199
+ * * `worker` - Worker thread spawning operation
200
+ *
201
+ * ```js
202
+ * // Check if the process has permission to read the README file
203
+ * process.permission.has('fs.read', './README.md');
204
+ * // Check if the process has read permission operations
205
+ * process.permission.has('fs.read');
206
+ * ```
207
+ * @since v20.0.0
208
+ */
209
+ has(scope: string, reference?: string): boolean;
210
+ }
125
211
  interface ProcessReport {
126
212
  /**
127
213
  * Directory where the report is written.
@@ -129,7 +215,6 @@ declare module "process" {
129
215
  * @default '' indicating that reports are written to the current
130
216
  */
131
217
  directory: string;
132
-
133
218
  /**
134
219
  * Filename where the report is written.
135
220
  * The default value is the empty string.
@@ -137,39 +222,33 @@ declare module "process" {
137
222
  * PID, and sequence number.
138
223
  */
139
224
  filename: string;
140
-
141
225
  /**
142
226
  * Returns a JSON-formatted diagnostic report for the running process.
143
227
  * The report's JavaScript stack trace is taken from err, if present.
144
228
  */
145
229
  getReport(err?: Error): string;
146
-
147
230
  /**
148
231
  * If true, a diagnostic report is generated on fatal errors,
149
232
  * such as out of memory errors or failed C++ assertions.
150
233
  * @default false
151
234
  */
152
235
  reportOnFatalError: boolean;
153
-
154
236
  /**
155
237
  * If true, a diagnostic report is generated when the process
156
238
  * receives the signal specified by process.report.signal.
157
239
  * @default false
158
240
  */
159
241
  reportOnSignal: boolean;
160
-
161
242
  /**
162
243
  * If true, a diagnostic report is generated on uncaught exception.
163
244
  * @default false
164
245
  */
165
246
  reportOnUncaughtException: boolean;
166
-
167
247
  /**
168
248
  * The signal used to trigger the creation of a diagnostic report.
169
249
  * @default 'SIGUSR2'
170
250
  */
171
251
  signal: Signals;
172
-
173
252
  /**
174
253
  * Writes a diagnostic report to a file. If filename is not provided, the default filename
175
254
  * includes the date, time, PID, and a sequence number.
@@ -186,7 +265,6 @@ declare module "process" {
186
265
  writeReport(error?: Error): string;
187
266
  writeReport(fileName?: string, err?: Error): string;
188
267
  }
189
-
190
268
  interface ResourceUsage {
191
269
  fsRead: number;
192
270
  fsWrite: number;
@@ -205,88 +283,1177 @@ declare module "process" {
205
283
  userCPUTime: number;
206
284
  voluntaryContextSwitches: number;
207
285
  }
208
-
286
+ interface EmitWarningOptions {
287
+ /**
288
+ * When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted.
289
+ *
290
+ * @default 'Warning'
291
+ */
292
+ type?: string | undefined;
293
+ /**
294
+ * A unique identifier for the warning instance being emitted.
295
+ */
296
+ code?: string | undefined;
297
+ /**
298
+ * When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace.
299
+ *
300
+ * @default process.emitWarning
301
+ */
302
+ ctor?: Function | undefined;
303
+ /**
304
+ * Additional text to include with the error.
305
+ */
306
+ detail?: string | undefined;
307
+ }
308
+ interface ProcessConfig {
309
+ readonly target_defaults: {
310
+ readonly cflags: any[];
311
+ readonly default_configuration: string;
312
+ readonly defines: string[];
313
+ readonly include_dirs: string[];
314
+ readonly libraries: string[];
315
+ };
316
+ readonly variables: {
317
+ readonly clang: number;
318
+ readonly host_arch: string;
319
+ readonly node_install_npm: boolean;
320
+ readonly node_install_waf: boolean;
321
+ readonly node_prefix: string;
322
+ readonly node_shared_openssl: boolean;
323
+ readonly node_shared_v8: boolean;
324
+ readonly node_shared_zlib: boolean;
325
+ readonly node_use_dtrace: boolean;
326
+ readonly node_use_etw: boolean;
327
+ readonly node_use_openssl: boolean;
328
+ readonly target_arch: string;
329
+ readonly v8_no_strict_aliasing: number;
330
+ readonly v8_use_snapshot: boolean;
331
+ readonly visibility: string;
332
+ };
333
+ }
209
334
  interface Process extends EventEmitter {
210
335
  /**
211
- * Can also be a tty.WriteStream, not typed due to limitations.
336
+ * The `process.stdout` property returns a stream connected to`stdout` (fd `1`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `1` refers to a file, in which case it is
337
+ * a `Writable` stream.
338
+ *
339
+ * For example, to copy `process.stdin` to `process.stdout`:
340
+ *
341
+ * ```js
342
+ * import { stdin, stdout } from 'node:process';
343
+ *
344
+ * stdin.pipe(stdout);
345
+ * ```
346
+ *
347
+ * `process.stdout` differs from other Node.js streams in important ways. See `note on process I/O` for more information.
212
348
  */
213
349
  stdout: WriteStream & {
214
350
  fd: 1;
215
351
  };
216
352
  /**
217
- * Can also be a tty.WriteStream, not typed due to limitations.
353
+ * The `process.stderr` property returns a stream connected to`stderr` (fd `2`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `2` refers to a file, in which case it is
354
+ * a `Writable` stream.
355
+ *
356
+ * `process.stderr` differs from other Node.js streams in important ways. See `note on process I/O` for more information.
218
357
  */
219
358
  stderr: WriteStream & {
220
359
  fd: 2;
221
360
  };
361
+ /**
362
+ * The `process.stdin` property returns a stream connected to`stdin` (fd `0`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `0` refers to a file, in which case it is
363
+ * a `Readable` stream.
364
+ *
365
+ * For details of how to read from `stdin` see `readable.read()`.
366
+ *
367
+ * As a `Duplex` stream, `process.stdin` can also be used in "old" mode that
368
+ * is compatible with scripts written for Node.js prior to v0.10\.
369
+ * For more information see `Stream compatibility`.
370
+ *
371
+ * In "old" streams mode the `stdin` stream is paused by default, so one
372
+ * must call `process.stdin.resume()` to read from it. Note also that calling `process.stdin.resume()` itself would switch stream to "old" mode.
373
+ */
222
374
  stdin: ReadStream & {
223
375
  fd: 0;
224
376
  };
225
- openStdin(): Socket;
377
+ /**
378
+ * The `process.argv` property returns an array containing the command-line
379
+ * arguments passed when the Node.js process was launched. The first element will
380
+ * be {@link execPath}. See `process.argv0` if access to the original value
381
+ * of `argv[0]` is needed. The second element will be the path to the JavaScript
382
+ * file being executed. The remaining elements will be any additional command-line
383
+ * arguments.
384
+ *
385
+ * For example, assuming the following script for `process-args.js`:
386
+ *
387
+ * ```js
388
+ * import { argv } from 'node:process';
389
+ *
390
+ * // print process.argv
391
+ * argv.forEach((val, index) => {
392
+ * console.log(`${index}: ${val}`);
393
+ * });
394
+ * ```
395
+ *
396
+ * Launching the Node.js process as:
397
+ *
398
+ * ```bash
399
+ * node process-args.js one two=three four
400
+ * ```
401
+ *
402
+ * Would generate the output:
403
+ *
404
+ * ```text
405
+ * 0: /usr/local/bin/node
406
+ * 1: /Users/mjr/work/node/process-args.js
407
+ * 2: one
408
+ * 3: two=three
409
+ * 4: four
410
+ * ```
411
+ * @since v0.1.27
412
+ */
226
413
  argv: string[];
414
+ /**
415
+ * The `process.argv0` property stores a read-only copy of the original value of`argv[0]` passed when Node.js starts.
416
+ *
417
+ * ```console
418
+ * $ bash -c 'exec -a customArgv0 ./node'
419
+ * > process.argv[0]
420
+ * '/Volumes/code/external/node/out/Release/node'
421
+ * > process.argv0
422
+ * 'customArgv0'
423
+ * ```
424
+ * @since v6.4.0
425
+ */
227
426
  argv0: string;
427
+ /**
428
+ * The `process.execArgv` property returns the set of Node.js-specific command-line
429
+ * options passed when the Node.js process was launched. These options do not
430
+ * appear in the array returned by the {@link argv} property, and do not
431
+ * include the Node.js executable, the name of the script, or any options following
432
+ * the script name. These options are useful in order to spawn child processes with
433
+ * the same execution environment as the parent.
434
+ *
435
+ * ```bash
436
+ * node --icu-data-dir=./foo --require ./bar.js script.js --version
437
+ * ```
438
+ *
439
+ * Results in `process.execArgv`:
440
+ *
441
+ * ```js
442
+ * ["--icu-data-dir=./foo", "--require", "./bar.js"]
443
+ * ```
444
+ *
445
+ * And `process.argv`:
446
+ *
447
+ * ```js
448
+ * ['/usr/local/bin/node', 'script.js', '--version']
449
+ * ```
450
+ *
451
+ * Refer to `Worker constructor` for the detailed behavior of worker
452
+ * threads with this property.
453
+ * @since v0.7.7
454
+ */
228
455
  execArgv: string[];
456
+ /**
457
+ * The `process.execPath` property returns the absolute pathname of the executable
458
+ * that started the Node.js process. Symbolic links, if any, are resolved.
459
+ *
460
+ * ```js
461
+ * '/usr/local/bin/node'
462
+ * ```
463
+ * @since v0.1.100
464
+ */
229
465
  execPath: string;
466
+ /**
467
+ * The `process.abort()` method causes the Node.js process to exit immediately and
468
+ * generate a core file.
469
+ *
470
+ * This feature is not available in `Worker` threads.
471
+ * @since v0.7.0
472
+ */
230
473
  abort(): never;
474
+ /**
475
+ * The `process.chdir()` method changes the current working directory of the
476
+ * Node.js process or throws an exception if doing so fails (for instance, if
477
+ * the specified `directory` does not exist).
478
+ *
479
+ * ```js
480
+ * import { chdir, cwd } from 'node:process';
481
+ *
482
+ * console.log(`Starting directory: ${cwd()}`);
483
+ * try {
484
+ * chdir('/tmp');
485
+ * console.log(`New directory: ${cwd()}`);
486
+ * } catch (err) {
487
+ * console.error(`chdir: ${err}`);
488
+ * }
489
+ * ```
490
+ *
491
+ * This feature is not available in `Worker` threads.
492
+ * @since v0.1.17
493
+ */
231
494
  chdir(directory: string): void;
495
+ /**
496
+ * The `process.cwd()` method returns the current working directory of the Node.js
497
+ * process.
498
+ *
499
+ * ```js
500
+ * import { cwd } from 'node:process';
501
+ *
502
+ * console.log(`Current directory: ${cwd()}`);
503
+ * ```
504
+ * @since v0.1.8
505
+ */
232
506
  cwd(): string;
507
+ /**
508
+ * The port used by the Node.js debugger when enabled.
509
+ *
510
+ * ```js
511
+ * import process from 'node:process';
512
+ *
513
+ * process.debugPort = 5858;
514
+ * ```
515
+ * @since v0.7.2
516
+ */
233
517
  debugPort: number;
234
- emitWarning(warning: string | Error, name?: string, ctor?: Function): void;
518
+ /**
519
+ * The `process.dlopen()` method allows dynamically loading shared objects. It is primarily used by `require()` to load C++ Addons, and
520
+ * should not be used directly, except in special cases. In other words, `require()` should be preferred over `process.dlopen()`
521
+ * unless there are specific reasons such as custom dlopen flags or loading from ES modules.
522
+ *
523
+ * The `flags` argument is an integer that allows to specify dlopen behavior. See the `[os.constants.dlopen](https://nodejs.org/docs/latest-v20.x/api/os.html#dlopen-constants)`
524
+ * documentation for details.
525
+ *
526
+ * An important requirement when calling `process.dlopen()` is that the `module` instance must be passed. Functions exported by the C++ Addon
527
+ * are then accessible via `module.exports`.
528
+ *
529
+ * The example below shows how to load a C++ Addon, named `local.node`, that exports a `foo` function. All the symbols are loaded before the call returns, by passing the `RTLD_NOW` constant.
530
+ * In this example the constant is assumed to be available.
531
+ *
532
+ * ```js
533
+ * import { dlopen } from 'node:process';
534
+ * import { constants } from 'node:os';
535
+ * import { fileURLToPath } from 'node:url';
536
+ *
537
+ * const module = { exports: {} };
538
+ * dlopen(module, fileURLToPath(new URL('local.node', import.meta.url)),
539
+ * constants.dlopen.RTLD_NOW);
540
+ * module.exports.foo();
541
+ * ```
542
+ */
543
+ dlopen(module: object, filename: string, flags?: number): void;
544
+ /**
545
+ * The `process.emitWarning()` method can be used to emit custom or application
546
+ * specific process warnings. These can be listened for by adding a handler to the `'warning'` event.
547
+ *
548
+ * ```js
549
+ * import { emitWarning } from 'node:process';
550
+ *
551
+ * // Emit a warning using a string.
552
+ * emitWarning('Something happened!');
553
+ * // Emits: (node: 56338) Warning: Something happened!
554
+ * ```
555
+ *
556
+ * ```js
557
+ * import { emitWarning } from 'node:process';
558
+ *
559
+ * // Emit a warning using a string and a type.
560
+ * emitWarning('Something Happened!', 'CustomWarning');
561
+ * // Emits: (node:56338) CustomWarning: Something Happened!
562
+ * ```
563
+ *
564
+ * ```js
565
+ * import { emitWarning } from 'node:process';
566
+ *
567
+ * emitWarning('Something happened!', 'CustomWarning', 'WARN001');
568
+ * // Emits: (node:56338) [WARN001] CustomWarning: Something happened!
569
+ * ```js
570
+ *
571
+ * In each of the previous examples, an `Error` object is generated internally by `process.emitWarning()` and passed through to the `'warning'` handler.
572
+ *
573
+ * ```js
574
+ * import process from 'node:process';
575
+ *
576
+ * process.on('warning', (warning) => {
577
+ * console.warn(warning.name); // 'Warning'
578
+ * console.warn(warning.message); // 'Something happened!'
579
+ * console.warn(warning.code); // 'MY_WARNING'
580
+ * console.warn(warning.stack); // Stack trace
581
+ * console.warn(warning.detail); // 'This is some additional information'
582
+ * });
583
+ * ```
584
+ *
585
+ * If `warning` is passed as an `Error` object, it will be passed through to the `'warning'` event handler
586
+ * unmodified (and the optional `type`, `code` and `ctor` arguments will be ignored):
587
+ *
588
+ * ```js
589
+ * import { emitWarning } from 'node:process';
590
+ *
591
+ * // Emit a warning using an Error object.
592
+ * const myWarning = new Error('Something happened!');
593
+ * // Use the Error name property to specify the type name
594
+ * myWarning.name = 'CustomWarning';
595
+ * myWarning.code = 'WARN001';
596
+ *
597
+ * emitWarning(myWarning);
598
+ * // Emits: (node:56338) [WARN001] CustomWarning: Something happened!
599
+ * ```
600
+ *
601
+ * A `TypeError` is thrown if `warning` is anything other than a string or `Error` object.
602
+ *
603
+ * While process warnings use `Error` objects, the process warning mechanism is not a replacement for normal error handling mechanisms.
604
+ *
605
+ * The following additional handling is implemented if the warning `type` is `'DeprecationWarning'`:
606
+ * * If the `--throw-deprecation` command-line flag is used, the deprecation warning is thrown as an exception rather than being emitted as an event.
607
+ * * If the `--no-deprecation` command-line flag is used, the deprecation warning is suppressed.
608
+ * * If the `--trace-deprecation` command-line flag is used, the deprecation warning is printed to `stderr` along with the full stack trace.
609
+ * @since v8.0.0
610
+ * @param warning The warning to emit.
611
+ */
612
+ emitWarning(warning: string | Error, ctor?: Function): void;
613
+ emitWarning(warning: string | Error, type?: string, ctor?: Function): void;
614
+ emitWarning(warning: string | Error, type?: string, code?: string, ctor?: Function): void;
615
+ emitWarning(warning: string | Error, options?: EmitWarningOptions): void;
616
+ /**
617
+ * The `process.env` property returns an object containing the user environment.
618
+ * See [`environ(7)`](http://man7.org/linux/man-pages/man7/environ.7.html).
619
+ *
620
+ * An example of this object looks like:
621
+ *
622
+ * ```js
623
+ * {
624
+ * TERM: 'xterm-256color',
625
+ * SHELL: '/usr/local/bin/bash',
626
+ * USER: 'maciej',
627
+ * PATH: '~/.bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin',
628
+ * PWD: '/Users/maciej',
629
+ * EDITOR: 'vim',
630
+ * SHLVL: '1',
631
+ * HOME: '/Users/maciej',
632
+ * LOGNAME: 'maciej',
633
+ * _: '/usr/local/bin/node'
634
+ * }
635
+ * ```
636
+ *
637
+ * It is possible to modify this object, but such modifications will not be
638
+ * reflected outside the Node.js process, or (unless explicitly requested)
639
+ * to other `Worker` threads.
640
+ * In other words, the following example would not work:
641
+ *
642
+ * ```bash
643
+ * node -e 'process.env.foo = "bar"' &#x26;&#x26; echo $foo
644
+ * ```
645
+ *
646
+ * While the following will:
647
+ *
648
+ * ```js
649
+ * import { env } from 'node:process';
650
+ *
651
+ * env.foo = 'bar';
652
+ * console.log(env.foo);
653
+ * ```
654
+ *
655
+ * Assigning a property on `process.env` will implicitly convert the value
656
+ * to a string. **This behavior is deprecated.** Future versions of Node.js may
657
+ * throw an error when the value is not a string, number, or boolean.
658
+ *
659
+ * ```js
660
+ * import { env } from 'node:process';
661
+ *
662
+ * env.test = null;
663
+ * console.log(env.test);
664
+ * // => 'null'
665
+ * env.test = undefined;
666
+ * console.log(env.test);
667
+ * // => 'undefined'
668
+ * ```
669
+ *
670
+ * Use `delete` to delete a property from `process.env`.
671
+ *
672
+ * ```js
673
+ * import { env } from 'node:process';
674
+ *
675
+ * env.TEST = 1;
676
+ * delete env.TEST;
677
+ * console.log(env.TEST);
678
+ * // => undefined
679
+ * ```
680
+ *
681
+ * On Windows operating systems, environment variables are case-insensitive.
682
+ *
683
+ * ```js
684
+ * import { env } from 'node:process';
685
+ *
686
+ * env.TEST = 1;
687
+ * console.log(env.test);
688
+ * // => 1
689
+ * ```
690
+ *
691
+ * Unless explicitly specified when creating a `Worker` instance,
692
+ * each `Worker` thread has its own copy of `process.env`, based on its
693
+ * parent thread's `process.env`, or whatever was specified as the `env` option
694
+ * to the `Worker` constructor. Changes to `process.env` will not be visible
695
+ * across `Worker` threads, and only the main thread can make changes that
696
+ * are visible to the operating system or to native add-ons. On Windows, a copy of `process.env` on a `Worker` instance operates in a case-sensitive manner
697
+ * unlike the main thread.
698
+ * @since v0.1.27
699
+ */
235
700
  env: ProcessEnv;
236
- exit(code?: number): never;
237
- exitCode?: number | undefined;
238
- getgid(): number;
239
- setgid(id: number | string): void;
240
- getuid(): number;
241
- setuid(id: number | string): void;
242
- geteuid(): number;
243
- seteuid(id: number | string): void;
244
- getegid(): number;
245
- setegid(id: number | string): void;
246
- getgroups(): number[];
247
- setgroups(groups: ReadonlyArray<string | number>): void;
701
+ /**
702
+ * The `process.exit()` method instructs Node.js to terminate the process
703
+ * synchronously with an exit status of `code`. If `code` is omitted, exit uses
704
+ * either the 'success' code `0` or the value of `process.exitCode` if it has been
705
+ * set. Node.js will not terminate until all the `'exit'` event listeners are
706
+ * called.
707
+ *
708
+ * To exit with a 'failure' code:
709
+ *
710
+ * ```js
711
+ * import { exit } from 'node:process';
712
+ *
713
+ * exit(1);
714
+ * ```
715
+ *
716
+ * The shell that executed Node.js should see the exit code as `1`.
717
+ *
718
+ * Calling `process.exit()` will force the process to exit as quickly as possible
719
+ * even if there are still asynchronous operations pending that have not yet
720
+ * completed fully, including I/O operations to `process.stdout` and `process.stderr`.
721
+ *
722
+ * In most situations, it is not actually necessary to call `process.exit()` explicitly. The Node.js process will exit on its own _if there is no additional_
723
+ * _work pending_ in the event loop. The `process.exitCode` property can be set to
724
+ * tell the process which exit code to use when the process exits gracefully.
725
+ *
726
+ * For instance, the following example illustrates a _misuse_ of the `process.exit()` method that could lead to data printed to stdout being
727
+ * truncated and lost:
728
+ *
729
+ * ```js
730
+ * import { exit } from 'node:process';
731
+ *
732
+ * // This is an example of what *not* to do:
733
+ * if (someConditionNotMet()) {
734
+ * printUsageToStdout();
735
+ * exit(1);
736
+ * }
737
+ * ```
738
+ *
739
+ * The reason this is problematic is because writes to `process.stdout` in Node.js
740
+ * are sometimes _asynchronous_ and may occur over multiple ticks of the Node.js
741
+ * event loop. Calling `process.exit()`, however, forces the process to exit _before_ those additional writes to `stdout` can be performed.
742
+ *
743
+ * Rather than calling `process.exit()` directly, the code _should_ set the `process.exitCode` and allow the process to exit naturally by avoiding
744
+ * scheduling any additional work for the event loop:
745
+ *
746
+ * ```js
747
+ * import process from 'node:process';
748
+ *
749
+ * // How to properly set the exit code while letting
750
+ * // the process exit gracefully.
751
+ * if (someConditionNotMet()) {
752
+ * printUsageToStdout();
753
+ * process.exitCode = 1;
754
+ * }
755
+ * ```
756
+ *
757
+ * If it is necessary to terminate the Node.js process due to an error condition,
758
+ * throwing an _uncaught_ error and allowing the process to terminate accordingly
759
+ * is safer than calling `process.exit()`.
760
+ *
761
+ * In `Worker` threads, this function stops the current thread rather
762
+ * than the current process.
763
+ * @since v0.1.13
764
+ * @param [code=0] The exit code. For string type, only integer strings (e.g.,'1') are allowed.
765
+ */
766
+ exit(code?: number | string | null | undefined): never;
767
+ /**
768
+ * A number which will be the process exit code, when the process either
769
+ * exits gracefully, or is exited via {@link exit} without specifying
770
+ * a code.
771
+ *
772
+ * Specifying a code to {@link exit} will override any
773
+ * previous setting of `process.exitCode`.
774
+ * @default undefined
775
+ * @since v0.11.8
776
+ */
777
+ exitCode?: number | string | number | undefined;
778
+ /**
779
+ * The `process.getActiveResourcesInfo()` method returns an array of strings containing
780
+ * the types of the active resources that are currently keeping the event loop alive.
781
+ *
782
+ * ```js
783
+ * import { getActiveResourcesInfo } from 'node:process';
784
+ * import { setTimeout } from 'node:timers';
785
+
786
+ * console.log('Before:', getActiveResourcesInfo());
787
+ * setTimeout(() => {}, 1000);
788
+ * console.log('After:', getActiveResourcesInfo());
789
+ * // Prints:
790
+ * // Before: [ 'TTYWrap', 'TTYWrap', 'TTYWrap' ]
791
+ * // After: [ 'TTYWrap', 'TTYWrap', 'TTYWrap', 'Timeout' ]
792
+ * ```
793
+ * @since v17.3.0, v16.14.0
794
+ */
795
+ getActiveResourcesInfo(): string[];
796
+ /**
797
+ * The `process.getgid()` method returns the numerical group identity of the
798
+ * process. (See [`getgid(2)`](http://man7.org/linux/man-pages/man2/getgid.2.html).)
799
+ *
800
+ * ```js
801
+ * import process from 'node:process';
802
+ *
803
+ * if (process.getgid) {
804
+ * console.log(`Current gid: ${process.getgid()}`);
805
+ * }
806
+ * ```
807
+ *
808
+ * This function is only available on POSIX platforms (i.e. not Windows or
809
+ * Android).
810
+ * @since v0.1.31
811
+ */
812
+ getgid?: () => number;
813
+ /**
814
+ * The `process.setgid()` method sets the group identity of the process. (See [`setgid(2)`](http://man7.org/linux/man-pages/man2/setgid.2.html).) The `id` can be passed as either a
815
+ * numeric ID or a group name
816
+ * string. If a group name is specified, this method blocks while resolving the
817
+ * associated numeric ID.
818
+ *
819
+ * ```js
820
+ * import process from 'node:process';
821
+ *
822
+ * if (process.getgid &#x26;&#x26; process.setgid) {
823
+ * console.log(`Current gid: ${process.getgid()}`);
824
+ * try {
825
+ * process.setgid(501);
826
+ * console.log(`New gid: ${process.getgid()}`);
827
+ * } catch (err) {
828
+ * console.log(`Failed to set gid: ${err}`);
829
+ * }
830
+ * }
831
+ * ```
832
+ *
833
+ * This function is only available on POSIX platforms (i.e. not Windows or
834
+ * Android).
835
+ * This feature is not available in `Worker` threads.
836
+ * @since v0.1.31
837
+ * @param id The group name or ID
838
+ */
839
+ setgid?: (id: number | string) => void;
840
+ /**
841
+ * The `process.getuid()` method returns the numeric user identity of the process.
842
+ * (See [`getuid(2)`](http://man7.org/linux/man-pages/man2/getuid.2.html).)
843
+ *
844
+ * ```js
845
+ * import process from 'node:process';
846
+ *
847
+ * if (process.getuid) {
848
+ * console.log(`Current uid: ${process.getuid()}`);
849
+ * }
850
+ * ```
851
+ *
852
+ * This function is only available on POSIX platforms (i.e. not Windows or
853
+ * Android).
854
+ * @since v0.1.28
855
+ */
856
+ getuid?: () => number;
857
+ /**
858
+ * The `process.setuid(id)` method sets the user identity of the process. (See [`setuid(2)`](http://man7.org/linux/man-pages/man2/setuid.2.html).) The `id` can be passed as either a
859
+ * numeric ID or a username string.
860
+ * If a username is specified, the method blocks while resolving the associated
861
+ * numeric ID.
862
+ *
863
+ * ```js
864
+ * import process from 'node:process';
865
+ *
866
+ * if (process.getuid &#x26;&#x26; process.setuid) {
867
+ * console.log(`Current uid: ${process.getuid()}`);
868
+ * try {
869
+ * process.setuid(501);
870
+ * console.log(`New uid: ${process.getuid()}`);
871
+ * } catch (err) {
872
+ * console.log(`Failed to set uid: ${err}`);
873
+ * }
874
+ * }
875
+ * ```
876
+ *
877
+ * This function is only available on POSIX platforms (i.e. not Windows or
878
+ * Android).
879
+ * This feature is not available in `Worker` threads.
880
+ * @since v0.1.28
881
+ */
882
+ setuid?: (id: number | string) => void;
883
+ /**
884
+ * The `process.geteuid()` method returns the numerical effective user identity of
885
+ * the process. (See [`geteuid(2)`](http://man7.org/linux/man-pages/man2/geteuid.2.html).)
886
+ *
887
+ * ```js
888
+ * import process from 'node:process';
889
+ *
890
+ * if (process.geteuid) {
891
+ * console.log(`Current uid: ${process.geteuid()}`);
892
+ * }
893
+ * ```
894
+ *
895
+ * This function is only available on POSIX platforms (i.e. not Windows or
896
+ * Android).
897
+ * @since v2.0.0
898
+ */
899
+ geteuid?: () => number;
900
+ /**
901
+ * The `process.seteuid()` method sets the effective user identity of the process.
902
+ * (See [`seteuid(2)`](http://man7.org/linux/man-pages/man2/seteuid.2.html).) The `id` can be passed as either a numeric ID or a username
903
+ * string. If a username is specified, the method blocks while resolving the
904
+ * associated numeric ID.
905
+ *
906
+ * ```js
907
+ * import process from 'node:process';
908
+ *
909
+ * if (process.geteuid &#x26;&#x26; process.seteuid) {
910
+ * console.log(`Current uid: ${process.geteuid()}`);
911
+ * try {
912
+ * process.seteuid(501);
913
+ * console.log(`New uid: ${process.geteuid()}`);
914
+ * } catch (err) {
915
+ * console.log(`Failed to set uid: ${err}`);
916
+ * }
917
+ * }
918
+ * ```
919
+ *
920
+ * This function is only available on POSIX platforms (i.e. not Windows or
921
+ * Android).
922
+ * This feature is not available in `Worker` threads.
923
+ * @since v2.0.0
924
+ * @param id A user name or ID
925
+ */
926
+ seteuid?: (id: number | string) => void;
927
+ /**
928
+ * The `process.getegid()` method returns the numerical effective group identity
929
+ * of the Node.js process. (See [`getegid(2)`](http://man7.org/linux/man-pages/man2/getegid.2.html).)
930
+ *
931
+ * ```js
932
+ * import process from 'node:process';
933
+ *
934
+ * if (process.getegid) {
935
+ * console.log(`Current gid: ${process.getegid()}`);
936
+ * }
937
+ * ```
938
+ *
939
+ * This function is only available on POSIX platforms (i.e. not Windows or
940
+ * Android).
941
+ * @since v2.0.0
942
+ */
943
+ getegid?: () => number;
944
+ /**
945
+ * The `process.setegid()` method sets the effective group identity of the process.
946
+ * (See [`setegid(2)`](http://man7.org/linux/man-pages/man2/setegid.2.html).) The `id` can be passed as either a numeric ID or a group
947
+ * name string. If a group name is specified, this method blocks while resolving
948
+ * the associated a numeric ID.
949
+ *
950
+ * ```js
951
+ * import process from 'node:process';
952
+ *
953
+ * if (process.getegid &#x26;&#x26; process.setegid) {
954
+ * console.log(`Current gid: ${process.getegid()}`);
955
+ * try {
956
+ * process.setegid(501);
957
+ * console.log(`New gid: ${process.getegid()}`);
958
+ * } catch (err) {
959
+ * console.log(`Failed to set gid: ${err}`);
960
+ * }
961
+ * }
962
+ * ```
963
+ *
964
+ * This function is only available on POSIX platforms (i.e. not Windows or
965
+ * Android).
966
+ * This feature is not available in `Worker` threads.
967
+ * @since v2.0.0
968
+ * @param id A group name or ID
969
+ */
970
+ setegid?: (id: number | string) => void;
971
+ /**
972
+ * The `process.getgroups()` method returns an array with the supplementary group
973
+ * IDs. POSIX leaves it unspecified if the effective group ID is included but
974
+ * Node.js ensures it always is.
975
+ *
976
+ * ```js
977
+ * import process from 'node:process';
978
+ *
979
+ * if (process.getgroups) {
980
+ * console.log(process.getgroups()); // [ 16, 21, 297 ]
981
+ * }
982
+ * ```
983
+ *
984
+ * This function is only available on POSIX platforms (i.e. not Windows or
985
+ * Android).
986
+ * @since v0.9.4
987
+ */
988
+ getgroups?: () => number[];
989
+ /**
990
+ * The `process.setgroups()` method sets the supplementary group IDs for the
991
+ * Node.js process. This is a privileged operation that requires the Node.js
992
+ * process to have `root` or the `CAP_SETGID` capability.
993
+ *
994
+ * The `groups` array can contain numeric group IDs, group names, or both.
995
+ *
996
+ * ```js
997
+ * import process from 'node:process';
998
+ *
999
+ * if (process.getgroups &#x26;&#x26; process.setgroups) {
1000
+ * try {
1001
+ * process.setgroups([501]);
1002
+ * console.log(process.getgroups()); // new groups
1003
+ * } catch (err) {
1004
+ * console.log(`Failed to set groups: ${err}`);
1005
+ * }
1006
+ * }
1007
+ * ```
1008
+ *
1009
+ * This function is only available on POSIX platforms (i.e. not Windows or
1010
+ * Android).
1011
+ * This feature is not available in `Worker` threads.
1012
+ * @since v0.9.4
1013
+ */
1014
+ setgroups?: (groups: ReadonlyArray<string | number>) => void;
1015
+ /**
1016
+ * The `process.setUncaughtExceptionCaptureCallback()` function sets a function
1017
+ * that will be invoked when an uncaught exception occurs, which will receive the
1018
+ * exception value itself as its first argument.
1019
+ *
1020
+ * If such a function is set, the `'uncaughtException'` event will
1021
+ * not be emitted. If `--abort-on-uncaught-exception` was passed from the
1022
+ * command line or set through `v8.setFlagsFromString()`, the process will
1023
+ * not abort. Actions configured to take place on exceptions such as report
1024
+ * generations will be affected too
1025
+ *
1026
+ * To unset the capture function, `process.setUncaughtExceptionCaptureCallback(null)` may be used. Calling this
1027
+ * method with a non-`null` argument while another capture function is set will
1028
+ * throw an error.
1029
+ *
1030
+ * Using this function is mutually exclusive with using the deprecated `domain` built-in module.
1031
+ * @since v9.3.0
1032
+ */
248
1033
  setUncaughtExceptionCaptureCallback(cb: ((err: Error) => void) | null): void;
1034
+ /**
1035
+ * Indicates whether a callback has been set using {@link setUncaughtExceptionCaptureCallback}.
1036
+ * @since v9.3.0
1037
+ */
249
1038
  hasUncaughtExceptionCaptureCallback(): boolean;
250
- version: string;
251
- versions: ProcessVersions;
252
- config: {
253
- target_defaults: {
254
- cflags: any[];
255
- default_configuration: string;
256
- defines: string[];
257
- include_dirs: string[];
258
- libraries: string[];
259
- };
260
- variables: {
261
- clang: number;
262
- host_arch: string;
263
- node_install_npm: boolean;
264
- node_install_waf: boolean;
265
- node_prefix: string;
266
- node_shared_openssl: boolean;
267
- node_shared_v8: boolean;
268
- node_shared_zlib: boolean;
269
- node_use_dtrace: boolean;
270
- node_use_etw: boolean;
271
- node_use_openssl: boolean;
272
- target_arch: string;
273
- v8_no_strict_aliasing: number;
274
- v8_use_snapshot: boolean;
275
- visibility: string;
276
- };
277
- };
1039
+ /**
1040
+ * The `process.sourceMapsEnabled` property returns whether the [Source Map v3](https://sourcemaps.info/spec.html) support for stack traces is enabled.
1041
+ * @since v20.7.0
1042
+ * @experimental
1043
+ */
1044
+ readonly sourceMapsEnabled: boolean;
1045
+ /**
1046
+ * This function enables or disables the [Source Map v3](https://sourcemaps.info/spec.html) support for
1047
+ * stack traces.
1048
+ *
1049
+ * It provides same features as launching Node.js process with commandline options `--enable-source-maps`.
1050
+ *
1051
+ * Only source maps in JavaScript files that are loaded after source maps has been
1052
+ * enabled will be parsed and loaded.
1053
+ * @since v16.6.0, v14.18.0
1054
+ * @experimental
1055
+ */
1056
+ setSourceMapsEnabled(value: boolean): void;
1057
+ /**
1058
+ * The `process.version` property contains the Node.js version string.
1059
+ *
1060
+ * ```js
1061
+ * import { version } from 'node:process';
1062
+ *
1063
+ * console.log(`Version: ${version}`);
1064
+ * // Version: v14.8.0
1065
+ * ```
1066
+ *
1067
+ * To get the version string without the prepended _v_, use`process.versions.node`.
1068
+ * @since v0.1.3
1069
+ */
1070
+ readonly version: string;
1071
+ /**
1072
+ * The `process.versions` property returns an object listing the version strings of
1073
+ * Node.js and its dependencies. `process.versions.modules` indicates the current
1074
+ * ABI version, which is increased whenever a C++ API changes. Node.js will refuse
1075
+ * to load modules that were compiled against a different module ABI version.
1076
+ *
1077
+ * ```js
1078
+ * import { versions } from 'node:process';
1079
+ *
1080
+ * console.log(versions);
1081
+ * ```
1082
+ *
1083
+ * Will generate an object similar to:
1084
+ *
1085
+ * ```console
1086
+ * { node: '20.2.0',
1087
+ * acorn: '8.8.2',
1088
+ * ada: '2.4.0',
1089
+ * ares: '1.19.0',
1090
+ * base64: '0.5.0',
1091
+ * brotli: '1.0.9',
1092
+ * cjs_module_lexer: '1.2.2',
1093
+ * cldr: '43.0',
1094
+ * icu: '73.1',
1095
+ * llhttp: '8.1.0',
1096
+ * modules: '115',
1097
+ * napi: '8',
1098
+ * nghttp2: '1.52.0',
1099
+ * nghttp3: '0.7.0',
1100
+ * ngtcp2: '0.8.1',
1101
+ * openssl: '3.0.8+quic',
1102
+ * simdutf: '3.2.9',
1103
+ * tz: '2023c',
1104
+ * undici: '5.22.0',
1105
+ * unicode: '15.0',
1106
+ * uv: '1.44.2',
1107
+ * uvwasi: '0.0.16',
1108
+ * v8: '11.3.244.8-node.9',
1109
+ * zlib: '1.2.13' }
1110
+ * ```
1111
+ * @since v0.2.0
1112
+ */
1113
+ readonly versions: ProcessVersions;
1114
+ /**
1115
+ * The `process.config` property returns a frozen `Object` containing the
1116
+ * JavaScript representation of the configure options used to compile the current
1117
+ * Node.js executable. This is the same as the `config.gypi` file that was produced
1118
+ * when running the `./configure` script.
1119
+ *
1120
+ * An example of the possible output looks like:
1121
+ *
1122
+ * ```js
1123
+ * {
1124
+ * target_defaults:
1125
+ * { cflags: [],
1126
+ * default_configuration: 'Release',
1127
+ * defines: [],
1128
+ * include_dirs: [],
1129
+ * libraries: [] },
1130
+ * variables:
1131
+ * {
1132
+ * host_arch: 'x64',
1133
+ * napi_build_version: 5,
1134
+ * node_install_npm: 'true',
1135
+ * node_prefix: '',
1136
+ * node_shared_cares: 'false',
1137
+ * node_shared_http_parser: 'false',
1138
+ * node_shared_libuv: 'false',
1139
+ * node_shared_zlib: 'false',
1140
+ * node_use_openssl: 'true',
1141
+ * node_shared_openssl: 'false',
1142
+ * strict_aliasing: 'true',
1143
+ * target_arch: 'x64',
1144
+ * v8_use_snapshot: 1
1145
+ * }
1146
+ * }
1147
+ * ```
1148
+ * @since v0.7.7
1149
+ */
1150
+ readonly config: ProcessConfig;
1151
+ /**
1152
+ * The `process.kill()` method sends the `signal` to the process identified by`pid`.
1153
+ *
1154
+ * Signal names are strings such as `'SIGINT'` or `'SIGHUP'`. See `Signal Events` and [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) for more information.
1155
+ *
1156
+ * This method will throw an error if the target `pid` does not exist. As a special
1157
+ * case, a signal of `0` can be used to test for the existence of a process.
1158
+ * Windows platforms will throw an error if the `pid` is used to kill a process
1159
+ * group.
1160
+ *
1161
+ * Even though the name of this function is `process.kill()`, it is really just a
1162
+ * signal sender, like the `kill` system call. The signal sent may do something
1163
+ * other than kill the target process.
1164
+ *
1165
+ * ```js
1166
+ * import process, { kill } from 'node:process';
1167
+ *
1168
+ * process.on('SIGHUP', () => {
1169
+ * console.log('Got SIGHUP signal.');
1170
+ * });
1171
+ *
1172
+ * setTimeout(() => {
1173
+ * console.log('Exiting.');
1174
+ * process.exit(0);
1175
+ * }, 100);
1176
+ *
1177
+ * kill(process.pid, 'SIGHUP');
1178
+ * ```
1179
+ *
1180
+ * When `SIGUSR1` is received by a Node.js process, Node.js will start the
1181
+ * debugger. See `Signal Events`.
1182
+ * @since v0.0.6
1183
+ * @param pid A process ID
1184
+ * @param [signal='SIGTERM'] The signal to send, either as a string or number.
1185
+ */
278
1186
  kill(pid: number, signal?: string | number): true;
279
- pid: number;
280
- ppid: number;
1187
+ /**
1188
+ * Loads the environment configuration from a `.env` file into `process.env`. If
1189
+ * the file is not found, error will be thrown.
1190
+ *
1191
+ * To load a specific .env file by specifying its path, use the following code:
1192
+ *
1193
+ * ```js
1194
+ * import { loadEnvFile } from 'node:process';
1195
+ *
1196
+ * loadEnvFile('./development.env')
1197
+ * ```
1198
+ * @since v20.12.0
1199
+ * @param path The path to the .env file
1200
+ */
1201
+ loadEnvFile(path?: string | URL | Buffer): void;
1202
+ /**
1203
+ * The `process.pid` property returns the PID of the process.
1204
+ *
1205
+ * ```js
1206
+ * import { pid } from 'node:process';
1207
+ *
1208
+ * console.log(`This process is pid ${pid}`);
1209
+ * ```
1210
+ * @since v0.1.15
1211
+ */
1212
+ readonly pid: number;
1213
+ /**
1214
+ * The `process.ppid` property returns the PID of the parent of the
1215
+ * current process.
1216
+ *
1217
+ * ```js
1218
+ * import { ppid } from 'node:process';
1219
+ *
1220
+ * console.log(`The parent process is pid ${ppid}`);
1221
+ * ```
1222
+ * @since v9.2.0, v8.10.0, v6.13.0
1223
+ */
1224
+ readonly ppid: number;
1225
+ /**
1226
+ * The `process.title` property returns the current process title (i.e. returns
1227
+ * the current value of `ps`). Assigning a new value to `process.title` modifies
1228
+ * the current value of `ps`.
1229
+ *
1230
+ * When a new value is assigned, different platforms will impose different maximum
1231
+ * length restrictions on the title. Usually such restrictions are quite limited.
1232
+ * For instance, on Linux and macOS, `process.title` is limited to the size of the
1233
+ * binary name plus the length of the command-line arguments because setting the `process.title` overwrites the `argv` memory of the process. Node.js v0.8
1234
+ * allowed for longer process title strings by also overwriting the `environ` memory but that was potentially insecure and confusing in some (rather obscure)
1235
+ * cases.
1236
+ *
1237
+ * Assigning a value to `process.title` might not result in an accurate label
1238
+ * within process manager applications such as macOS Activity Monitor or Windows
1239
+ * Services Manager.
1240
+ * @since v0.1.104
1241
+ */
281
1242
  title: string;
282
- arch: string;
283
- platform: Platform;
284
- /** @deprecated since v14.0.0 - use `require.main` instead. */
1243
+ /**
1244
+ * The operating system CPU architecture for which the Node.js binary was compiled.
1245
+ * Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`, `'mips'`, `'mipsel'`, `'ppc'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`, and `'x64'`.
1246
+ *
1247
+ * ```js
1248
+ * import { arch } from 'node:process';
1249
+ *
1250
+ * console.log(`This processor architecture is ${arch}`);
1251
+ * ```
1252
+ * @since v0.5.0
1253
+ */
1254
+ readonly arch: Architecture;
1255
+ /**
1256
+ * The `process.platform` property returns a string identifying the operating
1257
+ * system platform for which the Node.js binary was compiled.
1258
+ *
1259
+ * Currently possible values are:
1260
+ *
1261
+ * * `'aix'`
1262
+ * * `'darwin'`
1263
+ * * `'freebsd'`
1264
+ * * `'linux'`
1265
+ * * `'openbsd'`
1266
+ * * `'sunos'`
1267
+ * * `'win32'`
1268
+ *
1269
+ * ```js
1270
+ * import { platform } from 'node:process';
1271
+ *
1272
+ * console.log(`This platform is ${platform}`);
1273
+ * ```
1274
+ *
1275
+ * The value `'android'` may also be returned if the Node.js is built on the
1276
+ * Android operating system. However, Android support in Node.js [is experimental](https://github.com/nodejs/node/blob/HEAD/BUILDING.md#androidandroid-based-devices-eg-firefox-os).
1277
+ * @since v0.1.16
1278
+ */
1279
+ readonly platform: Platform;
1280
+ /**
1281
+ * The `process.mainModule` property provides an alternative way of retrieving `require.main`. The difference is that if the main module changes at
1282
+ * runtime, `require.main` may still refer to the original main module in
1283
+ * modules that were required before the change occurred. Generally, it's
1284
+ * safe to assume that the two refer to the same module.
1285
+ *
1286
+ * As with `require.main`, `process.mainModule` will be `undefined` if there
1287
+ * is no entry script.
1288
+ * @since v0.1.17
1289
+ * @deprecated Since v14.0.0 - Use `main` instead.
1290
+ */
285
1291
  mainModule?: Module | undefined;
286
- memoryUsage(): MemoryUsage;
1292
+ memoryUsage: MemoryUsageFn;
1293
+ /**
1294
+ * Gets the amount of memory available to the process (in bytes) based on
1295
+ * limits imposed by the OS. If there is no such constraint, or the constraint
1296
+ * is unknown, `0` is returned.
1297
+ *
1298
+ * See [`uv_get_constrained_memory`](https://docs.libuv.org/en/v1.x/misc.html#c.uv_get_constrained_memory) for more
1299
+ * information.
1300
+ * @since v19.6.0, v18.15.0
1301
+ * @experimental
1302
+ */
1303
+ constrainedMemory(): number;
1304
+ /**
1305
+ * Gets the amount of free memory that is still available to the process (in bytes).
1306
+ * See [`uv_get_available_memory`](https://nodejs.org/docs/latest-v20.x/api/process.html#processavailablememory) for more information.
1307
+ * @experimental
1308
+ * @since v20.13.0
1309
+ */
1310
+ availableMemory(): number;
1311
+ /**
1312
+ * The `process.cpuUsage()` method returns the user and system CPU time usage of
1313
+ * the current process, in an object with properties `user` and `system`, whose
1314
+ * values are microsecond values (millionth of a second). These values measure time
1315
+ * spent in user and system code respectively, and may end up being greater than
1316
+ * actual elapsed time if multiple CPU cores are performing work for this process.
1317
+ *
1318
+ * The result of a previous call to `process.cpuUsage()` can be passed as the
1319
+ * argument to the function, to get a diff reading.
1320
+ *
1321
+ * ```js
1322
+ * import { cpuUsage } from 'node:process';
1323
+ *
1324
+ * const startUsage = cpuUsage();
1325
+ * // { user: 38579, system: 6986 }
1326
+ *
1327
+ * // spin the CPU for 500 milliseconds
1328
+ * const now = Date.now();
1329
+ * while (Date.now() - now < 500);
1330
+ *
1331
+ * console.log(cpuUsage(startUsage));
1332
+ * // { user: 514883, system: 11226 }
1333
+ * ```
1334
+ * @since v6.1.0
1335
+ * @param previousValue A previous return value from calling `process.cpuUsage()`
1336
+ */
287
1337
  cpuUsage(previousValue?: CpuUsage): CpuUsage;
1338
+ /**
1339
+ * `process.nextTick()` adds `callback` to the "next tick queue". This queue is
1340
+ * fully drained after the current operation on the JavaScript stack runs to
1341
+ * completion and before the event loop is allowed to continue. It's possible to
1342
+ * create an infinite loop if one were to recursively call `process.nextTick()`.
1343
+ * See the [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#process-nexttick) guide for more background.
1344
+ *
1345
+ * ```js
1346
+ * import { nextTick } from 'node:process';
1347
+ *
1348
+ * console.log('start');
1349
+ * nextTick(() => {
1350
+ * console.log('nextTick callback');
1351
+ * });
1352
+ * console.log('scheduled');
1353
+ * // Output:
1354
+ * // start
1355
+ * // scheduled
1356
+ * // nextTick callback
1357
+ * ```
1358
+ *
1359
+ * This is important when developing APIs in order to give users the opportunity
1360
+ * to assign event handlers _after_ an object has been constructed but before any
1361
+ * I/O has occurred:
1362
+ *
1363
+ * ```js
1364
+ * import { nextTick } from 'node:process';
1365
+ *
1366
+ * function MyThing(options) {
1367
+ * this.setupOptions(options);
1368
+ *
1369
+ * nextTick(() => {
1370
+ * this.startDoingStuff();
1371
+ * });
1372
+ * }
1373
+ *
1374
+ * const thing = new MyThing();
1375
+ * thing.getReadyForStuff();
1376
+ *
1377
+ * // thing.startDoingStuff() gets called now, not before.
1378
+ * ```
1379
+ *
1380
+ * It is very important for APIs to be either 100% synchronous or 100%
1381
+ * asynchronous. Consider this example:
1382
+ *
1383
+ * ```js
1384
+ * // WARNING! DO NOT USE! BAD UNSAFE HAZARD!
1385
+ * function maybeSync(arg, cb) {
1386
+ * if (arg) {
1387
+ * cb();
1388
+ * return;
1389
+ * }
1390
+ *
1391
+ * fs.stat('file', cb);
1392
+ * }
1393
+ * ```
1394
+ *
1395
+ * This API is hazardous because in the following case:
1396
+ *
1397
+ * ```js
1398
+ * const maybeTrue = Math.random() > 0.5;
1399
+ *
1400
+ * maybeSync(maybeTrue, () => {
1401
+ * foo();
1402
+ * });
1403
+ *
1404
+ * bar();
1405
+ * ```
1406
+ *
1407
+ * It is not clear whether `foo()` or `bar()` will be called first.
1408
+ *
1409
+ * The following approach is much better:
1410
+ *
1411
+ * ```js
1412
+ * import { nextTick } from 'node:process';
1413
+ *
1414
+ * function definitelyAsync(arg, cb) {
1415
+ * if (arg) {
1416
+ * nextTick(cb);
1417
+ * return;
1418
+ * }
1419
+ *
1420
+ * fs.stat('file', cb);
1421
+ * }
1422
+ * ```
1423
+ * @since v0.1.26
1424
+ * @param args Additional arguments to pass when invoking the `callback`
1425
+ */
288
1426
  nextTick(callback: Function, ...args: any[]): void;
289
- release: ProcessRelease;
1427
+ /**
1428
+ * This API is available through the [--experimental-permission](https://nodejs.org/api/cli.html#--experimental-permission) flag.
1429
+ *
1430
+ * `process.permission` is an object whose methods are used to manage permissions for the current process.
1431
+ * Additional documentation is available in the [Permission Model](https://nodejs.org/api/permissions.html#permission-model).
1432
+ * @since v20.0.0
1433
+ */
1434
+ permission: ProcessPermission;
1435
+ /**
1436
+ * The `process.release` property returns an `Object` containing metadata related
1437
+ * to the current release, including URLs for the source tarball and headers-only
1438
+ * tarball.
1439
+ *
1440
+ * `process.release` contains the following properties:
1441
+ *
1442
+ * ```js
1443
+ * {
1444
+ * name: 'node',
1445
+ * lts: 'Hydrogen',
1446
+ * sourceUrl: 'https://nodejs.org/download/release/v18.12.0/node-v18.12.0.tar.gz',
1447
+ * headersUrl: 'https://nodejs.org/download/release/v18.12.0/node-v18.12.0-headers.tar.gz',
1448
+ * libUrl: 'https://nodejs.org/download/release/v18.12.0/win-x64/node.lib'
1449
+ * }
1450
+ * ```
1451
+ *
1452
+ * In custom builds from non-release versions of the source tree, only the `name` property may be present. The additional properties should not be
1453
+ * relied upon to exist.
1454
+ * @since v3.0.0
1455
+ */
1456
+ readonly release: ProcessRelease;
290
1457
  features: {
291
1458
  inspector: boolean;
292
1459
  debug: boolean;
@@ -298,45 +1465,192 @@ declare module "process" {
298
1465
  tls: boolean;
299
1466
  };
300
1467
  /**
301
- * @deprecated since v14.0.0 - Calling process.umask() with no argument causes
302
- * the process-wide umask to be written twice. This introduces a race condition between threads,
303
- * and is a potential security vulnerability. There is no safe, cross-platform alternative API.
1468
+ * `process.umask()` returns the Node.js process's file mode creation mask. Child
1469
+ * processes inherit the mask from the parent process.
1470
+ * @since v0.1.19
1471
+ * @deprecated Calling `process.umask()` with no argument causes the process-wide umask to be written twice. This introduces a race condition between threads, and is a potential
1472
+ * security vulnerability. There is no safe, cross-platform alternative API.
304
1473
  */
305
1474
  umask(): number;
306
1475
  /**
307
1476
  * Can only be set if not in worker thread.
308
1477
  */
309
1478
  umask(mask: string | number): number;
1479
+ /**
1480
+ * The `process.uptime()` method returns the number of seconds the current Node.js
1481
+ * process has been running.
1482
+ *
1483
+ * The return value includes fractions of a second. Use `Math.floor()` to get whole
1484
+ * seconds.
1485
+ * @since v0.5.0
1486
+ */
310
1487
  uptime(): number;
311
1488
  hrtime: HRTime;
312
- domain: Domain;
313
-
314
- // Worker
1489
+ /**
1490
+ * If the Node.js process was spawned with an IPC channel, the process.channel property is a reference to the IPC channel.
1491
+ * If no IPC channel exists, this property is undefined.
1492
+ * @since v7.1.0
1493
+ */
1494
+ channel?: {
1495
+ /**
1496
+ * This method makes the IPC channel keep the event loop of the process running if .unref() has been called before.
1497
+ * @since v7.1.0
1498
+ */
1499
+ ref(): void;
1500
+ /**
1501
+ * This method makes the IPC channel not keep the event loop of the process running, and lets it finish even while the channel is open.
1502
+ * @since v7.1.0
1503
+ */
1504
+ unref(): void;
1505
+ };
1506
+ /**
1507
+ * If Node.js is spawned with an IPC channel, the `process.send()` method can be
1508
+ * used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object.
1509
+ *
1510
+ * If Node.js was not spawned with an IPC channel, `process.send` will be `undefined`.
1511
+ *
1512
+ * The message goes through serialization and parsing. The resulting message might
1513
+ * not be the same as what is originally sent.
1514
+ * @since v0.5.9
1515
+ * @param options used to parameterize the sending of certain types of handles. `options` supports the following properties:
1516
+ */
315
1517
  send?(
316
1518
  message: any,
317
1519
  sendHandle?: any,
318
- options?: { swallowErrors?: boolean | undefined },
1520
+ options?: {
1521
+ keepOpen?: boolean | undefined;
1522
+ },
319
1523
  callback?: (error: Error | null) => void,
320
1524
  ): boolean;
1525
+ /**
1526
+ * If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.disconnect()` method will close the
1527
+ * IPC channel to the parent process, allowing the child process to exit gracefully
1528
+ * once there are no other connections keeping it alive.
1529
+ *
1530
+ * The effect of calling `process.disconnect()` is the same as calling `ChildProcess.disconnect()` from the parent process.
1531
+ *
1532
+ * If the Node.js process was not spawned with an IPC channel, `process.disconnect()` will be `undefined`.
1533
+ * @since v0.7.2
1534
+ */
321
1535
  disconnect(): void;
1536
+ /**
1537
+ * If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.connected` property will return `true` so long as the IPC
1538
+ * channel is connected and will return `false` after `process.disconnect()` is called.
1539
+ *
1540
+ * Once `process.connected` is `false`, it is no longer possible to send messages
1541
+ * over the IPC channel using `process.send()`.
1542
+ * @since v0.7.2
1543
+ */
322
1544
  connected: boolean;
323
-
324
1545
  /**
325
1546
  * The `process.allowedNodeEnvironmentFlags` property is a special,
326
- * read-only `Set` of flags allowable within the [`NODE_OPTIONS`][]
327
- * environment variable.
1547
+ * read-only `Set` of flags allowable within the `NODE_OPTIONS` environment variable.
1548
+ *
1549
+ * `process.allowedNodeEnvironmentFlags` extends `Set`, but overrides `Set.prototype.has` to recognize several different possible flag
1550
+ * representations. `process.allowedNodeEnvironmentFlags.has()` will
1551
+ * return `true` in the following cases:
1552
+ *
1553
+ * * Flags may omit leading single (`-`) or double (`--`) dashes; e.g., `inspect-brk` for `--inspect-brk`, or `r` for `-r`.
1554
+ * * Flags passed through to V8 (as listed in `--v8-options`) may replace
1555
+ * one or more _non-leading_ dashes for an underscore, or vice-versa;
1556
+ * e.g., `--perf_basic_prof`, `--perf-basic-prof`, `--perf_basic-prof`,
1557
+ * etc.
1558
+ * * Flags may contain one or more equals (`=`) characters; all
1559
+ * characters after and including the first equals will be ignored;
1560
+ * e.g., `--stack-trace-limit=100`.
1561
+ * * Flags _must_ be allowable within `NODE_OPTIONS`.
1562
+ *
1563
+ * When iterating over `process.allowedNodeEnvironmentFlags`, flags will
1564
+ * appear only _once_; each will begin with one or more dashes. Flags
1565
+ * passed through to V8 will contain underscores instead of non-leading
1566
+ * dashes:
1567
+ *
1568
+ * ```js
1569
+ * import { allowedNodeEnvironmentFlags } from 'node:process';
1570
+ *
1571
+ * allowedNodeEnvironmentFlags.forEach((flag) => {
1572
+ * // -r
1573
+ * // --inspect-brk
1574
+ * // --abort_on_uncaught_exception
1575
+ * // ...
1576
+ * });
1577
+ * ```
1578
+ *
1579
+ * The methods `add()`, `clear()`, and `delete()` of`process.allowedNodeEnvironmentFlags` do nothing, and will fail
1580
+ * silently.
1581
+ *
1582
+ * If Node.js was compiled _without_ `NODE_OPTIONS` support (shown in {@link config}), `process.allowedNodeEnvironmentFlags` will
1583
+ * contain what _would have_ been allowable.
1584
+ * @since v10.10.0
328
1585
  */
329
1586
  allowedNodeEnvironmentFlags: ReadonlySet<string>;
330
-
331
1587
  /**
332
- * Only available with `--experimental-report`
1588
+ * `process.report` is an object whose methods are used to generate diagnostic
1589
+ * reports for the current process. Additional documentation is available in the `report documentation`.
1590
+ * @since v11.8.0
333
1591
  */
334
1592
  report?: ProcessReport | undefined;
335
-
1593
+ /**
1594
+ * ```js
1595
+ * import { resourceUsage } from 'node:process';
1596
+ *
1597
+ * console.log(resourceUsage());
1598
+ * /*
1599
+ * Will output:
1600
+ * {
1601
+ * userCPUTime: 82872,
1602
+ * systemCPUTime: 4143,
1603
+ * maxRSS: 33164,
1604
+ * sharedMemorySize: 0,
1605
+ * unsharedDataSize: 0,
1606
+ * unsharedStackSize: 0,
1607
+ * minorPageFault: 2469,
1608
+ * majorPageFault: 0,
1609
+ * swappedOut: 0,
1610
+ * fsRead: 0,
1611
+ * fsWrite: 8,
1612
+ * ipcSent: 0,
1613
+ * ipcReceived: 0,
1614
+ * signalsCount: 0,
1615
+ * voluntaryContextSwitches: 79,
1616
+ * involuntaryContextSwitches: 1
1617
+ * }
1618
+ *
1619
+ * ```
1620
+ * @since v12.6.0
1621
+ * @return the resource usage for the current process. All of these values come from the `uv_getrusage` call which returns a [`uv_rusage_t` struct][uv_rusage_t].
1622
+ */
336
1623
  resourceUsage(): ResourceUsage;
337
-
1624
+ /**
1625
+ * The initial value of `process.throwDeprecation` indicates whether the `--throw-deprecation` flag is set on the current Node.js process. `process.throwDeprecation`
1626
+ * is mutable, so whether or not deprecation warnings result in errors may be altered at runtime. See the documentation for the 'warning' event and the emitWarning()
1627
+ * method for more information.
1628
+ *
1629
+ * ```bash
1630
+ * $ node --throw-deprecation -p "process.throwDeprecation"
1631
+ * true
1632
+ * $ node -p "process.throwDeprecation"
1633
+ * undefined
1634
+ * $ node
1635
+ * > process.emitWarning('test', 'DeprecationWarning');
1636
+ * undefined
1637
+ * > (node:26598) DeprecationWarning: test
1638
+ * > process.throwDeprecation = true;
1639
+ * true
1640
+ * > process.emitWarning('test', 'DeprecationWarning');
1641
+ * Thrown:
1642
+ * [DeprecationWarning: test] { name: 'DeprecationWarning' }
1643
+ * ```
1644
+ * @since v0.9.12
1645
+ */
1646
+ throwDeprecation: boolean;
1647
+ /**
1648
+ * The `process.traceDeprecation` property indicates whether the `--trace-deprecation` flag is set on the current Node.js process. See the
1649
+ * documentation for the `'warning' event` and the `emitWarning() method` for more information about this
1650
+ * flag's behavior.
1651
+ * @since v0.8.0
1652
+ */
338
1653
  traceDeprecation: boolean;
339
-
340
1654
  /* EventEmitter */
341
1655
  addListener(event: "beforeExit", listener: BeforeExitListener): this;
342
1656
  addListener(event: "disconnect", listener: DisconnectListener): this;
@@ -348,24 +1662,25 @@ declare module "process" {
348
1662
  addListener(event: "warning", listener: WarningListener): this;
349
1663
  addListener(event: "message", listener: MessageListener): this;
350
1664
  addListener(event: Signals, listener: SignalsListener): this;
351
- addListener(event: "newListener", listener: NewListenerListener): this;
352
- addListener(event: "removeListener", listener: RemoveListenerListener): this;
353
1665
  addListener(event: "multipleResolves", listener: MultipleResolveListener): this;
354
-
1666
+ addListener(event: "worker", listener: WorkerListener): this;
355
1667
  emit(event: "beforeExit", code: number): boolean;
356
1668
  emit(event: "disconnect"): boolean;
357
1669
  emit(event: "exit", code: number): boolean;
358
- emit(event: "rejectionHandled", promise: Promise<any>): boolean;
1670
+ emit(event: "rejectionHandled", promise: Promise<unknown>): boolean;
359
1671
  emit(event: "uncaughtException", error: Error): boolean;
360
1672
  emit(event: "uncaughtExceptionMonitor", error: Error): boolean;
361
- emit(event: "unhandledRejection", reason: any, promise: Promise<any>): boolean;
1673
+ emit(event: "unhandledRejection", reason: unknown, promise: Promise<unknown>): boolean;
362
1674
  emit(event: "warning", warning: Error): boolean;
363
- emit(event: "message", message: any, sendHandle: any): this;
364
- emit(event: Signals, signal: Signals): boolean;
365
- emit(event: "newListener", eventName: string | symbol, listener: (...args: any[]) => void): this;
366
- emit(event: "removeListener", eventName: string, listener: (...args: any[]) => void): this;
367
- emit(event: "multipleResolves", listener: MultipleResolveListener): this;
368
-
1675
+ emit(event: "message", message: unknown, sendHandle: unknown): this;
1676
+ emit(event: Signals, signal?: Signals): boolean;
1677
+ emit(
1678
+ event: "multipleResolves",
1679
+ type: MultipleResolveType,
1680
+ promise: Promise<unknown>,
1681
+ value: unknown,
1682
+ ): this;
1683
+ emit(event: "worker", listener: WorkerListener): this;
369
1684
  on(event: "beforeExit", listener: BeforeExitListener): this;
370
1685
  on(event: "disconnect", listener: DisconnectListener): this;
371
1686
  on(event: "exit", listener: ExitListener): this;
@@ -376,11 +1691,9 @@ declare module "process" {
376
1691
  on(event: "warning", listener: WarningListener): this;
377
1692
  on(event: "message", listener: MessageListener): this;
378
1693
  on(event: Signals, listener: SignalsListener): this;
379
- on(event: "newListener", listener: NewListenerListener): this;
380
- on(event: "removeListener", listener: RemoveListenerListener): this;
381
1694
  on(event: "multipleResolves", listener: MultipleResolveListener): this;
1695
+ on(event: "worker", listener: WorkerListener): this;
382
1696
  on(event: string | symbol, listener: (...args: any[]) => void): this;
383
-
384
1697
  once(event: "beforeExit", listener: BeforeExitListener): this;
385
1698
  once(event: "disconnect", listener: DisconnectListener): this;
386
1699
  once(event: "exit", listener: ExitListener): this;
@@ -391,10 +1704,9 @@ declare module "process" {
391
1704
  once(event: "warning", listener: WarningListener): this;
392
1705
  once(event: "message", listener: MessageListener): this;
393
1706
  once(event: Signals, listener: SignalsListener): this;
394
- once(event: "newListener", listener: NewListenerListener): this;
395
- once(event: "removeListener", listener: RemoveListenerListener): this;
396
1707
  once(event: "multipleResolves", listener: MultipleResolveListener): this;
397
-
1708
+ once(event: "worker", listener: WorkerListener): this;
1709
+ once(event: string | symbol, listener: (...args: any[]) => void): this;
398
1710
  prependListener(event: "beforeExit", listener: BeforeExitListener): this;
399
1711
  prependListener(event: "disconnect", listener: DisconnectListener): this;
400
1712
  prependListener(event: "exit", listener: ExitListener): this;
@@ -405,10 +1717,8 @@ declare module "process" {
405
1717
  prependListener(event: "warning", listener: WarningListener): this;
406
1718
  prependListener(event: "message", listener: MessageListener): this;
407
1719
  prependListener(event: Signals, listener: SignalsListener): this;
408
- prependListener(event: "newListener", listener: NewListenerListener): this;
409
- prependListener(event: "removeListener", listener: RemoveListenerListener): this;
410
1720
  prependListener(event: "multipleResolves", listener: MultipleResolveListener): this;
411
-
1721
+ prependListener(event: "worker", listener: WorkerListener): this;
412
1722
  prependOnceListener(event: "beforeExit", listener: BeforeExitListener): this;
413
1723
  prependOnceListener(event: "disconnect", listener: DisconnectListener): this;
414
1724
  prependOnceListener(event: "exit", listener: ExitListener): this;
@@ -419,10 +1729,8 @@ declare module "process" {
419
1729
  prependOnceListener(event: "warning", listener: WarningListener): this;
420
1730
  prependOnceListener(event: "message", listener: MessageListener): this;
421
1731
  prependOnceListener(event: Signals, listener: SignalsListener): this;
422
- prependOnceListener(event: "newListener", listener: NewListenerListener): this;
423
- prependOnceListener(event: "removeListener", listener: RemoveListenerListener): this;
424
1732
  prependOnceListener(event: "multipleResolves", listener: MultipleResolveListener): this;
425
-
1733
+ prependOnceListener(event: "worker", listener: WorkerListener): this;
426
1734
  listeners(event: "beforeExit"): BeforeExitListener[];
427
1735
  listeners(event: "disconnect"): DisconnectListener[];
428
1736
  listeners(event: "exit"): ExitListener[];
@@ -433,17 +1741,11 @@ declare module "process" {
433
1741
  listeners(event: "warning"): WarningListener[];
434
1742
  listeners(event: "message"): MessageListener[];
435
1743
  listeners(event: Signals): SignalsListener[];
436
- listeners(event: "newListener"): NewListenerListener[];
437
- listeners(event: "removeListener"): RemoveListenerListener[];
438
1744
  listeners(event: "multipleResolves"): MultipleResolveListener[];
439
- }
440
-
441
- interface Global {
442
- process: Process;
1745
+ listeners(event: "worker"): WorkerListener[];
443
1746
  }
444
1747
  }
445
1748
  }
446
-
447
1749
  export = process;
448
1750
  }
449
1751
  declare module "node:process" {