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,976 +0,0 @@
1
- /**
2
- * The `node:vm` module enables compiling and running code within V8 Virtual
3
- * Machine contexts.
4
- *
5
- * **The `node:vm` module is not a security**
6
- * **mechanism. Do not use it to run untrusted code.**
7
- *
8
- * JavaScript code can be compiled and run immediately or
9
- * compiled, saved, and run later.
10
- *
11
- * A common use case is to run the code in a different V8 Context. This means
12
- * invoked code has a different global object than the invoking code.
13
- *
14
- * One can provide the context by `contextifying` an
15
- * object. The invoked code treats any property in the context like a
16
- * global variable. Any changes to global variables caused by the invoked
17
- * code are reflected in the context object.
18
- *
19
- * ```js
20
- * import vm from 'node:vm';
21
- *
22
- * const x = 1;
23
- *
24
- * const context = { x: 2 };
25
- * vm.createContext(context); // Contextify the object.
26
- *
27
- * const code = 'x += 40; var y = 17;';
28
- * // `x` and `y` are global variables in the context.
29
- * // Initially, x has the value 2 because that is the value of context.x.
30
- * vm.runInContext(code, context);
31
- *
32
- * console.log(context.x); // 42
33
- * console.log(context.y); // 17
34
- *
35
- * console.log(x); // 1; y is not defined.
36
- * ```
37
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/vm.js)
38
- */
39
- declare module "vm" {
40
- import { ImportAttributes } from "node:module";
41
- interface Context extends NodeJS.Dict<any> {}
42
- interface BaseOptions {
43
- /**
44
- * Specifies the filename used in stack traces produced by this script.
45
- * @default ''
46
- */
47
- filename?: string | undefined;
48
- /**
49
- * Specifies the line number offset that is displayed in stack traces produced by this script.
50
- * @default 0
51
- */
52
- lineOffset?: number | undefined;
53
- /**
54
- * Specifies the column number offset that is displayed in stack traces produced by this script.
55
- * @default 0
56
- */
57
- columnOffset?: number | undefined;
58
- }
59
- interface ScriptOptions extends BaseOptions {
60
- /**
61
- * V8's code cache data for the supplied source.
62
- */
63
- cachedData?: Buffer | NodeJS.ArrayBufferView | undefined;
64
- /** @deprecated in favor of `script.createCachedData()` */
65
- produceCachedData?: boolean | undefined;
66
- /**
67
- * Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is
68
- * part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see
69
- * [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v22.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
70
- */
71
- importModuleDynamically?:
72
- | ((specifier: string, script: Script, importAttributes: ImportAttributes) => Module | Promise<Module>)
73
- | typeof constants.USE_MAIN_CONTEXT_DEFAULT_LOADER
74
- | undefined;
75
- }
76
- interface RunningScriptOptions extends BaseOptions {
77
- /**
78
- * When `true`, if an `Error` occurs while compiling the `code`, the line of code causing the error is attached to the stack trace.
79
- * @default true
80
- */
81
- displayErrors?: boolean | undefined;
82
- /**
83
- * Specifies the number of milliseconds to execute code before terminating execution.
84
- * If execution is terminated, an `Error` will be thrown. This value must be a strictly positive integer.
85
- */
86
- timeout?: number | undefined;
87
- /**
88
- * If `true`, the execution will be terminated when `SIGINT` (Ctrl+C) is received.
89
- * Existing handlers for the event that have been attached via `process.on('SIGINT')` will be disabled during script execution, but will continue to work after that.
90
- * If execution is terminated, an `Error` will be thrown.
91
- * @default false
92
- */
93
- breakOnSigint?: boolean | undefined;
94
- }
95
- interface RunningScriptInNewContextOptions extends RunningScriptOptions {
96
- /**
97
- * Human-readable name of the newly created context.
98
- */
99
- contextName?: CreateContextOptions["name"];
100
- /**
101
- * Origin corresponding to the newly created context for display purposes. The origin should be formatted like a URL,
102
- * but with only the scheme, host, and port (if necessary), like the value of the `url.origin` property of a `URL` object.
103
- * Most notably, this string should omit the trailing slash, as that denotes a path.
104
- */
105
- contextOrigin?: CreateContextOptions["origin"];
106
- contextCodeGeneration?: CreateContextOptions["codeGeneration"];
107
- /**
108
- * If set to `afterEvaluate`, microtasks will be run immediately after the script has run.
109
- */
110
- microtaskMode?: CreateContextOptions["microtaskMode"];
111
- }
112
- interface RunningCodeOptions extends RunningScriptOptions {
113
- cachedData?: ScriptOptions["cachedData"];
114
- importModuleDynamically?: ScriptOptions["importModuleDynamically"];
115
- }
116
- interface RunningCodeInNewContextOptions extends RunningScriptInNewContextOptions {
117
- cachedData?: ScriptOptions["cachedData"];
118
- importModuleDynamically?: ScriptOptions["importModuleDynamically"];
119
- }
120
- interface CompileFunctionOptions extends BaseOptions {
121
- /**
122
- * Provides an optional data with V8's code cache data for the supplied source.
123
- */
124
- cachedData?: Buffer | undefined;
125
- /**
126
- * Specifies whether to produce new cache data.
127
- * @default false
128
- */
129
- produceCachedData?: boolean | undefined;
130
- /**
131
- * The sandbox/context in which the said function should be compiled in.
132
- */
133
- parsingContext?: Context | undefined;
134
- /**
135
- * An array containing a collection of context extensions (objects wrapping the current scope) to be applied while compiling
136
- */
137
- contextExtensions?: Object[] | undefined;
138
- }
139
- interface CreateContextOptions {
140
- /**
141
- * Human-readable name of the newly created context.
142
- * @default 'VM Context i' Where i is an ascending numerical index of the created context.
143
- */
144
- name?: string | undefined;
145
- /**
146
- * Corresponds to the newly created context for display purposes.
147
- * The origin should be formatted like a `URL`, but with only the scheme, host, and port (if necessary),
148
- * like the value of the `url.origin` property of a URL object.
149
- * Most notably, this string should omit the trailing slash, as that denotes a path.
150
- * @default ''
151
- */
152
- origin?: string | undefined;
153
- codeGeneration?:
154
- | {
155
- /**
156
- * If set to false any calls to eval or function constructors (Function, GeneratorFunction, etc)
157
- * will throw an EvalError.
158
- * @default true
159
- */
160
- strings?: boolean | undefined;
161
- /**
162
- * If set to false any attempt to compile a WebAssembly module will throw a WebAssembly.CompileError.
163
- * @default true
164
- */
165
- wasm?: boolean | undefined;
166
- }
167
- | undefined;
168
- /**
169
- * If set to `afterEvaluate`, microtasks will be run immediately after the script has run.
170
- */
171
- microtaskMode?: "afterEvaluate" | undefined;
172
- }
173
- type MeasureMemoryMode = "summary" | "detailed";
174
- interface MeasureMemoryOptions {
175
- /**
176
- * @default 'summary'
177
- */
178
- mode?: MeasureMemoryMode | undefined;
179
- /**
180
- * @default 'default'
181
- */
182
- execution?: "default" | "eager" | undefined;
183
- }
184
- interface MemoryMeasurement {
185
- total: {
186
- jsMemoryEstimate: number;
187
- jsMemoryRange: [number, number];
188
- };
189
- }
190
- /**
191
- * Instances of the `vm.Script` class contain precompiled scripts that can be
192
- * executed in specific contexts.
193
- * @since v0.3.1
194
- */
195
- class Script {
196
- constructor(code: string, options?: ScriptOptions | string);
197
- /**
198
- * Runs the compiled code contained by the `vm.Script` object within the given `contextifiedObject` and returns the result. Running code does not have access
199
- * to local scope.
200
- *
201
- * The following example compiles code that increments a global variable, sets
202
- * the value of another global variable, then execute the code multiple times.
203
- * The globals are contained in the `context` object.
204
- *
205
- * ```js
206
- * import vm from 'node:vm';
207
- *
208
- * const context = {
209
- * animal: 'cat',
210
- * count: 2,
211
- * };
212
- *
213
- * const script = new vm.Script('count += 1; name = "kitty";');
214
- *
215
- * vm.createContext(context);
216
- * for (let i = 0; i < 10; ++i) {
217
- * script.runInContext(context);
218
- * }
219
- *
220
- * console.log(context);
221
- * // Prints: { animal: 'cat', count: 12, name: 'kitty' }
222
- * ```
223
- *
224
- * Using the `timeout` or `breakOnSigint` options will result in new event loops
225
- * and corresponding threads being started, which have a non-zero performance
226
- * overhead.
227
- * @since v0.3.1
228
- * @param contextifiedObject A `contextified` object as returned by the `vm.createContext()` method.
229
- * @return the result of the very last statement executed in the script.
230
- */
231
- runInContext(contextifiedObject: Context, options?: RunningScriptOptions): any;
232
- /**
233
- * This method is a shortcut to `script.runInContext(vm.createContext(options), options)`.
234
- * It does several things at once:
235
- *
236
- * 1. Creates a new context.
237
- * 2. If `contextObject` is an object, contextifies it with the new context.
238
- * If `contextObject` is undefined, creates a new object and contextifies it.
239
- * If `contextObject` is `vm.constants.DONT_CONTEXTIFY`, don't contextify anything.
240
- * 3. Runs the compiled code contained by the `vm.Script` object within the created context. The code
241
- * does not have access to the scope in which this method is called.
242
- * 4. Returns the result.
243
- *
244
- * The following example compiles code that sets a global variable, then executes
245
- * the code multiple times in different contexts. The globals are set on and
246
- * contained within each individual `context`.
247
- *
248
- * ```js
249
- * const vm = require('node:vm');
250
- *
251
- * const script = new vm.Script('globalVar = "set"');
252
- *
253
- * const contexts = [{}, {}, {}];
254
- * contexts.forEach((context) => {
255
- * script.runInNewContext(context);
256
- * });
257
- *
258
- * console.log(contexts);
259
- * // Prints: [{ globalVar: 'set' }, { globalVar: 'set' }, { globalVar: 'set' }]
260
- *
261
- * // This would throw if the context is created from a contextified object.
262
- * // vm.constants.DONT_CONTEXTIFY allows creating contexts with ordinary
263
- * // global objects that can be frozen.
264
- * const freezeScript = new vm.Script('Object.freeze(globalThis); globalThis;');
265
- * const frozenContext = freezeScript.runInNewContext(vm.constants.DONT_CONTEXTIFY);
266
- * ```
267
- * @since v0.3.1
268
- * @param contextObject Either `vm.constants.DONT_CONTEXTIFY` or an object that will be contextified.
269
- * If `undefined`, an empty contextified object will be created for backwards compatibility.
270
- * @return the result of the very last statement executed in the script.
271
- */
272
- runInNewContext(
273
- contextObject?: Context | typeof constants.DONT_CONTEXTIFY,
274
- options?: RunningScriptInNewContextOptions,
275
- ): any;
276
- /**
277
- * Runs the compiled code contained by the `vm.Script` within the context of the
278
- * current `global` object. Running code does not have access to local scope, but _does_ have access to the current `global` object.
279
- *
280
- * The following example compiles code that increments a `global` variable then
281
- * executes that code multiple times:
282
- *
283
- * ```js
284
- * import vm from 'node:vm';
285
- *
286
- * global.globalVar = 0;
287
- *
288
- * const script = new vm.Script('globalVar += 1', { filename: 'myfile.vm' });
289
- *
290
- * for (let i = 0; i < 1000; ++i) {
291
- * script.runInThisContext();
292
- * }
293
- *
294
- * console.log(globalVar);
295
- *
296
- * // 1000
297
- * ```
298
- * @since v0.3.1
299
- * @return the result of the very last statement executed in the script.
300
- */
301
- runInThisContext(options?: RunningScriptOptions): any;
302
- /**
303
- * Creates a code cache that can be used with the `Script` constructor's `cachedData` option. Returns a `Buffer`. This method may be called at any
304
- * time and any number of times.
305
- *
306
- * The code cache of the `Script` doesn't contain any JavaScript observable
307
- * states. The code cache is safe to be saved along side the script source and
308
- * used to construct new `Script` instances multiple times.
309
- *
310
- * Functions in the `Script` source can be marked as lazily compiled and they are
311
- * not compiled at construction of the `Script`. These functions are going to be
312
- * compiled when they are invoked the first time. The code cache serializes the
313
- * metadata that V8 currently knows about the `Script` that it can use to speed up
314
- * future compilations.
315
- *
316
- * ```js
317
- * const script = new vm.Script(`
318
- * function add(a, b) {
319
- * return a + b;
320
- * }
321
- *
322
- * const x = add(1, 2);
323
- * `);
324
- *
325
- * const cacheWithoutAdd = script.createCachedData();
326
- * // In `cacheWithoutAdd` the function `add()` is marked for full compilation
327
- * // upon invocation.
328
- *
329
- * script.runInThisContext();
330
- *
331
- * const cacheWithAdd = script.createCachedData();
332
- * // `cacheWithAdd` contains fully compiled function `add()`.
333
- * ```
334
- * @since v10.6.0
335
- */
336
- createCachedData(): Buffer;
337
- /** @deprecated in favor of `script.createCachedData()` */
338
- cachedDataProduced?: boolean | undefined;
339
- /**
340
- * When `cachedData` is supplied to create the `vm.Script`, this value will be set
341
- * to either `true` or `false` depending on acceptance of the data by V8.
342
- * Otherwise the value is `undefined`.
343
- * @since v5.7.0
344
- */
345
- cachedDataRejected?: boolean | undefined;
346
- cachedData?: Buffer | undefined;
347
- /**
348
- * When the script is compiled from a source that contains a source map magic
349
- * comment, this property will be set to the URL of the source map.
350
- *
351
- * ```js
352
- * import vm from 'node:vm';
353
- *
354
- * const script = new vm.Script(`
355
- * function myFunc() {}
356
- * //# sourceMappingURL=sourcemap.json
357
- * `);
358
- *
359
- * console.log(script.sourceMapURL);
360
- * // Prints: sourcemap.json
361
- * ```
362
- * @since v19.1.0, v18.13.0
363
- */
364
- sourceMapURL?: string | undefined;
365
- }
366
- /**
367
- * If the given `contextObject` is an object, the `vm.createContext()` method will
368
- * [prepare that object](https://nodejs.org/docs/latest-v22.x/api/vm.html#what-does-it-mean-to-contextify-an-object)
369
- * and return a reference to it so that it can be used in calls to {@link runInContext} or
370
- * [`script.runInContext()`](https://nodejs.org/docs/latest-v22.x/api/vm.html#scriptrunincontextcontextifiedobject-options).
371
- * Inside such scripts, the global object will be wrapped by the `contextObject`, retaining all of its
372
- * existing properties but also having the built-in objects and functions any standard
373
- * [global object](https://es5.github.io/#x15.1) has. Outside of scripts run by the vm module, global
374
- * variables will remain unchanged.
375
- *
376
- * ```js
377
- * const vm = require('node:vm');
378
- *
379
- * global.globalVar = 3;
380
- *
381
- * const context = { globalVar: 1 };
382
- * vm.createContext(context);
383
- *
384
- * vm.runInContext('globalVar *= 2;', context);
385
- *
386
- * console.log(context);
387
- * // Prints: { globalVar: 2 }
388
- *
389
- * console.log(global.globalVar);
390
- * // Prints: 3
391
- * ```
392
- *
393
- * If `contextObject` is omitted (or passed explicitly as `undefined`), a new,
394
- * empty contextified object will be returned.
395
- *
396
- * When the global object in the newly created context is contextified, it has some quirks
397
- * compared to ordinary global objects. For example, it cannot be frozen. To create a context
398
- * without the contextifying quirks, pass `vm.constants.DONT_CONTEXTIFY` as the `contextObject`
399
- * argument. See the documentation of `vm.constants.DONT_CONTEXTIFY` for details.
400
- *
401
- * The `vm.createContext()` method is primarily useful for creating a single
402
- * context that can be used to run multiple scripts. For instance, if emulating a
403
- * web browser, the method can be used to create a single context representing a
404
- * window's global object, then run all `<script>` tags together within that
405
- * context.
406
- *
407
- * The provided `name` and `origin` of the context are made visible through the
408
- * Inspector API.
409
- * @since v0.3.1
410
- * @param contextObject Either `vm.constants.DONT_CONTEXTIFY` or an object that will be contextified.
411
- * If `undefined`, an empty contextified object will be created for backwards compatibility.
412
- * @return contextified object.
413
- */
414
- function createContext(
415
- contextObject?: Context | typeof constants.DONT_CONTEXTIFY,
416
- options?: CreateContextOptions,
417
- ): Context;
418
- /**
419
- * Returns `true` if the given `object` object has been contextified using {@link createContext},
420
- * or if it's the global object of a context created using `vm.constants.DONT_CONTEXTIFY`.
421
- * @since v0.11.7
422
- */
423
- function isContext(sandbox: Context): boolean;
424
- /**
425
- * The `vm.runInContext()` method compiles `code`, runs it within the context of
426
- * the `contextifiedObject`, then returns the result. Running code does not have
427
- * access to the local scope. The `contextifiedObject` object _must_ have been
428
- * previously `contextified` using the {@link createContext} method.
429
- *
430
- * If `options` is a string, then it specifies the filename.
431
- *
432
- * The following example compiles and executes different scripts using a single `contextified` object:
433
- *
434
- * ```js
435
- * import vm from 'node:vm';
436
- *
437
- * const contextObject = { globalVar: 1 };
438
- * vm.createContext(contextObject);
439
- *
440
- * for (let i = 0; i < 10; ++i) {
441
- * vm.runInContext('globalVar *= 2;', contextObject);
442
- * }
443
- * console.log(contextObject);
444
- * // Prints: { globalVar: 1024 }
445
- * ```
446
- * @since v0.3.1
447
- * @param code The JavaScript code to compile and run.
448
- * @param contextifiedObject The `contextified` object that will be used as the `global` when the `code` is compiled and run.
449
- * @return the result of the very last statement executed in the script.
450
- */
451
- function runInContext(code: string, contextifiedObject: Context, options?: RunningCodeOptions | string): any;
452
- /**
453
- * This method is a shortcut to
454
- * `(new vm.Script(code, options)).runInContext(vm.createContext(options), options)`.
455
- * If `options` is a string, then it specifies the filename.
456
- *
457
- * It does several things at once:
458
- *
459
- * 1. Creates a new context.
460
- * 2. If `contextObject` is an object, contextifies it with the new context.
461
- * If `contextObject` is undefined, creates a new object and contextifies it.
462
- * If `contextObject` is `vm.constants.DONT_CONTEXTIFY`, don't contextify anything.
463
- * 3. Compiles the code as a`vm.Script`
464
- * 4. Runs the compield code within the created context. The code does not have access to the scope in
465
- * which this method is called.
466
- * 5. Returns the result.
467
- *
468
- * The following example compiles and executes code that increments a global
469
- * variable and sets a new one. These globals are contained in the `contextObject`.
470
- *
471
- * ```js
472
- * const vm = require('node:vm');
473
- *
474
- * const contextObject = {
475
- * animal: 'cat',
476
- * count: 2,
477
- * };
478
- *
479
- * vm.runInNewContext('count += 1; name = "kitty"', contextObject);
480
- * console.log(contextObject);
481
- * // Prints: { animal: 'cat', count: 3, name: 'kitty' }
482
- *
483
- * // This would throw if the context is created from a contextified object.
484
- * // vm.constants.DONT_CONTEXTIFY allows creating contexts with ordinary global objects that
485
- * // can be frozen.
486
- * const frozenContext = vm.runInNewContext('Object.freeze(globalThis); globalThis;', vm.constants.DONT_CONTEXTIFY);
487
- * ```
488
- * @since v0.3.1
489
- * @param code The JavaScript code to compile and run.
490
- * @param contextObject Either `vm.constants.DONT_CONTEXTIFY` or an object that will be contextified.
491
- * If `undefined`, an empty contextified object will be created for backwards compatibility.
492
- * @return the result of the very last statement executed in the script.
493
- */
494
- function runInNewContext(
495
- code: string,
496
- contextObject?: Context | typeof constants.DONT_CONTEXTIFY,
497
- options?: RunningCodeInNewContextOptions | string,
498
- ): any;
499
- /**
500
- * `vm.runInThisContext()` compiles `code`, runs it within the context of the
501
- * current `global` and returns the result. Running code does not have access to
502
- * local scope, but does have access to the current `global` object.
503
- *
504
- * If `options` is a string, then it specifies the filename.
505
- *
506
- * The following example illustrates using both `vm.runInThisContext()` and
507
- * the JavaScript [`eval()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval) function to run the same code:
508
- *
509
- * ```js
510
- * import vm from 'node:vm';
511
- * let localVar = 'initial value';
512
- *
513
- * const vmResult = vm.runInThisContext('localVar = "vm";');
514
- * console.log(`vmResult: '${vmResult}', localVar: '${localVar}'`);
515
- * // Prints: vmResult: 'vm', localVar: 'initial value'
516
- *
517
- * const evalResult = eval('localVar = "eval";');
518
- * console.log(`evalResult: '${evalResult}', localVar: '${localVar}'`);
519
- * // Prints: evalResult: 'eval', localVar: 'eval'
520
- * ```
521
- *
522
- * Because `vm.runInThisContext()` does not have access to the local scope, `localVar` is unchanged. In contrast,
523
- * [`eval()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval) _does_ have access to the
524
- * local scope, so the value `localVar` is changed. In this way `vm.runInThisContext()` is much like an [indirect `eval()` call](https://es5.github.io/#x10.4.2), e.g.`(0,eval)('code')`.
525
- *
526
- * ## Example: Running an HTTP server within a VM
527
- *
528
- * When using either `script.runInThisContext()` or {@link runInThisContext}, the code is executed within the current V8 global
529
- * context. The code passed to this VM context will have its own isolated scope.
530
- *
531
- * In order to run a simple web server using the `node:http` module the code passed
532
- * to the context must either import `node:http` on its own, or have a
533
- * reference to the `node:http` module passed to it. For instance:
534
- *
535
- * ```js
536
- * 'use strict';
537
- * import vm from 'node:vm';
538
- *
539
- * const code = `
540
- * ((require) => {
541
- * const http = require('node:http');
542
- *
543
- * http.createServer((request, response) => {
544
- * response.writeHead(200, { 'Content-Type': 'text/plain' });
545
- * response.end('Hello World\\n');
546
- * }).listen(8124);
547
- *
548
- * console.log('Server running at http://127.0.0.1:8124/');
549
- * })`;
550
- *
551
- * vm.runInThisContext(code)(require);
552
- * ```
553
- *
554
- * The `require()` in the above case shares the state with the context it is
555
- * passed from. This may introduce risks when untrusted code is executed, e.g.
556
- * altering objects in the context in unwanted ways.
557
- * @since v0.3.1
558
- * @param code The JavaScript code to compile and run.
559
- * @return the result of the very last statement executed in the script.
560
- */
561
- function runInThisContext(code: string, options?: RunningCodeOptions | string): any;
562
- /**
563
- * Compiles the given code into the provided context (if no context is
564
- * supplied, the current context is used), and returns it wrapped inside a
565
- * function with the given `params`.
566
- * @since v10.10.0
567
- * @param code The body of the function to compile.
568
- * @param params An array of strings containing all parameters for the function.
569
- */
570
- function compileFunction(
571
- code: string,
572
- params?: readonly string[],
573
- options?: CompileFunctionOptions,
574
- ): Function & {
575
- cachedData?: Script["cachedData"] | undefined;
576
- cachedDataProduced?: Script["cachedDataProduced"] | undefined;
577
- cachedDataRejected?: Script["cachedDataRejected"] | undefined;
578
- };
579
- /**
580
- * Measure the memory known to V8 and used by all contexts known to the
581
- * current V8 isolate, or the main context.
582
- *
583
- * The format of the object that the returned Promise may resolve with is
584
- * specific to the V8 engine and may change from one version of V8 to the next.
585
- *
586
- * The returned result is different from the statistics returned by `v8.getHeapSpaceStatistics()` in that `vm.measureMemory()` measure the
587
- * memory reachable by each V8 specific contexts in the current instance of
588
- * the V8 engine, while the result of `v8.getHeapSpaceStatistics()` measure
589
- * the memory occupied by each heap space in the current V8 instance.
590
- *
591
- * ```js
592
- * import vm from 'node:vm';
593
- * // Measure the memory used by the main context.
594
- * vm.measureMemory({ mode: 'summary' })
595
- * // This is the same as vm.measureMemory()
596
- * .then((result) => {
597
- * // The current format is:
598
- * // {
599
- * // total: {
600
- * // jsMemoryEstimate: 2418479, jsMemoryRange: [ 2418479, 2745799 ]
601
- * // }
602
- * // }
603
- * console.log(result);
604
- * });
605
- *
606
- * const context = vm.createContext({ a: 1 });
607
- * vm.measureMemory({ mode: 'detailed', execution: 'eager' })
608
- * .then((result) => {
609
- * // Reference the context here so that it won't be GC'ed
610
- * // until the measurement is complete.
611
- * console.log(context.a);
612
- * // {
613
- * // total: {
614
- * // jsMemoryEstimate: 2574732,
615
- * // jsMemoryRange: [ 2574732, 2904372 ]
616
- * // },
617
- * // current: {
618
- * // jsMemoryEstimate: 2438996,
619
- * // jsMemoryRange: [ 2438996, 2768636 ]
620
- * // },
621
- * // other: [
622
- * // {
623
- * // jsMemoryEstimate: 135736,
624
- * // jsMemoryRange: [ 135736, 465376 ]
625
- * // }
626
- * // ]
627
- * // }
628
- * console.log(result);
629
- * });
630
- * ```
631
- * @since v13.10.0
632
- * @experimental
633
- */
634
- function measureMemory(options?: MeasureMemoryOptions): Promise<MemoryMeasurement>;
635
- interface ModuleEvaluateOptions {
636
- timeout?: RunningScriptOptions["timeout"] | undefined;
637
- breakOnSigint?: RunningScriptOptions["breakOnSigint"] | undefined;
638
- }
639
- type ModuleLinker = (
640
- specifier: string,
641
- referencingModule: Module,
642
- extra: {
643
- attributes: ImportAttributes;
644
- },
645
- ) => Module | Promise<Module>;
646
- type ModuleStatus = "unlinked" | "linking" | "linked" | "evaluating" | "evaluated" | "errored";
647
- /**
648
- * This feature is only available with the `--experimental-vm-modules` command
649
- * flag enabled.
650
- *
651
- * The `vm.Module` class provides a low-level interface for using
652
- * ECMAScript modules in VM contexts. It is the counterpart of the `vm.Script` class that closely mirrors [Module Record](https://262.ecma-international.org/14.0/#sec-abstract-module-records) s as
653
- * defined in the ECMAScript
654
- * specification.
655
- *
656
- * Unlike `vm.Script` however, every `vm.Module` object is bound to a context from
657
- * its creation. Operations on `vm.Module` objects are intrinsically asynchronous,
658
- * in contrast with the synchronous nature of `vm.Script` objects. The use of
659
- * 'async' functions can help with manipulating `vm.Module` objects.
660
- *
661
- * Using a `vm.Module` object requires three distinct steps: creation/parsing,
662
- * linking, and evaluation. These three steps are illustrated in the following
663
- * example.
664
- *
665
- * This implementation lies at a lower level than the `ECMAScript Module
666
- * loader`. There is also no way to interact with the Loader yet, though
667
- * support is planned.
668
- *
669
- * ```js
670
- * import vm from 'node:vm';
671
- *
672
- * const contextifiedObject = vm.createContext({
673
- * secret: 42,
674
- * print: console.log,
675
- * });
676
- *
677
- * // Step 1
678
- * //
679
- * // Create a Module by constructing a new `vm.SourceTextModule` object. This
680
- * // parses the provided source text, throwing a `SyntaxError` if anything goes
681
- * // wrong. By default, a Module is created in the top context. But here, we
682
- * // specify `contextifiedObject` as the context this Module belongs to.
683
- * //
684
- * // Here, we attempt to obtain the default export from the module "foo", and
685
- * // put it into local binding "secret".
686
- *
687
- * const bar = new vm.SourceTextModule(`
688
- * import s from 'foo';
689
- * s;
690
- * print(s);
691
- * `, { context: contextifiedObject });
692
- *
693
- * // Step 2
694
- * //
695
- * // "Link" the imported dependencies of this Module to it.
696
- * //
697
- * // The provided linking callback (the "linker") accepts two arguments: the
698
- * // parent module (`bar` in this case) and the string that is the specifier of
699
- * // the imported module. The callback is expected to return a Module that
700
- * // corresponds to the provided specifier, with certain requirements documented
701
- * // in `module.link()`.
702
- * //
703
- * // If linking has not started for the returned Module, the same linker
704
- * // callback will be called on the returned Module.
705
- * //
706
- * // Even top-level Modules without dependencies must be explicitly linked. The
707
- * // callback provided would never be called, however.
708
- * //
709
- * // The link() method returns a Promise that will be resolved when all the
710
- * // Promises returned by the linker resolve.
711
- * //
712
- * // Note: This is a contrived example in that the linker function creates a new
713
- * // "foo" module every time it is called. In a full-fledged module system, a
714
- * // cache would probably be used to avoid duplicated modules.
715
- *
716
- * async function linker(specifier, referencingModule) {
717
- * if (specifier === 'foo') {
718
- * return new vm.SourceTextModule(`
719
- * // The "secret" variable refers to the global variable we added to
720
- * // "contextifiedObject" when creating the context.
721
- * export default secret;
722
- * `, { context: referencingModule.context });
723
- *
724
- * // Using `contextifiedObject` instead of `referencingModule.context`
725
- * // here would work as well.
726
- * }
727
- * throw new Error(`Unable to resolve dependency: ${specifier}`);
728
- * }
729
- * await bar.link(linker);
730
- *
731
- * // Step 3
732
- * //
733
- * // Evaluate the Module. The evaluate() method returns a promise which will
734
- * // resolve after the module has finished evaluating.
735
- *
736
- * // Prints 42.
737
- * await bar.evaluate();
738
- * ```
739
- * @since v13.0.0, v12.16.0
740
- * @experimental
741
- */
742
- class Module {
743
- /**
744
- * The specifiers of all dependencies of this module. The returned array is frozen
745
- * to disallow any changes to it.
746
- *
747
- * Corresponds to the `[[RequestedModules]]` field of [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records) s in
748
- * the ECMAScript specification.
749
- */
750
- dependencySpecifiers: readonly string[];
751
- /**
752
- * If the `module.status` is `'errored'`, this property contains the exception
753
- * thrown by the module during evaluation. If the status is anything else,
754
- * accessing this property will result in a thrown exception.
755
- *
756
- * The value `undefined` cannot be used for cases where there is not a thrown
757
- * exception due to possible ambiguity with `throw undefined;`.
758
- *
759
- * Corresponds to the `[[EvaluationError]]` field of [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records) s
760
- * in the ECMAScript specification.
761
- */
762
- error: any;
763
- /**
764
- * The identifier of the current module, as set in the constructor.
765
- */
766
- identifier: string;
767
- context: Context;
768
- /**
769
- * The namespace object of the module. This is only available after linking
770
- * (`module.link()`) has completed.
771
- *
772
- * Corresponds to the [GetModuleNamespace](https://tc39.es/ecma262/#sec-getmodulenamespace) abstract operation in the ECMAScript
773
- * specification.
774
- */
775
- namespace: Object;
776
- /**
777
- * The current status of the module. Will be one of:
778
- *
779
- * * `'unlinked'`: `module.link()` has not yet been called.
780
- * * `'linking'`: `module.link()` has been called, but not all Promises returned
781
- * by the linker function have been resolved yet.
782
- * * `'linked'`: The module has been linked successfully, and all of its
783
- * dependencies are linked, but `module.evaluate()` has not yet been called.
784
- * * `'evaluating'`: The module is being evaluated through a `module.evaluate()` on
785
- * itself or a parent module.
786
- * * `'evaluated'`: The module has been successfully evaluated.
787
- * * `'errored'`: The module has been evaluated, but an exception was thrown.
788
- *
789
- * Other than `'errored'`, this status string corresponds to the specification's [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records)'s `[[Status]]` field. `'errored'`
790
- * corresponds to `'evaluated'` in the specification, but with `[[EvaluationError]]` set to a
791
- * value that is not `undefined`.
792
- */
793
- status: ModuleStatus;
794
- /**
795
- * Evaluate the module.
796
- *
797
- * This must be called after the module has been linked; otherwise it will reject.
798
- * It could be called also when the module has already been evaluated, in which
799
- * case it will either do nothing if the initial evaluation ended in success
800
- * (`module.status` is `'evaluated'`) or it will re-throw the exception that the
801
- * initial evaluation resulted in (`module.status` is `'errored'`).
802
- *
803
- * This method cannot be called while the module is being evaluated
804
- * (`module.status` is `'evaluating'`).
805
- *
806
- * Corresponds to the [Evaluate() concrete method](https://tc39.es/ecma262/#sec-moduleevaluation) field of [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records) s in the
807
- * ECMAScript specification.
808
- * @return Fulfills with `undefined` upon success.
809
- */
810
- evaluate(options?: ModuleEvaluateOptions): Promise<void>;
811
- /**
812
- * Link module dependencies. This method must be called before evaluation, and
813
- * can only be called once per module.
814
- *
815
- * The function is expected to return a `Module` object or a `Promise` that
816
- * eventually resolves to a `Module` object. The returned `Module` must satisfy the
817
- * following two invariants:
818
- *
819
- * * It must belong to the same context as the parent `Module`.
820
- * * Its `status` must not be `'errored'`.
821
- *
822
- * If the returned `Module`'s `status` is `'unlinked'`, this method will be
823
- * recursively called on the returned `Module` with the same provided `linker` function.
824
- *
825
- * `link()` returns a `Promise` that will either get resolved when all linking
826
- * instances resolve to a valid `Module`, or rejected if the linker function either
827
- * throws an exception or returns an invalid `Module`.
828
- *
829
- * The linker function roughly corresponds to the implementation-defined [HostResolveImportedModule](https://tc39.es/ecma262/#sec-hostresolveimportedmodule) abstract operation in the
830
- * ECMAScript
831
- * specification, with a few key differences:
832
- *
833
- * * The linker function is allowed to be asynchronous while [HostResolveImportedModule](https://tc39.es/ecma262/#sec-hostresolveimportedmodule) is synchronous.
834
- *
835
- * The actual [HostResolveImportedModule](https://tc39.es/ecma262/#sec-hostresolveimportedmodule) implementation used during module
836
- * linking is one that returns the modules linked during linking. Since at
837
- * that point all modules would have been fully linked already, the [HostResolveImportedModule](https://tc39.es/ecma262/#sec-hostresolveimportedmodule) implementation is fully synchronous per
838
- * specification.
839
- *
840
- * Corresponds to the [Link() concrete method](https://tc39.es/ecma262/#sec-moduledeclarationlinking) field of [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records) s in
841
- * the ECMAScript specification.
842
- */
843
- link(linker: ModuleLinker): Promise<void>;
844
- }
845
- interface SourceTextModuleOptions {
846
- /**
847
- * String used in stack traces.
848
- * @default 'vm:module(i)' where i is a context-specific ascending index.
849
- */
850
- identifier?: string | undefined;
851
- cachedData?: ScriptOptions["cachedData"] | undefined;
852
- context?: Context | undefined;
853
- lineOffset?: BaseOptions["lineOffset"] | undefined;
854
- columnOffset?: BaseOptions["columnOffset"] | undefined;
855
- /**
856
- * Called during evaluation of this module to initialize the `import.meta`.
857
- */
858
- initializeImportMeta?: ((meta: ImportMeta, module: SourceTextModule) => void) | undefined;
859
- importModuleDynamically?: ScriptOptions["importModuleDynamically"] | undefined;
860
- }
861
- /**
862
- * This feature is only available with the `--experimental-vm-modules` command
863
- * flag enabled.
864
- *
865
- * The `vm.SourceTextModule` class provides the [Source Text Module Record](https://tc39.es/ecma262/#sec-source-text-module-records) as
866
- * defined in the ECMAScript specification.
867
- * @since v9.6.0
868
- * @experimental
869
- */
870
- class SourceTextModule extends Module {
871
- /**
872
- * Creates a new `SourceTextModule` instance.
873
- * @param code JavaScript Module code to parse
874
- */
875
- constructor(code: string, options?: SourceTextModuleOptions);
876
- }
877
- interface SyntheticModuleOptions {
878
- /**
879
- * String used in stack traces.
880
- * @default 'vm:module(i)' where i is a context-specific ascending index.
881
- */
882
- identifier?: string | undefined;
883
- /**
884
- * The contextified object as returned by the `vm.createContext()` method, to compile and evaluate this module in.
885
- */
886
- context?: Context | undefined;
887
- }
888
- /**
889
- * This feature is only available with the `--experimental-vm-modules` command
890
- * flag enabled.
891
- *
892
- * The `vm.SyntheticModule` class provides the [Synthetic Module Record](https://heycam.github.io/webidl/#synthetic-module-records) as
893
- * defined in the WebIDL specification. The purpose of synthetic modules is to
894
- * provide a generic interface for exposing non-JavaScript sources to ECMAScript
895
- * module graphs.
896
- *
897
- * ```js
898
- * import vm from 'node:vm';
899
- *
900
- * const source = '{ "a": 1 }';
901
- * const module = new vm.SyntheticModule(['default'], function() {
902
- * const obj = JSON.parse(source);
903
- * this.setExport('default', obj);
904
- * });
905
- *
906
- * // Use `module` in linking...
907
- * ```
908
- * @since v13.0.0, v12.16.0
909
- * @experimental
910
- */
911
- class SyntheticModule extends Module {
912
- /**
913
- * Creates a new `SyntheticModule` instance.
914
- * @param exportNames Array of names that will be exported from the module.
915
- * @param evaluateCallback Called when the module is evaluated.
916
- */
917
- constructor(
918
- exportNames: string[],
919
- evaluateCallback: (this: SyntheticModule) => void,
920
- options?: SyntheticModuleOptions,
921
- );
922
- /**
923
- * This method is used after the module is linked to set the values of exports. If
924
- * it is called before the module is linked, an `ERR_VM_MODULE_STATUS` error
925
- * will be thrown.
926
- *
927
- * ```js
928
- * import vm from 'node:vm';
929
- *
930
- * const m = new vm.SyntheticModule(['x'], () => {
931
- * m.setExport('x', 1);
932
- * });
933
- *
934
- * await m.link(() => {});
935
- * await m.evaluate();
936
- *
937
- * assert.strictEqual(m.namespace.x, 1);
938
- * ```
939
- * @since v13.0.0, v12.16.0
940
- * @param name Name of the export to set.
941
- * @param value The value to set the export to.
942
- */
943
- setExport(name: string, value: any): void;
944
- }
945
- /**
946
- * Returns an object containing commonly used constants for VM operations.
947
- * @since v21.7.0, v20.12.0
948
- */
949
- namespace constants {
950
- /**
951
- * A constant that can be used as the `importModuleDynamically` option to `vm.Script`
952
- * and `vm.compileFunction()` so that Node.js uses the default ESM loader from the main
953
- * context to load the requested module.
954
- *
955
- * For detailed information, see [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v22.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
956
- * @since v21.7.0, v20.12.0
957
- */
958
- const USE_MAIN_CONTEXT_DEFAULT_LOADER: number;
959
- /**
960
- * This constant, when used as the `contextObject` argument in vm APIs, instructs Node.js to create
961
- * a context without wrapping its global object with another object in a Node.js-specific manner.
962
- * As a result, the `globalThis` value inside the new context would behave more closely to an ordinary
963
- * one.
964
- *
965
- * When `vm.constants.DONT_CONTEXTIFY` is used as the `contextObject` argument to {@link createContext},
966
- * the returned object is a proxy-like object to the global object in the newly created context with
967
- * fewer Node.js-specific quirks. It is reference equal to the `globalThis` value in the new context,
968
- * can be modified from outside the context, and can be used to access built-ins in the new context directly.
969
- * @since v22.8.0
970
- */
971
- const DONT_CONTEXTIFY: number;
972
- }
973
- }
974
- declare module "node:vm" {
975
- export * from "vm";
976
- }