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,808 +0,0 @@
1
- /**
2
- * The `node:v8` module exposes APIs that are specific to the version of [V8](https://developers.google.com/v8/) built into the Node.js binary. It can be accessed using:
3
- *
4
- * ```js
5
- * import v8 from 'node:v8';
6
- * ```
7
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/v8.js)
8
- */
9
- declare module "v8" {
10
- import { Readable } from "node:stream";
11
- interface HeapSpaceInfo {
12
- space_name: string;
13
- space_size: number;
14
- space_used_size: number;
15
- space_available_size: number;
16
- physical_space_size: number;
17
- }
18
- // ** Signifies if the --zap_code_space option is enabled or not. 1 == enabled, 0 == disabled. */
19
- type DoesZapCodeSpaceFlag = 0 | 1;
20
- interface HeapInfo {
21
- total_heap_size: number;
22
- total_heap_size_executable: number;
23
- total_physical_size: number;
24
- total_available_size: number;
25
- used_heap_size: number;
26
- heap_size_limit: number;
27
- malloced_memory: number;
28
- peak_malloced_memory: number;
29
- does_zap_garbage: DoesZapCodeSpaceFlag;
30
- number_of_native_contexts: number;
31
- number_of_detached_contexts: number;
32
- total_global_handles_size: number;
33
- used_global_handles_size: number;
34
- external_memory: number;
35
- }
36
- interface HeapCodeStatistics {
37
- code_and_metadata_size: number;
38
- bytecode_and_metadata_size: number;
39
- external_script_source_size: number;
40
- }
41
- interface HeapSnapshotOptions {
42
- /**
43
- * If true, expose internals in the heap snapshot.
44
- * @default false
45
- */
46
- exposeInternals?: boolean;
47
- /**
48
- * If true, expose numeric values in artificial fields.
49
- * @default false
50
- */
51
- exposeNumericValues?: boolean;
52
- }
53
- /**
54
- * Returns an integer representing a version tag derived from the V8 version,
55
- * command-line flags, and detected CPU features. This is useful for determining
56
- * whether a `vm.Script` `cachedData` buffer is compatible with this instance
57
- * of V8.
58
- *
59
- * ```js
60
- * console.log(v8.cachedDataVersionTag()); // 3947234607
61
- * // The value returned by v8.cachedDataVersionTag() is derived from the V8
62
- * // version, command-line flags, and detected CPU features. Test that the value
63
- * // does indeed update when flags are toggled.
64
- * v8.setFlagsFromString('--allow_natives_syntax');
65
- * console.log(v8.cachedDataVersionTag()); // 183726201
66
- * ```
67
- * @since v8.0.0
68
- */
69
- function cachedDataVersionTag(): number;
70
- /**
71
- * Returns an object with the following properties:
72
- *
73
- * `does_zap_garbage` is a 0/1 boolean, which signifies whether the `--zap_code_space` option is enabled or not. This makes V8 overwrite heap
74
- * garbage with a bit pattern. The RSS footprint (resident set size) gets bigger
75
- * because it continuously touches all heap pages and that makes them less likely
76
- * to get swapped out by the operating system.
77
- *
78
- * `number_of_native_contexts` The value of native\_context is the number of the
79
- * top-level contexts currently active. Increase of this number over time indicates
80
- * a memory leak.
81
- *
82
- * `number_of_detached_contexts` The value of detached\_context is the number
83
- * of contexts that were detached and not yet garbage collected. This number
84
- * being non-zero indicates a potential memory leak.
85
- *
86
- * `total_global_handles_size` The value of total\_global\_handles\_size is the
87
- * total memory size of V8 global handles.
88
- *
89
- * `used_global_handles_size` The value of used\_global\_handles\_size is the
90
- * used memory size of V8 global handles.
91
- *
92
- * `external_memory` The value of external\_memory is the memory size of array
93
- * buffers and external strings.
94
- *
95
- * ```js
96
- * {
97
- * total_heap_size: 7326976,
98
- * total_heap_size_executable: 4194304,
99
- * total_physical_size: 7326976,
100
- * total_available_size: 1152656,
101
- * used_heap_size: 3476208,
102
- * heap_size_limit: 1535115264,
103
- * malloced_memory: 16384,
104
- * peak_malloced_memory: 1127496,
105
- * does_zap_garbage: 0,
106
- * number_of_native_contexts: 1,
107
- * number_of_detached_contexts: 0,
108
- * total_global_handles_size: 8192,
109
- * used_global_handles_size: 3296,
110
- * external_memory: 318824
111
- * }
112
- * ```
113
- * @since v1.0.0
114
- */
115
- function getHeapStatistics(): HeapInfo;
116
- /**
117
- * Returns statistics about the V8 heap spaces, i.e. the segments which make up
118
- * the V8 heap. Neither the ordering of heap spaces, nor the availability of a
119
- * heap space can be guaranteed as the statistics are provided via the
120
- * V8 [`GetHeapSpaceStatistics`](https://v8docs.nodesource.com/node-13.2/d5/dda/classv8_1_1_isolate.html#ac673576f24fdc7a33378f8f57e1d13a4) function and may change from one V8 version to the
121
- * next.
122
- *
123
- * The value returned is an array of objects containing the following properties:
124
- *
125
- * ```json
126
- * [
127
- * {
128
- * "space_name": "new_space",
129
- * "space_size": 2063872,
130
- * "space_used_size": 951112,
131
- * "space_available_size": 80824,
132
- * "physical_space_size": 2063872
133
- * },
134
- * {
135
- * "space_name": "old_space",
136
- * "space_size": 3090560,
137
- * "space_used_size": 2493792,
138
- * "space_available_size": 0,
139
- * "physical_space_size": 3090560
140
- * },
141
- * {
142
- * "space_name": "code_space",
143
- * "space_size": 1260160,
144
- * "space_used_size": 644256,
145
- * "space_available_size": 960,
146
- * "physical_space_size": 1260160
147
- * },
148
- * {
149
- * "space_name": "map_space",
150
- * "space_size": 1094160,
151
- * "space_used_size": 201608,
152
- * "space_available_size": 0,
153
- * "physical_space_size": 1094160
154
- * },
155
- * {
156
- * "space_name": "large_object_space",
157
- * "space_size": 0,
158
- * "space_used_size": 0,
159
- * "space_available_size": 1490980608,
160
- * "physical_space_size": 0
161
- * }
162
- * ]
163
- * ```
164
- * @since v6.0.0
165
- */
166
- function getHeapSpaceStatistics(): HeapSpaceInfo[];
167
- /**
168
- * The `v8.setFlagsFromString()` method can be used to programmatically set
169
- * V8 command-line flags. This method should be used with care. Changing settings
170
- * after the VM has started may result in unpredictable behavior, including
171
- * crashes and data loss; or it may simply do nothing.
172
- *
173
- * The V8 options available for a version of Node.js may be determined by running `node --v8-options`.
174
- *
175
- * Usage:
176
- *
177
- * ```js
178
- * // Print GC events to stdout for one minute.
179
- * import v8 from 'node:v8';
180
- * v8.setFlagsFromString('--trace_gc');
181
- * setTimeout(() => { v8.setFlagsFromString('--notrace_gc'); }, 60e3);
182
- * ```
183
- * @since v1.0.0
184
- */
185
- function setFlagsFromString(flags: string): void;
186
- /**
187
- * This is similar to the [`queryObjects()` console API](https://developer.chrome.com/docs/devtools/console/utilities#queryObjects-function)
188
- * provided by the Chromium DevTools console. It can be used to search for objects that have the matching constructor on its prototype chain
189
- * in the heap after a full garbage collection, which can be useful for memory leak regression tests. To avoid surprising results, users should
190
- * avoid using this API on constructors whose implementation they don't control, or on constructors that can be invoked by other parties in the
191
- * application.
192
- *
193
- * To avoid accidental leaks, this API does not return raw references to the objects found. By default, it returns the count of the objects
194
- * found. If `options.format` is `'summary'`, it returns an array containing brief string representations for each object. The visibility provided
195
- * in this API is similar to what the heap snapshot provides, while users can save the cost of serialization and parsing and directly filter the
196
- * target objects during the search.
197
- *
198
- * Only objects created in the current execution context are included in the results.
199
- *
200
- * ```js
201
- * import { queryObjects } from 'node:v8';
202
- * class A { foo = 'bar'; }
203
- * console.log(queryObjects(A)); // 0
204
- * const a = new A();
205
- * console.log(queryObjects(A)); // 1
206
- * // [ "A { foo: 'bar' }" ]
207
- * console.log(queryObjects(A, { format: 'summary' }));
208
- *
209
- * class B extends A { bar = 'qux'; }
210
- * const b = new B();
211
- * console.log(queryObjects(B)); // 1
212
- * // [ "B { foo: 'bar', bar: 'qux' }" ]
213
- * console.log(queryObjects(B, { format: 'summary' }));
214
- *
215
- * // Note that, when there are child classes inheriting from a constructor,
216
- * // the constructor also shows up in the prototype chain of the child
217
- * // classes's prototoype, so the child classes's prototoype would also be
218
- * // included in the result.
219
- * console.log(queryObjects(A)); // 3
220
- * // [ "B { foo: 'bar', bar: 'qux' }", 'A {}', "A { foo: 'bar' }" ]
221
- * console.log(queryObjects(A, { format: 'summary' }));
222
- * ```
223
- * @param ctor The constructor that can be used to search on the prototype chain in order to filter target objects in the heap.
224
- * @since v20.13.0
225
- * @experimental
226
- */
227
- function queryObjects(ctor: Function): number | string[];
228
- function queryObjects(ctor: Function, options: { format: "count" }): number;
229
- function queryObjects(ctor: Function, options: { format: "summary" }): string[];
230
- /**
231
- * Generates a snapshot of the current V8 heap and returns a Readable
232
- * Stream that may be used to read the JSON serialized representation.
233
- * This JSON stream format is intended to be used with tools such as
234
- * Chrome DevTools. The JSON schema is undocumented and specific to the
235
- * V8 engine. Therefore, the schema may change from one version of V8 to the next.
236
- *
237
- * Creating a heap snapshot requires memory about twice the size of the heap at
238
- * the time the snapshot is created. This results in the risk of OOM killers
239
- * terminating the process.
240
- *
241
- * Generating a snapshot is a synchronous operation which blocks the event loop
242
- * for a duration depending on the heap size.
243
- *
244
- * ```js
245
- * // Print heap snapshot to the console
246
- * import v8 from 'node:v8';
247
- * const stream = v8.getHeapSnapshot();
248
- * stream.pipe(process.stdout);
249
- * ```
250
- * @since v11.13.0
251
- * @return A Readable containing the V8 heap snapshot.
252
- */
253
- function getHeapSnapshot(options?: HeapSnapshotOptions): Readable;
254
- /**
255
- * Generates a snapshot of the current V8 heap and writes it to a JSON
256
- * file. This file is intended to be used with tools such as Chrome
257
- * DevTools. The JSON schema is undocumented and specific to the V8
258
- * engine, and may change from one version of V8 to the next.
259
- *
260
- * A heap snapshot is specific to a single V8 isolate. When using `worker threads`, a heap snapshot generated from the main thread will
261
- * not contain any information about the workers, and vice versa.
262
- *
263
- * Creating a heap snapshot requires memory about twice the size of the heap at
264
- * the time the snapshot is created. This results in the risk of OOM killers
265
- * terminating the process.
266
- *
267
- * Generating a snapshot is a synchronous operation which blocks the event loop
268
- * for a duration depending on the heap size.
269
- *
270
- * ```js
271
- * import { writeHeapSnapshot } from 'node:v8';
272
- * import {
273
- * Worker,
274
- * isMainThread,
275
- * parentPort,
276
- * } from 'node:worker_threads';
277
- *
278
- * if (isMainThread) {
279
- * const worker = new Worker(__filename);
280
- *
281
- * worker.once('message', (filename) => {
282
- * console.log(`worker heapdump: ${filename}`);
283
- * // Now get a heapdump for the main thread.
284
- * console.log(`main thread heapdump: ${writeHeapSnapshot()}`);
285
- * });
286
- *
287
- * // Tell the worker to create a heapdump.
288
- * worker.postMessage('heapdump');
289
- * } else {
290
- * parentPort.once('message', (message) => {
291
- * if (message === 'heapdump') {
292
- * // Generate a heapdump for the worker
293
- * // and return the filename to the parent.
294
- * parentPort.postMessage(writeHeapSnapshot());
295
- * }
296
- * });
297
- * }
298
- * ```
299
- * @since v11.13.0
300
- * @param filename The file path where the V8 heap snapshot is to be saved. If not specified, a file name with the pattern `'Heap-${yyyymmdd}-${hhmmss}-${pid}-${thread_id}.heapsnapshot'` will be
301
- * generated, where `{pid}` will be the PID of the Node.js process, `{thread_id}` will be `0` when `writeHeapSnapshot()` is called from the main Node.js thread or the id of a
302
- * worker thread.
303
- * @return The filename where the snapshot was saved.
304
- */
305
- function writeHeapSnapshot(filename?: string, options?: HeapSnapshotOptions): string;
306
- /**
307
- * Get statistics about code and its metadata in the heap, see
308
- * V8 [`GetHeapCodeAndMetadataStatistics`](https://v8docs.nodesource.com/node-13.2/d5/dda/classv8_1_1_isolate.html#a6079122af17612ef54ef3348ce170866) API. Returns an object with the
309
- * following properties:
310
- *
311
- * ```js
312
- * {
313
- * code_and_metadata_size: 212208,
314
- * bytecode_and_metadata_size: 161368,
315
- * external_script_source_size: 1410794,
316
- * cpu_profiler_metadata_size: 0,
317
- * }
318
- * ```
319
- * @since v12.8.0
320
- */
321
- function getHeapCodeStatistics(): HeapCodeStatistics;
322
- /**
323
- * @since v8.0.0
324
- */
325
- class Serializer {
326
- /**
327
- * Writes out a header, which includes the serialization format version.
328
- */
329
- writeHeader(): void;
330
- /**
331
- * Serializes a JavaScript value and adds the serialized representation to the
332
- * internal buffer.
333
- *
334
- * This throws an error if `value` cannot be serialized.
335
- */
336
- writeValue(val: any): boolean;
337
- /**
338
- * Returns the stored internal buffer. This serializer should not be used once
339
- * the buffer is released. Calling this method results in undefined behavior
340
- * if a previous write has failed.
341
- */
342
- releaseBuffer(): Buffer;
343
- /**
344
- * Marks an `ArrayBuffer` as having its contents transferred out of band.
345
- * Pass the corresponding `ArrayBuffer` in the deserializing context to `deserializer.transferArrayBuffer()`.
346
- * @param id A 32-bit unsigned integer.
347
- * @param arrayBuffer An `ArrayBuffer` instance.
348
- */
349
- transferArrayBuffer(id: number, arrayBuffer: ArrayBuffer): void;
350
- /**
351
- * Write a raw 32-bit unsigned integer.
352
- * For use inside of a custom `serializer._writeHostObject()`.
353
- */
354
- writeUint32(value: number): void;
355
- /**
356
- * Write a raw 64-bit unsigned integer, split into high and low 32-bit parts.
357
- * For use inside of a custom `serializer._writeHostObject()`.
358
- */
359
- writeUint64(hi: number, lo: number): void;
360
- /**
361
- * Write a JS `number` value.
362
- * For use inside of a custom `serializer._writeHostObject()`.
363
- */
364
- writeDouble(value: number): void;
365
- /**
366
- * Write raw bytes into the serializer's internal buffer. The deserializer
367
- * will require a way to compute the length of the buffer.
368
- * For use inside of a custom `serializer._writeHostObject()`.
369
- */
370
- writeRawBytes(buffer: NodeJS.TypedArray): void;
371
- }
372
- /**
373
- * A subclass of `Serializer` that serializes `TypedArray`(in particular `Buffer`) and `DataView` objects as host objects, and only
374
- * stores the part of their underlying `ArrayBuffer`s that they are referring to.
375
- * @since v8.0.0
376
- */
377
- class DefaultSerializer extends Serializer {}
378
- /**
379
- * @since v8.0.0
380
- */
381
- class Deserializer {
382
- constructor(data: NodeJS.TypedArray);
383
- /**
384
- * Reads and validates a header (including the format version).
385
- * May, for example, reject an invalid or unsupported wire format. In that case,
386
- * an `Error` is thrown.
387
- */
388
- readHeader(): boolean;
389
- /**
390
- * Deserializes a JavaScript value from the buffer and returns it.
391
- */
392
- readValue(): any;
393
- /**
394
- * Marks an `ArrayBuffer` as having its contents transferred out of band.
395
- * Pass the corresponding `ArrayBuffer` in the serializing context to `serializer.transferArrayBuffer()` (or return the `id` from `serializer._getSharedArrayBufferId()` in the case of
396
- * `SharedArrayBuffer`s).
397
- * @param id A 32-bit unsigned integer.
398
- * @param arrayBuffer An `ArrayBuffer` instance.
399
- */
400
- transferArrayBuffer(id: number, arrayBuffer: ArrayBuffer): void;
401
- /**
402
- * Reads the underlying wire format version. Likely mostly to be useful to
403
- * legacy code reading old wire format versions. May not be called before `.readHeader()`.
404
- */
405
- getWireFormatVersion(): number;
406
- /**
407
- * Read a raw 32-bit unsigned integer and return it.
408
- * For use inside of a custom `deserializer._readHostObject()`.
409
- */
410
- readUint32(): number;
411
- /**
412
- * Read a raw 64-bit unsigned integer and return it as an array `[hi, lo]` with two 32-bit unsigned integer entries.
413
- * For use inside of a custom `deserializer._readHostObject()`.
414
- */
415
- readUint64(): [number, number];
416
- /**
417
- * Read a JS `number` value.
418
- * For use inside of a custom `deserializer._readHostObject()`.
419
- */
420
- readDouble(): number;
421
- /**
422
- * Read raw bytes from the deserializer's internal buffer. The `length` parameter
423
- * must correspond to the length of the buffer that was passed to `serializer.writeRawBytes()`.
424
- * For use inside of a custom `deserializer._readHostObject()`.
425
- */
426
- readRawBytes(length: number): Buffer;
427
- }
428
- /**
429
- * A subclass of `Deserializer` corresponding to the format written by `DefaultSerializer`.
430
- * @since v8.0.0
431
- */
432
- class DefaultDeserializer extends Deserializer {}
433
- /**
434
- * Uses a `DefaultSerializer` to serialize `value` into a buffer.
435
- *
436
- * `ERR_BUFFER_TOO_LARGE` will be thrown when trying to
437
- * serialize a huge object which requires buffer
438
- * larger than `buffer.constants.MAX_LENGTH`.
439
- * @since v8.0.0
440
- */
441
- function serialize(value: any): Buffer;
442
- /**
443
- * Uses a `DefaultDeserializer` with default options to read a JS value
444
- * from a buffer.
445
- * @since v8.0.0
446
- * @param buffer A buffer returned by {@link serialize}.
447
- */
448
- function deserialize(buffer: NodeJS.ArrayBufferView): any;
449
- /**
450
- * The `v8.takeCoverage()` method allows the user to write the coverage started by `NODE_V8_COVERAGE` to disk on demand. This method can be invoked multiple
451
- * times during the lifetime of the process. Each time the execution counter will
452
- * be reset and a new coverage report will be written to the directory specified
453
- * by `NODE_V8_COVERAGE`.
454
- *
455
- * When the process is about to exit, one last coverage will still be written to
456
- * disk unless {@link stopCoverage} is invoked before the process exits.
457
- * @since v15.1.0, v14.18.0, v12.22.0
458
- */
459
- function takeCoverage(): void;
460
- /**
461
- * The `v8.stopCoverage()` method allows the user to stop the coverage collection
462
- * started by `NODE_V8_COVERAGE`, so that V8 can release the execution count
463
- * records and optimize code. This can be used in conjunction with {@link takeCoverage} if the user wants to collect the coverage on demand.
464
- * @since v15.1.0, v14.18.0, v12.22.0
465
- */
466
- function stopCoverage(): void;
467
- /**
468
- * The API is a no-op if `--heapsnapshot-near-heap-limit` is already set from the command line or the API is called more than once.
469
- * `limit` must be a positive integer. See [`--heapsnapshot-near-heap-limit`](https://nodejs.org/docs/latest-v22.x/api/cli.html#--heapsnapshot-near-heap-limitmax_count) for more information.
470
- * @experimental
471
- * @since v18.10.0, v16.18.0
472
- */
473
- function setHeapSnapshotNearHeapLimit(limit: number): void;
474
- /**
475
- * This API collects GC data in current thread.
476
- * @since v19.6.0, v18.15.0
477
- */
478
- class GCProfiler {
479
- /**
480
- * Start collecting GC data.
481
- * @since v19.6.0, v18.15.0
482
- */
483
- start(): void;
484
- /**
485
- * Stop collecting GC data and return an object. The content of object
486
- * is as follows.
487
- *
488
- * ```json
489
- * {
490
- * "version": 1,
491
- * "startTime": 1674059033862,
492
- * "statistics": [
493
- * {
494
- * "gcType": "Scavenge",
495
- * "beforeGC": {
496
- * "heapStatistics": {
497
- * "totalHeapSize": 5005312,
498
- * "totalHeapSizeExecutable": 524288,
499
- * "totalPhysicalSize": 5226496,
500
- * "totalAvailableSize": 4341325216,
501
- * "totalGlobalHandlesSize": 8192,
502
- * "usedGlobalHandlesSize": 2112,
503
- * "usedHeapSize": 4883840,
504
- * "heapSizeLimit": 4345298944,
505
- * "mallocedMemory": 254128,
506
- * "externalMemory": 225138,
507
- * "peakMallocedMemory": 181760
508
- * },
509
- * "heapSpaceStatistics": [
510
- * {
511
- * "spaceName": "read_only_space",
512
- * "spaceSize": 0,
513
- * "spaceUsedSize": 0,
514
- * "spaceAvailableSize": 0,
515
- * "physicalSpaceSize": 0
516
- * }
517
- * ]
518
- * },
519
- * "cost": 1574.14,
520
- * "afterGC": {
521
- * "heapStatistics": {
522
- * "totalHeapSize": 6053888,
523
- * "totalHeapSizeExecutable": 524288,
524
- * "totalPhysicalSize": 5500928,
525
- * "totalAvailableSize": 4341101384,
526
- * "totalGlobalHandlesSize": 8192,
527
- * "usedGlobalHandlesSize": 2112,
528
- * "usedHeapSize": 4059096,
529
- * "heapSizeLimit": 4345298944,
530
- * "mallocedMemory": 254128,
531
- * "externalMemory": 225138,
532
- * "peakMallocedMemory": 181760
533
- * },
534
- * "heapSpaceStatistics": [
535
- * {
536
- * "spaceName": "read_only_space",
537
- * "spaceSize": 0,
538
- * "spaceUsedSize": 0,
539
- * "spaceAvailableSize": 0,
540
- * "physicalSpaceSize": 0
541
- * }
542
- * ]
543
- * }
544
- * }
545
- * ],
546
- * "endTime": 1674059036865
547
- * }
548
- * ```
549
- *
550
- * Here's an example.
551
- *
552
- * ```js
553
- * import { GCProfiler } from 'node:v8';
554
- * const profiler = new GCProfiler();
555
- * profiler.start();
556
- * setTimeout(() => {
557
- * console.log(profiler.stop());
558
- * }, 1000);
559
- * ```
560
- * @since v19.6.0, v18.15.0
561
- */
562
- stop(): GCProfilerResult;
563
- }
564
- interface GCProfilerResult {
565
- version: number;
566
- startTime: number;
567
- endTime: number;
568
- statistics: Array<{
569
- gcType: string;
570
- cost: number;
571
- beforeGC: {
572
- heapStatistics: HeapStatistics;
573
- heapSpaceStatistics: HeapSpaceStatistics[];
574
- };
575
- afterGC: {
576
- heapStatistics: HeapStatistics;
577
- heapSpaceStatistics: HeapSpaceStatistics[];
578
- };
579
- }>;
580
- }
581
- interface HeapStatistics {
582
- totalHeapSize: number;
583
- totalHeapSizeExecutable: number;
584
- totalPhysicalSize: number;
585
- totalAvailableSize: number;
586
- totalGlobalHandlesSize: number;
587
- usedGlobalHandlesSize: number;
588
- usedHeapSize: number;
589
- heapSizeLimit: number;
590
- mallocedMemory: number;
591
- externalMemory: number;
592
- peakMallocedMemory: number;
593
- }
594
- interface HeapSpaceStatistics {
595
- spaceName: string;
596
- spaceSize: number;
597
- spaceUsedSize: number;
598
- spaceAvailableSize: number;
599
- physicalSpaceSize: number;
600
- }
601
- /**
602
- * Called when a promise is constructed. This does not mean that corresponding before/after events will occur, only that the possibility exists. This will
603
- * happen if a promise is created without ever getting a continuation.
604
- * @since v17.1.0, v16.14.0
605
- * @param promise The promise being created.
606
- * @param parent The promise continued from, if applicable.
607
- */
608
- interface Init {
609
- (promise: Promise<unknown>, parent: Promise<unknown>): void;
610
- }
611
- /**
612
- * Called before a promise continuation executes. This can be in the form of `then()`, `catch()`, or `finally()` handlers or an await resuming.
613
- *
614
- * The before callback will be called 0 to N times. The before callback will typically be called 0 times if no continuation was ever made for the promise.
615
- * The before callback may be called many times in the case where many continuations have been made from the same promise.
616
- * @since v17.1.0, v16.14.0
617
- */
618
- interface Before {
619
- (promise: Promise<unknown>): void;
620
- }
621
- /**
622
- * Called immediately after a promise continuation executes. This may be after a `then()`, `catch()`, or `finally()` handler or before an await after another await.
623
- * @since v17.1.0, v16.14.0
624
- */
625
- interface After {
626
- (promise: Promise<unknown>): void;
627
- }
628
- /**
629
- * Called when the promise receives a resolution or rejection value. This may occur synchronously in the case of {@link Promise.resolve()} or
630
- * {@link Promise.reject()}.
631
- * @since v17.1.0, v16.14.0
632
- */
633
- interface Settled {
634
- (promise: Promise<unknown>): void;
635
- }
636
- /**
637
- * Key events in the lifetime of a promise have been categorized into four areas: creation of a promise, before/after a continuation handler is called or
638
- * around an await, and when the promise resolves or rejects.
639
- *
640
- * Because promises are asynchronous resources whose lifecycle is tracked via the promise hooks mechanism, the `init()`, `before()`, `after()`, and
641
- * `settled()` callbacks must not be async functions as they create more promises which would produce an infinite loop.
642
- * @since v17.1.0, v16.14.0
643
- */
644
- interface HookCallbacks {
645
- init?: Init;
646
- before?: Before;
647
- after?: After;
648
- settled?: Settled;
649
- }
650
- interface PromiseHooks {
651
- /**
652
- * The `init` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop.
653
- * @since v17.1.0, v16.14.0
654
- * @param init The {@link Init | `init` callback} to call when a promise is created.
655
- * @return Call to stop the hook.
656
- */
657
- onInit: (init: Init) => Function;
658
- /**
659
- * The `settled` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop.
660
- * @since v17.1.0, v16.14.0
661
- * @param settled The {@link Settled | `settled` callback} to call when a promise is created.
662
- * @return Call to stop the hook.
663
- */
664
- onSettled: (settled: Settled) => Function;
665
- /**
666
- * The `before` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop.
667
- * @since v17.1.0, v16.14.0
668
- * @param before The {@link Before | `before` callback} to call before a promise continuation executes.
669
- * @return Call to stop the hook.
670
- */
671
- onBefore: (before: Before) => Function;
672
- /**
673
- * The `after` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop.
674
- * @since v17.1.0, v16.14.0
675
- * @param after The {@link After | `after` callback} to call after a promise continuation executes.
676
- * @return Call to stop the hook.
677
- */
678
- onAfter: (after: After) => Function;
679
- /**
680
- * Registers functions to be called for different lifetime events of each promise.
681
- * The callbacks `init()`/`before()`/`after()`/`settled()` are called for the respective events during a promise's lifetime.
682
- * All callbacks are optional. For example, if only promise creation needs to be tracked, then only the init callback needs to be passed.
683
- * The hook callbacks must be plain functions. Providing async functions will throw as it would produce an infinite microtask loop.
684
- * @since v17.1.0, v16.14.0
685
- * @param callbacks The {@link HookCallbacks | Hook Callbacks} to register
686
- * @return Used for disabling hooks
687
- */
688
- createHook: (callbacks: HookCallbacks) => Function;
689
- }
690
- /**
691
- * The `promiseHooks` interface can be used to track promise lifecycle events.
692
- * @since v17.1.0, v16.14.0
693
- */
694
- const promiseHooks: PromiseHooks;
695
- type StartupSnapshotCallbackFn = (args: any) => any;
696
- interface StartupSnapshot {
697
- /**
698
- * Add a callback that will be called when the Node.js instance is about to get serialized into a snapshot and exit.
699
- * This can be used to release resources that should not or cannot be serialized or to convert user data into a form more suitable for serialization.
700
- * @since v18.6.0, v16.17.0
701
- */
702
- addSerializeCallback(callback: StartupSnapshotCallbackFn, data?: any): void;
703
- /**
704
- * Add a callback that will be called when the Node.js instance is deserialized from a snapshot.
705
- * The `callback` and the `data` (if provided) will be serialized into the snapshot, they can be used to re-initialize the state of the application or
706
- * to re-acquire resources that the application needs when the application is restarted from the snapshot.
707
- * @since v18.6.0, v16.17.0
708
- */
709
- addDeserializeCallback(callback: StartupSnapshotCallbackFn, data?: any): void;
710
- /**
711
- * This sets the entry point of the Node.js application when it is deserialized from a snapshot. This can be called only once in the snapshot building script.
712
- * If called, the deserialized application no longer needs an additional entry point script to start up and will simply invoke the callback along with the deserialized
713
- * data (if provided), otherwise an entry point script still needs to be provided to the deserialized application.
714
- * @since v18.6.0, v16.17.0
715
- */
716
- setDeserializeMainFunction(callback: StartupSnapshotCallbackFn, data?: any): void;
717
- /**
718
- * Returns true if the Node.js instance is run to build a snapshot.
719
- * @since v18.6.0, v16.17.0
720
- */
721
- isBuildingSnapshot(): boolean;
722
- }
723
- /**
724
- * The `v8.startupSnapshot` interface can be used to add serialization and deserialization hooks for custom startup snapshots.
725
- *
726
- * ```bash
727
- * $ node --snapshot-blob snapshot.blob --build-snapshot entry.js
728
- * # This launches a process with the snapshot
729
- * $ node --snapshot-blob snapshot.blob
730
- * ```
731
- *
732
- * In the example above, `entry.js` can use methods from the `v8.startupSnapshot` interface to specify how to save information for custom objects
733
- * in the snapshot during serialization and how the information can be used to synchronize these objects during deserialization of the snapshot.
734
- * For example, if the `entry.js` contains the following script:
735
- *
736
- * ```js
737
- * 'use strict';
738
- *
739
- * import fs from 'node:fs';
740
- * import zlib from 'node:zlib';
741
- * import path from 'node:path';
742
- * import assert from 'node:assert';
743
- *
744
- * import v8 from 'node:v8';
745
- *
746
- * class BookShelf {
747
- * storage = new Map();
748
- *
749
- * // Reading a series of files from directory and store them into storage.
750
- * constructor(directory, books) {
751
- * for (const book of books) {
752
- * this.storage.set(book, fs.readFileSync(path.join(directory, book)));
753
- * }
754
- * }
755
- *
756
- * static compressAll(shelf) {
757
- * for (const [ book, content ] of shelf.storage) {
758
- * shelf.storage.set(book, zlib.gzipSync(content));
759
- * }
760
- * }
761
- *
762
- * static decompressAll(shelf) {
763
- * for (const [ book, content ] of shelf.storage) {
764
- * shelf.storage.set(book, zlib.gunzipSync(content));
765
- * }
766
- * }
767
- * }
768
- *
769
- * // __dirname here is where the snapshot script is placed
770
- * // during snapshot building time.
771
- * const shelf = new BookShelf(__dirname, [
772
- * 'book1.en_US.txt',
773
- * 'book1.es_ES.txt',
774
- * 'book2.zh_CN.txt',
775
- * ]);
776
- *
777
- * assert(v8.startupSnapshot.isBuildingSnapshot());
778
- * // On snapshot serialization, compress the books to reduce size.
779
- * v8.startupSnapshot.addSerializeCallback(BookShelf.compressAll, shelf);
780
- * // On snapshot deserialization, decompress the books.
781
- * v8.startupSnapshot.addDeserializeCallback(BookShelf.decompressAll, shelf);
782
- * v8.startupSnapshot.setDeserializeMainFunction((shelf) => {
783
- * // process.env and process.argv are refreshed during snapshot
784
- * // deserialization.
785
- * const lang = process.env.BOOK_LANG || 'en_US';
786
- * const book = process.argv[1];
787
- * const name = `${book}.${lang}.txt`;
788
- * console.log(shelf.storage.get(name));
789
- * }, shelf);
790
- * ```
791
- *
792
- * The resulted binary will get print the data deserialized from the snapshot during start up, using the refreshed `process.env` and `process.argv` of the launched process:
793
- *
794
- * ```bash
795
- * $ BOOK_LANG=es_ES node --snapshot-blob snapshot.blob book1
796
- * # Prints content of book1.es_ES.txt deserialized from the snapshot.
797
- * ```
798
- *
799
- * Currently the application deserialized from a user-land snapshot cannot be snapshotted again, so these APIs are only available to applications that are not deserialized from a user-land snapshot.
800
- *
801
- * @experimental
802
- * @since v18.6.0, v16.17.0
803
- */
804
- const startupSnapshot: StartupSnapshot;
805
- }
806
- declare module "node:v8" {
807
- export * from "v8";
808
- }