cdk-ecr-deployment 0.0.75 → 0.0.81

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 (357) hide show
  1. package/.gitattributes +20 -21
  2. package/.jsii +43 -35
  3. package/lambda/Dockerfile +25 -0
  4. package/lambda/install.js +64 -0
  5. package/lib/index.js +40 -23
  6. package/node_modules/@sindresorhus/is/dist/index.d.ts +225 -0
  7. package/node_modules/@sindresorhus/is/dist/index.js +427 -0
  8. package/node_modules/@sindresorhus/is/dist/types.d.ts +24 -0
  9. package/node_modules/@sindresorhus/is/dist/types.js +3 -0
  10. package/node_modules/@sindresorhus/is/license +9 -0
  11. package/node_modules/@sindresorhus/is/package.json +96 -0
  12. package/node_modules/@sindresorhus/is/readme.md +628 -0
  13. package/node_modules/@szmarczak/http-timer/LICENSE +21 -0
  14. package/node_modules/@szmarczak/http-timer/README.md +93 -0
  15. package/node_modules/@szmarczak/http-timer/dist/source/index.d.ts +32 -0
  16. package/node_modules/@szmarczak/http-timer/dist/source/index.js +126 -0
  17. package/node_modules/@szmarczak/http-timer/package.json +72 -0
  18. package/node_modules/@types/cacheable-request/LICENSE +21 -0
  19. package/node_modules/@types/cacheable-request/README.md +16 -0
  20. package/node_modules/@types/cacheable-request/index.d.ts +137 -0
  21. package/node_modules/@types/cacheable-request/node_modules/@types/node/LICENSE +21 -0
  22. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +16 -0
  23. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert/strict.d.ts +8 -0
  24. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +912 -0
  25. package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +497 -0
  26. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +2142 -0
  27. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +1366 -0
  28. package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +414 -0
  29. package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +412 -0
  30. package/node_modules/@types/cacheable-request/node_modules/@types/node/constants.d.ts +18 -0
  31. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +3307 -0
  32. package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +545 -0
  33. package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +134 -0
  34. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +368 -0
  35. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +654 -0
  36. package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +169 -0
  37. package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +623 -0
  38. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +1091 -0
  39. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +3784 -0
  40. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +284 -0
  41. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.global.d.ts +1 -0
  42. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +1369 -0
  43. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +2100 -0
  44. package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +391 -0
  45. package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +131 -0
  46. package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +2745 -0
  47. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +114 -0
  48. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +783 -0
  49. package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +455 -0
  50. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +230 -0
  51. package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +172 -0
  52. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +555 -0
  53. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +1481 -0
  54. package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +117 -0
  55. package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +131 -0
  56. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +543 -0
  57. package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +424 -0
  58. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/consumers.d.ts +24 -0
  59. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/promises.d.ts +42 -0
  60. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +6 -0
  61. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +1249 -0
  62. package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +67 -0
  63. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +68 -0
  64. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +94 -0
  65. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +1019 -0
  66. package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +161 -0
  67. package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +204 -0
  68. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +821 -0
  69. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +1594 -0
  70. package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +378 -0
  71. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +507 -0
  72. package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +158 -0
  73. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +649 -0
  74. package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +517 -0
  75. package/node_modules/@types/cacheable-request/package.json +35 -0
  76. package/node_modules/@types/http-cache-semantics/LICENSE +21 -0
  77. package/node_modules/@types/http-cache-semantics/README.md +16 -0
  78. package/node_modules/@types/http-cache-semantics/index.d.ts +170 -0
  79. package/node_modules/@types/http-cache-semantics/package.json +25 -0
  80. package/node_modules/@types/keyv/LICENSE +21 -0
  81. package/node_modules/@types/keyv/README.md +16 -0
  82. package/node_modules/@types/keyv/index.d.ts +77 -0
  83. package/node_modules/@types/keyv/node_modules/@types/node/LICENSE +21 -0
  84. package/node_modules/@types/keyv/node_modules/@types/node/README.md +16 -0
  85. package/node_modules/@types/keyv/node_modules/@types/node/assert/strict.d.ts +8 -0
  86. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +912 -0
  87. package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +497 -0
  88. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +2142 -0
  89. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +1366 -0
  90. package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +414 -0
  91. package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +412 -0
  92. package/node_modules/@types/keyv/node_modules/@types/node/constants.d.ts +18 -0
  93. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +3307 -0
  94. package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +545 -0
  95. package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +134 -0
  96. package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +368 -0
  97. package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +654 -0
  98. package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +169 -0
  99. package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +623 -0
  100. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +1091 -0
  101. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +3784 -0
  102. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +284 -0
  103. package/node_modules/@types/keyv/node_modules/@types/node/globals.global.d.ts +1 -0
  104. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +1369 -0
  105. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +2100 -0
  106. package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +391 -0
  107. package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +131 -0
  108. package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +2745 -0
  109. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +114 -0
  110. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +783 -0
  111. package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +455 -0
  112. package/node_modules/@types/keyv/node_modules/@types/node/package.json +230 -0
  113. package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +172 -0
  114. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +555 -0
  115. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +1481 -0
  116. package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +117 -0
  117. package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +131 -0
  118. package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +543 -0
  119. package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +424 -0
  120. package/node_modules/@types/keyv/node_modules/@types/node/stream/consumers.d.ts +24 -0
  121. package/node_modules/@types/keyv/node_modules/@types/node/stream/promises.d.ts +42 -0
  122. package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +6 -0
  123. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +1249 -0
  124. package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +67 -0
  125. package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +68 -0
  126. package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +94 -0
  127. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +1019 -0
  128. package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +161 -0
  129. package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +204 -0
  130. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +821 -0
  131. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +1594 -0
  132. package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +378 -0
  133. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +507 -0
  134. package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +158 -0
  135. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +649 -0
  136. package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +517 -0
  137. package/node_modules/@types/keyv/package.json +32 -0
  138. package/node_modules/@types/responselike/LICENSE +21 -0
  139. package/node_modules/@types/responselike/README.md +16 -0
  140. package/node_modules/@types/responselike/index.d.ts +34 -0
  141. package/node_modules/@types/responselike/node_modules/@types/node/LICENSE +21 -0
  142. package/node_modules/@types/responselike/node_modules/@types/node/README.md +16 -0
  143. package/node_modules/@types/responselike/node_modules/@types/node/assert/strict.d.ts +8 -0
  144. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +912 -0
  145. package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +497 -0
  146. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +2142 -0
  147. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +1366 -0
  148. package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +414 -0
  149. package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +412 -0
  150. package/node_modules/@types/responselike/node_modules/@types/node/constants.d.ts +18 -0
  151. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +3307 -0
  152. package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +545 -0
  153. package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +134 -0
  154. package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +368 -0
  155. package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +654 -0
  156. package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +169 -0
  157. package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +623 -0
  158. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +1091 -0
  159. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +3784 -0
  160. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +284 -0
  161. package/node_modules/@types/responselike/node_modules/@types/node/globals.global.d.ts +1 -0
  162. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +1369 -0
  163. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +2100 -0
  164. package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +391 -0
  165. package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +131 -0
  166. package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +2745 -0
  167. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +114 -0
  168. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +783 -0
  169. package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +455 -0
  170. package/node_modules/@types/responselike/node_modules/@types/node/package.json +230 -0
  171. package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +172 -0
  172. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +555 -0
  173. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +1481 -0
  174. package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +117 -0
  175. package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +131 -0
  176. package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +543 -0
  177. package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +424 -0
  178. package/node_modules/@types/responselike/node_modules/@types/node/stream/consumers.d.ts +24 -0
  179. package/node_modules/@types/responselike/node_modules/@types/node/stream/promises.d.ts +42 -0
  180. package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +6 -0
  181. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +1249 -0
  182. package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +67 -0
  183. package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +68 -0
  184. package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +94 -0
  185. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +1019 -0
  186. package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +161 -0
  187. package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +204 -0
  188. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +821 -0
  189. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +1594 -0
  190. package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +378 -0
  191. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +507 -0
  192. package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +158 -0
  193. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +649 -0
  194. package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +517 -0
  195. package/node_modules/@types/responselike/package.json +25 -0
  196. package/node_modules/cacheable-lookup/LICENSE +21 -0
  197. package/node_modules/cacheable-lookup/README.md +240 -0
  198. package/node_modules/cacheable-lookup/index.d.ts +139 -0
  199. package/node_modules/cacheable-lookup/package.json +45 -0
  200. package/node_modules/cacheable-lookup/source/index.js +436 -0
  201. package/node_modules/cacheable-request/LICENSE +21 -0
  202. package/node_modules/cacheable-request/README.md +206 -0
  203. package/node_modules/cacheable-request/package.json +56 -0
  204. package/node_modules/cacheable-request/src/index.js +251 -0
  205. package/node_modules/clone-response/LICENSE +21 -0
  206. package/node_modules/clone-response/README.md +62 -0
  207. package/node_modules/clone-response/package.json +44 -0
  208. package/node_modules/clone-response/src/index.js +17 -0
  209. package/node_modules/decompress-response/index.d.ts +22 -0
  210. package/node_modules/decompress-response/index.js +58 -0
  211. package/node_modules/decompress-response/license +9 -0
  212. package/node_modules/decompress-response/node_modules/mimic-response/index.d.ts +17 -0
  213. package/node_modules/decompress-response/node_modules/mimic-response/index.js +77 -0
  214. package/node_modules/decompress-response/node_modules/mimic-response/license +9 -0
  215. package/node_modules/decompress-response/node_modules/mimic-response/package.json +42 -0
  216. package/node_modules/decompress-response/node_modules/mimic-response/readme.md +78 -0
  217. package/node_modules/decompress-response/package.json +56 -0
  218. package/node_modules/decompress-response/readme.md +48 -0
  219. package/node_modules/defer-to-connect/LICENSE +21 -0
  220. package/node_modules/defer-to-connect/README.md +38 -0
  221. package/node_modules/defer-to-connect/dist/source/index.d.ts +10 -0
  222. package/node_modules/defer-to-connect/dist/source/index.js +47 -0
  223. package/node_modules/defer-to-connect/package.json +71 -0
  224. package/node_modules/end-of-stream/LICENSE +21 -0
  225. package/node_modules/end-of-stream/README.md +54 -0
  226. package/node_modules/end-of-stream/index.js +94 -0
  227. package/node_modules/end-of-stream/package.json +37 -0
  228. package/node_modules/get-stream/buffer-stream.js +52 -0
  229. package/node_modules/get-stream/index.d.ts +108 -0
  230. package/node_modules/get-stream/index.js +60 -0
  231. package/node_modules/get-stream/license +9 -0
  232. package/node_modules/get-stream/package.json +50 -0
  233. package/node_modules/get-stream/readme.md +124 -0
  234. package/node_modules/got/dist/source/as-promise/create-rejection.d.ts +2 -0
  235. package/node_modules/got/dist/source/as-promise/create-rejection.js +30 -0
  236. package/node_modules/got/dist/source/as-promise/index.d.ts +3 -0
  237. package/node_modules/got/dist/source/as-promise/index.js +175 -0
  238. package/node_modules/got/dist/source/as-promise/normalize-arguments.d.ts +3 -0
  239. package/node_modules/got/dist/source/as-promise/normalize-arguments.js +78 -0
  240. package/node_modules/got/dist/source/as-promise/parse-body.d.ts +3 -0
  241. package/node_modules/got/dist/source/as-promise/parse-body.js +25 -0
  242. package/node_modules/got/dist/source/as-promise/types.d.ts +256 -0
  243. package/node_modules/got/dist/source/as-promise/types.js +40 -0
  244. package/node_modules/got/dist/source/core/calculate-retry-delay.d.ts +5 -0
  245. package/node_modules/got/dist/source/core/calculate-retry-delay.js +29 -0
  246. package/node_modules/got/dist/source/core/index.d.ts +1124 -0
  247. package/node_modules/got/dist/source/core/index.js +1491 -0
  248. package/node_modules/got/dist/source/core/utils/dns-ip-version.d.ts +5 -0
  249. package/node_modules/got/dist/source/core/utils/dns-ip-version.js +17 -0
  250. package/node_modules/got/dist/source/core/utils/get-body-size.d.ts +3 -0
  251. package/node_modules/got/dist/source/core/utils/get-body-size.js +32 -0
  252. package/node_modules/got/dist/source/core/utils/get-buffer.d.ts +4 -0
  253. package/node_modules/got/dist/source/core/utils/get-buffer.js +16 -0
  254. package/node_modules/got/dist/source/core/utils/is-form-data.d.ts +8 -0
  255. package/node_modules/got/dist/source/core/utils/is-form-data.js +4 -0
  256. package/node_modules/got/dist/source/core/utils/is-response-ok.d.ts +2 -0
  257. package/node_modules/got/dist/source/core/utils/is-response-ok.js +8 -0
  258. package/node_modules/got/dist/source/core/utils/options-to-url.d.ts +14 -0
  259. package/node_modules/got/dist/source/core/utils/options-to-url.js +53 -0
  260. package/node_modules/got/dist/source/core/utils/proxy-events.d.ts +3 -0
  261. package/node_modules/got/dist/source/core/utils/proxy-events.js +17 -0
  262. package/node_modules/got/dist/source/core/utils/timed-out.d.ts +29 -0
  263. package/node_modules/got/dist/source/core/utils/timed-out.js +121 -0
  264. package/node_modules/got/dist/source/core/utils/unhandle.d.ts +11 -0
  265. package/node_modules/got/dist/source/core/utils/unhandle.js +22 -0
  266. package/node_modules/got/dist/source/core/utils/url-to-options.d.ts +15 -0
  267. package/node_modules/got/dist/source/core/utils/url-to-options.js +24 -0
  268. package/node_modules/got/dist/source/core/utils/weakable-map.d.ts +8 -0
  269. package/node_modules/got/dist/source/core/utils/weakable-map.js +29 -0
  270. package/node_modules/got/dist/source/create.d.ts +5 -0
  271. package/node_modules/got/dist/source/create.js +240 -0
  272. package/node_modules/got/dist/source/index.d.ts +4 -0
  273. package/node_modules/got/dist/source/index.js +132 -0
  274. package/node_modules/got/dist/source/types.d.ts +342 -0
  275. package/node_modules/got/dist/source/types.js +2 -0
  276. package/node_modules/got/dist/source/utils/deep-freeze.d.ts +1 -0
  277. package/node_modules/got/dist/source/utils/deep-freeze.js +12 -0
  278. package/node_modules/got/dist/source/utils/deprecation-warning.d.ts +2 -0
  279. package/node_modules/got/dist/source/utils/deprecation-warning.js +13 -0
  280. package/node_modules/got/license +9 -0
  281. package/node_modules/got/package.json +130 -0
  282. package/node_modules/got/readme.md +2476 -0
  283. package/node_modules/http-cache-semantics/LICENSE +9 -0
  284. package/node_modules/http-cache-semantics/README.md +203 -0
  285. package/node_modules/http-cache-semantics/index.js +673 -0
  286. package/node_modules/http-cache-semantics/package.json +24 -0
  287. package/node_modules/http2-wrapper/LICENSE +21 -0
  288. package/node_modules/http2-wrapper/README.md +470 -0
  289. package/node_modules/http2-wrapper/package.json +54 -0
  290. package/node_modules/http2-wrapper/source/agent.js +670 -0
  291. package/node_modules/http2-wrapper/source/auto.js +149 -0
  292. package/node_modules/http2-wrapper/source/client-request.js +445 -0
  293. package/node_modules/http2-wrapper/source/incoming-message.js +58 -0
  294. package/node_modules/http2-wrapper/source/index.js +28 -0
  295. package/node_modules/http2-wrapper/source/utils/calculate-server-name.js +27 -0
  296. package/node_modules/http2-wrapper/source/utils/errors.js +45 -0
  297. package/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.js +13 -0
  298. package/node_modules/http2-wrapper/source/utils/proxy-events.js +7 -0
  299. package/node_modules/http2-wrapper/source/utils/url-to-options.js +25 -0
  300. package/node_modules/json-buffer/.travis.yml +3 -0
  301. package/node_modules/json-buffer/LICENSE +22 -0
  302. package/node_modules/json-buffer/README.md +24 -0
  303. package/node_modules/json-buffer/index.js +58 -0
  304. package/node_modules/json-buffer/package.json +34 -0
  305. package/node_modules/json-buffer/test/index.js +63 -0
  306. package/node_modules/keyv/LICENSE +21 -0
  307. package/node_modules/keyv/README.md +288 -0
  308. package/node_modules/keyv/package.json +49 -0
  309. package/node_modules/keyv/src/index.js +111 -0
  310. package/node_modules/lowercase-keys/index.d.ts +16 -0
  311. package/node_modules/lowercase-keys/index.js +10 -0
  312. package/node_modules/lowercase-keys/license +9 -0
  313. package/node_modules/lowercase-keys/package.json +38 -0
  314. package/node_modules/lowercase-keys/readme.md +32 -0
  315. package/node_modules/mimic-response/index.js +32 -0
  316. package/node_modules/mimic-response/license +9 -0
  317. package/node_modules/mimic-response/package.json +37 -0
  318. package/node_modules/mimic-response/readme.md +54 -0
  319. package/node_modules/normalize-url/index.d.ts +267 -0
  320. package/node_modules/normalize-url/index.js +216 -0
  321. package/node_modules/normalize-url/license +9 -0
  322. package/node_modules/normalize-url/package.json +50 -0
  323. package/node_modules/normalize-url/readme.md +286 -0
  324. package/node_modules/once/LICENSE +15 -0
  325. package/node_modules/once/README.md +79 -0
  326. package/node_modules/once/once.js +42 -0
  327. package/node_modules/once/package.json +33 -0
  328. package/node_modules/p-cancelable/index.d.ts +176 -0
  329. package/node_modules/p-cancelable/index.js +111 -0
  330. package/node_modules/p-cancelable/license +9 -0
  331. package/node_modules/p-cancelable/package.json +49 -0
  332. package/node_modules/p-cancelable/readme.md +153 -0
  333. package/node_modules/pump/.travis.yml +5 -0
  334. package/node_modules/pump/LICENSE +21 -0
  335. package/node_modules/pump/README.md +65 -0
  336. package/node_modules/pump/index.js +82 -0
  337. package/node_modules/pump/package.json +24 -0
  338. package/node_modules/pump/test-browser.js +66 -0
  339. package/node_modules/pump/test-node.js +53 -0
  340. package/node_modules/quick-lru/index.d.ts +97 -0
  341. package/node_modules/quick-lru/index.js +123 -0
  342. package/node_modules/quick-lru/license +9 -0
  343. package/node_modules/quick-lru/package.json +43 -0
  344. package/node_modules/quick-lru/readme.md +111 -0
  345. package/node_modules/resolve-alpn/LICENSE +22 -0
  346. package/node_modules/resolve-alpn/README.md +60 -0
  347. package/node_modules/resolve-alpn/index.js +43 -0
  348. package/node_modules/resolve-alpn/package.json +34 -0
  349. package/node_modules/responselike/LICENSE +19 -0
  350. package/node_modules/responselike/README.md +77 -0
  351. package/node_modules/responselike/package.json +38 -0
  352. package/node_modules/responselike/src/index.js +34 -0
  353. package/node_modules/wrappy/LICENSE +15 -0
  354. package/node_modules/wrappy/README.md +36 -0
  355. package/node_modules/wrappy/package.json +29 -0
  356. package/node_modules/wrappy/wrappy.js +33 -0
  357. package/package.json +41 -38
