cdk-ecr-deployment 0.0.76 → 0.0.79

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 (356) hide show
  1. package/.jsii +28 -25
  2. package/lambda/Dockerfile +25 -0
  3. package/lambda/install.js +64 -0
  4. package/lib/index.js +40 -23
  5. package/node_modules/@sindresorhus/is/dist/index.d.ts +225 -0
  6. package/node_modules/@sindresorhus/is/dist/index.js +427 -0
  7. package/node_modules/@sindresorhus/is/dist/types.d.ts +24 -0
  8. package/node_modules/@sindresorhus/is/dist/types.js +3 -0
  9. package/node_modules/@sindresorhus/is/license +9 -0
  10. package/node_modules/@sindresorhus/is/package.json +96 -0
  11. package/node_modules/@sindresorhus/is/readme.md +628 -0
  12. package/node_modules/@szmarczak/http-timer/LICENSE +21 -0
  13. package/node_modules/@szmarczak/http-timer/README.md +93 -0
  14. package/node_modules/@szmarczak/http-timer/dist/source/index.d.ts +32 -0
  15. package/node_modules/@szmarczak/http-timer/dist/source/index.js +126 -0
  16. package/node_modules/@szmarczak/http-timer/package.json +72 -0
  17. package/node_modules/@types/cacheable-request/LICENSE +21 -0
  18. package/node_modules/@types/cacheable-request/README.md +16 -0
  19. package/node_modules/@types/cacheable-request/index.d.ts +137 -0
  20. package/node_modules/@types/cacheable-request/node_modules/@types/node/LICENSE +21 -0
  21. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +16 -0
  22. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert/strict.d.ts +8 -0
  23. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +912 -0
  24. package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +497 -0
  25. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +2142 -0
  26. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +1365 -0
  27. package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +414 -0
  28. package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +412 -0
  29. package/node_modules/@types/cacheable-request/node_modules/@types/node/constants.d.ts +18 -0
  30. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +3307 -0
  31. package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +545 -0
  32. package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +128 -0
  33. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +357 -0
  34. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +643 -0
  35. package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +169 -0
  36. package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +623 -0
  37. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +1004 -0
  38. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +3748 -0
  39. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +284 -0
  40. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.global.d.ts +1 -0
  41. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +1368 -0
  42. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +2100 -0
  43. package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +391 -0
  44. package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +131 -0
  45. package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +2738 -0
  46. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +114 -0
  47. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +783 -0
  48. package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +455 -0
  49. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +230 -0
  50. package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +172 -0
  51. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +555 -0
  52. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +1477 -0
  53. package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +117 -0
  54. package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +131 -0
  55. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +542 -0
  56. package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +424 -0
  57. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/consumers.d.ts +24 -0
  58. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/promises.d.ts +42 -0
  59. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +6 -0
  60. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +1249 -0
  61. package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +67 -0
  62. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +68 -0
  63. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +94 -0
  64. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +1019 -0
  65. package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +161 -0
  66. package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +204 -0
  67. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +798 -0
  68. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +1563 -0
  69. package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +378 -0
  70. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +507 -0
  71. package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +158 -0
  72. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +649 -0
  73. package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +517 -0
  74. package/node_modules/@types/cacheable-request/package.json +35 -0
  75. package/node_modules/@types/http-cache-semantics/LICENSE +21 -0
  76. package/node_modules/@types/http-cache-semantics/README.md +16 -0
  77. package/node_modules/@types/http-cache-semantics/index.d.ts +170 -0
  78. package/node_modules/@types/http-cache-semantics/package.json +25 -0
  79. package/node_modules/@types/keyv/LICENSE +21 -0
  80. package/node_modules/@types/keyv/README.md +16 -0
  81. package/node_modules/@types/keyv/index.d.ts +77 -0
  82. package/node_modules/@types/keyv/node_modules/@types/node/LICENSE +21 -0
  83. package/node_modules/@types/keyv/node_modules/@types/node/README.md +16 -0
  84. package/node_modules/@types/keyv/node_modules/@types/node/assert/strict.d.ts +8 -0
  85. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +912 -0
  86. package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +497 -0
  87. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +2142 -0
  88. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +1365 -0
  89. package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +414 -0
  90. package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +412 -0
  91. package/node_modules/@types/keyv/node_modules/@types/node/constants.d.ts +18 -0
  92. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +3307 -0
  93. package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +545 -0
  94. package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +128 -0
  95. package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +357 -0
  96. package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +643 -0
  97. package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +169 -0
  98. package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +623 -0
  99. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +1004 -0
  100. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +3748 -0
  101. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +284 -0
  102. package/node_modules/@types/keyv/node_modules/@types/node/globals.global.d.ts +1 -0
  103. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +1368 -0
  104. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +2100 -0
  105. package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +391 -0
  106. package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +131 -0
  107. package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +2738 -0
  108. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +114 -0
  109. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +783 -0
  110. package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +455 -0
  111. package/node_modules/@types/keyv/node_modules/@types/node/package.json +230 -0
  112. package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +172 -0
  113. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +555 -0
  114. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +1477 -0
  115. package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +117 -0
  116. package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +131 -0
  117. package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +542 -0
  118. package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +424 -0
  119. package/node_modules/@types/keyv/node_modules/@types/node/stream/consumers.d.ts +24 -0
  120. package/node_modules/@types/keyv/node_modules/@types/node/stream/promises.d.ts +42 -0
  121. package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +6 -0
  122. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +1249 -0
  123. package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +67 -0
  124. package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +68 -0
  125. package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +94 -0
  126. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +1019 -0
  127. package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +161 -0
  128. package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +204 -0
  129. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +798 -0
  130. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +1563 -0
  131. package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +378 -0
  132. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +507 -0
  133. package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +158 -0
  134. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +649 -0
  135. package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +517 -0
  136. package/node_modules/@types/keyv/package.json +32 -0
  137. package/node_modules/@types/responselike/LICENSE +21 -0
  138. package/node_modules/@types/responselike/README.md +16 -0
  139. package/node_modules/@types/responselike/index.d.ts +34 -0
  140. package/node_modules/@types/responselike/node_modules/@types/node/LICENSE +21 -0
  141. package/node_modules/@types/responselike/node_modules/@types/node/README.md +16 -0
  142. package/node_modules/@types/responselike/node_modules/@types/node/assert/strict.d.ts +8 -0
  143. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +912 -0
  144. package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +497 -0
  145. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +2142 -0
  146. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +1365 -0
  147. package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +414 -0
  148. package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +412 -0
  149. package/node_modules/@types/responselike/node_modules/@types/node/constants.d.ts +18 -0
  150. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +3307 -0
  151. package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +545 -0
  152. package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +128 -0
  153. package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +357 -0
  154. package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +643 -0
  155. package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +169 -0
  156. package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +623 -0
  157. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +1004 -0
  158. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +3748 -0
  159. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +284 -0
  160. package/node_modules/@types/responselike/node_modules/@types/node/globals.global.d.ts +1 -0
  161. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +1368 -0
  162. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +2100 -0
  163. package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +391 -0
  164. package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +131 -0
  165. package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +2738 -0
  166. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +114 -0
  167. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +783 -0
  168. package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +455 -0
  169. package/node_modules/@types/responselike/node_modules/@types/node/package.json +230 -0
  170. package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +172 -0
  171. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +555 -0
  172. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +1477 -0
  173. package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +117 -0
  174. package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +131 -0
  175. package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +542 -0
  176. package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +424 -0
  177. package/node_modules/@types/responselike/node_modules/@types/node/stream/consumers.d.ts +24 -0
  178. package/node_modules/@types/responselike/node_modules/@types/node/stream/promises.d.ts +42 -0
  179. package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +6 -0
  180. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +1249 -0
  181. package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +67 -0
  182. package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +68 -0
  183. package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +94 -0
  184. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +1019 -0
  185. package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +161 -0
  186. package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +204 -0
  187. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +798 -0
  188. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +1563 -0
  189. package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +378 -0
  190. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +507 -0
  191. package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +158 -0
  192. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +649 -0
  193. package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +517 -0
  194. package/node_modules/@types/responselike/package.json +25 -0
  195. package/node_modules/cacheable-lookup/LICENSE +21 -0
  196. package/node_modules/cacheable-lookup/README.md +240 -0
  197. package/node_modules/cacheable-lookup/index.d.ts +139 -0
  198. package/node_modules/cacheable-lookup/package.json +45 -0
  199. package/node_modules/cacheable-lookup/source/index.js +436 -0
  200. package/node_modules/cacheable-request/LICENSE +21 -0
  201. package/node_modules/cacheable-request/README.md +206 -0
  202. package/node_modules/cacheable-request/package.json +56 -0
  203. package/node_modules/cacheable-request/src/index.js +251 -0
  204. package/node_modules/clone-response/LICENSE +21 -0
  205. package/node_modules/clone-response/README.md +62 -0
  206. package/node_modules/clone-response/package.json +44 -0
  207. package/node_modules/clone-response/src/index.js +17 -0
  208. package/node_modules/decompress-response/index.d.ts +22 -0
  209. package/node_modules/decompress-response/index.js +58 -0
  210. package/node_modules/decompress-response/license +9 -0
  211. package/node_modules/decompress-response/node_modules/mimic-response/index.d.ts +17 -0
  212. package/node_modules/decompress-response/node_modules/mimic-response/index.js +77 -0
  213. package/node_modules/decompress-response/node_modules/mimic-response/license +9 -0
  214. package/node_modules/decompress-response/node_modules/mimic-response/package.json +42 -0
  215. package/node_modules/decompress-response/node_modules/mimic-response/readme.md +78 -0
  216. package/node_modules/decompress-response/package.json +56 -0
  217. package/node_modules/decompress-response/readme.md +48 -0
  218. package/node_modules/defer-to-connect/LICENSE +21 -0
  219. package/node_modules/defer-to-connect/README.md +38 -0
  220. package/node_modules/defer-to-connect/dist/source/index.d.ts +10 -0
  221. package/node_modules/defer-to-connect/dist/source/index.js +47 -0
  222. package/node_modules/defer-to-connect/package.json +71 -0
  223. package/node_modules/end-of-stream/LICENSE +21 -0
  224. package/node_modules/end-of-stream/README.md +54 -0
  225. package/node_modules/end-of-stream/index.js +94 -0
  226. package/node_modules/end-of-stream/package.json +37 -0
  227. package/node_modules/get-stream/buffer-stream.js +52 -0
  228. package/node_modules/get-stream/index.d.ts +108 -0
  229. package/node_modules/get-stream/index.js +60 -0
  230. package/node_modules/get-stream/license +9 -0
  231. package/node_modules/get-stream/package.json +50 -0
  232. package/node_modules/get-stream/readme.md +124 -0
  233. package/node_modules/got/dist/source/as-promise/create-rejection.d.ts +2 -0
  234. package/node_modules/got/dist/source/as-promise/create-rejection.js +30 -0
  235. package/node_modules/got/dist/source/as-promise/index.d.ts +3 -0
  236. package/node_modules/got/dist/source/as-promise/index.js +175 -0
  237. package/node_modules/got/dist/source/as-promise/normalize-arguments.d.ts +3 -0
  238. package/node_modules/got/dist/source/as-promise/normalize-arguments.js +78 -0
  239. package/node_modules/got/dist/source/as-promise/parse-body.d.ts +3 -0
  240. package/node_modules/got/dist/source/as-promise/parse-body.js +25 -0
  241. package/node_modules/got/dist/source/as-promise/types.d.ts +256 -0
  242. package/node_modules/got/dist/source/as-promise/types.js +40 -0
  243. package/node_modules/got/dist/source/core/calculate-retry-delay.d.ts +5 -0
  244. package/node_modules/got/dist/source/core/calculate-retry-delay.js +29 -0
  245. package/node_modules/got/dist/source/core/index.d.ts +1124 -0
  246. package/node_modules/got/dist/source/core/index.js +1491 -0
  247. package/node_modules/got/dist/source/core/utils/dns-ip-version.d.ts +5 -0
  248. package/node_modules/got/dist/source/core/utils/dns-ip-version.js +17 -0
  249. package/node_modules/got/dist/source/core/utils/get-body-size.d.ts +3 -0
  250. package/node_modules/got/dist/source/core/utils/get-body-size.js +32 -0
  251. package/node_modules/got/dist/source/core/utils/get-buffer.d.ts +4 -0
  252. package/node_modules/got/dist/source/core/utils/get-buffer.js +16 -0
  253. package/node_modules/got/dist/source/core/utils/is-form-data.d.ts +8 -0
  254. package/node_modules/got/dist/source/core/utils/is-form-data.js +4 -0
  255. package/node_modules/got/dist/source/core/utils/is-response-ok.d.ts +2 -0
  256. package/node_modules/got/dist/source/core/utils/is-response-ok.js +8 -0
  257. package/node_modules/got/dist/source/core/utils/options-to-url.d.ts +14 -0
  258. package/node_modules/got/dist/source/core/utils/options-to-url.js +53 -0
  259. package/node_modules/got/dist/source/core/utils/proxy-events.d.ts +3 -0
  260. package/node_modules/got/dist/source/core/utils/proxy-events.js +17 -0
  261. package/node_modules/got/dist/source/core/utils/timed-out.d.ts +29 -0
  262. package/node_modules/got/dist/source/core/utils/timed-out.js +121 -0
  263. package/node_modules/got/dist/source/core/utils/unhandle.d.ts +11 -0
  264. package/node_modules/got/dist/source/core/utils/unhandle.js +22 -0
  265. package/node_modules/got/dist/source/core/utils/url-to-options.d.ts +15 -0
  266. package/node_modules/got/dist/source/core/utils/url-to-options.js +24 -0
  267. package/node_modules/got/dist/source/core/utils/weakable-map.d.ts +8 -0
  268. package/node_modules/got/dist/source/core/utils/weakable-map.js +29 -0
  269. package/node_modules/got/dist/source/create.d.ts +5 -0
  270. package/node_modules/got/dist/source/create.js +240 -0
  271. package/node_modules/got/dist/source/index.d.ts +4 -0
  272. package/node_modules/got/dist/source/index.js +132 -0
  273. package/node_modules/got/dist/source/types.d.ts +342 -0
  274. package/node_modules/got/dist/source/types.js +2 -0
  275. package/node_modules/got/dist/source/utils/deep-freeze.d.ts +1 -0
  276. package/node_modules/got/dist/source/utils/deep-freeze.js +12 -0
  277. package/node_modules/got/dist/source/utils/deprecation-warning.d.ts +2 -0
  278. package/node_modules/got/dist/source/utils/deprecation-warning.js +13 -0
  279. package/node_modules/got/license +9 -0
  280. package/node_modules/got/package.json +130 -0
  281. package/node_modules/got/readme.md +2476 -0
  282. package/node_modules/http-cache-semantics/LICENSE +9 -0
  283. package/node_modules/http-cache-semantics/README.md +203 -0
  284. package/node_modules/http-cache-semantics/index.js +673 -0
  285. package/node_modules/http-cache-semantics/package.json +24 -0
  286. package/node_modules/http2-wrapper/LICENSE +21 -0
  287. package/node_modules/http2-wrapper/README.md +470 -0
  288. package/node_modules/http2-wrapper/package.json +54 -0
  289. package/node_modules/http2-wrapper/source/agent.js +670 -0
  290. package/node_modules/http2-wrapper/source/auto.js +149 -0
  291. package/node_modules/http2-wrapper/source/client-request.js +445 -0
  292. package/node_modules/http2-wrapper/source/incoming-message.js +58 -0
  293. package/node_modules/http2-wrapper/source/index.js +28 -0
  294. package/node_modules/http2-wrapper/source/utils/calculate-server-name.js +27 -0
  295. package/node_modules/http2-wrapper/source/utils/errors.js +45 -0
  296. package/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.js +13 -0
  297. package/node_modules/http2-wrapper/source/utils/proxy-events.js +7 -0
  298. package/node_modules/http2-wrapper/source/utils/url-to-options.js +25 -0
  299. package/node_modules/json-buffer/.travis.yml +3 -0
  300. package/node_modules/json-buffer/LICENSE +22 -0
  301. package/node_modules/json-buffer/README.md +24 -0
  302. package/node_modules/json-buffer/index.js +58 -0
  303. package/node_modules/json-buffer/package.json +34 -0
  304. package/node_modules/json-buffer/test/index.js +63 -0
  305. package/node_modules/keyv/LICENSE +21 -0
  306. package/node_modules/keyv/README.md +288 -0
  307. package/node_modules/keyv/package.json +49 -0
  308. package/node_modules/keyv/src/index.js +111 -0
  309. package/node_modules/lowercase-keys/index.d.ts +16 -0
  310. package/node_modules/lowercase-keys/index.js +10 -0
  311. package/node_modules/lowercase-keys/license +9 -0
  312. package/node_modules/lowercase-keys/package.json +38 -0
  313. package/node_modules/lowercase-keys/readme.md +32 -0
  314. package/node_modules/mimic-response/index.js +32 -0
  315. package/node_modules/mimic-response/license +9 -0
  316. package/node_modules/mimic-response/package.json +37 -0
  317. package/node_modules/mimic-response/readme.md +54 -0
  318. package/node_modules/normalize-url/index.d.ts +267 -0
  319. package/node_modules/normalize-url/index.js +216 -0
  320. package/node_modules/normalize-url/license +9 -0
  321. package/node_modules/normalize-url/package.json +50 -0
  322. package/node_modules/normalize-url/readme.md +286 -0
  323. package/node_modules/once/LICENSE +15 -0
  324. package/node_modules/once/README.md +79 -0
  325. package/node_modules/once/once.js +42 -0
  326. package/node_modules/once/package.json +33 -0
  327. package/node_modules/p-cancelable/index.d.ts +176 -0
  328. package/node_modules/p-cancelable/index.js +111 -0
  329. package/node_modules/p-cancelable/license +9 -0
  330. package/node_modules/p-cancelable/package.json +49 -0
  331. package/node_modules/p-cancelable/readme.md +153 -0
  332. package/node_modules/pump/.travis.yml +5 -0
  333. package/node_modules/pump/LICENSE +21 -0
  334. package/node_modules/pump/README.md +65 -0
  335. package/node_modules/pump/index.js +82 -0
  336. package/node_modules/pump/package.json +24 -0
  337. package/node_modules/pump/test-browser.js +66 -0
  338. package/node_modules/pump/test-node.js +53 -0
  339. package/node_modules/quick-lru/index.d.ts +97 -0
  340. package/node_modules/quick-lru/index.js +123 -0
  341. package/node_modules/quick-lru/license +9 -0
  342. package/node_modules/quick-lru/package.json +43 -0
  343. package/node_modules/quick-lru/readme.md +111 -0
  344. package/node_modules/resolve-alpn/LICENSE +22 -0
  345. package/node_modules/resolve-alpn/README.md +60 -0
  346. package/node_modules/resolve-alpn/index.js +43 -0
  347. package/node_modules/resolve-alpn/package.json +34 -0
  348. package/node_modules/responselike/LICENSE +19 -0
  349. package/node_modules/responselike/README.md +77 -0
  350. package/node_modules/responselike/package.json +38 -0
  351. package/node_modules/responselike/src/index.js +34 -0
  352. package/node_modules/wrappy/LICENSE +15 -0
  353. package/node_modules/wrappy/README.md +36 -0
  354. package/node_modules/wrappy/package.json +29 -0
  355. package/node_modules/wrappy/wrappy.js +33 -0
  356. package/package.json +7 -4
