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