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,1095 +0,0 @@
1
- /**
2
- * The `node:assert` module provides a set of assertion functions for verifying
3
- * invariants.
4
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/assert.js)
5
- */
6
- declare module "assert" {
7
- /**
8
- * An alias of {@link ok}.
9
- * @since v0.5.9
10
- * @param value The input that is checked for being truthy.
11
- */
12
- function assert(value: unknown, message?: string | Error): asserts value;
13
- namespace assert {
14
- /**
15
- * Indicates the failure of an assertion. All errors thrown by the `node:assert` module will be instances of the `AssertionError` class.
16
- */
17
- class AssertionError extends Error {
18
- /**
19
- * Set to the `actual` argument for methods such as {@link assert.strictEqual()}.
20
- */
21
- actual: unknown;
22
- /**
23
- * Set to the `expected` argument for methods such as {@link assert.strictEqual()}.
24
- */
25
- expected: unknown;
26
- /**
27
- * Set to the passed in operator value.
28
- */
29
- operator: string;
30
- /**
31
- * Indicates if the message was auto-generated (`true`) or not.
32
- */
33
- generatedMessage: boolean;
34
- /**
35
- * Value is always `ERR_ASSERTION` to show that the error is an assertion error.
36
- */
37
- code: "ERR_ASSERTION";
38
- constructor(options?: {
39
- /** If provided, the error message is set to this value. */
40
- message?: string | undefined;
41
- /** The `actual` property on the error instance. */
42
- actual?: unknown | undefined;
43
- /** The `expected` property on the error instance. */
44
- expected?: unknown | undefined;
45
- /** The `operator` property on the error instance. */
46
- operator?: string | undefined;
47
- /** If provided, the generated stack trace omits frames before this function. */
48
- // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
49
- stackStartFn?: Function | undefined;
50
- });
51
- }
52
- /**
53
- * This feature is deprecated and will be removed in a future version.
54
- * Please consider using alternatives such as the `mock` helper function.
55
- * @since v14.2.0, v12.19.0
56
- * @deprecated Deprecated
57
- */
58
- class CallTracker {
59
- /**
60
- * The wrapper function is expected to be called exactly `exact` times. If the
61
- * function has not been called exactly `exact` times when `tracker.verify()` is called, then `tracker.verify()` will throw an
62
- * error.
63
- *
64
- * ```js
65
- * import assert from 'node:assert';
66
- *
67
- * // Creates call tracker.
68
- * const tracker = new assert.CallTracker();
69
- *
70
- * function func() {}
71
- *
72
- * // Returns a function that wraps func() that must be called exact times
73
- * // before tracker.verify().
74
- * const callsfunc = tracker.calls(func);
75
- * ```
76
- * @since v14.2.0, v12.19.0
77
- * @param [fn='A no-op function']
78
- * @param [exact=1]
79
- * @return A function that wraps `fn`.
80
- */
81
- calls(exact?: number): () => void;
82
- calls<Func extends (...args: any[]) => any>(fn?: Func, exact?: number): Func;
83
- /**
84
- * Example:
85
- *
86
- * ```js
87
- * import assert from 'node:assert';
88
- *
89
- * const tracker = new assert.CallTracker();
90
- *
91
- * function func() {}
92
- * const callsfunc = tracker.calls(func);
93
- * callsfunc(1, 2, 3);
94
- *
95
- * assert.deepStrictEqual(tracker.getCalls(callsfunc),
96
- * [{ thisArg: undefined, arguments: [1, 2, 3] }]);
97
- * ```
98
- * @since v18.8.0, v16.18.0
99
- * @return An array with all the calls to a tracked function.
100
- */
101
- getCalls(fn: Function): CallTrackerCall[];
102
- /**
103
- * The arrays contains information about the expected and actual number of calls of
104
- * the functions that have not been called the expected number of times.
105
- *
106
- * ```js
107
- * import assert from 'node:assert';
108
- *
109
- * // Creates call tracker.
110
- * const tracker = new assert.CallTracker();
111
- *
112
- * function func() {}
113
- *
114
- * // Returns a function that wraps func() that must be called exact times
115
- * // before tracker.verify().
116
- * const callsfunc = tracker.calls(func, 2);
117
- *
118
- * // Returns an array containing information on callsfunc()
119
- * console.log(tracker.report());
120
- * // [
121
- * // {
122
- * // message: 'Expected the func function to be executed 2 time(s) but was
123
- * // executed 0 time(s).',
124
- * // actual: 0,
125
- * // expected: 2,
126
- * // operator: 'func',
127
- * // stack: stack trace
128
- * // }
129
- * // ]
130
- * ```
131
- * @since v14.2.0, v12.19.0
132
- * @return An array of objects containing information about the wrapper functions returned by {@link tracker.calls()}.
133
- */
134
- report(): CallTrackerReportInformation[];
135
- /**
136
- * Reset calls of the call tracker. If a tracked function is passed as an argument, the calls will be reset for it.
137
- * If no arguments are passed, all tracked functions will be reset.
138
- *
139
- * ```js
140
- * import assert from 'node:assert';
141
- *
142
- * const tracker = new assert.CallTracker();
143
- *
144
- * function func() {}
145
- * const callsfunc = tracker.calls(func);
146
- *
147
- * callsfunc();
148
- * // Tracker was called once
149
- * assert.strictEqual(tracker.getCalls(callsfunc).length, 1);
150
- *
151
- * tracker.reset(callsfunc);
152
- * assert.strictEqual(tracker.getCalls(callsfunc).length, 0);
153
- * ```
154
- * @since v18.8.0, v16.18.0
155
- * @param fn a tracked function to reset.
156
- */
157
- reset(fn?: Function): void;
158
- /**
159
- * Iterates through the list of functions passed to {@link tracker.calls()} and will throw an error for functions that
160
- * have not been called the expected number of times.
161
- *
162
- * ```js
163
- * import assert from 'node:assert';
164
- *
165
- * // Creates call tracker.
166
- * const tracker = new assert.CallTracker();
167
- *
168
- * function func() {}
169
- *
170
- * // Returns a function that wraps func() that must be called exact times
171
- * // before tracker.verify().
172
- * const callsfunc = tracker.calls(func, 2);
173
- *
174
- * callsfunc();
175
- *
176
- * // Will throw an error since callsfunc() was only called once.
177
- * tracker.verify();
178
- * ```
179
- * @since v14.2.0, v12.19.0
180
- */
181
- verify(): void;
182
- }
183
- interface CallTrackerCall {
184
- thisArg: object;
185
- arguments: unknown[];
186
- }
187
- interface CallTrackerReportInformation {
188
- message: string;
189
- /** The actual number of times the function was called. */
190
- actual: number;
191
- /** The number of times the function was expected to be called. */
192
- expected: number;
193
- /** The name of the function that is wrapped. */
194
- operator: string;
195
- /** A stack trace of the function. */
196
- stack: object;
197
- }
198
- type AssertPredicate = RegExp | (new() => object) | ((thrown: unknown) => boolean) | object | Error;
199
- /**
200
- * Throws an `AssertionError` with the provided error message or a default
201
- * error message. If the `message` parameter is an instance of an `Error` then
202
- * it will be thrown instead of the `AssertionError`.
203
- *
204
- * ```js
205
- * import assert from 'node:assert/strict';
206
- *
207
- * assert.fail();
208
- * // AssertionError [ERR_ASSERTION]: Failed
209
- *
210
- * assert.fail('boom');
211
- * // AssertionError [ERR_ASSERTION]: boom
212
- *
213
- * assert.fail(new TypeError('need array'));
214
- * // TypeError: need array
215
- * ```
216
- *
217
- * Using `assert.fail()` with more than two arguments is possible but deprecated.
218
- * See below for further details.
219
- * @since v0.1.21
220
- * @param [message='Failed']
221
- */
222
- function fail(message?: string | Error): never;
223
- /** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */
224
- function fail(
225
- actual: unknown,
226
- expected: unknown,
227
- message?: string | Error,
228
- operator?: string,
229
- // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
230
- stackStartFn?: Function,
231
- ): never;
232
- /**
233
- * Tests if `value` is truthy. It is equivalent to `assert.equal(!!value, true, message)`.
234
- *
235
- * If `value` is not truthy, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is `undefined`, a default
236
- * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`.
237
- * If no arguments are passed in at all `message` will be set to the string:`` 'No value argument passed to `assert.ok()`' ``.
238
- *
239
- * Be aware that in the `repl` the error message will be different to the one
240
- * thrown in a file! See below for further details.
241
- *
242
- * ```js
243
- * import assert from 'node:assert/strict';
244
- *
245
- * assert.ok(true);
246
- * // OK
247
- * assert.ok(1);
248
- * // OK
249
- *
250
- * assert.ok();
251
- * // AssertionError: No value argument passed to `assert.ok()`
252
- *
253
- * assert.ok(false, 'it\'s false');
254
- * // AssertionError: it's false
255
- *
256
- * // In the repl:
257
- * assert.ok(typeof 123 === 'string');
258
- * // AssertionError: false == true
259
- *
260
- * // In a file (e.g. test.js):
261
- * assert.ok(typeof 123 === 'string');
262
- * // AssertionError: The expression evaluated to a falsy value:
263
- * //
264
- * // assert.ok(typeof 123 === 'string')
265
- *
266
- * assert.ok(false);
267
- * // AssertionError: The expression evaluated to a falsy value:
268
- * //
269
- * // assert.ok(false)
270
- *
271
- * assert.ok(0);
272
- * // AssertionError: The expression evaluated to a falsy value:
273
- * //
274
- * // assert.ok(0)
275
- * ```
276
- *
277
- * ```js
278
- * import assert from 'node:assert/strict';
279
- *
280
- * // Using `assert()` works the same:
281
- * assert(0);
282
- * // AssertionError: The expression evaluated to a falsy value:
283
- * //
284
- * // assert(0)
285
- * ```
286
- * @since v0.1.21
287
- */
288
- function ok(value: unknown, message?: string | Error): asserts value;
289
- /**
290
- * **Strict assertion mode**
291
- *
292
- * An alias of {@link strictEqual}.
293
- *
294
- * **Legacy assertion mode**
295
- *
296
- * > Stability: 3 - Legacy: Use {@link strictEqual} instead.
297
- *
298
- * Tests shallow, coercive equality between the `actual` and `expected` parameters
299
- * using the [`==` operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality). `NaN` is specially handled
300
- * and treated as being identical if both sides are `NaN`.
301
- *
302
- * ```js
303
- * import assert from 'node:assert';
304
- *
305
- * assert.equal(1, 1);
306
- * // OK, 1 == 1
307
- * assert.equal(1, '1');
308
- * // OK, 1 == '1'
309
- * assert.equal(NaN, NaN);
310
- * // OK
311
- *
312
- * assert.equal(1, 2);
313
- * // AssertionError: 1 == 2
314
- * assert.equal({ a: { b: 1 } }, { a: { b: 1 } });
315
- * // AssertionError: { a: { b: 1 } } == { a: { b: 1 } }
316
- * ```
317
- *
318
- * If the values are not equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default
319
- * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`.
320
- * @since v0.1.21
321
- */
322
- function equal(actual: unknown, expected: unknown, message?: string | Error): void;
323
- /**
324
- * **Strict assertion mode**
325
- *
326
- * An alias of {@link notStrictEqual}.
327
- *
328
- * **Legacy assertion mode**
329
- *
330
- * > Stability: 3 - Legacy: Use {@link notStrictEqual} instead.
331
- *
332
- * Tests shallow, coercive inequality with the [`!=` operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Inequality). `NaN` is
333
- * specially handled and treated as being identical if both sides are `NaN`.
334
- *
335
- * ```js
336
- * import assert from 'node:assert';
337
- *
338
- * assert.notEqual(1, 2);
339
- * // OK
340
- *
341
- * assert.notEqual(1, 1);
342
- * // AssertionError: 1 != 1
343
- *
344
- * assert.notEqual(1, '1');
345
- * // AssertionError: 1 != '1'
346
- * ```
347
- *
348
- * If the values are equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default error
349
- * message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`.
350
- * @since v0.1.21
351
- */
352
- function notEqual(actual: unknown, expected: unknown, message?: string | Error): void;
353
- /**
354
- * **Strict assertion mode**
355
- *
356
- * An alias of {@link deepStrictEqual}.
357
- *
358
- * **Legacy assertion mode**
359
- *
360
- * > Stability: 3 - Legacy: Use {@link deepStrictEqual} instead.
361
- *
362
- * Tests for deep equality between the `actual` and `expected` parameters. Consider
363
- * using {@link deepStrictEqual} instead. {@link deepEqual} can have
364
- * surprising results.
365
- *
366
- * _Deep equality_ means that the enumerable "own" properties of child objects
367
- * are also recursively evaluated by the following rules.
368
- * @since v0.1.21
369
- */
370
- function deepEqual(actual: unknown, expected: unknown, message?: string | Error): void;
371
- /**
372
- * **Strict assertion mode**
373
- *
374
- * An alias of {@link notDeepStrictEqual}.
375
- *
376
- * **Legacy assertion mode**
377
- *
378
- * > Stability: 3 - Legacy: Use {@link notDeepStrictEqual} instead.
379
- *
380
- * Tests for any deep inequality. Opposite of {@link deepEqual}.
381
- *
382
- * ```js
383
- * import assert from 'node:assert';
384
- *
385
- * const obj1 = {
386
- * a: {
387
- * b: 1,
388
- * },
389
- * };
390
- * const obj2 = {
391
- * a: {
392
- * b: 2,
393
- * },
394
- * };
395
- * const obj3 = {
396
- * a: {
397
- * b: 1,
398
- * },
399
- * };
400
- * const obj4 = { __proto__: obj1 };
401
- *
402
- * assert.notDeepEqual(obj1, obj1);
403
- * // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } }
404
- *
405
- * assert.notDeepEqual(obj1, obj2);
406
- * // OK
407
- *
408
- * assert.notDeepEqual(obj1, obj3);
409
- * // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } }
410
- *
411
- * assert.notDeepEqual(obj1, obj4);
412
- * // OK
413
- * ```
414
- *
415
- * If the values are deeply equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default
416
- * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown
417
- * instead of the `AssertionError`.
418
- * @since v0.1.21
419
- */
420
- function notDeepEqual(actual: unknown, expected: unknown, message?: string | Error): void;
421
- /**
422
- * Tests strict equality between the `actual` and `expected` parameters as
423
- * determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is).
424
- *
425
- * ```js
426
- * import assert from 'node:assert/strict';
427
- *
428
- * assert.strictEqual(1, 2);
429
- * // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal:
430
- * //
431
- * // 1 !== 2
432
- *
433
- * assert.strictEqual(1, 1);
434
- * // OK
435
- *
436
- * assert.strictEqual('Hello foobar', 'Hello World!');
437
- * // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal:
438
- * // + actual - expected
439
- * //
440
- * // + 'Hello foobar'
441
- * // - 'Hello World!'
442
- * // ^
443
- *
444
- * const apples = 1;
445
- * const oranges = 2;
446
- * assert.strictEqual(apples, oranges, `apples ${apples} !== oranges ${oranges}`);
447
- * // AssertionError [ERR_ASSERTION]: apples 1 !== oranges 2
448
- *
449
- * assert.strictEqual(1, '1', new TypeError('Inputs are not identical'));
450
- * // TypeError: Inputs are not identical
451
- * ```
452
- *
453
- * If the values are not strictly equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a
454
- * default error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown
455
- * instead of the `AssertionError`.
456
- * @since v0.1.21
457
- */
458
- function strictEqual<T>(actual: unknown, expected: T, message?: string | Error): asserts actual is T;
459
- /**
460
- * Tests strict inequality between the `actual` and `expected` parameters as
461
- * determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is).
462
- *
463
- * ```js
464
- * import assert from 'node:assert/strict';
465
- *
466
- * assert.notStrictEqual(1, 2);
467
- * // OK
468
- *
469
- * assert.notStrictEqual(1, 1);
470
- * // AssertionError [ERR_ASSERTION]: Expected "actual" to be strictly unequal to:
471
- * //
472
- * // 1
473
- *
474
- * assert.notStrictEqual(1, '1');
475
- * // OK
476
- * ```
477
- *
478
- * If the values are strictly equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a
479
- * default error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown
480
- * instead of the `AssertionError`.
481
- * @since v0.1.21
482
- */
483
- function notStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
484
- /**
485
- * Tests for deep equality between the `actual` and `expected` parameters.
486
- * "Deep" equality means that the enumerable "own" properties of child objects
487
- * are recursively evaluated also by the following rules.
488
- * @since v1.2.0
489
- */
490
- function deepStrictEqual<T>(actual: unknown, expected: T, message?: string | Error): asserts actual is T;
491
- /**
492
- * Tests for deep strict inequality. Opposite of {@link deepStrictEqual}.
493
- *
494
- * ```js
495
- * import assert from 'node:assert/strict';
496
- *
497
- * assert.notDeepStrictEqual({ a: 1 }, { a: '1' });
498
- * // OK
499
- * ```
500
- *
501
- * If the values are deeply and strictly equal, an `AssertionError` is thrown
502
- * with a `message` property set equal to the value of the `message` parameter. If
503
- * the `message` parameter is undefined, a default error message is assigned. If
504
- * the `message` parameter is an instance of an `Error` then it will be thrown
505
- * instead of the `AssertionError`.
506
- * @since v1.2.0
507
- */
508
- function notDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
509
- /**
510
- * Expects the function `fn` to throw an error.
511
- *
512
- * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
513
- * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function,
514
- * a validation object where each property will be tested for strict deep equality,
515
- * or an instance of error where each property will be tested for strict deep
516
- * equality including the non-enumerable `message` and `name` properties. When
517
- * using an object, it is also possible to use a regular expression, when
518
- * validating against a string property. See below for examples.
519
- *
520
- * If specified, `message` will be appended to the message provided by the `AssertionError` if the `fn` call fails to throw or in case the error validation
521
- * fails.
522
- *
523
- * Custom validation object/error instance:
524
- *
525
- * ```js
526
- * import assert from 'node:assert/strict';
527
- *
528
- * const err = new TypeError('Wrong value');
529
- * err.code = 404;
530
- * err.foo = 'bar';
531
- * err.info = {
532
- * nested: true,
533
- * baz: 'text',
534
- * };
535
- * err.reg = /abc/i;
536
- *
537
- * assert.throws(
538
- * () => {
539
- * throw err;
540
- * },
541
- * {
542
- * name: 'TypeError',
543
- * message: 'Wrong value',
544
- * info: {
545
- * nested: true,
546
- * baz: 'text',
547
- * },
548
- * // Only properties on the validation object will be tested for.
549
- * // Using nested objects requires all properties to be present. Otherwise
550
- * // the validation is going to fail.
551
- * },
552
- * );
553
- *
554
- * // Using regular expressions to validate error properties:
555
- * assert.throws(
556
- * () => {
557
- * throw err;
558
- * },
559
- * {
560
- * // The `name` and `message` properties are strings and using regular
561
- * // expressions on those will match against the string. If they fail, an
562
- * // error is thrown.
563
- * name: /^TypeError$/,
564
- * message: /Wrong/,
565
- * foo: 'bar',
566
- * info: {
567
- * nested: true,
568
- * // It is not possible to use regular expressions for nested properties!
569
- * baz: 'text',
570
- * },
571
- * // The `reg` property contains a regular expression and only if the
572
- * // validation object contains an identical regular expression, it is going
573
- * // to pass.
574
- * reg: /abc/i,
575
- * },
576
- * );
577
- *
578
- * // Fails due to the different `message` and `name` properties:
579
- * assert.throws(
580
- * () => {
581
- * const otherErr = new Error('Not found');
582
- * // Copy all enumerable properties from `err` to `otherErr`.
583
- * for (const [key, value] of Object.entries(err)) {
584
- * otherErr[key] = value;
585
- * }
586
- * throw otherErr;
587
- * },
588
- * // The error's `message` and `name` properties will also be checked when using
589
- * // an error as validation object.
590
- * err,
591
- * );
592
- * ```
593
- *
594
- * Validate instanceof using constructor:
595
- *
596
- * ```js
597
- * import assert from 'node:assert/strict';
598
- *
599
- * assert.throws(
600
- * () => {
601
- * throw new Error('Wrong value');
602
- * },
603
- * Error,
604
- * );
605
- * ```
606
- *
607
- * Validate error message using [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions):
608
- *
609
- * Using a regular expression runs `.toString` on the error object, and will
610
- * therefore also include the error name.
611
- *
612
- * ```js
613
- * import assert from 'node:assert/strict';
614
- *
615
- * assert.throws(
616
- * () => {
617
- * throw new Error('Wrong value');
618
- * },
619
- * /^Error: Wrong value$/,
620
- * );
621
- * ```
622
- *
623
- * Custom error validation:
624
- *
625
- * The function must return `true` to indicate all internal validations passed.
626
- * It will otherwise fail with an `AssertionError`.
627
- *
628
- * ```js
629
- * import assert from 'node:assert/strict';
630
- *
631
- * assert.throws(
632
- * () => {
633
- * throw new Error('Wrong value');
634
- * },
635
- * (err) => {
636
- * assert(err instanceof Error);
637
- * assert(/value/.test(err));
638
- * // Avoid returning anything from validation functions besides `true`.
639
- * // Otherwise, it's not clear what part of the validation failed. Instead,
640
- * // throw an error about the specific validation that failed (as done in this
641
- * // example) and add as much helpful debugging information to that error as
642
- * // possible.
643
- * return true;
644
- * },
645
- * 'unexpected error',
646
- * );
647
- * ```
648
- *
649
- * `error` cannot be a string. If a string is provided as the second
650
- * argument, then `error` is assumed to be omitted and the string will be used for `message` instead. This can lead to easy-to-miss mistakes. Using the same
651
- * message as the thrown error message is going to result in an `ERR_AMBIGUOUS_ARGUMENT` error. Please read the example below carefully if using
652
- * a string as the second argument gets considered:
653
- *
654
- * ```js
655
- * import assert from 'node:assert/strict';
656
- *
657
- * function throwingFirst() {
658
- * throw new Error('First');
659
- * }
660
- *
661
- * function throwingSecond() {
662
- * throw new Error('Second');
663
- * }
664
- *
665
- * function notThrowing() {}
666
- *
667
- * // The second argument is a string and the input function threw an Error.
668
- * // The first case will not throw as it does not match for the error message
669
- * // thrown by the input function!
670
- * assert.throws(throwingFirst, 'Second');
671
- * // In the next example the message has no benefit over the message from the
672
- * // error and since it is not clear if the user intended to actually match
673
- * // against the error message, Node.js throws an `ERR_AMBIGUOUS_ARGUMENT` error.
674
- * assert.throws(throwingSecond, 'Second');
675
- * // TypeError [ERR_AMBIGUOUS_ARGUMENT]
676
- *
677
- * // The string is only used (as message) in case the function does not throw:
678
- * assert.throws(notThrowing, 'Second');
679
- * // AssertionError [ERR_ASSERTION]: Missing expected exception: Second
680
- *
681
- * // If it was intended to match for the error message do this instead:
682
- * // It does not throw because the error messages match.
683
- * assert.throws(throwingSecond, /Second$/);
684
- *
685
- * // If the error message does not match, an AssertionError is thrown.
686
- * assert.throws(throwingFirst, /Second$/);
687
- * // AssertionError [ERR_ASSERTION]
688
- * ```
689
- *
690
- * Due to the confusing error-prone notation, avoid a string as the second
691
- * argument.
692
- * @since v0.1.21
693
- */
694
- function throws(block: () => unknown, message?: string | Error): void;
695
- function throws(block: () => unknown, error: AssertPredicate, message?: string | Error): void;
696
- /**
697
- * Asserts that the function `fn` does not throw an error.
698
- *
699
- * Using `assert.doesNotThrow()` is actually not useful because there
700
- * is no benefit in catching an error and then rethrowing it. Instead, consider
701
- * adding a comment next to the specific code path that should not throw and keep
702
- * error messages as expressive as possible.
703
- *
704
- * When `assert.doesNotThrow()` is called, it will immediately call the `fn` function.
705
- *
706
- * If an error is thrown and it is the same type as that specified by the `error` parameter, then an `AssertionError` is thrown. If the error is of a
707
- * different type, or if the `error` parameter is undefined, the error is
708
- * propagated back to the caller.
709
- *
710
- * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
711
- * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), or a validation
712
- * function. See {@link throws} for more details.
713
- *
714
- * The following, for instance, will throw the `TypeError` because there is no
715
- * matching error type in the assertion:
716
- *
717
- * ```js
718
- * import assert from 'node:assert/strict';
719
- *
720
- * assert.doesNotThrow(
721
- * () => {
722
- * throw new TypeError('Wrong value');
723
- * },
724
- * SyntaxError,
725
- * );
726
- * ```
727
- *
728
- * However, the following will result in an `AssertionError` with the message
729
- * 'Got unwanted exception...':
730
- *
731
- * ```js
732
- * import assert from 'node:assert/strict';
733
- *
734
- * assert.doesNotThrow(
735
- * () => {
736
- * throw new TypeError('Wrong value');
737
- * },
738
- * TypeError,
739
- * );
740
- * ```
741
- *
742
- * If an `AssertionError` is thrown and a value is provided for the `message` parameter, the value of `message` will be appended to the `AssertionError` message:
743
- *
744
- * ```js
745
- * import assert from 'node:assert/strict';
746
- *
747
- * assert.doesNotThrow(
748
- * () => {
749
- * throw new TypeError('Wrong value');
750
- * },
751
- * /Wrong value/,
752
- * 'Whoops',
753
- * );
754
- * // Throws: AssertionError: Got unwanted exception: Whoops
755
- * ```
756
- * @since v0.1.21
757
- */
758
- function doesNotThrow(block: () => unknown, message?: string | Error): void;
759
- function doesNotThrow(block: () => unknown, error: AssertPredicate, message?: string | Error): void;
760
- /**
761
- * Throws `value` if `value` is not `undefined` or `null`. This is useful when
762
- * testing the `error` argument in callbacks. The stack trace contains all frames
763
- * from the error passed to `ifError()` including the potential new frames for `ifError()` itself.
764
- *
765
- * ```js
766
- * import assert from 'node:assert/strict';
767
- *
768
- * assert.ifError(null);
769
- * // OK
770
- * assert.ifError(0);
771
- * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 0
772
- * assert.ifError('error');
773
- * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 'error'
774
- * assert.ifError(new Error());
775
- * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: Error
776
- *
777
- * // Create some random error frames.
778
- * let err;
779
- * (function errorFrame() {
780
- * err = new Error('test error');
781
- * })();
782
- *
783
- * (function ifErrorFrame() {
784
- * assert.ifError(err);
785
- * })();
786
- * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: test error
787
- * // at ifErrorFrame
788
- * // at errorFrame
789
- * ```
790
- * @since v0.1.97
791
- */
792
- function ifError(value: unknown): asserts value is null | undefined;
793
- /**
794
- * Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately
795
- * calls the function and awaits the returned promise to complete. It will then
796
- * check that the promise is rejected.
797
- *
798
- * If `asyncFn` is a function and it throws an error synchronously, `assert.rejects()` will return a rejected `Promise` with that error. If the
799
- * function does not return a promise, `assert.rejects()` will return a rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v22.x/api/errors.html#err_invalid_return_value)
800
- * error. In both cases the error handler is skipped.
801
- *
802
- * Besides the async nature to await the completion behaves identically to {@link throws}.
803
- *
804
- * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
805
- * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function,
806
- * an object where each property will be tested for, or an instance of error where
807
- * each property will be tested for including the non-enumerable `message` and `name` properties.
808
- *
809
- * If specified, `message` will be the message provided by the `{@link AssertionError}` if the `asyncFn` fails to reject.
810
- *
811
- * ```js
812
- * import assert from 'node:assert/strict';
813
- *
814
- * await assert.rejects(
815
- * async () => {
816
- * throw new TypeError('Wrong value');
817
- * },
818
- * {
819
- * name: 'TypeError',
820
- * message: 'Wrong value',
821
- * },
822
- * );
823
- * ```
824
- *
825
- * ```js
826
- * import assert from 'node:assert/strict';
827
- *
828
- * await assert.rejects(
829
- * async () => {
830
- * throw new TypeError('Wrong value');
831
- * },
832
- * (err) => {
833
- * assert.strictEqual(err.name, 'TypeError');
834
- * assert.strictEqual(err.message, 'Wrong value');
835
- * return true;
836
- * },
837
- * );
838
- * ```
839
- *
840
- * ```js
841
- * import assert from 'node:assert/strict';
842
- *
843
- * assert.rejects(
844
- * Promise.reject(new Error('Wrong value')),
845
- * Error,
846
- * ).then(() => {
847
- * // ...
848
- * });
849
- * ```
850
- *
851
- * `error` cannot be a string. If a string is provided as the second argument, then `error` is assumed to
852
- * be omitted and the string will be used for `message` instead. This can lead to easy-to-miss mistakes. Please read the
853
- * example in {@link throws} carefully if using a string as the second argument gets considered.
854
- * @since v10.0.0
855
- */
856
- function rejects(block: (() => Promise<unknown>) | Promise<unknown>, message?: string | Error): Promise<void>;
857
- function rejects(
858
- block: (() => Promise<unknown>) | Promise<unknown>,
859
- error: AssertPredicate,
860
- message?: string | Error,
861
- ): Promise<void>;
862
- /**
863
- * Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately
864
- * calls the function and awaits the returned promise to complete. It will then
865
- * check that the promise is not rejected.
866
- *
867
- * If `asyncFn` is a function and it throws an error synchronously, `assert.doesNotReject()` will return a rejected `Promise` with that error. If
868
- * the function does not return a promise, `assert.doesNotReject()` will return a
869
- * rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v22.x/api/errors.html#err_invalid_return_value) error. In both cases
870
- * the error handler is skipped.
871
- *
872
- * Using `assert.doesNotReject()` is actually not useful because there is little
873
- * benefit in catching a rejection and then rejecting it again. Instead, consider
874
- * adding a comment next to the specific code path that should not reject and keep
875
- * error messages as expressive as possible.
876
- *
877
- * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
878
- * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), or a validation
879
- * function. See {@link throws} for more details.
880
- *
881
- * Besides the async nature to await the completion behaves identically to {@link doesNotThrow}.
882
- *
883
- * ```js
884
- * import assert from 'node:assert/strict';
885
- *
886
- * await assert.doesNotReject(
887
- * async () => {
888
- * throw new TypeError('Wrong value');
889
- * },
890
- * SyntaxError,
891
- * );
892
- * ```
893
- *
894
- * ```js
895
- * import assert from 'node:assert/strict';
896
- *
897
- * assert.doesNotReject(Promise.reject(new TypeError('Wrong value')))
898
- * .then(() => {
899
- * // ...
900
- * });
901
- * ```
902
- * @since v10.0.0
903
- */
904
- function doesNotReject(
905
- block: (() => Promise<unknown>) | Promise<unknown>,
906
- message?: string | Error,
907
- ): Promise<void>;
908
- function doesNotReject(
909
- block: (() => Promise<unknown>) | Promise<unknown>,
910
- error: AssertPredicate,
911
- message?: string | Error,
912
- ): Promise<void>;
913
- /**
914
- * Expects the `string` input to match the regular expression.
915
- *
916
- * ```js
917
- * import assert from 'node:assert/strict';
918
- *
919
- * assert.match('I will fail', /pass/);
920
- * // AssertionError [ERR_ASSERTION]: The input did not match the regular ...
921
- *
922
- * assert.match(123, /pass/);
923
- * // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string.
924
- *
925
- * assert.match('I will pass', /pass/);
926
- * // OK
927
- * ```
928
- *
929
- * If the values do not match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal
930
- * to the value of the `message` parameter. If the `message` parameter is
931
- * undefined, a default error message is assigned. If the `message` parameter is an
932
- * instance of an [Error](https://nodejs.org/docs/latest-v22.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
933
- * @since v13.6.0, v12.16.0
934
- */
935
- function match(value: string, regExp: RegExp, message?: string | Error): void;
936
- /**
937
- * Expects the `string` input not to match the regular expression.
938
- *
939
- * ```js
940
- * import assert from 'node:assert/strict';
941
- *
942
- * assert.doesNotMatch('I will fail', /fail/);
943
- * // AssertionError [ERR_ASSERTION]: The input was expected to not match the ...
944
- *
945
- * assert.doesNotMatch(123, /pass/);
946
- * // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string.
947
- *
948
- * assert.doesNotMatch('I will pass', /different/);
949
- * // OK
950
- * ```
951
- *
952
- * If the values do match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal
953
- * to the value of the `message` parameter. If the `message` parameter is
954
- * undefined, a default error message is assigned. If the `message` parameter is an
955
- * instance of an [Error](https://nodejs.org/docs/latest-v22.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
956
- * @since v13.6.0, v12.16.0
957
- */
958
- function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void;
959
- /**
960
- * `assert.partialDeepStrictEqual()` Asserts the equivalence between the `actual` and `expected` parameters through a
961
- * deep comparison, ensuring that all properties in the `expected` parameter are
962
- * present in the `actual` parameter with equivalent values, not allowing type coercion.
963
- * The main difference with `assert.deepStrictEqual()` is that `assert.partialDeepStrictEqual()` does not require
964
- * all properties in the `actual` parameter to be present in the `expected` parameter.
965
- * This method should always pass the same test cases as `assert.deepStrictEqual()`, behaving as a super set of it.
966
- *
967
- * ```js
968
- * import assert from 'node:assert';
969
- *
970
- * assert.partialDeepStrictEqual({ a: 1, b: 2 }, { a: 1, b: 2 });
971
- * // OK
972
- *
973
- * assert.partialDeepStrictEqual({ a: { b: { c: 1 } } }, { a: { b: { c: 1 } } });
974
- * // OK
975
- *
976
- * assert.partialDeepStrictEqual({ a: 1, b: 2, c: 3 }, { a: 1, b: 2 });
977
- * // OK
978
- *
979
- * assert.partialDeepStrictEqual(new Set(['value1', 'value2']), new Set(['value1', 'value2']));
980
- * // OK
981
- *
982
- * assert.partialDeepStrictEqual(new Map([['key1', 'value1']]), new Map([['key1', 'value1']]));
983
- * // OK
984
- *
985
- * assert.partialDeepStrictEqual(new Uint8Array([1, 2, 3]), new Uint8Array([1, 2, 3]));
986
- * // OK
987
- *
988
- * assert.partialDeepStrictEqual(/abc/, /abc/);
989
- * // OK
990
- *
991
- * assert.partialDeepStrictEqual([{ a: 5 }, { b: 5 }], [{ a: 5 }]);
992
- * // OK
993
- *
994
- * assert.partialDeepStrictEqual(new Set([{ a: 1 }, { b: 1 }]), new Set([{ a: 1 }]));
995
- * // OK
996
- *
997
- * assert.partialDeepStrictEqual(new Date(0), new Date(0));
998
- * // OK
999
- *
1000
- * assert.partialDeepStrictEqual({ a: 1 }, { a: 1, b: 2 });
1001
- * // AssertionError
1002
- *
1003
- * assert.partialDeepStrictEqual({ a: 1, b: '2' }, { a: 1, b: 2 });
1004
- * // AssertionError
1005
- *
1006
- * assert.partialDeepStrictEqual({ a: { b: 2 } }, { a: { b: '2' } });
1007
- * // AssertionError
1008
- * ```
1009
- * @since v22.13.0
1010
- */
1011
- function partialDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
1012
- /**
1013
- * In strict assertion mode, non-strict methods behave like their corresponding strict methods. For example,
1014
- * {@link deepEqual} will behave like {@link deepStrictEqual}.
1015
- *
1016
- * In strict assertion mode, error messages for objects display a diff. In legacy assertion mode, error
1017
- * messages for objects display the objects, often truncated.
1018
- *
1019
- * To use strict assertion mode:
1020
- *
1021
- * ```js
1022
- * import { strict as assert } from 'node:assert';
1023
- * import assert from 'node:assert/strict';
1024
- * ```
1025
- *
1026
- * Example error diff:
1027
- *
1028
- * ```js
1029
- * import { strict as assert } from 'node:assert';
1030
- *
1031
- * assert.deepEqual([[[1, 2, 3]], 4, 5], [[[1, 2, '3']], 4, 5]);
1032
- * // AssertionError: Expected inputs to be strictly deep-equal:
1033
- * // + actual - expected ... Lines skipped
1034
- * //
1035
- * // [
1036
- * // [
1037
- * // ...
1038
- * // 2,
1039
- * // + 3
1040
- * // - '3'
1041
- * // ],
1042
- * // ...
1043
- * // 5
1044
- * // ]
1045
- * ```
1046
- *
1047
- * To deactivate the colors, use the `NO_COLOR` or `NODE_DISABLE_COLORS` environment variables. This will also
1048
- * deactivate the colors in the REPL. For more on color support in terminal environments, read the tty
1049
- * `getColorDepth()` documentation.
1050
- *
1051
- * @since v15.0.0, v13.9.0, v12.16.2, v9.9.0
1052
- */
1053
- namespace strict {
1054
- type AssertionError = assert.AssertionError;
1055
- type AssertPredicate = assert.AssertPredicate;
1056
- type CallTrackerCall = assert.CallTrackerCall;
1057
- type CallTrackerReportInformation = assert.CallTrackerReportInformation;
1058
- }
1059
- const strict:
1060
- & Omit<
1061
- typeof assert,
1062
- | "equal"
1063
- | "notEqual"
1064
- | "deepEqual"
1065
- | "notDeepEqual"
1066
- | "ok"
1067
- | "strictEqual"
1068
- | "deepStrictEqual"
1069
- | "ifError"
1070
- | "strict"
1071
- | "AssertionError"
1072
- >
1073
- & {
1074
- (value: unknown, message?: string | Error): asserts value;
1075
- equal: typeof strictEqual;
1076
- notEqual: typeof notStrictEqual;
1077
- deepEqual: typeof deepStrictEqual;
1078
- notDeepEqual: typeof notDeepStrictEqual;
1079
- // Mapped types and assertion functions are incompatible?
1080
- // TS2775: Assertions require every name in the call target
1081
- // to be declared with an explicit type annotation.
1082
- ok: typeof ok;
1083
- strictEqual: typeof strictEqual;
1084
- deepStrictEqual: typeof deepStrictEqual;
1085
- ifError: typeof ifError;
1086
- strict: typeof strict;
1087
- AssertionError: typeof AssertionError;
1088
- };
1089
- }
1090
- export = assert;
1091
- }
1092
- declare module "node:assert" {
1093
- import assert = require("assert");
1094
- export = assert;
1095
- }