cdk-ecr-deployment 3.2.2 → 3.3.1

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 (562) hide show
  1. package/.jsii +30 -34
  2. package/README.md +2 -2
  3. package/lambda-bin/.gitkeep +0 -0
  4. package/lambda-bin/bootstrap +0 -0
  5. package/{lambda → lambda-src}/Makefile +1 -1
  6. package/lib/index.js +6 -9
  7. package/package.json +1 -13
  8. package/lambda/install.js +0 -82
  9. package/node_modules/@sindresorhus/is/dist/index.d.ts +0 -232
  10. package/node_modules/@sindresorhus/is/dist/index.js +0 -434
  11. package/node_modules/@sindresorhus/is/dist/types.d.ts +0 -25
  12. package/node_modules/@sindresorhus/is/dist/types.js +0 -3
  13. package/node_modules/@sindresorhus/is/license +0 -9
  14. package/node_modules/@sindresorhus/is/package.json +0 -96
  15. package/node_modules/@sindresorhus/is/readme.md +0 -669
  16. package/node_modules/@szmarczak/http-timer/LICENSE +0 -21
  17. package/node_modules/@szmarczak/http-timer/README.md +0 -93
  18. package/node_modules/@szmarczak/http-timer/dist/source/index.d.ts +0 -32
  19. package/node_modules/@szmarczak/http-timer/dist/source/index.js +0 -126
  20. package/node_modules/@szmarczak/http-timer/package.json +0 -72
  21. package/node_modules/@types/cacheable-request/LICENSE +0 -21
  22. package/node_modules/@types/cacheable-request/README.md +0 -16
  23. package/node_modules/@types/cacheable-request/index.d.ts +0 -137
  24. package/node_modules/@types/cacheable-request/node_modules/@types/node/LICENSE +0 -21
  25. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +0 -15
  26. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert/strict.d.ts +0 -8
  27. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +0 -1095
  28. package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +0 -541
  29. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.buffer.d.ts +0 -460
  30. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +0 -1926
  31. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +0 -1549
  32. package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +0 -579
  33. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  34. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/index.d.ts +0 -9
  35. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  36. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  37. package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +0 -452
  38. package/node_modules/@types/cacheable-request/node_modules/@types/node/constants.d.ts +0 -21
  39. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +0 -4510
  40. package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +0 -599
  41. package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +0 -554
  42. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +0 -476
  43. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +0 -865
  44. package/node_modules/@types/cacheable-request/node_modules/@types/node/dom-events.d.ts +0 -124
  45. package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +0 -170
  46. package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +0 -931
  47. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +0 -1275
  48. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +0 -4343
  49. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +0 -511
  50. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.typedarray.d.ts +0 -21
  51. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +0 -1959
  52. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +0 -2558
  53. package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +0 -543
  54. package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +0 -92
  55. package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +0 -3966
  56. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +0 -702
  57. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +0 -1029
  58. package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +0 -495
  59. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +0 -220
  60. package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +0 -200
  61. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +0 -970
  62. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +0 -2013
  63. package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +0 -117
  64. package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +0 -153
  65. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline/promises.d.ts +0 -162
  66. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +0 -589
  67. package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +0 -430
  68. package/node_modules/@types/cacheable-request/node_modules/@types/node/sea.d.ts +0 -153
  69. package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +0 -439
  70. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/consumers.d.ts +0 -12
  71. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/promises.d.ts +0 -90
  72. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +0 -614
  73. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +0 -1662
  74. package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +0 -67
  75. package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +0 -2150
  76. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +0 -97
  77. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +0 -240
  78. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +0 -1226
  79. package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +0 -197
  80. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -457
  81. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
  82. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/index.d.ts +0 -92
  83. package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +0 -208
  84. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +0 -972
  85. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +0 -2439
  86. package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +0 -808
  87. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +0 -976
  88. package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +0 -181
  89. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +0 -745
  90. package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +0 -539
  91. package/node_modules/@types/cacheable-request/node_modules/undici-types/LICENSE +0 -21
  92. package/node_modules/@types/cacheable-request/node_modules/undici-types/README.md +0 -6
  93. package/node_modules/@types/cacheable-request/node_modules/undici-types/agent.d.ts +0 -31
  94. package/node_modules/@types/cacheable-request/node_modules/undici-types/api.d.ts +0 -43
  95. package/node_modules/@types/cacheable-request/node_modules/undici-types/balanced-pool.d.ts +0 -29
  96. package/node_modules/@types/cacheable-request/node_modules/undici-types/cache.d.ts +0 -36
  97. package/node_modules/@types/cacheable-request/node_modules/undici-types/client.d.ts +0 -108
  98. package/node_modules/@types/cacheable-request/node_modules/undici-types/connector.d.ts +0 -34
  99. package/node_modules/@types/cacheable-request/node_modules/undici-types/content-type.d.ts +0 -21
  100. package/node_modules/@types/cacheable-request/node_modules/undici-types/cookies.d.ts +0 -28
  101. package/node_modules/@types/cacheable-request/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  102. package/node_modules/@types/cacheable-request/node_modules/undici-types/dispatcher.d.ts +0 -255
  103. package/node_modules/@types/cacheable-request/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  104. package/node_modules/@types/cacheable-request/node_modules/undici-types/errors.d.ts +0 -149
  105. package/node_modules/@types/cacheable-request/node_modules/undici-types/eventsource.d.ts +0 -61
  106. package/node_modules/@types/cacheable-request/node_modules/undici-types/fetch.d.ts +0 -209
  107. package/node_modules/@types/cacheable-request/node_modules/undici-types/file.d.ts +0 -39
  108. package/node_modules/@types/cacheable-request/node_modules/undici-types/filereader.d.ts +0 -54
  109. package/node_modules/@types/cacheable-request/node_modules/undici-types/formdata.d.ts +0 -108
  110. package/node_modules/@types/cacheable-request/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  111. package/node_modules/@types/cacheable-request/node_modules/undici-types/global-origin.d.ts +0 -7
  112. package/node_modules/@types/cacheable-request/node_modules/undici-types/handlers.d.ts +0 -15
  113. package/node_modules/@types/cacheable-request/node_modules/undici-types/header.d.ts +0 -4
  114. package/node_modules/@types/cacheable-request/node_modules/undici-types/index.d.ts +0 -71
  115. package/node_modules/@types/cacheable-request/node_modules/undici-types/interceptors.d.ts +0 -17
  116. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-agent.d.ts +0 -50
  117. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-client.d.ts +0 -25
  118. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-errors.d.ts +0 -12
  119. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  120. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-pool.d.ts +0 -25
  121. package/node_modules/@types/cacheable-request/node_modules/undici-types/package.json +0 -55
  122. package/node_modules/@types/cacheable-request/node_modules/undici-types/patch.d.ts +0 -33
  123. package/node_modules/@types/cacheable-request/node_modules/undici-types/pool-stats.d.ts +0 -19
  124. package/node_modules/@types/cacheable-request/node_modules/undici-types/pool.d.ts +0 -39
  125. package/node_modules/@types/cacheable-request/node_modules/undici-types/proxy-agent.d.ts +0 -28
  126. package/node_modules/@types/cacheable-request/node_modules/undici-types/readable.d.ts +0 -60
  127. package/node_modules/@types/cacheable-request/node_modules/undici-types/retry-agent.d.ts +0 -8
  128. package/node_modules/@types/cacheable-request/node_modules/undici-types/retry-handler.d.ts +0 -116
  129. package/node_modules/@types/cacheable-request/node_modules/undici-types/util.d.ts +0 -18
  130. package/node_modules/@types/cacheable-request/node_modules/undici-types/webidl.d.ts +0 -222
  131. package/node_modules/@types/cacheable-request/node_modules/undici-types/websocket.d.ts +0 -150
  132. package/node_modules/@types/cacheable-request/package.json +0 -35
  133. package/node_modules/@types/http-cache-semantics/LICENSE +0 -21
  134. package/node_modules/@types/http-cache-semantics/README.md +0 -15
  135. package/node_modules/@types/http-cache-semantics/index.d.ts +0 -165
  136. package/node_modules/@types/http-cache-semantics/package.json +0 -25
  137. package/node_modules/@types/keyv/LICENSE +0 -21
  138. package/node_modules/@types/keyv/README.md +0 -16
  139. package/node_modules/@types/keyv/index.d.ts +0 -90
  140. package/node_modules/@types/keyv/node_modules/@types/node/LICENSE +0 -21
  141. package/node_modules/@types/keyv/node_modules/@types/node/README.md +0 -15
  142. package/node_modules/@types/keyv/node_modules/@types/node/assert/strict.d.ts +0 -8
  143. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +0 -1095
  144. package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +0 -541
  145. package/node_modules/@types/keyv/node_modules/@types/node/buffer.buffer.d.ts +0 -460
  146. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +0 -1926
  147. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +0 -1549
  148. package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +0 -579
  149. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  150. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/index.d.ts +0 -9
  151. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  152. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  153. package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +0 -452
  154. package/node_modules/@types/keyv/node_modules/@types/node/constants.d.ts +0 -21
  155. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +0 -4510
  156. package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +0 -599
  157. package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +0 -554
  158. package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +0 -476
  159. package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +0 -865
  160. package/node_modules/@types/keyv/node_modules/@types/node/dom-events.d.ts +0 -124
  161. package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +0 -170
  162. package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +0 -931
  163. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +0 -1275
  164. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +0 -4343
  165. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +0 -511
  166. package/node_modules/@types/keyv/node_modules/@types/node/globals.typedarray.d.ts +0 -21
  167. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +0 -1959
  168. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +0 -2558
  169. package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +0 -543
  170. package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +0 -92
  171. package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +0 -3966
  172. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +0 -702
  173. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +0 -1029
  174. package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +0 -495
  175. package/node_modules/@types/keyv/node_modules/@types/node/package.json +0 -220
  176. package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +0 -200
  177. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +0 -970
  178. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +0 -2013
  179. package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +0 -117
  180. package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +0 -153
  181. package/node_modules/@types/keyv/node_modules/@types/node/readline/promises.d.ts +0 -162
  182. package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +0 -589
  183. package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +0 -430
  184. package/node_modules/@types/keyv/node_modules/@types/node/sea.d.ts +0 -153
  185. package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +0 -439
  186. package/node_modules/@types/keyv/node_modules/@types/node/stream/consumers.d.ts +0 -12
  187. package/node_modules/@types/keyv/node_modules/@types/node/stream/promises.d.ts +0 -90
  188. package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +0 -614
  189. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +0 -1662
  190. package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +0 -67
  191. package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +0 -2150
  192. package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +0 -97
  193. package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +0 -240
  194. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +0 -1226
  195. package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +0 -197
  196. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -457
  197. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
  198. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/index.d.ts +0 -92
  199. package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +0 -208
  200. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +0 -972
  201. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +0 -2439
  202. package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +0 -808
  203. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +0 -976
  204. package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +0 -181
  205. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +0 -745
  206. package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +0 -539
  207. package/node_modules/@types/keyv/node_modules/undici-types/LICENSE +0 -21
  208. package/node_modules/@types/keyv/node_modules/undici-types/README.md +0 -6
  209. package/node_modules/@types/keyv/node_modules/undici-types/agent.d.ts +0 -31
  210. package/node_modules/@types/keyv/node_modules/undici-types/api.d.ts +0 -43
  211. package/node_modules/@types/keyv/node_modules/undici-types/balanced-pool.d.ts +0 -29
  212. package/node_modules/@types/keyv/node_modules/undici-types/cache.d.ts +0 -36
  213. package/node_modules/@types/keyv/node_modules/undici-types/client.d.ts +0 -108
  214. package/node_modules/@types/keyv/node_modules/undici-types/connector.d.ts +0 -34
  215. package/node_modules/@types/keyv/node_modules/undici-types/content-type.d.ts +0 -21
  216. package/node_modules/@types/keyv/node_modules/undici-types/cookies.d.ts +0 -28
  217. package/node_modules/@types/keyv/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  218. package/node_modules/@types/keyv/node_modules/undici-types/dispatcher.d.ts +0 -255
  219. package/node_modules/@types/keyv/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  220. package/node_modules/@types/keyv/node_modules/undici-types/errors.d.ts +0 -149
  221. package/node_modules/@types/keyv/node_modules/undici-types/eventsource.d.ts +0 -61
  222. package/node_modules/@types/keyv/node_modules/undici-types/fetch.d.ts +0 -209
  223. package/node_modules/@types/keyv/node_modules/undici-types/file.d.ts +0 -39
  224. package/node_modules/@types/keyv/node_modules/undici-types/filereader.d.ts +0 -54
  225. package/node_modules/@types/keyv/node_modules/undici-types/formdata.d.ts +0 -108
  226. package/node_modules/@types/keyv/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  227. package/node_modules/@types/keyv/node_modules/undici-types/global-origin.d.ts +0 -7
  228. package/node_modules/@types/keyv/node_modules/undici-types/handlers.d.ts +0 -15
  229. package/node_modules/@types/keyv/node_modules/undici-types/header.d.ts +0 -4
  230. package/node_modules/@types/keyv/node_modules/undici-types/index.d.ts +0 -71
  231. package/node_modules/@types/keyv/node_modules/undici-types/interceptors.d.ts +0 -17
  232. package/node_modules/@types/keyv/node_modules/undici-types/mock-agent.d.ts +0 -50
  233. package/node_modules/@types/keyv/node_modules/undici-types/mock-client.d.ts +0 -25
  234. package/node_modules/@types/keyv/node_modules/undici-types/mock-errors.d.ts +0 -12
  235. package/node_modules/@types/keyv/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  236. package/node_modules/@types/keyv/node_modules/undici-types/mock-pool.d.ts +0 -25
  237. package/node_modules/@types/keyv/node_modules/undici-types/package.json +0 -55
  238. package/node_modules/@types/keyv/node_modules/undici-types/patch.d.ts +0 -33
  239. package/node_modules/@types/keyv/node_modules/undici-types/pool-stats.d.ts +0 -19
  240. package/node_modules/@types/keyv/node_modules/undici-types/pool.d.ts +0 -39
  241. package/node_modules/@types/keyv/node_modules/undici-types/proxy-agent.d.ts +0 -28
  242. package/node_modules/@types/keyv/node_modules/undici-types/readable.d.ts +0 -60
  243. package/node_modules/@types/keyv/node_modules/undici-types/retry-agent.d.ts +0 -8
  244. package/node_modules/@types/keyv/node_modules/undici-types/retry-handler.d.ts +0 -116
  245. package/node_modules/@types/keyv/node_modules/undici-types/util.d.ts +0 -18
  246. package/node_modules/@types/keyv/node_modules/undici-types/webidl.d.ts +0 -222
  247. package/node_modules/@types/keyv/node_modules/undici-types/websocket.d.ts +0 -150
  248. package/node_modules/@types/keyv/package.json +0 -32
  249. package/node_modules/@types/responselike/LICENSE +0 -21
  250. package/node_modules/@types/responselike/README.md +0 -48
  251. package/node_modules/@types/responselike/index.d.ts +0 -29
  252. package/node_modules/@types/responselike/node_modules/@types/node/LICENSE +0 -21
  253. package/node_modules/@types/responselike/node_modules/@types/node/README.md +0 -15
  254. package/node_modules/@types/responselike/node_modules/@types/node/assert/strict.d.ts +0 -8
  255. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +0 -1095
  256. package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +0 -541
  257. package/node_modules/@types/responselike/node_modules/@types/node/buffer.buffer.d.ts +0 -460
  258. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +0 -1926
  259. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +0 -1549
  260. package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +0 -579
  261. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  262. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/index.d.ts +0 -9
  263. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  264. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  265. package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +0 -452
  266. package/node_modules/@types/responselike/node_modules/@types/node/constants.d.ts +0 -21
  267. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +0 -4510
  268. package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +0 -599
  269. package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +0 -554
  270. package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +0 -476
  271. package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +0 -865
  272. package/node_modules/@types/responselike/node_modules/@types/node/dom-events.d.ts +0 -124
  273. package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +0 -170
  274. package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +0 -931
  275. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +0 -1275
  276. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +0 -4343
  277. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +0 -511
  278. package/node_modules/@types/responselike/node_modules/@types/node/globals.typedarray.d.ts +0 -21
  279. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +0 -1959
  280. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +0 -2558
  281. package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +0 -543
  282. package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +0 -92
  283. package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +0 -3966
  284. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +0 -702
  285. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +0 -1029
  286. package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +0 -495
  287. package/node_modules/@types/responselike/node_modules/@types/node/package.json +0 -220
  288. package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +0 -200
  289. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +0 -970
  290. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +0 -2013
  291. package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +0 -117
  292. package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +0 -153
  293. package/node_modules/@types/responselike/node_modules/@types/node/readline/promises.d.ts +0 -162
  294. package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +0 -589
  295. package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +0 -430
  296. package/node_modules/@types/responselike/node_modules/@types/node/sea.d.ts +0 -153
  297. package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +0 -439
  298. package/node_modules/@types/responselike/node_modules/@types/node/stream/consumers.d.ts +0 -12
  299. package/node_modules/@types/responselike/node_modules/@types/node/stream/promises.d.ts +0 -90
  300. package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +0 -614
  301. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +0 -1662
  302. package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +0 -67
  303. package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +0 -2150
  304. package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +0 -97
  305. package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +0 -240
  306. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +0 -1226
  307. package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +0 -197
  308. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -457
  309. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
  310. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/index.d.ts +0 -92
  311. package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +0 -208
  312. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +0 -972
  313. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +0 -2439
  314. package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +0 -808
  315. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +0 -976
  316. package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +0 -181
  317. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +0 -745
  318. package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +0 -539
  319. package/node_modules/@types/responselike/node_modules/undici-types/LICENSE +0 -21
  320. package/node_modules/@types/responselike/node_modules/undici-types/README.md +0 -6
  321. package/node_modules/@types/responselike/node_modules/undici-types/agent.d.ts +0 -31
  322. package/node_modules/@types/responselike/node_modules/undici-types/api.d.ts +0 -43
  323. package/node_modules/@types/responselike/node_modules/undici-types/balanced-pool.d.ts +0 -29
  324. package/node_modules/@types/responselike/node_modules/undici-types/cache.d.ts +0 -36
  325. package/node_modules/@types/responselike/node_modules/undici-types/client.d.ts +0 -108
  326. package/node_modules/@types/responselike/node_modules/undici-types/connector.d.ts +0 -34
  327. package/node_modules/@types/responselike/node_modules/undici-types/content-type.d.ts +0 -21
  328. package/node_modules/@types/responselike/node_modules/undici-types/cookies.d.ts +0 -28
  329. package/node_modules/@types/responselike/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  330. package/node_modules/@types/responselike/node_modules/undici-types/dispatcher.d.ts +0 -255
  331. package/node_modules/@types/responselike/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  332. package/node_modules/@types/responselike/node_modules/undici-types/errors.d.ts +0 -149
  333. package/node_modules/@types/responselike/node_modules/undici-types/eventsource.d.ts +0 -61
  334. package/node_modules/@types/responselike/node_modules/undici-types/fetch.d.ts +0 -209
  335. package/node_modules/@types/responselike/node_modules/undici-types/file.d.ts +0 -39
  336. package/node_modules/@types/responselike/node_modules/undici-types/filereader.d.ts +0 -54
  337. package/node_modules/@types/responselike/node_modules/undici-types/formdata.d.ts +0 -108
  338. package/node_modules/@types/responselike/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  339. package/node_modules/@types/responselike/node_modules/undici-types/global-origin.d.ts +0 -7
  340. package/node_modules/@types/responselike/node_modules/undici-types/handlers.d.ts +0 -15
  341. package/node_modules/@types/responselike/node_modules/undici-types/header.d.ts +0 -4
  342. package/node_modules/@types/responselike/node_modules/undici-types/index.d.ts +0 -71
  343. package/node_modules/@types/responselike/node_modules/undici-types/interceptors.d.ts +0 -17
  344. package/node_modules/@types/responselike/node_modules/undici-types/mock-agent.d.ts +0 -50
  345. package/node_modules/@types/responselike/node_modules/undici-types/mock-client.d.ts +0 -25
  346. package/node_modules/@types/responselike/node_modules/undici-types/mock-errors.d.ts +0 -12
  347. package/node_modules/@types/responselike/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  348. package/node_modules/@types/responselike/node_modules/undici-types/mock-pool.d.ts +0 -25
  349. package/node_modules/@types/responselike/node_modules/undici-types/package.json +0 -55
  350. package/node_modules/@types/responselike/node_modules/undici-types/patch.d.ts +0 -33
  351. package/node_modules/@types/responselike/node_modules/undici-types/pool-stats.d.ts +0 -19
  352. package/node_modules/@types/responselike/node_modules/undici-types/pool.d.ts +0 -39
  353. package/node_modules/@types/responselike/node_modules/undici-types/proxy-agent.d.ts +0 -28
  354. package/node_modules/@types/responselike/node_modules/undici-types/readable.d.ts +0 -60
  355. package/node_modules/@types/responselike/node_modules/undici-types/retry-agent.d.ts +0 -8
  356. package/node_modules/@types/responselike/node_modules/undici-types/retry-handler.d.ts +0 -116
  357. package/node_modules/@types/responselike/node_modules/undici-types/util.d.ts +0 -18
  358. package/node_modules/@types/responselike/node_modules/undici-types/webidl.d.ts +0 -222
  359. package/node_modules/@types/responselike/node_modules/undici-types/websocket.d.ts +0 -150
  360. package/node_modules/@types/responselike/package.json +0 -27
  361. package/node_modules/cacheable-lookup/LICENSE +0 -21
  362. package/node_modules/cacheable-lookup/README.md +0 -240
  363. package/node_modules/cacheable-lookup/index.d.ts +0 -139
  364. package/node_modules/cacheable-lookup/package.json +0 -45
  365. package/node_modules/cacheable-lookup/source/index.js +0 -436
  366. package/node_modules/cacheable-request/LICENSE +0 -21
  367. package/node_modules/cacheable-request/README.md +0 -206
  368. package/node_modules/cacheable-request/package.json +0 -56
  369. package/node_modules/cacheable-request/src/index.js +0 -251
  370. package/node_modules/clone-response/LICENSE +0 -21
  371. package/node_modules/clone-response/README.md +0 -62
  372. package/node_modules/clone-response/node_modules/mimic-response/index.js +0 -32
  373. package/node_modules/clone-response/node_modules/mimic-response/license +0 -9
  374. package/node_modules/clone-response/node_modules/mimic-response/package.json +0 -37
  375. package/node_modules/clone-response/node_modules/mimic-response/readme.md +0 -54
  376. package/node_modules/clone-response/package.json +0 -41
  377. package/node_modules/clone-response/src/index.js +0 -17
  378. package/node_modules/decompress-response/index.d.ts +0 -22
  379. package/node_modules/decompress-response/index.js +0 -58
  380. package/node_modules/decompress-response/license +0 -9
  381. package/node_modules/decompress-response/package.json +0 -56
  382. package/node_modules/decompress-response/readme.md +0 -48
  383. package/node_modules/defer-to-connect/LICENSE +0 -21
  384. package/node_modules/defer-to-connect/README.md +0 -38
  385. package/node_modules/defer-to-connect/dist/source/index.d.ts +0 -10
  386. package/node_modules/defer-to-connect/dist/source/index.js +0 -47
  387. package/node_modules/defer-to-connect/package.json +0 -71
  388. package/node_modules/end-of-stream/LICENSE +0 -21
  389. package/node_modules/end-of-stream/README.md +0 -54
  390. package/node_modules/end-of-stream/index.js +0 -94
  391. package/node_modules/end-of-stream/package.json +0 -37
  392. package/node_modules/get-stream/buffer-stream.js +0 -52
  393. package/node_modules/get-stream/index.d.ts +0 -108
  394. package/node_modules/get-stream/index.js +0 -60
  395. package/node_modules/get-stream/license +0 -9
  396. package/node_modules/get-stream/package.json +0 -50
  397. package/node_modules/get-stream/readme.md +0 -124
  398. package/node_modules/got/dist/source/as-promise/create-rejection.d.ts +0 -2
  399. package/node_modules/got/dist/source/as-promise/create-rejection.js +0 -30
  400. package/node_modules/got/dist/source/as-promise/index.d.ts +0 -3
  401. package/node_modules/got/dist/source/as-promise/index.js +0 -176
  402. package/node_modules/got/dist/source/as-promise/normalize-arguments.d.ts +0 -3
  403. package/node_modules/got/dist/source/as-promise/normalize-arguments.js +0 -78
  404. package/node_modules/got/dist/source/as-promise/parse-body.d.ts +0 -3
  405. package/node_modules/got/dist/source/as-promise/parse-body.js +0 -25
  406. package/node_modules/got/dist/source/as-promise/types.d.ts +0 -256
  407. package/node_modules/got/dist/source/as-promise/types.js +0 -42
  408. package/node_modules/got/dist/source/core/calculate-retry-delay.d.ts +0 -5
  409. package/node_modules/got/dist/source/core/calculate-retry-delay.js +0 -29
  410. package/node_modules/got/dist/source/core/index.d.ts +0 -1124
  411. package/node_modules/got/dist/source/core/index.js +0 -1505
  412. package/node_modules/got/dist/source/core/utils/dns-ip-version.d.ts +0 -5
  413. package/node_modules/got/dist/source/core/utils/dns-ip-version.js +0 -17
  414. package/node_modules/got/dist/source/core/utils/get-body-size.d.ts +0 -3
  415. package/node_modules/got/dist/source/core/utils/get-body-size.js +0 -32
  416. package/node_modules/got/dist/source/core/utils/get-buffer.d.ts +0 -4
  417. package/node_modules/got/dist/source/core/utils/get-buffer.js +0 -16
  418. package/node_modules/got/dist/source/core/utils/is-form-data.d.ts +0 -8
  419. package/node_modules/got/dist/source/core/utils/is-form-data.js +0 -4
  420. package/node_modules/got/dist/source/core/utils/is-response-ok.d.ts +0 -2
  421. package/node_modules/got/dist/source/core/utils/is-response-ok.js +0 -8
  422. package/node_modules/got/dist/source/core/utils/options-to-url.d.ts +0 -14
  423. package/node_modules/got/dist/source/core/utils/options-to-url.js +0 -53
  424. package/node_modules/got/dist/source/core/utils/proxy-events.d.ts +0 -3
  425. package/node_modules/got/dist/source/core/utils/proxy-events.js +0 -17
  426. package/node_modules/got/dist/source/core/utils/timed-out.d.ts +0 -29
  427. package/node_modules/got/dist/source/core/utils/timed-out.js +0 -121
  428. package/node_modules/got/dist/source/core/utils/unhandle.d.ts +0 -11
  429. package/node_modules/got/dist/source/core/utils/unhandle.js +0 -22
  430. package/node_modules/got/dist/source/core/utils/url-to-options.d.ts +0 -15
  431. package/node_modules/got/dist/source/core/utils/url-to-options.js +0 -24
  432. package/node_modules/got/dist/source/core/utils/weakable-map.d.ts +0 -8
  433. package/node_modules/got/dist/source/core/utils/weakable-map.js +0 -29
  434. package/node_modules/got/dist/source/create.d.ts +0 -5
  435. package/node_modules/got/dist/source/create.js +0 -240
  436. package/node_modules/got/dist/source/index.d.ts +0 -4
  437. package/node_modules/got/dist/source/index.js +0 -132
  438. package/node_modules/got/dist/source/types.d.ts +0 -344
  439. package/node_modules/got/dist/source/types.js +0 -2
  440. package/node_modules/got/dist/source/utils/deep-freeze.d.ts +0 -1
  441. package/node_modules/got/dist/source/utils/deep-freeze.js +0 -12
  442. package/node_modules/got/dist/source/utils/deprecation-warning.d.ts +0 -2
  443. package/node_modules/got/dist/source/utils/deprecation-warning.js +0 -13
  444. package/node_modules/got/license +0 -9
  445. package/node_modules/got/package.json +0 -131
  446. package/node_modules/got/readme.md +0 -2477
  447. package/node_modules/hpagent/.github/dependabot.yml +0 -8
  448. package/node_modules/hpagent/.github/workflows/build.yml +0 -29
  449. package/node_modules/hpagent/LICENSE +0 -21
  450. package/node_modules/hpagent/README.md +0 -138
  451. package/node_modules/hpagent/index.d.ts +0 -26
  452. package/node_modules/hpagent/index.js +0 -101
  453. package/node_modules/hpagent/index.mjs +0 -5
  454. package/node_modules/hpagent/package.json +0 -49
  455. package/node_modules/hpagent/test/got.test.js +0 -111
  456. package/node_modules/hpagent/test/http-http.test.js +0 -351
  457. package/node_modules/hpagent/test/http-https.test.js +0 -313
  458. package/node_modules/hpagent/test/https-http.test.js +0 -313
  459. package/node_modules/hpagent/test/https-https.test.js +0 -313
  460. package/node_modules/hpagent/test/index.test-d.ts +0 -45
  461. package/node_modules/hpagent/test/needle.test.js +0 -103
  462. package/node_modules/hpagent/test/node-fetch.test.js +0 -103
  463. package/node_modules/hpagent/test/simple-get.test.js +0 -139
  464. package/node_modules/hpagent/test/ssl.cert +0 -19
  465. package/node_modules/hpagent/test/ssl.key +0 -27
  466. package/node_modules/hpagent/test/utils.js +0 -59
  467. package/node_modules/http-cache-semantics/LICENSE +0 -9
  468. package/node_modules/http-cache-semantics/README.md +0 -203
  469. package/node_modules/http-cache-semantics/index.js +0 -674
  470. package/node_modules/http-cache-semantics/package.json +0 -18
  471. package/node_modules/http2-wrapper/LICENSE +0 -21
  472. package/node_modules/http2-wrapper/README.md +0 -470
  473. package/node_modules/http2-wrapper/package.json +0 -54
  474. package/node_modules/http2-wrapper/source/agent.js +0 -670
  475. package/node_modules/http2-wrapper/source/auto.js +0 -149
  476. package/node_modules/http2-wrapper/source/client-request.js +0 -445
  477. package/node_modules/http2-wrapper/source/incoming-message.js +0 -58
  478. package/node_modules/http2-wrapper/source/index.js +0 -28
  479. package/node_modules/http2-wrapper/source/utils/calculate-server-name.js +0 -27
  480. package/node_modules/http2-wrapper/source/utils/errors.js +0 -45
  481. package/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.js +0 -13
  482. package/node_modules/http2-wrapper/source/utils/proxy-events.js +0 -7
  483. package/node_modules/http2-wrapper/source/utils/url-to-options.js +0 -25
  484. package/node_modules/json-buffer/.travis.yml +0 -3
  485. package/node_modules/json-buffer/LICENSE +0 -22
  486. package/node_modules/json-buffer/README.md +0 -24
  487. package/node_modules/json-buffer/index.js +0 -58
  488. package/node_modules/json-buffer/package.json +0 -34
  489. package/node_modules/json-buffer/test/index.js +0 -63
  490. package/node_modules/keyv/README.md +0 -429
  491. package/node_modules/keyv/package.json +0 -57
  492. package/node_modules/keyv/src/index.d.ts +0 -112
  493. package/node_modules/keyv/src/index.js +0 -259
  494. package/node_modules/lowercase-keys/index.d.ts +0 -16
  495. package/node_modules/lowercase-keys/index.js +0 -10
  496. package/node_modules/lowercase-keys/license +0 -9
  497. package/node_modules/lowercase-keys/package.json +0 -38
  498. package/node_modules/lowercase-keys/readme.md +0 -32
  499. package/node_modules/mimic-response/index.d.ts +0 -17
  500. package/node_modules/mimic-response/index.js +0 -77
  501. package/node_modules/mimic-response/license +0 -9
  502. package/node_modules/mimic-response/package.json +0 -42
  503. package/node_modules/mimic-response/readme.md +0 -78
  504. package/node_modules/normalize-url/index.d.ts +0 -267
  505. package/node_modules/normalize-url/index.js +0 -216
  506. package/node_modules/normalize-url/license +0 -9
  507. package/node_modules/normalize-url/package.json +0 -50
  508. package/node_modules/normalize-url/readme.md +0 -286
  509. package/node_modules/once/LICENSE +0 -15
  510. package/node_modules/once/README.md +0 -79
  511. package/node_modules/once/once.js +0 -42
  512. package/node_modules/once/package.json +0 -33
  513. package/node_modules/p-cancelable/index.d.ts +0 -176
  514. package/node_modules/p-cancelable/index.js +0 -111
  515. package/node_modules/p-cancelable/license +0 -9
  516. package/node_modules/p-cancelable/package.json +0 -49
  517. package/node_modules/p-cancelable/readme.md +0 -153
  518. package/node_modules/pump/.github/FUNDING.yml +0 -2
  519. package/node_modules/pump/.travis.yml +0 -5
  520. package/node_modules/pump/LICENSE +0 -21
  521. package/node_modules/pump/README.md +0 -74
  522. package/node_modules/pump/SECURITY.md +0 -5
  523. package/node_modules/pump/index.js +0 -86
  524. package/node_modules/pump/package.json +0 -24
  525. package/node_modules/pump/test-browser.js +0 -66
  526. package/node_modules/pump/test-node.js +0 -53
  527. package/node_modules/quick-lru/index.d.ts +0 -97
  528. package/node_modules/quick-lru/index.js +0 -123
  529. package/node_modules/quick-lru/license +0 -9
  530. package/node_modules/quick-lru/package.json +0 -43
  531. package/node_modules/quick-lru/readme.md +0 -111
  532. package/node_modules/resolve-alpn/LICENSE +0 -22
  533. package/node_modules/resolve-alpn/README.md +0 -60
  534. package/node_modules/resolve-alpn/index.js +0 -43
  535. package/node_modules/resolve-alpn/package.json +0 -34
  536. package/node_modules/responselike/LICENSE +0 -19
  537. package/node_modules/responselike/README.md +0 -77
  538. package/node_modules/responselike/package.json +0 -39
  539. package/node_modules/responselike/src/index.js +0 -34
  540. package/node_modules/wrappy/LICENSE +0 -15
  541. package/node_modules/wrappy/README.md +0 -36
  542. package/node_modules/wrappy/package.json +0 -29
  543. package/node_modules/wrappy/wrappy.js +0 -33
  544. /package/{lambda → lambda-src}/.dockerignore +0 -0
  545. /package/{lambda → lambda-src}/Dockerfile +0 -0
  546. /package/{lambda → lambda-src}/go.mod +0 -0
  547. /package/{lambda → lambda-src}/go.sum +0 -0
  548. /package/{lambda → lambda-src}/internal/iolimits/iolimits.go +0 -0
  549. /package/{lambda → lambda-src}/internal/iolimits/iolimits_test.go +0 -0
  550. /package/{lambda → lambda-src}/internal/tarfile/reader.go +0 -0
  551. /package/{lambda → lambda-src}/internal/tarfile/reader_test.go +0 -0
  552. /package/{lambda → lambda-src}/internal/tarfile/s3file.go +0 -0
  553. /package/{lambda → lambda-src}/internal/tarfile/s3file_test.go +0 -0
  554. /package/{lambda → lambda-src}/internal/tarfile/src.go +0 -0
  555. /package/{lambda → lambda-src}/internal/tarfile/types.go +0 -0
  556. /package/{lambda → lambda-src}/main.go +0 -0
  557. /package/{lambda → lambda-src}/main_test.go +0 -0
  558. /package/{lambda → lambda-src}/s3/src.go +0 -0
  559. /package/{lambda → lambda-src}/s3/transport.go +0 -0
  560. /package/{lambda → lambda-src}/s3/transport_test.go +0 -0
  561. /package/{lambda → lambda-src}/utils.go +0 -0
  562. /package/{lambda → lambda-src}/utils_test.go +0 -0
@@ -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
- }