cdk-ecr-deployment 0.0.76 → 0.0.82

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 +391 -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 +391 -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 +391 -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 +42 -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 +1497 -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 +344 -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 +2477 -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 +290 -0
  308. package/node_modules/keyv/package.json +54 -0
  309. package/node_modules/keyv/src/index.js +109 -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 +42 -39
@@ -0,0 +1,821 @@
1
+ /**
2
+ * The `url` module provides utilities for URL resolution and parsing. It can be
3
+ * accessed using:
4
+ *
5
+ * ```js
6
+ * import url from 'url';
7
+ * ```
8
+ * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/url.js)
9
+ */
10
+ declare module 'url' {
11
+ import { Blob } from 'node:buffer';
12
+ import { ClientRequestArgs } from 'node:http';
13
+ import { ParsedUrlQuery, ParsedUrlQueryInput } from 'node:querystring';
14
+ // Input to `url.format`
15
+ interface UrlObject {
16
+ auth?: string | null | undefined;
17
+ hash?: string | null | undefined;
18
+ host?: string | null | undefined;
19
+ hostname?: string | null | undefined;
20
+ href?: string | null | undefined;
21
+ pathname?: string | null | undefined;
22
+ protocol?: string | null | undefined;
23
+ search?: string | null | undefined;
24
+ slashes?: boolean | null | undefined;
25
+ port?: string | number | null | undefined;
26
+ query?: string | null | ParsedUrlQueryInput | undefined;
27
+ }
28
+ // Output of `url.parse`
29
+ interface Url {
30
+ auth: string | null;
31
+ hash: string | null;
32
+ host: string | null;
33
+ hostname: string | null;
34
+ href: string;
35
+ path: string | null;
36
+ pathname: string | null;
37
+ protocol: string | null;
38
+ search: string | null;
39
+ slashes: boolean | null;
40
+ port: string | null;
41
+ query: string | null | ParsedUrlQuery;
42
+ }
43
+ interface UrlWithParsedQuery extends Url {
44
+ query: ParsedUrlQuery;
45
+ }
46
+ interface UrlWithStringQuery extends Url {
47
+ query: string | null;
48
+ }
49
+ /**
50
+ * The `url.parse()` method takes a URL string, parses it, and returns a URL
51
+ * object.
52
+ *
53
+ * A `TypeError` is thrown if `urlString` is not a string.
54
+ *
55
+ * A `URIError` is thrown if the `auth` property is present but cannot be decoded.
56
+ *
57
+ * Use of the legacy `url.parse()` method is discouraged. Users should
58
+ * use the WHATWG `URL` API. Because the `url.parse()` method uses a
59
+ * lenient, non-standard algorithm for parsing URL strings, security
60
+ * issues can be introduced. Specifically, issues with [host name spoofing](https://hackerone.com/reports/678487) and
61
+ * incorrect handling of usernames and passwords have been identified.
62
+ * @since v0.1.25
63
+ * @deprecated Legacy: Use the WHATWG URL API instead.
64
+ * @param urlString The URL string to parse.
65
+ * @param [parseQueryString=false] If `true`, the `query` property will always be set to an object returned by the {@link querystring} module's `parse()` method. If `false`, the `query` property
66
+ * on the returned URL object will be an unparsed, undecoded string.
67
+ * @param [slashesDenoteHost=false] If `true`, the first token after the literal string `//` and preceding the next `/` will be interpreted as the `host`. For instance, given `//foo/bar`, the
68
+ * result would be `{host: 'foo', pathname: '/bar'}` rather than `{pathname: '//foo/bar'}`.
69
+ */
70
+ function parse(urlString: string): UrlWithStringQuery;
71
+ function parse(urlString: string, parseQueryString: false | undefined, slashesDenoteHost?: boolean): UrlWithStringQuery;
72
+ function parse(urlString: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery;
73
+ function parse(urlString: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url;
74
+ /**
75
+ * The URL object has both a `toString()` method and `href` property that return string serializations of the URL.
76
+ * These are not, however, customizable in any way. The `url.format(URL[, options])` method allows for basic
77
+ * customization of the output.
78
+ * Returns a customizable serialization of a URL `String` representation of a `WHATWG URL` object.
79
+ *
80
+ * ```js
81
+ * import url from 'url';
82
+ * const myURL = new URL('https://a:b@測試?abc#foo');
83
+ *
84
+ * console.log(myURL.href);
85
+ * // Prints https://a:b@xn--g6w251d/?abc#foo
86
+ *
87
+ * console.log(myURL.toString());
88
+ * // Prints https://a:b@xn--g6w251d/?abc#foo
89
+ *
90
+ * console.log(url.format(myURL, { fragment: false, unicode: true, auth: false }));
91
+ * // Prints 'https://測試/?abc'
92
+ * ```
93
+ * @since v7.6.0
94
+ * @param urlObject A `WHATWG URL` object
95
+ * @param options
96
+ */
97
+ function format(urlObject: URL, options?: URLFormatOptions): string;
98
+ /**
99
+ * The `url.format()` method returns a formatted URL string derived from`urlObject`.
100
+ *
101
+ * ```js
102
+ * const url = require('url');
103
+ * url.format({
104
+ * protocol: 'https',
105
+ * hostname: 'example.com',
106
+ * pathname: '/some/path',
107
+ * query: {
108
+ * page: 1,
109
+ * format: 'json'
110
+ * }
111
+ * });
112
+ *
113
+ * // => 'https://example.com/some/path?page=1&format=json'
114
+ * ```
115
+ *
116
+ * If `urlObject` is not an object or a string, `url.format()` will throw a `TypeError`.
117
+ *
118
+ * The formatting process operates as follows:
119
+ *
120
+ * * A new empty string `result` is created.
121
+ * * If `urlObject.protocol` is a string, it is appended as-is to `result`.
122
+ * * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown.
123
+ * * For all string values of `urlObject.protocol` that _do not end_ with an ASCII
124
+ * colon (`:`) character, the literal string `:` will be appended to `result`.
125
+ * * If either of the following conditions is true, then the literal string `//`will be appended to `result`:
126
+ * * `urlObject.slashes` property is true;
127
+ * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or`file`;
128
+ * * If the value of the `urlObject.auth` property is truthy, and either`urlObject.host` or `urlObject.hostname` are not `undefined`, the value of`urlObject.auth` will be coerced into a string
129
+ * and appended to `result`followed by the literal string `@`.
130
+ * * If the `urlObject.host` property is `undefined` then:
131
+ * * If the `urlObject.hostname` is a string, it is appended to `result`.
132
+ * * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string,
133
+ * an `Error` is thrown.
134
+ * * If the `urlObject.port` property value is truthy, and `urlObject.hostname`is not `undefined`:
135
+ * * The literal string `:` is appended to `result`, and
136
+ * * The value of `urlObject.port` is coerced to a string and appended to`result`.
137
+ * * Otherwise, if the `urlObject.host` property value is truthy, the value of`urlObject.host` is coerced to a string and appended to `result`.
138
+ * * If the `urlObject.pathname` property is a string that is not an empty string:
139
+ * * If the `urlObject.pathname`_does not start_ with an ASCII forward slash
140
+ * (`/`), then the literal string `'/'` is appended to `result`.
141
+ * * The value of `urlObject.pathname` is appended to `result`.
142
+ * * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown.
143
+ * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result`followed by the output of calling the
144
+ * `querystring` module's `stringify()`method passing the value of `urlObject.query`.
145
+ * * Otherwise, if `urlObject.search` is a string:
146
+ * * If the value of `urlObject.search`_does not start_ with the ASCII question
147
+ * mark (`?`) character, the literal string `?` is appended to `result`.
148
+ * * The value of `urlObject.search` is appended to `result`.
149
+ * * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown.
150
+ * * If the `urlObject.hash` property is a string:
151
+ * * If the value of `urlObject.hash`_does not start_ with the ASCII hash (`#`)
152
+ * character, the literal string `#` is appended to `result`.
153
+ * * The value of `urlObject.hash` is appended to `result`.
154
+ * * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a
155
+ * string, an `Error` is thrown.
156
+ * * `result` is returned.
157
+ * @since v0.1.25
158
+ * @deprecated Legacy: Use the WHATWG URL API instead.
159
+ * @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.
160
+ */
161
+ function format(urlObject: UrlObject | string): string;
162
+ /**
163
+ * The `url.resolve()` method resolves a target URL relative to a base URL in a
164
+ * manner similar to that of a Web browser resolving an anchor tag HREF.
165
+ *
166
+ * ```js
167
+ * const url = require('url');
168
+ * url.resolve('/one/two/three', 'four'); // '/one/two/four'
169
+ * url.resolve('http://example.com/', '/one'); // 'http://example.com/one'
170
+ * url.resolve('http://example.com/one', '/two'); // 'http://example.com/two'
171
+ * ```
172
+ *
173
+ * You can achieve the same result using the WHATWG URL API:
174
+ *
175
+ * ```js
176
+ * function resolve(from, to) {
177
+ * const resolvedUrl = new URL(to, new URL(from, 'resolve://'));
178
+ * if (resolvedUrl.protocol === 'resolve:') {
179
+ * // `from` is a relative URL.
180
+ * const { pathname, search, hash } = resolvedUrl;
181
+ * return pathname + search + hash;
182
+ * }
183
+ * return resolvedUrl.toString();
184
+ * }
185
+ *
186
+ * resolve('/one/two/three', 'four'); // '/one/two/four'
187
+ * resolve('http://example.com/', '/one'); // 'http://example.com/one'
188
+ * resolve('http://example.com/one', '/two'); // 'http://example.com/two'
189
+ * ```
190
+ * @since v0.1.25
191
+ * @deprecated Legacy: Use the WHATWG URL API instead.
192
+ * @param from The Base URL being resolved against.
193
+ * @param to The HREF URL being resolved.
194
+ */
195
+ function resolve(from: string, to: string): string;
196
+ /**
197
+ * Returns the [Punycode](https://tools.ietf.org/html/rfc5891#section-4.4) ASCII serialization of the `domain`. If `domain` is an
198
+ * invalid domain, the empty string is returned.
199
+ *
200
+ * It performs the inverse operation to {@link domainToUnicode}.
201
+ *
202
+ * This feature is only available if the `node` executable was compiled with `ICU` enabled. If not, the domain names are passed through unchanged.
203
+ *
204
+ * ```js
205
+ * import url from 'url';
206
+ *
207
+ * console.log(url.domainToASCII('español.com'));
208
+ * // Prints xn--espaol-zwa.com
209
+ * console.log(url.domainToASCII('中文.com'));
210
+ * // Prints xn--fiq228c.com
211
+ * console.log(url.domainToASCII('xn--iñvalid.com'));
212
+ * // Prints an empty string
213
+ * ```
214
+ * @since v7.4.0, v6.13.0
215
+ */
216
+ function domainToASCII(domain: string): string;
217
+ /**
218
+ * Returns the Unicode serialization of the `domain`. If `domain` is an invalid
219
+ * domain, the empty string is returned.
220
+ *
221
+ * It performs the inverse operation to {@link domainToASCII}.
222
+ *
223
+ * This feature is only available if the `node` executable was compiled with `ICU` enabled. If not, the domain names are passed through unchanged.
224
+ *
225
+ * ```js
226
+ * import url from 'url';
227
+ *
228
+ * console.log(url.domainToUnicode('xn--espaol-zwa.com'));
229
+ * // Prints español.com
230
+ * console.log(url.domainToUnicode('xn--fiq228c.com'));
231
+ * // Prints 中文.com
232
+ * console.log(url.domainToUnicode('xn--iñvalid.com'));
233
+ * // Prints an empty string
234
+ * ```
235
+ * @since v7.4.0, v6.13.0
236
+ */
237
+ function domainToUnicode(domain: string): string;
238
+ /**
239
+ * This function ensures the correct decodings of percent-encoded characters as
240
+ * well as ensuring a cross-platform valid absolute path string.
241
+ *
242
+ * ```js
243
+ * import { fileURLToPath } from 'url';
244
+ *
245
+ * const __filename = fileURLToPath(import.meta.url);
246
+ *
247
+ * new URL('file:///C:/path/').pathname; // Incorrect: /C:/path/
248
+ * fileURLToPath('file:///C:/path/'); // Correct: C:\path\ (Windows)
249
+ *
250
+ * new URL('file://nas/foo.txt').pathname; // Incorrect: /foo.txt
251
+ * fileURLToPath('file://nas/foo.txt'); // Correct: \\nas\foo.txt (Windows)
252
+ *
253
+ * new URL('file:///你好.txt').pathname; // Incorrect: /%E4%BD%A0%E5%A5%BD.txt
254
+ * fileURLToPath('file:///你好.txt'); // Correct: /你好.txt (POSIX)
255
+ *
256
+ * new URL('file:///hello world').pathname; // Incorrect: /hello%20world
257
+ * fileURLToPath('file:///hello world'); // Correct: /hello world (POSIX)
258
+ * ```
259
+ * @since v10.12.0
260
+ * @param url The file URL string or URL object to convert to a path.
261
+ * @return The fully-resolved platform-specific Node.js file path.
262
+ */
263
+ function fileURLToPath(url: string | URL): string;
264
+ /**
265
+ * This function ensures that `path` is resolved absolutely, and that the URL
266
+ * control characters are correctly encoded when converting into a File URL.
267
+ *
268
+ * ```js
269
+ * import { pathToFileURL } from 'url';
270
+ *
271
+ * new URL('/foo#1', 'file:'); // Incorrect: file:///foo#1
272
+ * pathToFileURL('/foo#1'); // Correct: file:///foo%231 (POSIX)
273
+ *
274
+ * new URL('/some/path%.c', 'file:'); // Incorrect: file:///some/path%.c
275
+ * pathToFileURL('/some/path%.c'); // Correct: file:///some/path%25.c (POSIX)
276
+ * ```
277
+ * @since v10.12.0
278
+ * @param path The path to convert to a File URL.
279
+ * @return The file URL object.
280
+ */
281
+ function pathToFileURL(path: string): URL;
282
+ /**
283
+ * This utility function converts a URL object into an ordinary options object as
284
+ * expected by the `http.request()` and `https.request()` APIs.
285
+ *
286
+ * ```js
287
+ * import { urlToHttpOptions } from 'url';
288
+ * const myURL = new URL('https://a:b@測試?abc#foo');
289
+ *
290
+ * console.log(urlToHttpOptions(myURL));
291
+ *
292
+ * {
293
+ * protocol: 'https:',
294
+ * hostname: 'xn--g6w251d',
295
+ * hash: '#foo',
296
+ * search: '?abc',
297
+ * pathname: '/',
298
+ * path: '/?abc',
299
+ * href: 'https://a:b@xn--g6w251d/?abc#foo',
300
+ * auth: 'a:b'
301
+ * }
302
+ *
303
+ * ```
304
+ * @since v15.7.0
305
+ * @param url The `WHATWG URL` object to convert to an options object.
306
+ * @return Options object
307
+ */
308
+ function urlToHttpOptions(url: URL): ClientRequestArgs;
309
+ interface URLFormatOptions {
310
+ auth?: boolean | undefined;
311
+ fragment?: boolean | undefined;
312
+ search?: boolean | undefined;
313
+ unicode?: boolean | undefined;
314
+ }
315
+ /**
316
+ * Browser-compatible `URL` class, implemented by following the WHATWG URL
317
+ * Standard. [Examples of parsed URLs](https://url.spec.whatwg.org/#example-url-parsing) may be found in the Standard itself.
318
+ * The `URL` class is also available on the global object.
319
+ *
320
+ * In accordance with browser conventions, all properties of `URL` objects
321
+ * are implemented as getters and setters on the class prototype, rather than as
322
+ * data properties on the object itself. Thus, unlike `legacy urlObject` s,
323
+ * using the `delete` keyword on any properties of `URL` objects (e.g. `delete myURL.protocol`, `delete myURL.pathname`, etc) has no effect but will still
324
+ * return `true`.
325
+ * @since v7.0.0, v6.13.0
326
+ */
327
+ class URL {
328
+ /**
329
+ * Creates a `'blob:nodedata:...'` URL string that represents the given `Blob` object and can be used to retrieve the `Blob` later.
330
+ *
331
+ * ```js
332
+ * const {
333
+ * Blob,
334
+ * resolveObjectURL,
335
+ * } = require('buffer');
336
+ *
337
+ * const blob = new Blob(['hello']);
338
+ * const id = URL.createObjectURL(blob);
339
+ *
340
+ * // later...
341
+ *
342
+ * const otherBlob = resolveObjectURL(id);
343
+ * console.log(otherBlob.size);
344
+ * ```
345
+ *
346
+ * The data stored by the registered `Blob` will be retained in memory until`URL.revokeObjectURL()` is called to remove it.
347
+ *
348
+ * `Blob` objects are registered within the current thread. If using Worker
349
+ * Threads, `Blob` objects registered within one Worker will not be available
350
+ * to other workers or the main thread.
351
+ * @since v16.7.0
352
+ * @experimental
353
+ */
354
+ static createObjectURL(blob: Blob): string;
355
+ /**
356
+ * Removes the stored `Blob` identified by the given ID.
357
+ * @since v16.7.0
358
+ * @experimental
359
+ * @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`.
360
+ */
361
+ static revokeObjectURL(objectUrl: string): void;
362
+ constructor(input: string, base?: string | URL);
363
+ /**
364
+ * Gets and sets the fragment portion of the URL.
365
+ *
366
+ * ```js
367
+ * const myURL = new URL('https://example.org/foo#bar');
368
+ * console.log(myURL.hash);
369
+ * // Prints #bar
370
+ *
371
+ * myURL.hash = 'baz';
372
+ * console.log(myURL.href);
373
+ * // Prints https://example.org/foo#baz
374
+ * ```
375
+ *
376
+ * Invalid URL characters included in the value assigned to the `hash` property
377
+ * are `percent-encoded`. The selection of which characters to
378
+ * percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce.
379
+ */
380
+ hash: string;
381
+ /**
382
+ * Gets and sets the host portion of the URL.
383
+ *
384
+ * ```js
385
+ * const myURL = new URL('https://example.org:81/foo');
386
+ * console.log(myURL.host);
387
+ * // Prints example.org:81
388
+ *
389
+ * myURL.host = 'example.com:82';
390
+ * console.log(myURL.href);
391
+ * // Prints https://example.com:82/foo
392
+ * ```
393
+ *
394
+ * Invalid host values assigned to the `host` property are ignored.
395
+ */
396
+ host: string;
397
+ /**
398
+ * Gets and sets the host name portion of the URL. The key difference between`url.host` and `url.hostname` is that `url.hostname` does _not_ include the
399
+ * port.
400
+ *
401
+ * ```js
402
+ * const myURL = new URL('https://example.org:81/foo');
403
+ * console.log(myURL.hostname);
404
+ * // Prints example.org
405
+ *
406
+ * // Setting the hostname does not change the port
407
+ * myURL.hostname = 'example.com:82';
408
+ * console.log(myURL.href);
409
+ * // Prints https://example.com:81/foo
410
+ *
411
+ * // Use myURL.host to change the hostname and port
412
+ * myURL.host = 'example.org:82';
413
+ * console.log(myURL.href);
414
+ * // Prints https://example.org:82/foo
415
+ * ```
416
+ *
417
+ * Invalid host name values assigned to the `hostname` property are ignored.
418
+ */
419
+ hostname: string;
420
+ /**
421
+ * Gets and sets the serialized URL.
422
+ *
423
+ * ```js
424
+ * const myURL = new URL('https://example.org/foo');
425
+ * console.log(myURL.href);
426
+ * // Prints https://example.org/foo
427
+ *
428
+ * myURL.href = 'https://example.com/bar';
429
+ * console.log(myURL.href);
430
+ * // Prints https://example.com/bar
431
+ * ```
432
+ *
433
+ * Getting the value of the `href` property is equivalent to calling {@link toString}.
434
+ *
435
+ * Setting the value of this property to a new value is equivalent to creating a
436
+ * new `URL` object using `new URL(value)`. Each of the `URL`object's properties will be modified.
437
+ *
438
+ * If the value assigned to the `href` property is not a valid URL, a `TypeError`will be thrown.
439
+ */
440
+ href: string;
441
+ /**
442
+ * Gets the read-only serialization of the URL's origin.
443
+ *
444
+ * ```js
445
+ * const myURL = new URL('https://example.org/foo/bar?baz');
446
+ * console.log(myURL.origin);
447
+ * // Prints https://example.org
448
+ * ```
449
+ *
450
+ * ```js
451
+ * const idnURL = new URL('https://測試');
452
+ * console.log(idnURL.origin);
453
+ * // Prints https://xn--g6w251d
454
+ *
455
+ * console.log(idnURL.hostname);
456
+ * // Prints xn--g6w251d
457
+ * ```
458
+ */
459
+ readonly origin: string;
460
+ /**
461
+ * Gets and sets the password portion of the URL.
462
+ *
463
+ * ```js
464
+ * const myURL = new URL('https://abc:xyz@example.com');
465
+ * console.log(myURL.password);
466
+ * // Prints xyz
467
+ *
468
+ * myURL.password = '123';
469
+ * console.log(myURL.href);
470
+ * // Prints https://abc:123@example.com
471
+ * ```
472
+ *
473
+ * Invalid URL characters included in the value assigned to the `password` property
474
+ * are `percent-encoded`. The selection of which characters to
475
+ * percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce.
476
+ */
477
+ password: string;
478
+ /**
479
+ * Gets and sets the path portion of the URL.
480
+ *
481
+ * ```js
482
+ * const myURL = new URL('https://example.org/abc/xyz?123');
483
+ * console.log(myURL.pathname);
484
+ * // Prints /abc/xyz
485
+ *
486
+ * myURL.pathname = '/abcdef';
487
+ * console.log(myURL.href);
488
+ * // Prints https://example.org/abcdef?123
489
+ * ```
490
+ *
491
+ * Invalid URL characters included in the value assigned to the `pathname`property are `percent-encoded`. The selection of which characters
492
+ * to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce.
493
+ */
494
+ pathname: string;
495
+ /**
496
+ * Gets and sets the port portion of the URL.
497
+ *
498
+ * The port value may be a number or a string containing a number in the range`0` to `65535` (inclusive). Setting the value to the default port of the`URL` objects given `protocol` will
499
+ * result in the `port` value becoming
500
+ * the empty string (`''`).
501
+ *
502
+ * The port value can be an empty string in which case the port depends on
503
+ * the protocol/scheme:
504
+ *
505
+ * <omitted>
506
+ *
507
+ * Upon assigning a value to the port, the value will first be converted to a
508
+ * string using `.toString()`.
509
+ *
510
+ * If that string is invalid but it begins with a number, the leading number is
511
+ * assigned to `port`.
512
+ * If the number lies outside the range denoted above, it is ignored.
513
+ *
514
+ * ```js
515
+ * const myURL = new URL('https://example.org:8888');
516
+ * console.log(myURL.port);
517
+ * // Prints 8888
518
+ *
519
+ * // Default ports are automatically transformed to the empty string
520
+ * // (HTTPS protocol's default port is 443)
521
+ * myURL.port = '443';
522
+ * console.log(myURL.port);
523
+ * // Prints the empty string
524
+ * console.log(myURL.href);
525
+ * // Prints https://example.org/
526
+ *
527
+ * myURL.port = 1234;
528
+ * console.log(myURL.port);
529
+ * // Prints 1234
530
+ * console.log(myURL.href);
531
+ * // Prints https://example.org:1234/
532
+ *
533
+ * // Completely invalid port strings are ignored
534
+ * myURL.port = 'abcd';
535
+ * console.log(myURL.port);
536
+ * // Prints 1234
537
+ *
538
+ * // Leading numbers are treated as a port number
539
+ * myURL.port = '5678abcd';
540
+ * console.log(myURL.port);
541
+ * // Prints 5678
542
+ *
543
+ * // Non-integers are truncated
544
+ * myURL.port = 1234.5678;
545
+ * console.log(myURL.port);
546
+ * // Prints 1234
547
+ *
548
+ * // Out-of-range numbers which are not represented in scientific notation
549
+ * // will be ignored.
550
+ * myURL.port = 1e10; // 10000000000, will be range-checked as described below
551
+ * console.log(myURL.port);
552
+ * // Prints 1234
553
+ * ```
554
+ *
555
+ * Numbers which contain a decimal point,
556
+ * such as floating-point numbers or numbers in scientific notation,
557
+ * are not an exception to this rule.
558
+ * Leading numbers up to the decimal point will be set as the URL's port,
559
+ * assuming they are valid:
560
+ *
561
+ * ```js
562
+ * myURL.port = 4.567e21;
563
+ * console.log(myURL.port);
564
+ * // Prints 4 (because it is the leading number in the string '4.567e21')
565
+ * ```
566
+ */
567
+ port: string;
568
+ /**
569
+ * Gets and sets the protocol portion of the URL.
570
+ *
571
+ * ```js
572
+ * const myURL = new URL('https://example.org');
573
+ * console.log(myURL.protocol);
574
+ * // Prints https:
575
+ *
576
+ * myURL.protocol = 'ftp';
577
+ * console.log(myURL.href);
578
+ * // Prints ftp://example.org/
579
+ * ```
580
+ *
581
+ * Invalid URL protocol values assigned to the `protocol` property are ignored.
582
+ */
583
+ protocol: string;
584
+ /**
585
+ * Gets and sets the serialized query portion of the URL.
586
+ *
587
+ * ```js
588
+ * const myURL = new URL('https://example.org/abc?123');
589
+ * console.log(myURL.search);
590
+ * // Prints ?123
591
+ *
592
+ * myURL.search = 'abc=xyz';
593
+ * console.log(myURL.href);
594
+ * // Prints https://example.org/abc?abc=xyz
595
+ * ```
596
+ *
597
+ * Any invalid URL characters appearing in the value assigned the `search`property will be `percent-encoded`. The selection of which
598
+ * characters to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce.
599
+ */
600
+ search: string;
601
+ /**
602
+ * Gets the `URLSearchParams` object representing the query parameters of the
603
+ * URL. This property is read-only but the `URLSearchParams` object it provides
604
+ * can be used to mutate the URL instance; to replace the entirety of query
605
+ * parameters of the URL, use the {@link search} setter. See `URLSearchParams` documentation for details.
606
+ *
607
+ * Use care when using `.searchParams` to modify the `URL` because,
608
+ * per the WHATWG specification, the `URLSearchParams` object uses
609
+ * different rules to determine which characters to percent-encode. For
610
+ * instance, the `URL` object will not percent encode the ASCII tilde (`~`)
611
+ * character, while `URLSearchParams` will always encode it:
612
+ *
613
+ * ```js
614
+ * const myUrl = new URL('https://example.org/abc?foo=~bar');
615
+ *
616
+ * console.log(myUrl.search); // prints ?foo=~bar
617
+ *
618
+ * // Modify the URL via searchParams...
619
+ * myUrl.searchParams.sort();
620
+ *
621
+ * console.log(myUrl.search); // prints ?foo=%7Ebar
622
+ * ```
623
+ */
624
+ readonly searchParams: URLSearchParams;
625
+ /**
626
+ * Gets and sets the username portion of the URL.
627
+ *
628
+ * ```js
629
+ * const myURL = new URL('https://abc:xyz@example.com');
630
+ * console.log(myURL.username);
631
+ * // Prints abc
632
+ *
633
+ * myURL.username = '123';
634
+ * console.log(myURL.href);
635
+ * // Prints https://123:xyz@example.com/
636
+ * ```
637
+ *
638
+ * Any invalid URL characters appearing in the value assigned the `username`property will be `percent-encoded`. The selection of which
639
+ * characters to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce.
640
+ */
641
+ username: string;
642
+ /**
643
+ * The `toString()` method on the `URL` object returns the serialized URL. The
644
+ * value returned is equivalent to that of {@link href} and {@link toJSON}.
645
+ */
646
+ toString(): string;
647
+ /**
648
+ * The `toJSON()` method on the `URL` object returns the serialized URL. The
649
+ * value returned is equivalent to that of {@link href} and {@link toString}.
650
+ *
651
+ * This method is automatically called when an `URL` object is serialized
652
+ * with [`JSON.stringify()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify).
653
+ *
654
+ * ```js
655
+ * const myURLs = [
656
+ * new URL('https://www.example.com'),
657
+ * new URL('https://test.example.org'),
658
+ * ];
659
+ * console.log(JSON.stringify(myURLs));
660
+ * // Prints ["https://www.example.com/","https://test.example.org/"]
661
+ * ```
662
+ */
663
+ toJSON(): string;
664
+ }
665
+ /**
666
+ * The `URLSearchParams` API provides read and write access to the query of a`URL`. The `URLSearchParams` class can also be used standalone with one of the
667
+ * four following constructors.
668
+ * The `URLSearchParams` class is also available on the global object.
669
+ *
670
+ * The WHATWG `URLSearchParams` interface and the `querystring` module have
671
+ * similar purpose, but the purpose of the `querystring` module is more
672
+ * general, as it allows the customization of delimiter characters (`&#x26;` and `=`).
673
+ * On the other hand, this API is designed purely for URL query strings.
674
+ *
675
+ * ```js
676
+ * const myURL = new URL('https://example.org/?abc=123');
677
+ * console.log(myURL.searchParams.get('abc'));
678
+ * // Prints 123
679
+ *
680
+ * myURL.searchParams.append('abc', 'xyz');
681
+ * console.log(myURL.href);
682
+ * // Prints https://example.org/?abc=123&#x26;abc=xyz
683
+ *
684
+ * myURL.searchParams.delete('abc');
685
+ * myURL.searchParams.set('a', 'b');
686
+ * console.log(myURL.href);
687
+ * // Prints https://example.org/?a=b
688
+ *
689
+ * const newSearchParams = new URLSearchParams(myURL.searchParams);
690
+ * // The above is equivalent to
691
+ * // const newSearchParams = new URLSearchParams(myURL.search);
692
+ *
693
+ * newSearchParams.append('a', 'c');
694
+ * console.log(myURL.href);
695
+ * // Prints https://example.org/?a=b
696
+ * console.log(newSearchParams.toString());
697
+ * // Prints a=b&#x26;a=c
698
+ *
699
+ * // newSearchParams.toString() is implicitly called
700
+ * myURL.search = newSearchParams;
701
+ * console.log(myURL.href);
702
+ * // Prints https://example.org/?a=b&#x26;a=c
703
+ * newSearchParams.delete('a');
704
+ * console.log(myURL.href);
705
+ * // Prints https://example.org/?a=b&#x26;a=c
706
+ * ```
707
+ * @since v7.5.0, v6.13.0
708
+ */
709
+ class URLSearchParams implements Iterable<[string, string]> {
710
+ constructor(init?: URLSearchParams | string | Record<string, string | ReadonlyArray<string>> | Iterable<[string, string]> | ReadonlyArray<[string, string]>);
711
+ /**
712
+ * Append a new name-value pair to the query string.
713
+ */
714
+ append(name: string, value: string): void;
715
+ /**
716
+ * Remove all name-value pairs whose name is `name`.
717
+ */
718
+ delete(name: string): void;
719
+ /**
720
+ * Returns an ES6 `Iterator` over each of the name-value pairs in the query.
721
+ * Each item of the iterator is a JavaScript `Array`. The first item of the `Array`is the `name`, the second item of the `Array` is the `value`.
722
+ *
723
+ * Alias for `urlSearchParams[@@iterator]()`.
724
+ */
725
+ entries(): IterableIterator<[string, string]>;
726
+ /**
727
+ * Iterates over each name-value pair in the query and invokes the given function.
728
+ *
729
+ * ```js
730
+ * const myURL = new URL('https://example.org/?a=b&#x26;c=d');
731
+ * myURL.searchParams.forEach((value, name, searchParams) => {
732
+ * console.log(name, value, myURL.searchParams === searchParams);
733
+ * });
734
+ * // Prints:
735
+ * // a b true
736
+ * // c d true
737
+ * ```
738
+ * @param fn Invoked for each name-value pair in the query
739
+ * @param thisArg To be used as `this` value for when `fn` is called
740
+ */
741
+ forEach<TThis = this>(callback: (this: TThis, value: string, name: string, searchParams: this) => void, thisArg?: TThis): void;
742
+ /**
743
+ * Returns the value of the first name-value pair whose name is `name`. If there
744
+ * are no such pairs, `null` is returned.
745
+ * @return or `null` if there is no name-value pair with the given `name`.
746
+ */
747
+ get(name: string): string | null;
748
+ /**
749
+ * Returns the values of all name-value pairs whose name is `name`. If there are
750
+ * no such pairs, an empty array is returned.
751
+ */
752
+ getAll(name: string): string[];
753
+ /**
754
+ * Returns `true` if there is at least one name-value pair whose name is `name`.
755
+ */
756
+ has(name: string): boolean;
757
+ /**
758
+ * Returns an ES6 `Iterator` over the names of each name-value pair.
759
+ *
760
+ * ```js
761
+ * const params = new URLSearchParams('foo=bar&#x26;foo=baz');
762
+ * for (const name of params.keys()) {
763
+ * console.log(name);
764
+ * }
765
+ * // Prints:
766
+ * // foo
767
+ * // foo
768
+ * ```
769
+ */
770
+ keys(): IterableIterator<string>;
771
+ /**
772
+ * Sets the value in the `URLSearchParams` object associated with `name` to`value`. If there are any pre-existing name-value pairs whose names are `name`,
773
+ * set the first such pair's value to `value` and remove all others. If not,
774
+ * append the name-value pair to the query string.
775
+ *
776
+ * ```js
777
+ * const params = new URLSearchParams();
778
+ * params.append('foo', 'bar');
779
+ * params.append('foo', 'baz');
780
+ * params.append('abc', 'def');
781
+ * console.log(params.toString());
782
+ * // Prints foo=bar&#x26;foo=baz&#x26;abc=def
783
+ *
784
+ * params.set('foo', 'def');
785
+ * params.set('xyz', 'opq');
786
+ * console.log(params.toString());
787
+ * // Prints foo=def&#x26;abc=def&#x26;xyz=opq
788
+ * ```
789
+ */
790
+ set(name: string, value: string): void;
791
+ /**
792
+ * Sort all existing name-value pairs in-place by their names. Sorting is done
793
+ * with a [stable sorting algorithm](https://en.wikipedia.org/wiki/Sorting_algorithm#Stability), so relative order between name-value pairs
794
+ * with the same name is preserved.
795
+ *
796
+ * This method can be used, in particular, to increase cache hits.
797
+ *
798
+ * ```js
799
+ * const params = new URLSearchParams('query[]=abc&#x26;type=search&#x26;query[]=123');
800
+ * params.sort();
801
+ * console.log(params.toString());
802
+ * // Prints query%5B%5D=abc&#x26;query%5B%5D=123&#x26;type=search
803
+ * ```
804
+ * @since v7.7.0, v6.13.0
805
+ */
806
+ sort(): void;
807
+ /**
808
+ * Returns the search parameters serialized as a string, with characters
809
+ * percent-encoded where necessary.
810
+ */
811
+ toString(): string;
812
+ /**
813
+ * Returns an ES6 `Iterator` over the values of each name-value pair.
814
+ */
815
+ values(): IterableIterator<string>;
816
+ [Symbol.iterator](): IterableIterator<[string, string]>;
817
+ }
818
+ }
819
+ declare module 'node:url' {
820
+ export * from 'url';
821
+ }