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,745 +0,0 @@
1
- /**
2
- * The `node:worker_threads` module enables the use of threads that execute
3
- * JavaScript in parallel. To access it:
4
- *
5
- * ```js
6
- * import worker from 'node:worker_threads';
7
- * ```
8
- *
9
- * Workers (threads) are useful for performing CPU-intensive JavaScript operations.
10
- * They do not help much with I/O-intensive work. The Node.js built-in
11
- * asynchronous I/O operations are more efficient than Workers can be.
12
- *
13
- * Unlike `child_process` or `cluster`, `worker_threads` can share memory. They do
14
- * so by transferring `ArrayBuffer` instances or sharing `SharedArrayBuffer` instances.
15
- *
16
- * ```js
17
- * import {
18
- * Worker, isMainThread, parentPort, workerData,
19
- * } from 'node:worker_threads';
20
- * import { parse } from 'some-js-parsing-library';
21
- *
22
- * if (isMainThread) {
23
- * module.exports = function parseJSAsync(script) {
24
- * return new Promise((resolve, reject) => {
25
- * const worker = new Worker(__filename, {
26
- * workerData: script,
27
- * });
28
- * worker.on('message', resolve);
29
- * worker.on('error', reject);
30
- * worker.on('exit', (code) => {
31
- * if (code !== 0)
32
- * reject(new Error(`Worker stopped with exit code ${code}`));
33
- * });
34
- * });
35
- * };
36
- * } else {
37
- * const script = workerData;
38
- * parentPort.postMessage(parse(script));
39
- * }
40
- * ```
41
- *
42
- * The above example spawns a Worker thread for each `parseJSAsync()` call. In
43
- * practice, use a pool of Workers for these kinds of tasks. Otherwise, the
44
- * overhead of creating Workers would likely exceed their benefit.
45
- *
46
- * When implementing a worker pool, use the `AsyncResource` API to inform
47
- * diagnostic tools (e.g. to provide asynchronous stack traces) about the
48
- * correlation between tasks and their outcomes. See `"Using AsyncResource for a Worker thread pool"` in the `async_hooks` documentation for an example implementation.
49
- *
50
- * Worker threads inherit non-process-specific options by default. Refer to `Worker constructor options` to know how to customize worker thread options,
51
- * specifically `argv` and `execArgv` options.
52
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/worker_threads.js)
53
- */
54
- declare module "worker_threads" {
55
- import { Blob } from "node:buffer";
56
- import { Context } from "node:vm";
57
- import { EventEmitter } from "node:events";
58
- import { EventLoopUtilityFunction } from "node:perf_hooks";
59
- import { FileHandle } from "node:fs/promises";
60
- import { Readable, Writable } from "node:stream";
61
- import { URL } from "node:url";
62
- import { X509Certificate } from "node:crypto";
63
- const isMainThread: boolean;
64
- const parentPort: null | MessagePort;
65
- const resourceLimits: ResourceLimits;
66
- const SHARE_ENV: unique symbol;
67
- const threadId: number;
68
- const workerData: any;
69
- /**
70
- * Instances of the `worker.MessageChannel` class represent an asynchronous,
71
- * two-way communications channel.
72
- * The `MessageChannel` has no methods of its own. `new MessageChannel()` yields an object with `port1` and `port2` properties, which refer to linked `MessagePort` instances.
73
- *
74
- * ```js
75
- * import { MessageChannel } from 'node:worker_threads';
76
- *
77
- * const { port1, port2 } = new MessageChannel();
78
- * port1.on('message', (message) => console.log('received', message));
79
- * port2.postMessage({ foo: 'bar' });
80
- * // Prints: received { foo: 'bar' } from the `port1.on('message')` listener
81
- * ```
82
- * @since v10.5.0
83
- */
84
- class MessageChannel {
85
- readonly port1: MessagePort;
86
- readonly port2: MessagePort;
87
- }
88
- interface WorkerPerformance {
89
- eventLoopUtilization: EventLoopUtilityFunction;
90
- }
91
- type TransferListItem = ArrayBuffer | MessagePort | FileHandle | X509Certificate | Blob;
92
- /**
93
- * Instances of the `worker.MessagePort` class represent one end of an
94
- * asynchronous, two-way communications channel. It can be used to transfer
95
- * structured data, memory regions and other `MessagePort`s between different `Worker`s.
96
- *
97
- * This implementation matches [browser `MessagePort`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort) s.
98
- * @since v10.5.0
99
- */
100
- class MessagePort extends EventEmitter {
101
- /**
102
- * Disables further sending of messages on either side of the connection.
103
- * This method can be called when no further communication will happen over this `MessagePort`.
104
- *
105
- * The `'close' event` is emitted on both `MessagePort` instances that
106
- * are part of the channel.
107
- * @since v10.5.0
108
- */
109
- close(): void;
110
- /**
111
- * Sends a JavaScript value to the receiving side of this channel. `value` is transferred in a way which is compatible with
112
- * the [HTML structured clone algorithm](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm).
113
- *
114
- * In particular, the significant differences to `JSON` are:
115
- *
116
- * * `value` may contain circular references.
117
- * * `value` may contain instances of builtin JS types such as `RegExp`s, `BigInt`s, `Map`s, `Set`s, etc.
118
- * * `value` may contain typed arrays, both using `ArrayBuffer`s
119
- * and `SharedArrayBuffer`s.
120
- * * `value` may contain [`WebAssembly.Module`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module) instances.
121
- * * `value` may not contain native (C++-backed) objects other than:
122
- *
123
- * ```js
124
- * import { MessageChannel } from 'node:worker_threads';
125
- * const { port1, port2 } = new MessageChannel();
126
- *
127
- * port1.on('message', (message) => console.log(message));
128
- *
129
- * const circularData = {};
130
- * circularData.foo = circularData;
131
- * // Prints: { foo: [Circular] }
132
- * port2.postMessage(circularData);
133
- * ```
134
- *
135
- * `transferList` may be a list of [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer), `MessagePort`, and `FileHandle` objects.
136
- * After transferring, they are not usable on the sending side of the channel
137
- * anymore (even if they are not contained in `value`). Unlike with `child processes`, transferring handles such as network sockets is currently
138
- * not supported.
139
- *
140
- * If `value` contains [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instances, those are accessible
141
- * from either thread. They cannot be listed in `transferList`.
142
- *
143
- * `value` may still contain `ArrayBuffer` instances that are not in `transferList`; in that case, the underlying memory is copied rather than moved.
144
- *
145
- * ```js
146
- * import { MessageChannel } from 'node:worker_threads';
147
- * const { port1, port2 } = new MessageChannel();
148
- *
149
- * port1.on('message', (message) => console.log(message));
150
- *
151
- * const uint8Array = new Uint8Array([ 1, 2, 3, 4 ]);
152
- * // This posts a copy of `uint8Array`:
153
- * port2.postMessage(uint8Array);
154
- * // This does not copy data, but renders `uint8Array` unusable:
155
- * port2.postMessage(uint8Array, [ uint8Array.buffer ]);
156
- *
157
- * // The memory for the `sharedUint8Array` is accessible from both the
158
- * // original and the copy received by `.on('message')`:
159
- * const sharedUint8Array = new Uint8Array(new SharedArrayBuffer(4));
160
- * port2.postMessage(sharedUint8Array);
161
- *
162
- * // This transfers a freshly created message port to the receiver.
163
- * // This can be used, for example, to create communication channels between
164
- * // multiple `Worker` threads that are children of the same parent thread.
165
- * const otherChannel = new MessageChannel();
166
- * port2.postMessage({ port: otherChannel.port1 }, [ otherChannel.port1 ]);
167
- * ```
168
- *
169
- * The message object is cloned immediately, and can be modified after
170
- * posting without having side effects.
171
- *
172
- * For more information on the serialization and deserialization mechanisms
173
- * behind this API, see the `serialization API of the node:v8 module`.
174
- * @since v10.5.0
175
- */
176
- postMessage(value: any, transferList?: readonly TransferListItem[]): void;
177
- /**
178
- * Opposite of `unref()`. Calling `ref()` on a previously `unref()`ed port does _not_ let the program exit if it's the only active handle left (the default
179
- * behavior). If the port is `ref()`ed, calling `ref()` again has no effect.
180
- *
181
- * If listeners are attached or removed using `.on('message')`, the port
182
- * is `ref()`ed and `unref()`ed automatically depending on whether
183
- * listeners for the event exist.
184
- * @since v10.5.0
185
- */
186
- ref(): void;
187
- /**
188
- * Calling `unref()` on a port allows the thread to exit if this is the only
189
- * active handle in the event system. If the port is already `unref()`ed calling `unref()` again has no effect.
190
- *
191
- * If listeners are attached or removed using `.on('message')`, the port is `ref()`ed and `unref()`ed automatically depending on whether
192
- * listeners for the event exist.
193
- * @since v10.5.0
194
- */
195
- unref(): void;
196
- /**
197
- * Starts receiving messages on this `MessagePort`. When using this port
198
- * as an event emitter, this is called automatically once `'message'` listeners are attached.
199
- *
200
- * This method exists for parity with the Web `MessagePort` API. In Node.js,
201
- * it is only useful for ignoring messages when no event listener is present.
202
- * Node.js also diverges in its handling of `.onmessage`. Setting it
203
- * automatically calls `.start()`, but unsetting it lets messages queue up
204
- * until a new handler is set or the port is discarded.
205
- * @since v10.5.0
206
- */
207
- start(): void;
208
- addListener(event: "close", listener: () => void): this;
209
- addListener(event: "message", listener: (value: any) => void): this;
210
- addListener(event: "messageerror", listener: (error: Error) => void): this;
211
- addListener(event: string | symbol, listener: (...args: any[]) => void): this;
212
- emit(event: "close"): boolean;
213
- emit(event: "message", value: any): boolean;
214
- emit(event: "messageerror", error: Error): boolean;
215
- emit(event: string | symbol, ...args: any[]): boolean;
216
- on(event: "close", listener: () => void): this;
217
- on(event: "message", listener: (value: any) => void): this;
218
- on(event: "messageerror", listener: (error: Error) => void): this;
219
- on(event: string | symbol, listener: (...args: any[]) => void): this;
220
- once(event: "close", listener: () => void): this;
221
- once(event: "message", listener: (value: any) => void): this;
222
- once(event: "messageerror", listener: (error: Error) => void): this;
223
- once(event: string | symbol, listener: (...args: any[]) => void): this;
224
- prependListener(event: "close", listener: () => void): this;
225
- prependListener(event: "message", listener: (value: any) => void): this;
226
- prependListener(event: "messageerror", listener: (error: Error) => void): this;
227
- prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
228
- prependOnceListener(event: "close", listener: () => void): this;
229
- prependOnceListener(event: "message", listener: (value: any) => void): this;
230
- prependOnceListener(event: "messageerror", listener: (error: Error) => void): this;
231
- prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
232
- removeListener(event: "close", listener: () => void): this;
233
- removeListener(event: "message", listener: (value: any) => void): this;
234
- removeListener(event: "messageerror", listener: (error: Error) => void): this;
235
- removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
236
- off(event: "close", listener: () => void): this;
237
- off(event: "message", listener: (value: any) => void): this;
238
- off(event: "messageerror", listener: (error: Error) => void): this;
239
- off(event: string | symbol, listener: (...args: any[]) => void): this;
240
- addEventListener: EventTarget["addEventListener"];
241
- dispatchEvent: EventTarget["dispatchEvent"];
242
- removeEventListener: EventTarget["removeEventListener"];
243
- }
244
- interface WorkerOptions {
245
- /**
246
- * List of arguments which would be stringified and appended to
247
- * `process.argv` in the worker. This is mostly similar to the `workerData`
248
- * but the values will be available on the global `process.argv` as if they
249
- * were passed as CLI options to the script.
250
- */
251
- argv?: any[] | undefined;
252
- env?: NodeJS.Dict<string> | typeof SHARE_ENV | undefined;
253
- eval?: boolean | undefined;
254
- workerData?: any;
255
- stdin?: boolean | undefined;
256
- stdout?: boolean | undefined;
257
- stderr?: boolean | undefined;
258
- execArgv?: string[] | undefined;
259
- resourceLimits?: ResourceLimits | undefined;
260
- /**
261
- * Additional data to send in the first worker message.
262
- */
263
- transferList?: TransferListItem[] | undefined;
264
- /**
265
- * @default true
266
- */
267
- trackUnmanagedFds?: boolean | undefined;
268
- /**
269
- * An optional `name` to be appended to the worker title
270
- * for debugging/identification purposes, making the final title as
271
- * `[worker ${id}] ${name}`.
272
- */
273
- name?: string | undefined;
274
- }
275
- interface ResourceLimits {
276
- /**
277
- * The maximum size of a heap space for recently created objects.
278
- */
279
- maxYoungGenerationSizeMb?: number | undefined;
280
- /**
281
- * The maximum size of the main heap in MB.
282
- */
283
- maxOldGenerationSizeMb?: number | undefined;
284
- /**
285
- * The size of a pre-allocated memory range used for generated code.
286
- */
287
- codeRangeSizeMb?: number | undefined;
288
- /**
289
- * The default maximum stack size for the thread. Small values may lead to unusable Worker instances.
290
- * @default 4
291
- */
292
- stackSizeMb?: number | undefined;
293
- }
294
- /**
295
- * The `Worker` class represents an independent JavaScript execution thread.
296
- * Most Node.js APIs are available inside of it.
297
- *
298
- * Notable differences inside a Worker environment are:
299
- *
300
- * * The `process.stdin`, `process.stdout`, and `process.stderr` streams may be redirected by the parent thread.
301
- * * The `import { isMainThread } from 'node:worker_threads'` variable is set to `false`.
302
- * * The `import { parentPort } from 'node:worker_threads'` message port is available.
303
- * * `process.exit()` does not stop the whole program, just the single thread,
304
- * and `process.abort()` is not available.
305
- * * `process.chdir()` and `process` methods that set group or user ids
306
- * are not available.
307
- * * `process.env` is a copy of the parent thread's environment variables,
308
- * unless otherwise specified. Changes to one copy are not visible in other
309
- * threads, and are not visible to native add-ons (unless `worker.SHARE_ENV` is passed as the `env` option to the `Worker` constructor). On Windows, unlike the main thread, a copy of the
310
- * environment variables operates in a case-sensitive manner.
311
- * * `process.title` cannot be modified.
312
- * * Signals are not delivered through `process.on('...')`.
313
- * * Execution may stop at any point as a result of `worker.terminate()` being invoked.
314
- * * IPC channels from parent processes are not accessible.
315
- * * The `trace_events` module is not supported.
316
- * * Native add-ons can only be loaded from multiple threads if they fulfill `certain conditions`.
317
- *
318
- * Creating `Worker` instances inside of other `Worker`s is possible.
319
- *
320
- * Like [Web Workers](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API) and the `node:cluster module`, two-way communication
321
- * can be achieved through inter-thread message passing. Internally, a `Worker` has
322
- * a built-in pair of `MessagePort` s that are already associated with each
323
- * other when the `Worker` is created. While the `MessagePort` object on the parent
324
- * side is not directly exposed, its functionalities are exposed through `worker.postMessage()` and the `worker.on('message')` event
325
- * on the `Worker` object for the parent thread.
326
- *
327
- * To create custom messaging channels (which is encouraged over using the default
328
- * global channel because it facilitates separation of concerns), users can create
329
- * a `MessageChannel` object on either thread and pass one of the`MessagePort`s on that `MessageChannel` to the other thread through a
330
- * pre-existing channel, such as the global one.
331
- *
332
- * See `port.postMessage()` for more information on how messages are passed,
333
- * and what kind of JavaScript values can be successfully transported through
334
- * the thread barrier.
335
- *
336
- * ```js
337
- * import assert from 'node:assert';
338
- * import {
339
- * Worker, MessageChannel, MessagePort, isMainThread, parentPort,
340
- * } from 'node:worker_threads';
341
- * if (isMainThread) {
342
- * const worker = new Worker(__filename);
343
- * const subChannel = new MessageChannel();
344
- * worker.postMessage({ hereIsYourPort: subChannel.port1 }, [subChannel.port1]);
345
- * subChannel.port2.on('message', (value) => {
346
- * console.log('received:', value);
347
- * });
348
- * } else {
349
- * parentPort.once('message', (value) => {
350
- * assert(value.hereIsYourPort instanceof MessagePort);
351
- * value.hereIsYourPort.postMessage('the worker is sending this');
352
- * value.hereIsYourPort.close();
353
- * });
354
- * }
355
- * ```
356
- * @since v10.5.0
357
- */
358
- class Worker extends EventEmitter {
359
- /**
360
- * If `stdin: true` was passed to the `Worker` constructor, this is a
361
- * writable stream. The data written to this stream will be made available in
362
- * the worker thread as `process.stdin`.
363
- * @since v10.5.0
364
- */
365
- readonly stdin: Writable | null;
366
- /**
367
- * This is a readable stream which contains data written to `process.stdout` inside the worker thread. If `stdout: true` was not passed to the `Worker` constructor, then data is piped to the
368
- * parent thread's `process.stdout` stream.
369
- * @since v10.5.0
370
- */
371
- readonly stdout: Readable;
372
- /**
373
- * This is a readable stream which contains data written to `process.stderr` inside the worker thread. If `stderr: true` was not passed to the `Worker` constructor, then data is piped to the
374
- * parent thread's `process.stderr` stream.
375
- * @since v10.5.0
376
- */
377
- readonly stderr: Readable;
378
- /**
379
- * An integer identifier for the referenced thread. Inside the worker thread,
380
- * it is available as `import { threadId } from 'node:worker_threads'`.
381
- * This value is unique for each `Worker` instance inside a single process.
382
- * @since v10.5.0
383
- */
384
- readonly threadId: number;
385
- /**
386
- * Provides the set of JS engine resource constraints for this Worker thread.
387
- * If the `resourceLimits` option was passed to the `Worker` constructor,
388
- * this matches its values.
389
- *
390
- * If the worker has stopped, the return value is an empty object.
391
- * @since v13.2.0, v12.16.0
392
- */
393
- readonly resourceLimits?: ResourceLimits | undefined;
394
- /**
395
- * An object that can be used to query performance information from a worker
396
- * instance. Similar to `perf_hooks.performance`.
397
- * @since v15.1.0, v14.17.0, v12.22.0
398
- */
399
- readonly performance: WorkerPerformance;
400
- /**
401
- * @param filename The path to the Worker’s main script or module.
402
- * Must be either an absolute path or a relative path (i.e. relative to the current working directory) starting with ./ or ../,
403
- * or a WHATWG URL object using file: protocol. If options.eval is true, this is a string containing JavaScript code rather than a path.
404
- */
405
- constructor(filename: string | URL, options?: WorkerOptions);
406
- /**
407
- * Send a message to the worker that is received via `require('node:worker_threads').parentPort.on('message')`.
408
- * See `port.postMessage()` for more details.
409
- * @since v10.5.0
410
- */
411
- postMessage(value: any, transferList?: readonly TransferListItem[]): void;
412
- /**
413
- * Sends a value to another worker, identified by its thread ID.
414
- * @param threadId The target thread ID. If the thread ID is invalid, a `ERR_WORKER_MESSAGING_FAILED` error will be thrown.
415
- * If the target thread ID is the current thread ID, a `ERR_WORKER_MESSAGING_SAME_THREAD` error will be thrown.
416
- * @param value The value to send.
417
- * @param transferList If one or more `MessagePort`-like objects are passed in value, a `transferList` is required for those items
418
- * or `ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST` is thrown. See `port.postMessage()` for more information.
419
- * @param timeout Time to wait for the message to be delivered in milliseconds. By default it's `undefined`, which means wait forever.
420
- * If the operation times out, a `ERR_WORKER_MESSAGING_TIMEOUT` error is thrown.
421
- * @since v22.5.0
422
- */
423
- postMessageToThread(threadId: number, value: any, timeout?: number): Promise<void>;
424
- postMessageToThread(
425
- threadId: number,
426
- value: any,
427
- transferList: readonly TransferListItem[],
428
- timeout?: number,
429
- ): Promise<void>;
430
- /**
431
- * Opposite of `unref()`, calling `ref()` on a previously `unref()`ed worker does _not_ let the program exit if it's the only active handle left (the default
432
- * behavior). If the worker is `ref()`ed, calling `ref()` again has
433
- * no effect.
434
- * @since v10.5.0
435
- */
436
- ref(): void;
437
- /**
438
- * Calling `unref()` on a worker allows the thread to exit if this is the only
439
- * active handle in the event system. If the worker is already `unref()`ed calling `unref()` again has no effect.
440
- * @since v10.5.0
441
- */
442
- unref(): void;
443
- /**
444
- * Stop all JavaScript execution in the worker thread as soon as possible.
445
- * Returns a Promise for the exit code that is fulfilled when the `'exit' event` is emitted.
446
- * @since v10.5.0
447
- */
448
- terminate(): Promise<number>;
449
- /**
450
- * Returns a readable stream for a V8 snapshot of the current state of the Worker.
451
- * See `v8.getHeapSnapshot()` for more details.
452
- *
453
- * If the Worker thread is no longer running, which may occur before the `'exit' event` is emitted, the returned `Promise` is rejected
454
- * immediately with an `ERR_WORKER_NOT_RUNNING` error.
455
- * @since v13.9.0, v12.17.0
456
- * @return A promise for a Readable Stream containing a V8 heap snapshot
457
- */
458
- getHeapSnapshot(): Promise<Readable>;
459
- addListener(event: "error", listener: (err: Error) => void): this;
460
- addListener(event: "exit", listener: (exitCode: number) => void): this;
461
- addListener(event: "message", listener: (value: any) => void): this;
462
- addListener(event: "messageerror", listener: (error: Error) => void): this;
463
- addListener(event: "online", listener: () => void): this;
464
- addListener(event: string | symbol, listener: (...args: any[]) => void): this;
465
- emit(event: "error", err: Error): boolean;
466
- emit(event: "exit", exitCode: number): boolean;
467
- emit(event: "message", value: any): boolean;
468
- emit(event: "messageerror", error: Error): boolean;
469
- emit(event: "online"): boolean;
470
- emit(event: string | symbol, ...args: any[]): boolean;
471
- on(event: "error", listener: (err: Error) => void): this;
472
- on(event: "exit", listener: (exitCode: number) => void): this;
473
- on(event: "message", listener: (value: any) => void): this;
474
- on(event: "messageerror", listener: (error: Error) => void): this;
475
- on(event: "online", listener: () => void): this;
476
- on(event: string | symbol, listener: (...args: any[]) => void): this;
477
- once(event: "error", listener: (err: Error) => void): this;
478
- once(event: "exit", listener: (exitCode: number) => void): this;
479
- once(event: "message", listener: (value: any) => void): this;
480
- once(event: "messageerror", listener: (error: Error) => void): this;
481
- once(event: "online", listener: () => void): this;
482
- once(event: string | symbol, listener: (...args: any[]) => void): this;
483
- prependListener(event: "error", listener: (err: Error) => void): this;
484
- prependListener(event: "exit", listener: (exitCode: number) => void): this;
485
- prependListener(event: "message", listener: (value: any) => void): this;
486
- prependListener(event: "messageerror", listener: (error: Error) => void): this;
487
- prependListener(event: "online", listener: () => void): this;
488
- prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
489
- prependOnceListener(event: "error", listener: (err: Error) => void): this;
490
- prependOnceListener(event: "exit", listener: (exitCode: number) => void): this;
491
- prependOnceListener(event: "message", listener: (value: any) => void): this;
492
- prependOnceListener(event: "messageerror", listener: (error: Error) => void): this;
493
- prependOnceListener(event: "online", listener: () => void): this;
494
- prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
495
- removeListener(event: "error", listener: (err: Error) => void): this;
496
- removeListener(event: "exit", listener: (exitCode: number) => void): this;
497
- removeListener(event: "message", listener: (value: any) => void): this;
498
- removeListener(event: "messageerror", listener: (error: Error) => void): this;
499
- removeListener(event: "online", listener: () => void): this;
500
- removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
501
- off(event: "error", listener: (err: Error) => void): this;
502
- off(event: "exit", listener: (exitCode: number) => void): this;
503
- off(event: "message", listener: (value: any) => void): this;
504
- off(event: "messageerror", listener: (error: Error) => void): this;
505
- off(event: "online", listener: () => void): this;
506
- off(event: string | symbol, listener: (...args: any[]) => void): this;
507
- }
508
- interface BroadcastChannel extends NodeJS.RefCounted {}
509
- /**
510
- * Instances of `BroadcastChannel` allow asynchronous one-to-many communication
511
- * with all other `BroadcastChannel` instances bound to the same channel name.
512
- *
513
- * ```js
514
- * 'use strict';
515
- *
516
- * import {
517
- * isMainThread,
518
- * BroadcastChannel,
519
- * Worker,
520
- * } from 'node:worker_threads';
521
- *
522
- * const bc = new BroadcastChannel('hello');
523
- *
524
- * if (isMainThread) {
525
- * let c = 0;
526
- * bc.onmessage = (event) => {
527
- * console.log(event.data);
528
- * if (++c === 10) bc.close();
529
- * };
530
- * for (let n = 0; n < 10; n++)
531
- * new Worker(__filename);
532
- * } else {
533
- * bc.postMessage('hello from every worker');
534
- * bc.close();
535
- * }
536
- * ```
537
- * @since v15.4.0
538
- */
539
- class BroadcastChannel {
540
- readonly name: string;
541
- /**
542
- * Invoked with a single \`MessageEvent\` argument when a message is received.
543
- * @since v15.4.0
544
- */
545
- onmessage: (message: unknown) => void;
546
- /**
547
- * Invoked with a received message cannot be deserialized.
548
- * @since v15.4.0
549
- */
550
- onmessageerror: (message: unknown) => void;
551
- constructor(name: string);
552
- /**
553
- * Closes the `BroadcastChannel` connection.
554
- * @since v15.4.0
555
- */
556
- close(): void;
557
- /**
558
- * @since v15.4.0
559
- * @param message Any cloneable JavaScript value.
560
- */
561
- postMessage(message: unknown): void;
562
- }
563
- /**
564
- * Mark an object as not transferable. If `object` occurs in the transfer list of
565
- * a `port.postMessage()` call, it is ignored.
566
- *
567
- * In particular, this makes sense for objects that can be cloned, rather than
568
- * transferred, and which are used by other objects on the sending side.
569
- * For example, Node.js marks the `ArrayBuffer`s it uses for its `Buffer pool` with this.
570
- *
571
- * This operation cannot be undone.
572
- *
573
- * ```js
574
- * import { MessageChannel, markAsUntransferable } from 'node:worker_threads';
575
- *
576
- * const pooledBuffer = new ArrayBuffer(8);
577
- * const typedArray1 = new Uint8Array(pooledBuffer);
578
- * const typedArray2 = new Float64Array(pooledBuffer);
579
- *
580
- * markAsUntransferable(pooledBuffer);
581
- *
582
- * const { port1 } = new MessageChannel();
583
- * port1.postMessage(typedArray1, [ typedArray1.buffer ]);
584
- *
585
- * // The following line prints the contents of typedArray1 -- it still owns
586
- * // its memory and has been cloned, not transferred. Without
587
- * // `markAsUntransferable()`, this would print an empty Uint8Array.
588
- * // typedArray2 is intact as well.
589
- * console.log(typedArray1);
590
- * console.log(typedArray2);
591
- * ```
592
- *
593
- * There is no equivalent to this API in browsers.
594
- * @since v14.5.0, v12.19.0
595
- */
596
- function markAsUntransferable(object: object): void;
597
- /**
598
- * Check if an object is marked as not transferable with
599
- * {@link markAsUntransferable}.
600
- * @since v21.0.0
601
- */
602
- function isMarkedAsUntransferable(object: object): boolean;
603
- /**
604
- * Mark an object as not cloneable. If `object` is used as `message` in
605
- * a `port.postMessage()` call, an error is thrown. This is a no-op if `object` is a
606
- * primitive value.
607
- *
608
- * This has no effect on `ArrayBuffer`, or any `Buffer` like objects.
609
- *
610
- * This operation cannot be undone.
611
- *
612
- * ```js
613
- * const { markAsUncloneable } = require('node:worker_threads');
614
- *
615
- * const anyObject = { foo: 'bar' };
616
- * markAsUncloneable(anyObject);
617
- * const { port1 } = new MessageChannel();
618
- * try {
619
- * // This will throw an error, because anyObject is not cloneable.
620
- * port1.postMessage(anyObject)
621
- * } catch (error) {
622
- * // error.name === 'DataCloneError'
623
- * }
624
- * ```
625
- *
626
- * There is no equivalent to this API in browsers.
627
- * @since v22.10.0
628
- */
629
- function markAsUncloneable(object: object): void;
630
- /**
631
- * Transfer a `MessagePort` to a different `vm` Context. The original `port` object is rendered unusable, and the returned `MessagePort` instance
632
- * takes its place.
633
- *
634
- * The returned `MessagePort` is an object in the target context and
635
- * inherits from its global `Object` class. Objects passed to the [`port.onmessage()`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessage) listener are also created in the
636
- * target context
637
- * and inherit from its global `Object` class.
638
- *
639
- * However, the created `MessagePort` no longer inherits from [`EventTarget`](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget), and only
640
- * [`port.onmessage()`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessage) can be used to receive
641
- * events using it.
642
- * @since v11.13.0
643
- * @param port The message port to transfer.
644
- * @param contextifiedSandbox A `contextified` object as returned by the `vm.createContext()` method.
645
- */
646
- function moveMessagePortToContext(port: MessagePort, contextifiedSandbox: Context): MessagePort;
647
- /**
648
- * Receive a single message from a given `MessagePort`. If no message is available,`undefined` is returned, otherwise an object with a single `message` property
649
- * that contains the message payload, corresponding to the oldest message in the `MessagePort`'s queue.
650
- *
651
- * ```js
652
- * import { MessageChannel, receiveMessageOnPort } from 'node:worker_threads';
653
- * const { port1, port2 } = new MessageChannel();
654
- * port1.postMessage({ hello: 'world' });
655
- *
656
- * console.log(receiveMessageOnPort(port2));
657
- * // Prints: { message: { hello: 'world' } }
658
- * console.log(receiveMessageOnPort(port2));
659
- * // Prints: undefined
660
- * ```
661
- *
662
- * When this function is used, no `'message'` event is emitted and the `onmessage` listener is not invoked.
663
- * @since v12.3.0
664
- */
665
- function receiveMessageOnPort(port: MessagePort):
666
- | {
667
- message: any;
668
- }
669
- | undefined;
670
- type Serializable = string | object | number | boolean | bigint;
671
- /**
672
- * Within a worker thread, `worker.getEnvironmentData()` returns a clone
673
- * of data passed to the spawning thread's `worker.setEnvironmentData()`.
674
- * Every new `Worker` receives its own copy of the environment data
675
- * automatically.
676
- *
677
- * ```js
678
- * import {
679
- * Worker,
680
- * isMainThread,
681
- * setEnvironmentData,
682
- * getEnvironmentData,
683
- * } from 'node:worker_threads';
684
- *
685
- * if (isMainThread) {
686
- * setEnvironmentData('Hello', 'World!');
687
- * const worker = new Worker(__filename);
688
- * } else {
689
- * console.log(getEnvironmentData('Hello')); // Prints 'World!'.
690
- * }
691
- * ```
692
- * @since v15.12.0, v14.18.0
693
- * @param key Any arbitrary, cloneable JavaScript value that can be used as a {Map} key.
694
- */
695
- function getEnvironmentData(key: Serializable): Serializable;
696
- /**
697
- * The `worker.setEnvironmentData()` API sets the content of `worker.getEnvironmentData()` in the current thread and all new `Worker` instances spawned from the current context.
698
- * @since v15.12.0, v14.18.0
699
- * @param key Any arbitrary, cloneable JavaScript value that can be used as a {Map} key.
700
- * @param value Any arbitrary, cloneable JavaScript value that will be cloned and passed automatically to all new `Worker` instances. If `value` is passed as `undefined`, any previously set value
701
- * for the `key` will be deleted.
702
- */
703
- function setEnvironmentData(key: Serializable, value: Serializable): void;
704
-
705
- import {
706
- BroadcastChannel as _BroadcastChannel,
707
- MessageChannel as _MessageChannel,
708
- MessagePort as _MessagePort,
709
- } from "worker_threads";
710
- global {
711
- /**
712
- * `BroadcastChannel` class is a global reference for `import { BroadcastChannel } from 'worker_threads'`
713
- * https://nodejs.org/api/globals.html#broadcastchannel
714
- * @since v18.0.0
715
- */
716
- var BroadcastChannel: typeof globalThis extends {
717
- onmessage: any;
718
- BroadcastChannel: infer T;
719
- } ? T
720
- : typeof _BroadcastChannel;
721
- /**
722
- * `MessageChannel` class is a global reference for `import { MessageChannel } from 'worker_threads'`
723
- * https://nodejs.org/api/globals.html#messagechannel
724
- * @since v15.0.0
725
- */
726
- var MessageChannel: typeof globalThis extends {
727
- onmessage: any;
728
- MessageChannel: infer T;
729
- } ? T
730
- : typeof _MessageChannel;
731
- /**
732
- * `MessagePort` class is a global reference for `import { MessagePort } from 'worker_threads'`
733
- * https://nodejs.org/api/globals.html#messageport
734
- * @since v15.0.0
735
- */
736
- var MessagePort: typeof globalThis extends {
737
- onmessage: any;
738
- MessagePort: infer T;
739
- } ? T
740
- : typeof _MessagePort;
741
- }
742
- }
743
- declare module "node:worker_threads" {
744
- export * from "worker_threads";
745
- }