@@ -0,0 +1,1477 @@
1
+ declare module 'process' {
2
+ import * as tty from 'node:tty';
3
+ import { Worker } from 'node:worker_threads';
4
+ global {
5
+ var process: NodeJS.Process;
6
+ namespace NodeJS {
7
+ // this namespace merge is here because these are specifically used
8
+ // as the type for process.stdin, process.stdout, and process.stderr.
9
+ // they can't live in tty.d.ts because we need to disambiguate the imported name.
10
+ interface ReadStream extends tty.ReadStream {}
11
+ interface WriteStream extends tty.WriteStream {}
12
+ interface MemoryUsageFn {
13
+ /**
14
+ * The `process.memoryUsage()` method iterate over each page to gather informations about memory
15
+ * usage which can be slow depending on the program memory allocations.
16
+ */
17
+ (): MemoryUsage;
18
+ /**
19
+ * method returns an integer representing the Resident Set Size (RSS) in bytes.
20
+ */
21
+ rss(): number;
22
+ }
23
+ interface MemoryUsage {
24
+ rss: number;
25
+ heapTotal: number;
26
+ heapUsed: number;
27
+ external: number;
28
+ arrayBuffers: number;
29
+ }
30
+ interface CpuUsage {
31
+ user: number;
32
+ system: number;
33
+ }
34
+ interface ProcessRelease {
35
+ name: string;
36
+ sourceUrl?: string | undefined;
37
+ headersUrl?: string | undefined;
38
+ libUrl?: string | undefined;
39
+ lts?: string | undefined;
40
+ }
41
+ interface ProcessVersions extends Dict<string> {
42
+ http_parser: string;
43
+ node: string;
44
+ v8: string;
45
+ ares: string;
46
+ uv: string;
47
+ zlib: string;
48
+ modules: string;
49
+ openssl: string;
50
+ }
51
+ type Platform = 'aix' | 'android' | 'darwin' | 'freebsd' | 'haiku' | 'linux' | 'openbsd' | 'sunos' | 'win32' | 'cygwin' | 'netbsd';
52
+ type Signals =
53
+ | 'SIGABRT'
54
+ | 'SIGALRM'
55
+ | 'SIGBUS'
56
+ | 'SIGCHLD'
57
+ | 'SIGCONT'
58
+ | 'SIGFPE'
59
+ | 'SIGHUP'
60
+ | 'SIGILL'
61
+ | 'SIGINT'
62
+ | 'SIGIO'
63
+ | 'SIGIOT'
64
+ | 'SIGKILL'
65
+ | 'SIGPIPE'
66
+ | 'SIGPOLL'
67
+ | 'SIGPROF'
68
+ | 'SIGPWR'
69
+ | 'SIGQUIT'
70
+ | 'SIGSEGV'
71
+ | 'SIGSTKFLT'
72
+ | 'SIGSTOP'
73
+ | 'SIGSYS'
74
+ | 'SIGTERM'
75
+ | 'SIGTRAP'
76
+ | 'SIGTSTP'
77
+ | 'SIGTTIN'
78
+ | 'SIGTTOU'
79
+ | 'SIGUNUSED'
80
+ | 'SIGURG'
81
+ | 'SIGUSR1'
82
+ | 'SIGUSR2'
83
+ | 'SIGVTALRM'
84
+ | 'SIGWINCH'
85
+ | 'SIGXCPU'
86
+ | 'SIGXFSZ'
87
+ | 'SIGBREAK'
88
+ | 'SIGLOST'
89
+ | 'SIGINFO';
90
+ type UncaughtExceptionOrigin = 'uncaughtException' | 'unhandledRejection';
91
+ type MultipleResolveType = 'resolve' | 'reject';
92
+ type BeforeExitListener = (code: number) => void;
93
+ type DisconnectListener = () => void;
94
+ type ExitListener = (code: number) => void;
95
+ type RejectionHandledListener = (promise: Promise<unknown>) => void;
96
+ type UncaughtExceptionListener = (error: Error, origin: UncaughtExceptionOrigin) => void;
97
+ type UnhandledRejectionListener = (reason: {} | null | undefined, promise: Promise<unknown>) => void;
98
+ type WarningListener = (warning: Error) => void;
99
+ type MessageListener = (message: unknown, sendHandle: unknown) => void;
100
+ type SignalsListener = (signal: Signals) => void;
101
+ type MultipleResolveListener = (type: MultipleResolveType, promise: Promise<unknown>, value: unknown) => void;
102
+ type WorkerListener = (worker: Worker) => void;
103
+ interface Socket extends ReadWriteStream {
104
+ isTTY?: true | undefined;
105
+ }
106
+ // Alias for compatibility
107
+ interface ProcessEnv extends Dict<string> {
108
+ /**
109
+ * Can be used to change the default timezone at runtime
110
+ */
111
+ TZ?: string;
112
+ }
113
+ interface HRTime {
114
+ (time?: [number, number]): [number, number];
115
+ bigint(): bigint;
116
+ }
117
+ interface ProcessReport {
118
+ /**
119
+ * Directory where the report is written.
120
+ * working directory of the Node.js process.
121
+ * @default '' indicating that reports are written to the current
122
+ */
123
+ directory: string;
124
+ /**
125
+ * Filename where the report is written.
126
+ * The default value is the empty string.
127
+ * @default '' the output filename will be comprised of a timestamp,
128
+ * PID, and sequence number.
129
+ */
130
+ filename: string;
131
+ /**
132
+ * Returns a JSON-formatted diagnostic report for the running process.
133
+ * The report's JavaScript stack trace is taken from err, if present.
134
+ */
135
+ getReport(err?: Error): string;
136
+ /**
137
+ * If true, a diagnostic report is generated on fatal errors,
138
+ * such as out of memory errors or failed C++ assertions.
139
+ * @default false
140
+ */
141
+ reportOnFatalError: boolean;
142
+ /**
143
+ * If true, a diagnostic report is generated when the process
144
+ * receives the signal specified by process.report.signal.
145
+ * @defaul false
146
+ */
147
+ reportOnSignal: boolean;
148
+ /**
149
+ * If true, a diagnostic report is generated on uncaught exception.
150
+ * @default false
151
+ */
152
+ reportOnUncaughtException: boolean;
153
+ /**
154
+ * The signal used to trigger the creation of a diagnostic report.
155
+ * @default 'SIGUSR2'
156
+ */
157
+ signal: Signals;
158
+ /**
159
+ * Writes a diagnostic report to a file. If filename is not provided, the default filename
160
+ * includes the date, time, PID, and a sequence number.
161
+ * The report's JavaScript stack trace is taken from err, if present.
162
+ *
163
+ * @param fileName Name of the file where the report is written.
164
+ * This should be a relative path, that will be appended to the directory specified in
165
+ * `process.report.directory`, or the current working directory of the Node.js process,
166
+ * if unspecified.
167
+ * @param error A custom error used for reporting the JavaScript stack.
168
+ * @return Filename of the generated report.
169
+ */
170
+ writeReport(fileName?: string): string;
171
+ writeReport(error?: Error): string;
172
+ writeReport(fileName?: string, err?: Error): string;
173
+ }
174
+ interface ResourceUsage {
175
+ fsRead: number;
176
+ fsWrite: number;
177
+ involuntaryContextSwitches: number;
178
+ ipcReceived: number;
179
+ ipcSent: number;
180
+ majorPageFault: number;
181
+ maxRSS: number;
182
+ minorPageFault: number;
183
+ sharedMemorySize: number;
184
+ signalsCount: number;
185
+ swappedOut: number;
186
+ systemCPUTime: number;
187
+ unsharedDataSize: number;
188
+ unsharedStackSize: number;
189
+ userCPUTime: number;
190
+ voluntaryContextSwitches: number;
191
+ }
192
+ interface EmitWarningOptions {
193
+ /**
194
+ * When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted.
195
+ *
196
+ * @default 'Warning'
197
+ */
198
+ type?: string | undefined;
199
+ /**
200
+ * A unique identifier for the warning instance being emitted.
201
+ */
202
+ code?: string | undefined;
203
+ /**
204
+ * When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace.
205
+ *
206
+ * @default process.emitWarning
207
+ */
208
+ ctor?: Function | undefined;
209
+ /**
210
+ * Additional text to include with the error.
211
+ */
212
+ detail?: string | undefined;
213
+ }
214
+ interface ProcessConfig {
215
+ readonly target_defaults: {
216
+ readonly cflags: any[];
217
+ readonly default_configuration: string;
218
+ readonly defines: string[];
219
+ readonly include_dirs: string[];
220
+ readonly libraries: string[];
221
+ };
222
+ readonly variables: {
223
+ readonly clang: number;
224
+ readonly host_arch: string;
225
+ readonly node_install_npm: boolean;
226
+ readonly node_install_waf: boolean;
227
+ readonly node_prefix: string;
228
+ readonly node_shared_openssl: boolean;
229
+ readonly node_shared_v8: boolean;
230
+ readonly node_shared_zlib: boolean;
231
+ readonly node_use_dtrace: boolean;
232
+ readonly node_use_etw: boolean;
233
+ readonly node_use_openssl: boolean;
234
+ readonly target_arch: string;
235
+ readonly v8_no_strict_aliasing: number;
236
+ readonly v8_use_snapshot: boolean;
237
+ readonly visibility: string;
238
+ };
239
+ }
240
+ interface Process extends EventEmitter {
241
+ /**
242
+ * 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
243
+ * a `Writable` stream.
244
+ *
245
+ * For example, to copy `process.stdin` to `process.stdout`:
246
+ *
247
+ * ```js
248
+ * import { stdin, stdout } from 'process';
249
+ *
250
+ * stdin.pipe(stdout);
251
+ * ```
252
+ *
253
+ * `process.stdout` differs from other Node.js streams in important ways. See `note on process I/O` for more information.
254
+ */
255
+ stdout: WriteStream & {
256
+ fd: 1;
257
+ };
258
+ /**
259
+ * 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
260
+ * a `Writable` stream.
261
+ *
262
+ * `process.stderr` differs from other Node.js streams in important ways. See `note on process I/O` for more information.
263
+ */
264
+ stderr: WriteStream & {
265
+ fd: 2;
266
+ };
267
+ /**
268
+ * 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
269
+ * a `Readable` stream.
270
+ *
271
+ * For details of how to read from `stdin` see `readable.read()`.
272
+ *
273
+ * As a `Duplex` stream, `process.stdin` can also be used in "old" mode that
274
+ * is compatible with scripts written for Node.js prior to v0.10\.
275
+ * For more information see `Stream compatibility`.
276
+ *
277
+ * In "old" streams mode the `stdin` stream is paused by default, so one
278
+ * must call `process.stdin.resume()` to read from it. Note also that calling`process.stdin.resume()` itself would switch stream to "old" mode.
279
+ */
280
+ stdin: ReadStream & {
281
+ fd: 0;
282
+ };
283
+ openStdin(): Socket;
284
+ /**
285
+ * The `process.argv` property returns an array containing the command-line
286
+ * arguments passed when the Node.js process was launched. The first element will
287
+ * be {@link execPath}. See `process.argv0` if access to the original value
288
+ * of `argv[0]` is needed. The second element will be the path to the JavaScript
289
+ * file being executed. The remaining elements will be any additional command-line
290
+ * arguments.
291
+ *
292
+ * For example, assuming the following script for `process-args.js`:
293
+ *
294
+ * ```js
295
+ * import { argv } from 'process';
296
+ *
297
+ * // print process.argv
298
+ * argv.forEach((val, index) => {
299
+ * console.log(`${index}: ${val}`);
300
+ * });
301
+ * ```
302
+ *
303
+ * Launching the Node.js process as:
304
+ *
305
+ * ```console
306
+ * $ node process-args.js one two=three four
307
+ * ```
308
+ *
309
+ * Would generate the output:
310
+ *
311
+ * ```text
312
+ * 0: /usr/local/bin/node
313
+ * 1: /Users/mjr/work/node/process-args.js
314
+ * 2: one
315
+ * 3: two=three
316
+ * 4: four
317
+ * ```
318
+ * @since v0.1.27
319
+ */
320
+ argv: string[];
321
+ /**
322
+ * The `process.argv0` property stores a read-only copy of the original value of`argv[0]` passed when Node.js starts.
323
+ *
324
+ * ```console
325
+ * $ bash -c 'exec -a customArgv0 ./node'
326
+ * > process.argv[0]
327
+ * '/Volumes/code/external/node/out/Release/node'
328
+ * > process.argv0
329
+ * 'customArgv0'
330
+ * ```
331
+ * @since v6.4.0
332
+ */
333
+ argv0: string;
334
+ /**
335
+ * The `process.execArgv` property returns the set of Node.js-specific command-line
336
+ * options passed when the Node.js process was launched. These options do not
337
+ * appear in the array returned by the {@link argv} property, and do not
338
+ * include the Node.js executable, the name of the script, or any options following
339
+ * the script name. These options are useful in order to spawn child processes with
340
+ * the same execution environment as the parent.
341
+ *
342
+ * ```console
343
+ * $ node --harmony script.js --version
344
+ * ```
345
+ *
346
+ * Results in `process.execArgv`:
347
+ *
348
+ * ```js
349
+ * ['--harmony']
350
+ * ```
351
+ *
352
+ * And `process.argv`:
353
+ *
354
+ * ```js
355
+ * ['/usr/local/bin/node', 'script.js', '--version']
356
+ * ```
357
+ *
358
+ * Refer to `Worker constructor` for the detailed behavior of worker
359
+ * threads with this property.
360
+ * @since v0.7.7
361
+ */
362
+ execArgv: string[];
363
+ /**
364
+ * The `process.execPath` property returns the absolute pathname of the executable
365
+ * that started the Node.js process. Symbolic links, if any, are resolved.
366
+ *
367
+ * ```js
368
+ * '/usr/local/bin/node'
369
+ * ```
370
+ * @since v0.1.100
371
+ */
372
+ execPath: string;
373
+ /**
374
+ * The `process.abort()` method causes the Node.js process to exit immediately and
375
+ * generate a core file.
376
+ *
377
+ * This feature is not available in `Worker` threads.
378
+ * @since v0.7.0
379
+ */
380
+ abort(): never;
381
+ /**
382
+ * The `process.chdir()` method changes the current working directory of the
383
+ * Node.js process or throws an exception if doing so fails (for instance, if
384
+ * the specified `directory` does not exist).
385
+ *
386
+ * ```js
387
+ * import { chdir, cwd } from 'process';
388
+ *
389
+ * console.log(`Starting directory: ${cwd()}`);
390
+ * try {
391
+ * chdir('/tmp');
392
+ * console.log(`New directory: ${cwd()}`);
393
+ * } catch (err) {
394
+ * console.error(`chdir: ${err}`);
395
+ * }
396
+ * ```
397
+ *
398
+ * This feature is not available in `Worker` threads.
399
+ * @since v0.1.17
400
+ */
401
+ chdir(directory: string): void;
402
+ /**
403
+ * The `process.cwd()` method returns the current working directory of the Node.js
404
+ * process.
405
+ *
406
+ * ```js
407
+ * import { cwd } from 'process';
408
+ *
409
+ * console.log(`Current directory: ${cwd()}`);
410
+ * ```
411
+ * @since v0.1.8
412
+ */
413
+ cwd(): string;
414
+ /**
415
+ * The port used by the Node.js debugger when enabled.
416
+ *
417
+ * ```js
418
+ * import process from 'process';
419
+ *
420
+ * process.debugPort = 5858;
421
+ * ```
422
+ * @since v0.7.2
423
+ */
424
+ debugPort: number;
425
+ /**
426
+ * The `process.emitWarning()` method can be used to emit custom or application
427
+ * specific process warnings. These can be listened for by adding a handler to the `'warning'` event.
428
+ *
429
+ * ```js
430
+ * import { emitWarning } from 'process';
431
+ *
432
+ * // Emit a warning with a code and additional detail.
433
+ * emitWarning('Something happened!', {
434
+ * code: 'MY_WARNING',
435
+ * detail: 'This is some additional information'
436
+ * });
437
+ * // Emits:
438
+ * // (node:56338) [MY_WARNING] Warning: Something happened!
439
+ * // This is some additional information
440
+ * ```
441
+ *
442
+ * In this example, an `Error` object is generated internally by`process.emitWarning()` and passed through to the `'warning'` handler.
443
+ *
444
+ * ```js
445
+ * import process from 'process';
446
+ *
447
+ * process.on('warning', (warning) => {
448
+ * console.warn(warning.name); // 'Warning'
449
+ * console.warn(warning.message); // 'Something happened!'
450
+ * console.warn(warning.code); // 'MY_WARNING'
451
+ * console.warn(warning.stack); // Stack trace
452
+ * console.warn(warning.detail); // 'This is some additional information'
453
+ * });
454
+ * ```
455
+ *
456
+ * If `warning` is passed as an `Error` object, the `options` argument is ignored.
457
+ * @since v8.0.0
458
+ * @param warning The warning to emit.
459
+ */
460
+ emitWarning(warning: string | Error, ctor?: Function): void;
461
+ emitWarning(warning: string | Error, type?: string, ctor?: Function): void;
462
+ emitWarning(warning: string | Error, type?: string, code?: string, ctor?: Function): void;
463
+ emitWarning(warning: string | Error, options?: EmitWarningOptions): void;
464
+ /**
465
+ * The `process.env` property returns an object containing the user environment.
466
+ * See [`environ(7)`](http://man7.org/linux/man-pages/man7/environ.7.html).
467
+ *
468
+ * An example of this object looks like:
469
+ *
470
+ * ```js
471
+ * {
472
+ * TERM: 'xterm-256color',
473
+ * SHELL: '/usr/local/bin/bash',
474
+ * USER: 'maciej',
475
+ * PATH: '~/.bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin',
476
+ * PWD: '/Users/maciej',
477
+ * EDITOR: 'vim',
478
+ * SHLVL: '1',
479
+ * HOME: '/Users/maciej',
480
+ * LOGNAME: 'maciej',
481
+ * _: '/usr/local/bin/node'
482
+ * }
483
+ * ```
484
+ *
485
+ * It is possible to modify this object, but such modifications will not be
486
+ * reflected outside the Node.js process, or (unless explicitly requested)
487
+ * to other `Worker` threads.
488
+ * In other words, the following example would not work:
489
+ *
490
+ * ```console
491
+ * $ node -e 'process.env.foo = "bar"' &#x26;&#x26; echo $foo
492
+ * ```
493
+ *
494
+ * While the following will:
495
+ *
496
+ * ```js
497
+ * import { env } from 'process';
498
+ *
499
+ * env.foo = 'bar';
500
+ * console.log(env.foo);
501
+ * ```
502
+ *
503
+ * Assigning a property on `process.env` will implicitly convert the value
504
+ * to a string. **This behavior is deprecated.** Future versions of Node.js may
505
+ * throw an error when the value is not a string, number, or boolean.
506
+ *
507
+ * ```js
508
+ * import { env } from 'process';
509
+ *
510
+ * env.test = null;
511
+ * console.log(env.test);
512
+ * // => 'null'
513
+ * env.test = undefined;
514
+ * console.log(env.test);
515
+ * // => 'undefined'
516
+ * ```
517
+ *
518
+ * Use `delete` to delete a property from `process.env`.
519
+ *
520
+ * ```js
521
+ * import { env } from 'process';
522
+ *
523
+ * env.TEST = 1;
524
+ * delete env.TEST;
525
+ * console.log(env.TEST);
526
+ * // => undefined
527
+ * ```
528
+ *
529
+ * On Windows operating systems, environment variables are case-insensitive.
530
+ *
531
+ * ```js
532
+ * import { env } from 'process';
533
+ *
534
+ * env.TEST = 1;
535
+ * console.log(env.test);
536
+ * // => 1
537
+ * ```
538
+ *
539
+ * Unless explicitly specified when creating a `Worker` instance,
540
+ * each `Worker` thread has its own copy of `process.env`, based on its
541
+ * parent thread’s `process.env`, or whatever was specified as the `env` option
542
+ * to the `Worker` constructor. Changes to `process.env` will not be visible
543
+ * across `Worker` threads, and only the main thread can make changes that
544
+ * are visible to the operating system or to native add-ons.
545
+ * @since v0.1.27
546
+ */
547
+ env: ProcessEnv;
548
+ /**
549
+ * The `process.exit()` method instructs Node.js to terminate the process
550
+ * synchronously with an exit status of `code`. If `code` is omitted, exit uses
551
+ * either the 'success' code `0` or the value of `process.exitCode` if it has been
552
+ * set. Node.js will not terminate until all the `'exit'` event listeners are
553
+ * called.
554
+ *
555
+ * To exit with a 'failure' code:
556
+ *
557
+ * ```js
558
+ * import { exit } from 'process';
559
+ *
560
+ * exit(1);
561
+ * ```
562
+ *
563
+ * The shell that executed Node.js should see the exit code as `1`.
564
+ *
565
+ * Calling `process.exit()` will force the process to exit as quickly as possible
566
+ * even if there are still asynchronous operations pending that have not yet
567
+ * completed fully, including I/O operations to `process.stdout` and`process.stderr`.
568
+ *
569
+ * 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_
570
+ * _work pending_ in the event loop. The `process.exitCode` property can be set to
571
+ * tell the process which exit code to use when the process exits gracefully.
572
+ *
573
+ * For instance, the following example illustrates a _misuse_ of the`process.exit()` method that could lead to data printed to stdout being
574
+ * truncated and lost:
575
+ *
576
+ * ```js
577
+ * import { exit } from 'process';
578
+ *
579
+ * // This is an example of what *not* to do:
580
+ * if (someConditionNotMet()) {
581
+ * printUsageToStdout();
582
+ * exit(1);
583
+ * }
584
+ * ```
585
+ *
586
+ * The reason this is problematic is because writes to `process.stdout` in Node.js
587
+ * are sometimes _asynchronous_ and may occur over multiple ticks of the Node.js
588
+ * event loop. Calling `process.exit()`, however, forces the process to exit_before_ those additional writes to `stdout` can be performed.
589
+ *
590
+ * Rather than calling `process.exit()` directly, the code _should_ set the`process.exitCode` and allow the process to exit naturally by avoiding
591
+ * scheduling any additional work for the event loop:
592
+ *
593
+ * ```js
594
+ * import process from 'process';
595
+ *
596
+ * // How to properly set the exit code while letting
597
+ * // the process exit gracefully.
598
+ * if (someConditionNotMet()) {
599
+ * printUsageToStdout();
600
+ * process.exitCode = 1;
601
+ * }
602
+ * ```
603
+ *
604
+ * If it is necessary to terminate the Node.js process due to an error condition,
605
+ * throwing an _uncaught_ error and allowing the process to terminate accordingly
606
+ * is safer than calling `process.exit()`.
607
+ *
608
+ * In `Worker` threads, this function stops the current thread rather
609
+ * than the current process.
610
+ * @since v0.1.13
611
+ * @param [code=0] The exit code.
612
+ */
613
+ exit(code?: number): never;
614
+ /**
615
+ * A number which will be the process exit code, when the process either
616
+ * exits gracefully, or is exited via {@link exit} without specifying
617
+ * a code.
618
+ *
619
+ * Specifying a code to {@link exit} will override any
620
+ * previous setting of `process.exitCode`.
621
+ * @since v0.11.8
622
+ */
623
+ exitCode?: number | undefined;
624
+ /**
625
+ * The `process.getgid()` method returns the numerical group identity of the
626
+ * process. (See [`getgid(2)`](http://man7.org/linux/man-pages/man2/getgid.2.html).)
627
+ *
628
+ * ```js
629
+ * import process from 'process';
630
+ *
631
+ * if (process.getgid) {
632
+ * console.log(`Current gid: ${process.getgid()}`);
633
+ * }
634
+ * ```
635
+ *
636
+ * This function is only available on POSIX platforms (i.e. not Windows or
637
+ * Android).
638
+ * @since v0.1.31
639
+ */
640
+ getgid(): number;
641
+ /**
642
+ * 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
643
+ * numeric ID or a group name
644
+ * string. If a group name is specified, this method blocks while resolving the
645
+ * associated numeric ID.
646
+ *
647
+ * ```js
648
+ * import process from 'process';
649
+ *
650
+ * if (process.getgid &#x26;&#x26; process.setgid) {
651
+ * console.log(`Current gid: ${process.getgid()}`);
652
+ * try {
653
+ * process.setgid(501);
654
+ * console.log(`New gid: ${process.getgid()}`);
655
+ * } catch (err) {
656
+ * console.log(`Failed to set gid: ${err}`);
657
+ * }
658
+ * }
659
+ * ```
660
+ *
661
+ * This function is only available on POSIX platforms (i.e. not Windows or
662
+ * Android).
663
+ * This feature is not available in `Worker` threads.
664
+ * @since v0.1.31
665
+ * @param id The group name or ID
666
+ */
667
+ setgid(id: number | string): void;
668
+ /**
669
+ * The `process.getuid()` method returns the numeric user identity of the process.
670
+ * (See [`getuid(2)`](http://man7.org/linux/man-pages/man2/getuid.2.html).)
671
+ *
672
+ * ```js
673
+ * import process from 'process';
674
+ *
675
+ * if (process.getuid) {
676
+ * console.log(`Current uid: ${process.getuid()}`);
677
+ * }
678
+ * ```
679
+ *
680
+ * This function is only available on POSIX platforms (i.e. not Windows or
681
+ * Android).
682
+ * @since v0.1.28
683
+ */
684
+ getuid(): number;
685
+ /**
686
+ * 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
687
+ * numeric ID or a username string.
688
+ * If a username is specified, the method blocks while resolving the associated
689
+ * numeric ID.
690
+ *
691
+ * ```js
692
+ * import process from 'process';
693
+ *
694
+ * if (process.getuid &#x26;&#x26; process.setuid) {
695
+ * console.log(`Current uid: ${process.getuid()}`);
696
+ * try {
697
+ * process.setuid(501);
698
+ * console.log(`New uid: ${process.getuid()}`);
699
+ * } catch (err) {
700
+ * console.log(`Failed to set uid: ${err}`);
701
+ * }
702
+ * }
703
+ * ```
704
+ *
705
+ * This function is only available on POSIX platforms (i.e. not Windows or
706
+ * Android).
707
+ * This feature is not available in `Worker` threads.
708
+ * @since v0.1.28
709
+ */
710
+ setuid(id: number | string): void;
711
+ /**
712
+ * The `process.geteuid()` method returns the numerical effective user identity of
713
+ * the process. (See [`geteuid(2)`](http://man7.org/linux/man-pages/man2/geteuid.2.html).)
714
+ *
715
+ * ```js
716
+ * import process from 'process';
717
+ *
718
+ * if (process.geteuid) {
719
+ * console.log(`Current uid: ${process.geteuid()}`);
720
+ * }
721
+ * ```
722
+ *
723
+ * This function is only available on POSIX platforms (i.e. not Windows or
724
+ * Android).
725
+ * @since v2.0.0
726
+ */
727
+ geteuid(): number;
728
+ /**
729
+ * The `process.seteuid()` method sets the effective user identity of the process.
730
+ * (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
731
+ * string. If a username is specified, the method blocks while resolving the
732
+ * associated numeric ID.
733
+ *
734
+ * ```js
735
+ * import process from 'process';
736
+ *
737
+ * if (process.geteuid &#x26;&#x26; process.seteuid) {
738
+ * console.log(`Current uid: ${process.geteuid()}`);
739
+ * try {
740
+ * process.seteuid(501);
741
+ * console.log(`New uid: ${process.geteuid()}`);
742
+ * } catch (err) {
743
+ * console.log(`Failed to set uid: ${err}`);
744
+ * }
745
+ * }
746
+ * ```
747
+ *
748
+ * This function is only available on POSIX platforms (i.e. not Windows or
749
+ * Android).
750
+ * This feature is not available in `Worker` threads.
751
+ * @since v2.0.0
752
+ * @param id A user name or ID
753
+ */
754
+ seteuid(id: number | string): void;
755
+ /**
756
+ * The `process.getegid()` method returns the numerical effective group identity
757
+ * of the Node.js process. (See [`getegid(2)`](http://man7.org/linux/man-pages/man2/getegid.2.html).)
758
+ *
759
+ * ```js
760
+ * import process from 'process';
761
+ *
762
+ * if (process.getegid) {
763
+ * console.log(`Current gid: ${process.getegid()}`);
764
+ * }
765
+ * ```
766
+ *
767
+ * This function is only available on POSIX platforms (i.e. not Windows or
768
+ * Android).
769
+ * @since v2.0.0
770
+ */
771
+ getegid(): number;
772
+ /**
773
+ * The `process.setegid()` method sets the effective group identity of the process.
774
+ * (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
775
+ * name string. If a group name is specified, this method blocks while resolving
776
+ * the associated a numeric ID.
777
+ *
778
+ * ```js
779
+ * import process from 'process';
780
+ *
781
+ * if (process.getegid &#x26;&#x26; process.setegid) {
782
+ * console.log(`Current gid: ${process.getegid()}`);
783
+ * try {
784
+ * process.setegid(501);
785
+ * console.log(`New gid: ${process.getegid()}`);
786
+ * } catch (err) {
787
+ * console.log(`Failed to set gid: ${err}`);
788
+ * }
789
+ * }
790
+ * ```
791
+ *
792
+ * This function is only available on POSIX platforms (i.e. not Windows or
793
+ * Android).
794
+ * This feature is not available in `Worker` threads.
795
+ * @since v2.0.0
796
+ * @param id A group name or ID
797
+ */
798
+ setegid(id: number | string): void;
799
+ /**
800
+ * The `process.getgroups()` method returns an array with the supplementary group
801
+ * IDs. POSIX leaves it unspecified if the effective group ID is included but
802
+ * Node.js ensures it always is.
803
+ *
804
+ * ```js
805
+ * import process from 'process';
806
+ *
807
+ * if (process.getgroups) {
808
+ * console.log(process.getgroups()); // [ 16, 21, 297 ]
809
+ * }
810
+ * ```
811
+ *
812
+ * This function is only available on POSIX platforms (i.e. not Windows or
813
+ * Android).
814
+ * @since v0.9.4
815
+ */
816
+ getgroups(): number[];
817
+ /**
818
+ * The `process.setgroups()` method sets the supplementary group IDs for the
819
+ * Node.js process. This is a privileged operation that requires the Node.js
820
+ * process to have `root` or the `CAP_SETGID` capability.
821
+ *
822
+ * The `groups` array can contain numeric group IDs, group names, or both.
823
+ *
824
+ * ```js
825
+ * import process from 'process';
826
+ *
827
+ * if (process.getgroups &#x26;&#x26; process.setgroups) {
828
+ * try {
829
+ * process.setgroups([501]);
830
+ * console.log(process.getgroups()); // new groups
831
+ * } catch (err) {
832
+ * console.log(`Failed to set groups: ${err}`);
833
+ * }
834
+ * }
835
+ * ```
836
+ *
837
+ * This function is only available on POSIX platforms (i.e. not Windows or
838
+ * Android).
839
+ * This feature is not available in `Worker` threads.
840
+ * @since v0.9.4
841
+ */
842
+ setgroups(groups: ReadonlyArray<string | number>): void;
843
+ /**
844
+ * The `process.setUncaughtExceptionCaptureCallback()` function sets a function
845
+ * that will be invoked when an uncaught exception occurs, which will receive the
846
+ * exception value itself as its first argument.
847
+ *
848
+ * If such a function is set, the `'uncaughtException'` event will
849
+ * not be emitted. If `--abort-on-uncaught-exception` was passed from the
850
+ * command line or set through `v8.setFlagsFromString()`, the process will
851
+ * not abort. Actions configured to take place on exceptions such as report
852
+ * generations will be affected too
853
+ *
854
+ * To unset the capture function,`process.setUncaughtExceptionCaptureCallback(null)` may be used. Calling this
855
+ * method with a non-`null` argument while another capture function is set will
856
+ * throw an error.
857
+ *
858
+ * Using this function is mutually exclusive with using the deprecated `domain` built-in module.
859
+ * @since v9.3.0
860
+ */
861
+ setUncaughtExceptionCaptureCallback(cb: ((err: Error) => void) | null): void;
862
+ /**
863
+ * Indicates whether a callback has been set using {@link setUncaughtExceptionCaptureCallback}.
864
+ * @since v9.3.0
865
+ */
866
+ hasUncaughtExceptionCaptureCallback(): boolean;
867
+ /**
868
+ * The `process.version` property contains the Node.js version string.
869
+ *
870
+ * ```js
871
+ * import { version } from 'process';
872
+ *
873
+ * console.log(`Version: ${version}`);
874
+ * // Version: v14.8.0
875
+ * ```
876
+ *
877
+ * To get the version string without the prepended _v_, use`process.versions.node`.
878
+ * @since v0.1.3
879
+ */
880
+ readonly version: string;
881
+ /**
882
+ * The `process.versions` property returns an object listing the version strings of
883
+ * Node.js and its dependencies. `process.versions.modules` indicates the current
884
+ * ABI version, which is increased whenever a C++ API changes. Node.js will refuse
885
+ * to load modules that were compiled against a different module ABI version.
886
+ *
887
+ * ```js
888
+ * import { versions } from 'process';
889
+ *
890
+ * console.log(versions);
891
+ * ```
892
+ *
893
+ * Will generate an object similar to:
894
+ *
895
+ * ```console
896
+ * { node: '11.13.0',
897
+ * v8: '7.0.276.38-node.18',
898
+ * uv: '1.27.0',
899
+ * zlib: '1.2.11',
900
+ * brotli: '1.0.7',
901
+ * ares: '1.15.0',
902
+ * modules: '67',
903
+ * nghttp2: '1.34.0',
904
+ * napi: '4',
905
+ * llhttp: '1.1.1',
906
+ * openssl: '1.1.1b',
907
+ * cldr: '34.0',
908
+ * icu: '63.1',
909
+ * tz: '2018e',
910
+ * unicode: '11.0' }
911
+ * ```
912
+ * @since v0.2.0
913
+ */
914
+ readonly versions: ProcessVersions;
915
+ /**
916
+ * The `process.config` property returns an `Object` containing the JavaScript
917
+ * representation of the configure options used to compile the current Node.js
918
+ * executable. This is the same as the `config.gypi` file that was produced when
919
+ * running the `./configure` script.
920
+ *
921
+ * An example of the possible output looks like:
922
+ *
923
+ * ```js
924
+ * {
925
+ * target_defaults:
926
+ * { cflags: [],
927
+ * default_configuration: 'Release',
928
+ * defines: [],
929
+ * include_dirs: [],
930
+ * libraries: [] },
931
+ * variables:
932
+ * {
933
+ * host_arch: 'x64',
934
+ * napi_build_version: 5,
935
+ * node_install_npm: 'true',
936
+ * node_prefix: '',
937
+ * node_shared_cares: 'false',
938
+ * node_shared_http_parser: 'false',
939
+ * node_shared_libuv: 'false',
940
+ * node_shared_zlib: 'false',
941
+ * node_use_dtrace: 'false',
942
+ * node_use_openssl: 'true',
943
+ * node_shared_openssl: 'false',
944
+ * strict_aliasing: 'true',
945
+ * target_arch: 'x64',
946
+ * v8_use_snapshot: 1
947
+ * }
948
+ * }
949
+ * ```
950
+ *
951
+ * The `process.config` property is **not** read-only and there are existing
952
+ * modules in the ecosystem that are known to extend, modify, or entirely replace
953
+ * the value of `process.config`.
954
+ *
955
+ * Modifying the `process.config` property, or any child-property of the`process.config` object has been deprecated. The `process.config` will be made
956
+ * read-only in a future release.
957
+ * @since v0.7.7
958
+ */
959
+ readonly config: ProcessConfig;
960
+ /**
961
+ * The `process.kill()` method sends the `signal` to the process identified by`pid`.
962
+ *
963
+ * 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.
964
+ *
965
+ * This method will throw an error if the target `pid` does not exist. As a special
966
+ * case, a signal of `0` can be used to test for the existence of a process.
967
+ * Windows platforms will throw an error if the `pid` is used to kill a process
968
+ * group.
969
+ *
970
+ * Even though the name of this function is `process.kill()`, it is really just a
971
+ * signal sender, like the `kill` system call. The signal sent may do something
972
+ * other than kill the target process.
973
+ *
974
+ * ```js
975
+ * import process, { kill } from 'process';
976
+ *
977
+ * process.on('SIGHUP', () => {
978
+ * console.log('Got SIGHUP signal.');
979
+ * });
980
+ *
981
+ * setTimeout(() => {
982
+ * console.log('Exiting.');
983
+ * process.exit(0);
984
+ * }, 100);
985
+ *
986
+ * kill(process.pid, 'SIGHUP');
987
+ * ```
988
+ *
989
+ * When `SIGUSR1` is received by a Node.js process, Node.js will start the
990
+ * debugger. See `Signal Events`.
991
+ * @since v0.0.6
992
+ * @param pid A process ID
993
+ * @param [signal='SIGTERM'] The signal to send, either as a string or number.
994
+ */
995
+ kill(pid: number, signal?: string | number): true;
996
+ /**
997
+ * The `process.pid` property returns the PID of the process.
998
+ *
999
+ * ```js
1000
+ * import { pid } from 'process';
1001
+ *
1002
+ * console.log(`This process is pid ${pid}`);
1003
+ * ```
1004
+ * @since v0.1.15
1005
+ */
1006
+ readonly pid: number;
1007
+ /**
1008
+ * The `process.ppid` property returns the PID of the parent of the
1009
+ * current process.
1010
+ *
1011
+ * ```js
1012
+ * import { ppid } from 'process';
1013
+ *
1014
+ * console.log(`The parent process is pid ${ppid}`);
1015
+ * ```
1016
+ * @since v9.2.0, v8.10.0, v6.13.0
1017
+ */
1018
+ readonly ppid: number;
1019
+ /**
1020
+ * The `process.title` property returns the current process title (i.e. returns
1021
+ * the current value of `ps`). Assigning a new value to `process.title` modifies
1022
+ * the current value of `ps`.
1023
+ *
1024
+ * When a new value is assigned, different platforms will impose different maximum
1025
+ * length restrictions on the title. Usually such restrictions are quite limited.
1026
+ * For instance, on Linux and macOS, `process.title` is limited to the size of the
1027
+ * 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
1028
+ * allowed for longer process title strings by also overwriting the `environ`memory but that was potentially insecure and confusing in some (rather obscure)
1029
+ * cases.
1030
+ *
1031
+ * Assigning a value to `process.title` might not result in an accurate label
1032
+ * within process manager applications such as macOS Activity Monitor or Windows
1033
+ * Services Manager.
1034
+ * @since v0.1.104
1035
+ */
1036
+ title: string;
1037
+ /**
1038
+ * The operating system CPU architecture for which the Node.js binary was compiled.
1039
+ * Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'mips'`,`'mipsel'`, `'ppc'`,`'ppc64'`, `'s390'`, `'s390x'`, `'x32'`, and `'x64'`.
1040
+ *
1041
+ * ```js
1042
+ * import { arch } from 'process';
1043
+ *
1044
+ * console.log(`This processor architecture is ${arch}`);
1045
+ * ```
1046
+ * @since v0.5.0
1047
+ */
1048
+ readonly arch: string;
1049
+ /**
1050
+ * The `process.platform` property returns a string identifying the operating
1051
+ * system platform on which the Node.js process is running.
1052
+ *
1053
+ * Currently possible values are:
1054
+ *
1055
+ * * `'aix'`
1056
+ * * `'darwin'`
1057
+ * * `'freebsd'`
1058
+ * * `'linux'`
1059
+ * * `'openbsd'`
1060
+ * * `'sunos'`
1061
+ * * `'win32'`
1062
+ *
1063
+ * ```js
1064
+ * import { platform } from 'process';
1065
+ *
1066
+ * console.log(`This platform is ${platform}`);
1067
+ * ```
1068
+ *
1069
+ * The value `'android'` may also be returned if the Node.js is built on the
1070
+ * 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).
1071
+ * @since v0.1.16
1072
+ */
1073
+ readonly platform: Platform;
1074
+ /**
1075
+ * The `process.mainModule` property provides an alternative way of retrieving `require.main`. The difference is that if the main module changes at
1076
+ * runtime, `require.main` may still refer to the original main module in
1077
+ * modules that were required before the change occurred. Generally, it's
1078
+ * safe to assume that the two refer to the same module.
1079
+ *
1080
+ * As with `require.main`, `process.mainModule` will be `undefined` if there
1081
+ * is no entry script.
1082
+ * @since v0.1.17
1083
+ * @deprecated Since v14.0.0 - Use `main` instead.
1084
+ */
1085
+ mainModule?: Module | undefined;
1086
+ memoryUsage: MemoryUsageFn;
1087
+ /**
1088
+ * The `process.cpuUsage()` method returns the user and system CPU time usage of
1089
+ * the current process, in an object with properties `user` and `system`, whose
1090
+ * values are microsecond values (millionth of a second). These values measure time
1091
+ * spent in user and system code respectively, and may end up being greater than
1092
+ * actual elapsed time if multiple CPU cores are performing work for this process.
1093
+ *
1094
+ * The result of a previous call to `process.cpuUsage()` can be passed as the
1095
+ * argument to the function, to get a diff reading.
1096
+ *
1097
+ * ```js
1098
+ * import { cpuUsage } from 'process';
1099
+ *
1100
+ * const startUsage = cpuUsage();
1101
+ * // { user: 38579, system: 6986 }
1102
+ *
1103
+ * // spin the CPU for 500 milliseconds
1104
+ * const now = Date.now();
1105
+ * while (Date.now() - now < 500);
1106
+ *
1107
+ * console.log(cpuUsage(startUsage));
1108
+ * // { user: 514883, system: 11226 }
1109
+ * ```
1110
+ * @since v6.1.0
1111
+ * @param previousValue A previous return value from calling `process.cpuUsage()`
1112
+ */
1113
+ cpuUsage(previousValue?: CpuUsage): CpuUsage;
1114
+ /**
1115
+ * `process.nextTick()` adds `callback` to the "next tick queue". This queue is
1116
+ * fully drained after the current operation on the JavaScript stack runs to
1117
+ * completion and before the event loop is allowed to continue. It's possible to
1118
+ * create an infinite loop if one were to recursively call `process.nextTick()`.
1119
+ * See the [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#process-nexttick) guide for more background.
1120
+ *
1121
+ * ```js
1122
+ * import { nextTick } from 'process';
1123
+ *
1124
+ * console.log('start');
1125
+ * nextTick(() => {
1126
+ * console.log('nextTick callback');
1127
+ * });
1128
+ * console.log('scheduled');
1129
+ * // Output:
1130
+ * // start
1131
+ * // scheduled
1132
+ * // nextTick callback
1133
+ * ```
1134
+ *
1135
+ * This is important when developing APIs in order to give users the opportunity
1136
+ * to assign event handlers _after_ an object has been constructed but before any
1137
+ * I/O has occurred:
1138
+ *
1139
+ * ```js
1140
+ * import { nextTick } from 'process';
1141
+ *
1142
+ * function MyThing(options) {
1143
+ * this.setupOptions(options);
1144
+ *
1145
+ * nextTick(() => {
1146
+ * this.startDoingStuff();
1147
+ * });
1148
+ * }
1149
+ *
1150
+ * const thing = new MyThing();
1151
+ * thing.getReadyForStuff();
1152
+ *
1153
+ * // thing.startDoingStuff() gets called now, not before.
1154
+ * ```
1155
+ *
1156
+ * It is very important for APIs to be either 100% synchronous or 100%
1157
+ * asynchronous. Consider this example:
1158
+ *
1159
+ * ```js
1160
+ * // WARNING! DO NOT USE! BAD UNSAFE HAZARD!
1161
+ * function maybeSync(arg, cb) {
1162
+ * if (arg) {
1163
+ * cb();
1164
+ * return;
1165
+ * }
1166
+ *
1167
+ * fs.stat('file', cb);
1168
+ * }
1169
+ * ```
1170
+ *
1171
+ * This API is hazardous because in the following case:
1172
+ *
1173
+ * ```js
1174
+ * const maybeTrue = Math.random() > 0.5;
1175
+ *
1176
+ * maybeSync(maybeTrue, () => {
1177
+ * foo();
1178
+ * });
1179
+ *
1180
+ * bar();
1181
+ * ```
1182
+ *
1183
+ * It is not clear whether `foo()` or `bar()` will be called first.
1184
+ *
1185
+ * The following approach is much better:
1186
+ *
1187
+ * ```js
1188
+ * import { nextTick } from 'process';
1189
+ *
1190
+ * function definitelyAsync(arg, cb) {
1191
+ * if (arg) {
1192
+ * nextTick(cb);
1193
+ * return;
1194
+ * }
1195
+ *
1196
+ * fs.stat('file', cb);
1197
+ * }
1198
+ * ```
1199
+ * @since v0.1.26
1200
+ * @param args Additional arguments to pass when invoking the `callback`
1201
+ */
1202
+ nextTick(callback: Function, ...args: any[]): void;
1203
+ /**
1204
+ * The `process.release` property returns an `Object` containing metadata related
1205
+ * to the current release, including URLs for the source tarball and headers-only
1206
+ * tarball.
1207
+ *
1208
+ * `process.release` contains the following properties:
1209
+ *
1210
+ * ```js
1211
+ * {
1212
+ * name: 'node',
1213
+ * lts: 'Erbium',
1214
+ * sourceUrl: 'https://nodejs.org/download/release/v12.18.1/node-v12.18.1.tar.gz',
1215
+ * headersUrl: 'https://nodejs.org/download/release/v12.18.1/node-v12.18.1-headers.tar.gz',
1216
+ * libUrl: 'https://nodejs.org/download/release/v12.18.1/win-x64/node.lib'
1217
+ * }
1218
+ * ```
1219
+ *
1220
+ * In custom builds from non-release versions of the source tree, only the`name` property may be present. The additional properties should not be
1221
+ * relied upon to exist.
1222
+ * @since v3.0.0
1223
+ */
1224
+ readonly release: ProcessRelease;
1225
+ features: {
1226
+ inspector: boolean;
1227
+ debug: boolean;
1228
+ uv: boolean;
1229
+ ipv6: boolean;
1230
+ tls_alpn: boolean;
1231
+ tls_sni: boolean;
1232
+ tls_ocsp: boolean;
1233
+ tls: boolean;
1234
+ };
1235
+ /**
1236
+ * `process.umask()` returns the Node.js process's file mode creation mask. Child
1237
+ * processes inherit the mask from the parent process.
1238
+ * @since v0.1.19
1239
+ * @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 *
1240
+ * security vulnerability. There is no safe, cross-platform alternative API.
1241
+ */
1242
+ umask(): number;
1243
+ /**
1244
+ * Can only be set if not in worker thread.
1245
+ */
1246
+ umask(mask: string | number): number;
1247
+ /**
1248
+ * The `process.uptime()` method returns the number of seconds the current Node.js
1249
+ * process has been running.
1250
+ *
1251
+ * The return value includes fractions of a second. Use `Math.floor()` to get whole
1252
+ * seconds.
1253
+ * @since v0.5.0
1254
+ */
1255
+ uptime(): number;
1256
+ hrtime: HRTime;
1257
+ /**
1258
+ * If Node.js is spawned with an IPC channel, the `process.send()` method can be
1259
+ * used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object.
1260
+ *
1261
+ * If Node.js was not spawned with an IPC channel, `process.send` will be`undefined`.
1262
+ *
1263
+ * The message goes through serialization and parsing. The resulting message might
1264
+ * not be the same as what is originally sent.
1265
+ * @since v0.5.9
1266
+ * @param options used to parameterize the sending of certain types of handles.`options` supports the following properties:
1267
+ */
1268
+ send?(
1269
+ message: any,
1270
+ sendHandle?: any,
1271
+ options?: {
1272
+ swallowErrors?: boolean | undefined;
1273
+ },
1274
+ callback?: (error: Error | null) => void
1275
+ ): boolean;
1276
+ /**
1277
+ * 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
1278
+ * IPC channel to the parent process, allowing the child process to exit gracefully
1279
+ * once there are no other connections keeping it alive.
1280
+ *
1281
+ * The effect of calling `process.disconnect()` is the same as calling `ChildProcess.disconnect()` from the parent process.
1282
+ *
1283
+ * If the Node.js process was not spawned with an IPC channel,`process.disconnect()` will be `undefined`.
1284
+ * @since v0.7.2
1285
+ */
1286
+ disconnect(): void;
1287
+ /**
1288
+ * 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
1289
+ * channel is connected and will return `false` after`process.disconnect()` is called.
1290
+ *
1291
+ * Once `process.connected` is `false`, it is no longer possible to send messages
1292
+ * over the IPC channel using `process.send()`.
1293
+ * @since v0.7.2
1294
+ */
1295
+ connected: boolean;
1296
+ /**
1297
+ * The `process.allowedNodeEnvironmentFlags` property is a special,
1298
+ * read-only `Set` of flags allowable within the `NODE_OPTIONS` environment variable.
1299
+ *
1300
+ * `process.allowedNodeEnvironmentFlags` extends `Set`, but overrides`Set.prototype.has` to recognize several different possible flag
1301
+ * representations. `process.allowedNodeEnvironmentFlags.has()` will
1302
+ * return `true` in the following cases:
1303
+ *
1304
+ * * Flags may omit leading single (`-`) or double (`--`) dashes; e.g.,`inspect-brk` for `--inspect-brk`, or `r` for `-r`.
1305
+ * * Flags passed through to V8 (as listed in `--v8-options`) may replace
1306
+ * one or more _non-leading_ dashes for an underscore, or vice-versa;
1307
+ * e.g., `--perf_basic_prof`, `--perf-basic-prof`, `--perf_basic-prof`,
1308
+ * etc.
1309
+ * * Flags may contain one or more equals (`=`) characters; all
1310
+ * characters after and including the first equals will be ignored;
1311
+ * e.g., `--stack-trace-limit=100`.
1312
+ * * Flags _must_ be allowable within `NODE_OPTIONS`.
1313
+ *
1314
+ * When iterating over `process.allowedNodeEnvironmentFlags`, flags will
1315
+ * appear only _once_; each will begin with one or more dashes. Flags
1316
+ * passed through to V8 will contain underscores instead of non-leading
1317
+ * dashes:
1318
+ *
1319
+ * ```js
1320
+ * import { allowedNodeEnvironmentFlags } from 'process';
1321
+ *
1322
+ * allowedNodeEnvironmentFlags.forEach((flag) => {
1323
+ * // -r
1324
+ * // --inspect-brk
1325
+ * // --abort_on_uncaught_exception
1326
+ * // ...
1327
+ * });
1328
+ * ```
1329
+ *
1330
+ * The methods `add()`, `clear()`, and `delete()` of`process.allowedNodeEnvironmentFlags` do nothing, and will fail
1331
+ * silently.
1332
+ *
1333
+ * If Node.js was compiled _without_ `NODE_OPTIONS` support (shown in {@link config}), `process.allowedNodeEnvironmentFlags` will
1334
+ * contain what _would have_ been allowable.
1335
+ * @since v10.10.0
1336
+ */
1337
+ allowedNodeEnvironmentFlags: ReadonlySet<string>;
1338
+ /**
1339
+ * `process.report` is an object whose methods are used to generate diagnostic
1340
+ * reports for the current process. Additional documentation is available in the `report documentation`.
1341
+ * @since v11.8.0
1342
+ */
1343
+ report?: ProcessReport | undefined;
1344
+ /**
1345
+ * ```js
1346
+ * import { resourceUsage } from 'process';
1347
+ *
1348
+ * console.log(resourceUsage());
1349
+ * /*
1350
+ * Will output:
1351
+ * {
1352
+ * userCPUTime: 82872,
1353
+ * systemCPUTime: 4143,
1354
+ * maxRSS: 33164,
1355
+ * sharedMemorySize: 0,
1356
+ * unsharedDataSize: 0,
1357
+ * unsharedStackSize: 0,
1358
+ * minorPageFault: 2469,
1359
+ * majorPageFault: 0,
1360
+ * swappedOut: 0,
1361
+ * fsRead: 0,
1362
+ * fsWrite: 8,
1363
+ * ipcSent: 0,
1364
+ * ipcReceived: 0,
1365
+ * signalsCount: 0,
1366
+ * voluntaryContextSwitches: 79,
1367
+ * involuntaryContextSwitches: 1
1368
+ * }
1369
+ *
1370
+ * ```
1371
+ * @since v12.6.0
1372
+ * @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].
1373
+ */
1374
+ resourceUsage(): ResourceUsage;
1375
+ /**
1376
+ * The `process.traceDeprecation` property indicates whether the`--trace-deprecation` flag is set on the current Node.js process. See the
1377
+ * documentation for the `'warning' event` and the `emitWarning() method` for more information about this
1378
+ * flag's behavior.
1379
+ * @since v0.8.0
1380
+ */
1381
+ traceDeprecation: boolean;
1382
+ /* EventEmitter */
1383
+ addListener(event: 'beforeExit', listener: BeforeExitListener): this;
1384
+ addListener(event: 'disconnect', listener: DisconnectListener): this;
1385
+ addListener(event: 'exit', listener: ExitListener): this;
1386
+ addListener(event: 'rejectionHandled', listener: RejectionHandledListener): this;
1387
+ addListener(event: 'uncaughtException', listener: UncaughtExceptionListener): this;
1388
+ addListener(event: 'uncaughtExceptionMonitor', listener: UncaughtExceptionListener): this;
1389
+ addListener(event: 'unhandledRejection', listener: UnhandledRejectionListener): this;
1390
+ addListener(event: 'warning', listener: WarningListener): this;
1391
+ addListener(event: 'message', listener: MessageListener): this;
1392
+ addListener(event: Signals, listener: SignalsListener): this;
1393
+ addListener(event: 'multipleResolves', listener: MultipleResolveListener): this;
1394
+ addListener(event: 'worker', listener: WorkerListener): this;
1395
+ emit(event: 'beforeExit', code: number): boolean;
1396
+ emit(event: 'disconnect'): boolean;
1397
+ emit(event: 'exit', code: number): boolean;
1398
+ emit(event: 'rejectionHandled', promise: Promise<unknown>): boolean;
1399
+ emit(event: 'uncaughtException', error: Error): boolean;
1400
+ emit(event: 'uncaughtExceptionMonitor', error: Error): boolean;
1401
+ emit(event: 'unhandledRejection', reason: unknown, promise: Promise<unknown>): boolean;
1402
+ emit(event: 'warning', warning: Error): boolean;
1403
+ emit(event: 'message', message: unknown, sendHandle: unknown): this;
1404
+ emit(event: Signals, signal: Signals): boolean;
1405
+ emit(event: 'multipleResolves', type: MultipleResolveType, promise: Promise<unknown>, value: unknown): this;
1406
+ emit(event: 'worker', listener: WorkerListener): this;
1407
+ on(event: 'beforeExit', listener: BeforeExitListener): this;
1408
+ on(event: 'disconnect', listener: DisconnectListener): this;
1409
+ on(event: 'exit', listener: ExitListener): this;
1410
+ on(event: 'rejectionHandled', listener: RejectionHandledListener): this;
1411
+ on(event: 'uncaughtException', listener: UncaughtExceptionListener): this;
1412
+ on(event: 'uncaughtExceptionMonitor', listener: UncaughtExceptionListener): this;
1413
+ on(event: 'unhandledRejection', listener: UnhandledRejectionListener): this;
1414
+ on(event: 'warning', listener: WarningListener): this;
1415
+ on(event: 'message', listener: MessageListener): this;
1416
+ on(event: Signals, listener: SignalsListener): this;
1417
+ on(event: 'multipleResolves', listener: MultipleResolveListener): this;
1418
+ on(event: 'worker', listener: WorkerListener): this;
1419
+ on(event: string | symbol, listener: (...args: any[]) => void): this;
1420
+ once(event: 'beforeExit', listener: BeforeExitListener): this;
1421
+ once(event: 'disconnect', listener: DisconnectListener): this;
1422
+ once(event: 'exit', listener: ExitListener): this;
1423
+ once(event: 'rejectionHandled', listener: RejectionHandledListener): this;
1424
+ once(event: 'uncaughtException', listener: UncaughtExceptionListener): this;
1425
+ once(event: 'uncaughtExceptionMonitor', listener: UncaughtExceptionListener): this;
1426
+ once(event: 'unhandledRejection', listener: UnhandledRejectionListener): this;
1427
+ once(event: 'warning', listener: WarningListener): this;
1428
+ once(event: 'message', listener: MessageListener): this;
1429
+ once(event: Signals, listener: SignalsListener): this;
1430
+ once(event: 'multipleResolves', listener: MultipleResolveListener): this;
1431
+ once(event: 'worker', listener: WorkerListener): this;
1432
+ once(event: string | symbol, listener: (...args: any[]) => void): this;
1433
+ prependListener(event: 'beforeExit', listener: BeforeExitListener): this;
1434
+ prependListener(event: 'disconnect', listener: DisconnectListener): this;
1435
+ prependListener(event: 'exit', listener: ExitListener): this;
1436
+ prependListener(event: 'rejectionHandled', listener: RejectionHandledListener): this;
1437
+ prependListener(event: 'uncaughtException', listener: UncaughtExceptionListener): this;
1438
+ prependListener(event: 'uncaughtExceptionMonitor', listener: UncaughtExceptionListener): this;
1439
+ prependListener(event: 'unhandledRejection', listener: UnhandledRejectionListener): this;
1440
+ prependListener(event: 'warning', listener: WarningListener): this;
1441
+ prependListener(event: 'message', listener: MessageListener): this;
1442
+ prependListener(event: Signals, listener: SignalsListener): this;
1443
+ prependListener(event: 'multipleResolves', listener: MultipleResolveListener): this;
1444
+ prependListener(event: 'worker', listener: WorkerListener): this;
1445
+ prependOnceListener(event: 'beforeExit', listener: BeforeExitListener): this;
1446
+ prependOnceListener(event: 'disconnect', listener: DisconnectListener): this;
1447
+ prependOnceListener(event: 'exit', listener: ExitListener): this;
1448
+ prependOnceListener(event: 'rejectionHandled', listener: RejectionHandledListener): this;
1449
+ prependOnceListener(event: 'uncaughtException', listener: UncaughtExceptionListener): this;
1450
+ prependOnceListener(event: 'uncaughtExceptionMonitor', listener: UncaughtExceptionListener): this;
1451
+ prependOnceListener(event: 'unhandledRejection', listener: UnhandledRejectionListener): this;
1452
+ prependOnceListener(event: 'warning', listener: WarningListener): this;
1453
+ prependOnceListener(event: 'message', listener: MessageListener): this;
1454
+ prependOnceListener(event: Signals, listener: SignalsListener): this;
1455
+ prependOnceListener(event: 'multipleResolves', listener: MultipleResolveListener): this;
1456
+ prependOnceListener(event: 'worker', listener: WorkerListener): this;
1457
+ listeners(event: 'beforeExit'): BeforeExitListener[];
1458
+ listeners(event: 'disconnect'): DisconnectListener[];
1459
+ listeners(event: 'exit'): ExitListener[];
1460
+ listeners(event: 'rejectionHandled'): RejectionHandledListener[];
1461
+ listeners(event: 'uncaughtException'): UncaughtExceptionListener[];
1462
+ listeners(event: 'uncaughtExceptionMonitor'): UncaughtExceptionListener[];
1463
+ listeners(event: 'unhandledRejection'): UnhandledRejectionListener[];
1464
+ listeners(event: 'warning'): WarningListener[];
1465
+ listeners(event: 'message'): MessageListener[];
1466
+ listeners(event: Signals): SignalsListener[];
1467
+ listeners(event: 'multipleResolves'): MultipleResolveListener[];
1468
+ listeners(event: 'worker'): WorkerListener[];
1469
+ }
1470
+ }
1471
+ }
1472
+ export = process;
1473
+ }
1474
+ declare module 'node:process' {
1475
+ import process = require('process');
1476
+ export = process;
1477
+ }