@@ -0,0 +1,555 @@
1
+ /**
2
+ * This module provides an implementation of a subset of the W3C [Web Performance APIs](https://w3c.github.io/perf-timing-primer/) as well as additional APIs for
3
+ * Node.js-specific performance measurements.
4
+ *
5
+ * Node.js supports the following [Web Performance APIs](https://w3c.github.io/perf-timing-primer/):
6
+ *
7
+ * * [High Resolution Time](https://www.w3.org/TR/hr-time-2)
8
+ * * [Performance Timeline](https://w3c.github.io/performance-timeline/)
9
+ * * [User Timing](https://www.w3.org/TR/user-timing/)
10
+ *
11
+ * ```js
12
+ * const { PerformanceObserver, performance } = require('perf_hooks');
13
+ *
14
+ * const obs = new PerformanceObserver((items) => {
15
+ * console.log(items.getEntries()[0].duration);
16
+ * performance.clearMarks();
17
+ * });
18
+ * obs.observe({ type: 'measure' });
19
+ * performance.measure('Start to Now');
20
+ *
21
+ * performance.mark('A');
22
+ * doSomeLongRunningProcess(() => {
23
+ * performance.measure('A to Now', 'A');
24
+ *
25
+ * performance.mark('B');
26
+ * performance.measure('A to B', 'A', 'B');
27
+ * });
28
+ * ```
29
+ * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/perf_hooks.js)
30
+ */
31
+ declare module 'perf_hooks' {
32
+ import { AsyncResource } from 'node:async_hooks';
33
+ type EntryType = 'node' | 'mark' | 'measure' | 'gc' | 'function' | 'http2' | 'http';
34
+ interface NodeGCPerformanceDetail {
35
+ /**
36
+ * When `performanceEntry.entryType` is equal to 'gc', `the performance.kind` property identifies
37
+ * the type of garbage collection operation that occurred.
38
+ * See perf_hooks.constants for valid values.
39
+ */
40
+ readonly kind?: number | undefined;
41
+ /**
42
+ * When `performanceEntry.entryType` is equal to 'gc', the `performance.flags`
43
+ * property contains additional information about garbage collection operation.
44
+ * See perf_hooks.constants for valid values.
45
+ */
46
+ readonly flags?: number | undefined;
47
+ }
48
+ /**
49
+ * @since v8.5.0
50
+ */
51
+ class PerformanceEntry {
52
+ protected constructor();
53
+ /**
54
+ * The total number of milliseconds elapsed for this entry. This value will not
55
+ * be meaningful for all Performance Entry types.
56
+ * @since v8.5.0
57
+ */
58
+ readonly duration: number;
59
+ /**
60
+ * The name of the performance entry.
61
+ * @since v8.5.0
62
+ */
63
+ readonly name: string;
64
+ /**
65
+ * The high resolution millisecond timestamp marking the starting time of the
66
+ * Performance Entry.
67
+ * @since v8.5.0
68
+ */
69
+ readonly startTime: number;
70
+ /**
71
+ * The type of the performance entry. It may be one of:
72
+ *
73
+ * * `'node'` (Node.js only)
74
+ * * `'mark'` (available on the Web)
75
+ * * `'measure'` (available on the Web)
76
+ * * `'gc'` (Node.js only)
77
+ * * `'function'` (Node.js only)
78
+ * * `'http2'` (Node.js only)
79
+ * * `'http'` (Node.js only)
80
+ * @since v8.5.0
81
+ */
82
+ readonly entryType: EntryType;
83
+ /**
84
+ * Additional detail specific to the `entryType`.
85
+ * @since v16.0.0
86
+ */
87
+ readonly detail?: NodeGCPerformanceDetail | unknown | undefined; // TODO: Narrow this based on entry type.
88
+ }
89
+ /**
90
+ * _This property is an extension by Node.js. It is not available in Web browsers._
91
+ *
92
+ * Provides timing details for Node.js itself. The constructor of this class
93
+ * is not exposed to users.
94
+ * @since v8.5.0
95
+ */
96
+ class PerformanceNodeTiming extends PerformanceEntry {
97
+ /**
98
+ * The high resolution millisecond timestamp at which the Node.js process
99
+ * completed bootstrapping. If bootstrapping has not yet finished, the property
100
+ * has the value of -1.
101
+ * @since v8.5.0
102
+ */
103
+ readonly bootstrapComplete: number;
104
+ /**
105
+ * The high resolution millisecond timestamp at which the Node.js environment was
106
+ * initialized.
107
+ * @since v8.5.0
108
+ */
109
+ readonly environment: number;
110
+ /**
111
+ * The high resolution millisecond timestamp of the amount of time the event loop
112
+ * has been idle within the event loop's event provider (e.g. `epoll_wait`). This
113
+ * does not take CPU usage into consideration. If the event loop has not yet
114
+ * started (e.g., in the first tick of the main script), the property has the
115
+ * value of 0.
116
+ * @since v14.10.0, v12.19.0
117
+ */
118
+ readonly idleTime: number;
119
+ /**
120
+ * The high resolution millisecond timestamp at which the Node.js event loop
121
+ * exited. If the event loop has not yet exited, the property has the value of -1\.
122
+ * It can only have a value of not -1 in a handler of the `'exit'` event.
123
+ * @since v8.5.0
124
+ */
125
+ readonly loopExit: number;
126
+ /**
127
+ * The high resolution millisecond timestamp at which the Node.js event loop
128
+ * started. If the event loop has not yet started (e.g., in the first tick of the
129
+ * main script), the property has the value of -1.
130
+ * @since v8.5.0
131
+ */
132
+ readonly loopStart: number;
133
+ /**
134
+ * The high resolution millisecond timestamp at which the V8 platform was
135
+ * initialized.
136
+ * @since v8.5.0
137
+ */
138
+ readonly v8Start: number;
139
+ }
140
+ interface EventLoopUtilization {
141
+ idle: number;
142
+ active: number;
143
+ utilization: number;
144
+ }
145
+ /**
146
+ * @param util1 The result of a previous call to eventLoopUtilization()
147
+ * @param util2 The result of a previous call to eventLoopUtilization() prior to util1
148
+ */
149
+ type EventLoopUtilityFunction = (util1?: EventLoopUtilization, util2?: EventLoopUtilization) => EventLoopUtilization;
150
+ interface MarkOptions {
151
+ /**
152
+ * Additional optional detail to include with the mark.
153
+ */
154
+ detail?: unknown | undefined;
155
+ /**
156
+ * An optional timestamp to be used as the mark time.
157
+ * @default `performance.now()`.
158
+ */
159
+ startTime?: number | undefined;
160
+ }
161
+ interface MeasureOptions {
162
+ /**
163
+ * Additional optional detail to include with the mark.
164
+ */
165
+ detail?: unknown | undefined;
166
+ /**
167
+ * Duration between start and end times.
168
+ */
169
+ duration?: number | undefined;
170
+ /**
171
+ * Timestamp to be used as the end time, or a string identifying a previously recorded mark.
172
+ */
173
+ end?: number | string | undefined;
174
+ /**
175
+ * Timestamp to be used as the start time, or a string identifying a previously recorded mark.
176
+ */
177
+ start?: number | string | undefined;
178
+ }
179
+ interface TimerifyOptions {
180
+ /**
181
+ * A histogram object created using
182
+ * `perf_hooks.createHistogram()` that will record runtime durations in
183
+ * nanoseconds.
184
+ */
185
+ histogram?: RecordableHistogram | undefined;
186
+ }
187
+ interface Performance {
188
+ /**
189
+ * If name is not provided, removes all PerformanceMark objects from the Performance Timeline.
190
+ * If name is provided, removes only the named mark.
191
+ * @param name
192
+ */
193
+ clearMarks(name?: string): void;
194
+ /**
195
+ * Creates a new PerformanceMark entry in the Performance Timeline.
196
+ * A PerformanceMark is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'mark',
197
+ * and whose performanceEntry.duration is always 0.
198
+ * Performance marks are used to mark specific significant moments in the Performance Timeline.
199
+ * @param name
200
+ */
201
+ mark(name?: string, options?: MarkOptions): void;
202
+ /**
203
+ * Creates a new PerformanceMeasure entry in the Performance Timeline.
204
+ * A PerformanceMeasure is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'measure',
205
+ * and whose performanceEntry.duration measures the number of milliseconds elapsed since startMark and endMark.
206
+ *
207
+ * The startMark argument may identify any existing PerformanceMark in the the Performance Timeline, or may identify
208
+ * any of the timestamp properties provided by the PerformanceNodeTiming class. If the named startMark does not exist,
209
+ * then startMark is set to timeOrigin by default.
210
+ *
211
+ * The endMark argument must identify any existing PerformanceMark in the the Performance Timeline or any of the timestamp
212
+ * properties provided by the PerformanceNodeTiming class. If the named endMark does not exist, an error will be thrown.
213
+ * @param name
214
+ * @param startMark
215
+ * @param endMark
216
+ */
217
+ measure(name: string, startMark?: string, endMark?: string): void;
218
+ measure(name: string, options: MeasureOptions): void;
219
+ /**
220
+ * An instance of the PerformanceNodeTiming class that provides performance metrics for specific Node.js operational milestones.
221
+ */
222
+ readonly nodeTiming: PerformanceNodeTiming;
223
+ /**
224
+ * @return the current high resolution millisecond timestamp
225
+ */
226
+ now(): number;
227
+ /**
228
+ * The timeOrigin specifies the high resolution millisecond timestamp from which all performance metric durations are measured.
229
+ */
230
+ readonly timeOrigin: number;
231
+ /**
232
+ * Wraps a function within a new function that measures the running time of the wrapped function.
233
+ * A PerformanceObserver must be subscribed to the 'function' event type in order for the timing details to be accessed.
234
+ * @param fn
235
+ */
236
+ timerify<T extends (...params: any[]) => any>(fn: T, options?: TimerifyOptions): T;
237
+ /**
238
+ * eventLoopUtilization is similar to CPU utilization except that it is calculated using high precision wall-clock time.
239
+ * It represents the percentage of time the event loop has spent outside the event loop's event provider (e.g. epoll_wait).
240
+ * No other CPU idle time is taken into consideration.
241
+ */
242
+ eventLoopUtilization: EventLoopUtilityFunction;
243
+ }
244
+ interface PerformanceObserverEntryList {
245
+ /**
246
+ * Returns a list of `PerformanceEntry` objects in chronological order
247
+ * with respect to `performanceEntry.startTime`.
248
+ *
249
+ * ```js
250
+ * const {
251
+ * performance,
252
+ * PerformanceObserver
253
+ * } = require('perf_hooks');
254
+ *
255
+ * const obs = new PerformanceObserver((perfObserverList, observer) => {
256
+ * console.log(perfObserverList.getEntries());
257
+ *
258
+ * * [
259
+ * * PerformanceEntry {
260
+ * * name: 'test',
261
+ * * entryType: 'mark',
262
+ * * startTime: 81.465639,
263
+ * * duration: 0
264
+ * * },
265
+ * * PerformanceEntry {
266
+ * * name: 'meow',
267
+ * * entryType: 'mark',
268
+ * * startTime: 81.860064,
269
+ * * duration: 0
270
+ * * }
271
+ * * ]
272
+ *
273
+ * observer.disconnect();
274
+ * });
275
+ * obs.observe({ type: 'mark' });
276
+ *
277
+ * performance.mark('test');
278
+ * performance.mark('meow');
279
+ * ```
280
+ * @since v8.5.0
281
+ */
282
+ getEntries(): PerformanceEntry[];
283
+ /**
284
+ * Returns a list of `PerformanceEntry` objects in chronological order
285
+ * with respect to `performanceEntry.startTime` whose `performanceEntry.name` is
286
+ * equal to `name`, and optionally, whose `performanceEntry.entryType` is equal to`type`.
287
+ *
288
+ * ```js
289
+ * const {
290
+ * performance,
291
+ * PerformanceObserver
292
+ * } = require('perf_hooks');
293
+ *
294
+ * const obs = new PerformanceObserver((perfObserverList, observer) => {
295
+ * console.log(perfObserverList.getEntriesByName('meow'));
296
+ *
297
+ * * [
298
+ * * PerformanceEntry {
299
+ * * name: 'meow',
300
+ * * entryType: 'mark',
301
+ * * startTime: 98.545991,
302
+ * * duration: 0
303
+ * * }
304
+ * * ]
305
+ *
306
+ * console.log(perfObserverList.getEntriesByName('nope')); // []
307
+ *
308
+ * console.log(perfObserverList.getEntriesByName('test', 'mark'));
309
+ *
310
+ * * [
311
+ * * PerformanceEntry {
312
+ * * name: 'test',
313
+ * * entryType: 'mark',
314
+ * * startTime: 63.518931,
315
+ * * duration: 0
316
+ * * }
317
+ * * ]
318
+ *
319
+ * console.log(perfObserverList.getEntriesByName('test', 'measure')); // []
320
+ * observer.disconnect();
321
+ * });
322
+ * obs.observe({ entryTypes: ['mark', 'measure'] });
323
+ *
324
+ * performance.mark('test');
325
+ * performance.mark('meow');
326
+ * ```
327
+ * @since v8.5.0
328
+ */
329
+ getEntriesByName(name: string, type?: EntryType): PerformanceEntry[];
330
+ /**
331
+ * Returns a list of `PerformanceEntry` objects in chronological order
332
+ * with respect to `performanceEntry.startTime` whose `performanceEntry.entryType`is equal to `type`.
333
+ *
334
+ * ```js
335
+ * const {
336
+ * performance,
337
+ * PerformanceObserver
338
+ * } = require('perf_hooks');
339
+ *
340
+ * const obs = new PerformanceObserver((perfObserverList, observer) => {
341
+ * console.log(perfObserverList.getEntriesByType('mark'));
342
+ *
343
+ * * [
344
+ * * PerformanceEntry {
345
+ * * name: 'test',
346
+ * * entryType: 'mark',
347
+ * * startTime: 55.897834,
348
+ * * duration: 0
349
+ * * },
350
+ * * PerformanceEntry {
351
+ * * name: 'meow',
352
+ * * entryType: 'mark',
353
+ * * startTime: 56.350146,
354
+ * * duration: 0
355
+ * * }
356
+ * * ]
357
+ *
358
+ * observer.disconnect();
359
+ * });
360
+ * obs.observe({ type: 'mark' });
361
+ *
362
+ * performance.mark('test');
363
+ * performance.mark('meow');
364
+ * ```
365
+ * @since v8.5.0
366
+ */
367
+ getEntriesByType(type: EntryType): PerformanceEntry[];
368
+ }
369
+ type PerformanceObserverCallback = (list: PerformanceObserverEntryList, observer: PerformanceObserver) => void;
370
+ class PerformanceObserver extends AsyncResource {
371
+ constructor(callback: PerformanceObserverCallback);
372
+ /**
373
+ * Disconnects the `PerformanceObserver` instance from all notifications.
374
+ * @since v8.5.0
375
+ */
376
+ disconnect(): void;
377
+ /**
378
+ * Subscribes the `PerformanceObserver` instance to notifications of new `PerformanceEntry` instances identified either by `options.entryTypes`or `options.type`:
379
+ *
380
+ * ```js
381
+ * const {
382
+ * performance,
383
+ * PerformanceObserver
384
+ * } = require('perf_hooks');
385
+ *
386
+ * const obs = new PerformanceObserver((list, observer) => {
387
+ * // Called three times synchronously. `list` contains one item.
388
+ * });
389
+ * obs.observe({ type: 'mark' });
390
+ *
391
+ * for (let n = 0; n < 3; n++)
392
+ * performance.mark(`test${n}`);
393
+ * ```
394
+ * @since v8.5.0
395
+ */
396
+ observe(
397
+ options:
398
+ | {
399
+ entryTypes: ReadonlyArray<EntryType>;
400
+ }
401
+ | {
402
+ type: EntryType;
403
+ }
404
+ ): void;
405
+ }
406
+ namespace constants {
407
+ const NODE_PERFORMANCE_GC_MAJOR: number;
408
+ const NODE_PERFORMANCE_GC_MINOR: number;
409
+ const NODE_PERFORMANCE_GC_INCREMENTAL: number;
410
+ const NODE_PERFORMANCE_GC_WEAKCB: number;
411
+ const NODE_PERFORMANCE_GC_FLAGS_NO: number;
412
+ const NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: number;
413
+ const NODE_PERFORMANCE_GC_FLAGS_FORCED: number;
414
+ const NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: number;
415
+ const NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: number;
416
+ const NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: number;
417
+ const NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: number;
418
+ }
419
+ const performance: Performance;
420
+ interface EventLoopMonitorOptions {
421
+ /**
422
+ * The sampling rate in milliseconds.
423
+ * Must be greater than zero.
424
+ * @default 10
425
+ */
426
+ resolution?: number | undefined;
427
+ }
428
+ interface Histogram {
429
+ /**
430
+ * Returns a `Map` object detailing the accumulated percentile distribution.
431
+ * @since v11.10.0
432
+ */
433
+ readonly percentiles: Map<number, number>;
434
+ /**
435
+ * The number of times the event loop delay exceeded the maximum 1 hour event
436
+ * loop delay threshold.
437
+ * @since v11.10.0
438
+ */
439
+ readonly exceeds: number;
440
+ /**
441
+ * The minimum recorded event loop delay.
442
+ * @since v11.10.0
443
+ */
444
+ readonly min: number;
445
+ /**
446
+ * The maximum recorded event loop delay.
447
+ * @since v11.10.0
448
+ */
449
+ readonly max: number;
450
+ /**
451
+ * The mean of the recorded event loop delays.
452
+ * @since v11.10.0
453
+ */
454
+ readonly mean: number;
455
+ /**
456
+ * The standard deviation of the recorded event loop delays.
457
+ * @since v11.10.0
458
+ */
459
+ readonly stddev: number;
460
+ /**
461
+ * Resets the collected histogram data.
462
+ * @since v11.10.0
463
+ */
464
+ reset(): void;
465
+ /**
466
+ * Returns the value at the given percentile.
467
+ * @since v11.10.0
468
+ * @param percentile A percentile value in the range (0, 100].
469
+ */
470
+ percentile(percentile: number): number;
471
+ }
472
+ interface IntervalHistogram extends Histogram {
473
+ /**
474
+ * Enables the update interval timer. Returns `true` if the timer was
475
+ * started, `false` if it was already started.
476
+ * @since v11.10.0
477
+ */
478
+ enable(): boolean;
479
+ /**
480
+ * Disables the update interval timer. Returns `true` if the timer was
481
+ * stopped, `false` if it was already stopped.
482
+ * @since v11.10.0
483
+ */
484
+ disable(): boolean;
485
+ }
486
+ interface RecordableHistogram extends Histogram {
487
+ /**
488
+ * @since v15.9.0
489
+ * @param val The amount to record in the histogram.
490
+ */
491
+ record(val: number | bigint): void;
492
+ /**
493
+ * Calculates the amount of time (in nanoseconds) that has passed since the
494
+ * previous call to `recordDelta()` and records that amount in the histogram.
495
+ *
496
+ * ## Examples
497
+ * @since v15.9.0
498
+ */
499
+ recordDelta(): void;
500
+ }
501
+ /**
502
+ * _This property is an extension by Node.js. It is not available in Web browsers._
503
+ *
504
+ * Creates an `IntervalHistogram` object that samples and reports the event loop
505
+ * delay over time. The delays will be reported in nanoseconds.
506
+ *
507
+ * Using a timer to detect approximate event loop delay works because the
508
+ * execution of timers is tied specifically to the lifecycle of the libuv
509
+ * event loop. That is, a delay in the loop will cause a delay in the execution
510
+ * of the timer, and those delays are specifically what this API is intended to
511
+ * detect.
512
+ *
513
+ * ```js
514
+ * const { monitorEventLoopDelay } = require('perf_hooks');
515
+ * const h = monitorEventLoopDelay({ resolution: 20 });
516
+ * h.enable();
517
+ * // Do something.
518
+ * h.disable();
519
+ * console.log(h.min);
520
+ * console.log(h.max);
521
+ * console.log(h.mean);
522
+ * console.log(h.stddev);
523
+ * console.log(h.percentiles);
524
+ * console.log(h.percentile(50));
525
+ * console.log(h.percentile(99));
526
+ * ```
527
+ * @since v11.10.0
528
+ */
529
+ function monitorEventLoopDelay(options?: EventLoopMonitorOptions): IntervalHistogram;
530
+ interface CreateHistogramOptions {
531
+ /**
532
+ * The minimum recordable value. Must be an integer value greater than 0.
533
+ * @default 1
534
+ */
535
+ min?: number | bigint | undefined;
536
+ /**
537
+ * The maximum recordable value. Must be an integer value greater than min.
538
+ * @default Number.MAX_SAFE_INTEGER
539
+ */
540
+ max?: number | bigint | undefined;
541
+ /**
542
+ * The number of accuracy digits. Must be a number between 1 and 5.
543
+ * @default 3
544
+ */
545
+ figures?: number | undefined;
546
+ }
547
+ /**
548
+ * Returns a `RecordableHistogram`.
549
+ * @since v15.9.0
550
+ */
551
+ function createHistogram(options?: CreateHistogramOptions): RecordableHistogram;
552
+ }
553
+ declare module 'node:perf_hooks' {
554
+ export * from 'perf_hooks';
555
+ }