cdk-ecr-deployment 0.0.76 → 0.0.79

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 (356) hide show
  1. package/.jsii +28 -25
  2. package/lambda/Dockerfile +25 -0
  3. package/lambda/install.js +64 -0
  4. package/lib/index.js +40 -23
  5. package/node_modules/@sindresorhus/is/dist/index.d.ts +225 -0
  6. package/node_modules/@sindresorhus/is/dist/index.js +427 -0
  7. package/node_modules/@sindresorhus/is/dist/types.d.ts +24 -0
  8. package/node_modules/@sindresorhus/is/dist/types.js +3 -0
  9. package/node_modules/@sindresorhus/is/license +9 -0
  10. package/node_modules/@sindresorhus/is/package.json +96 -0
  11. package/node_modules/@sindresorhus/is/readme.md +628 -0
  12. package/node_modules/@szmarczak/http-timer/LICENSE +21 -0
  13. package/node_modules/@szmarczak/http-timer/README.md +93 -0
  14. package/node_modules/@szmarczak/http-timer/dist/source/index.d.ts +32 -0
  15. package/node_modules/@szmarczak/http-timer/dist/source/index.js +126 -0
  16. package/node_modules/@szmarczak/http-timer/package.json +72 -0
  17. package/node_modules/@types/cacheable-request/LICENSE +21 -0
  18. package/node_modules/@types/cacheable-request/README.md +16 -0
  19. package/node_modules/@types/cacheable-request/index.d.ts +137 -0
  20. package/node_modules/@types/cacheable-request/node_modules/@types/node/LICENSE +21 -0
  21. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +16 -0
  22. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert/strict.d.ts +8 -0
  23. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +912 -0
  24. package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +497 -0
  25. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +2142 -0
  26. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +1365 -0
  27. package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +414 -0
  28. package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +412 -0
  29. package/node_modules/@types/cacheable-request/node_modules/@types/node/constants.d.ts +18 -0
  30. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +3307 -0
  31. package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +545 -0
  32. package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +128 -0
  33. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +357 -0
  34. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +643 -0
  35. package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +169 -0
  36. package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +623 -0
  37. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +1004 -0
  38. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +3748 -0
  39. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +284 -0
  40. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.global.d.ts +1 -0
  41. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +1368 -0
  42. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +2100 -0
  43. package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +391 -0
  44. package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +131 -0
  45. package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +2738 -0
  46. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +114 -0
  47. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +783 -0
  48. package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +455 -0
  49. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +230 -0
  50. package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +172 -0
  51. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +555 -0
  52. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +1477 -0
  53. package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +117 -0
  54. package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +131 -0
  55. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +542 -0
  56. package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +424 -0
  57. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/consumers.d.ts +24 -0
  58. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/promises.d.ts +42 -0
  59. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +6 -0
  60. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +1249 -0
  61. package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +67 -0
  62. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +68 -0
  63. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +94 -0
  64. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +1019 -0
  65. package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +161 -0
  66. package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +204 -0
  67. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +798 -0
  68. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +1563 -0
  69. package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +378 -0
  70. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +507 -0
  71. package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +158 -0
  72. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +649 -0
  73. package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +517 -0
  74. package/node_modules/@types/cacheable-request/package.json +35 -0
  75. package/node_modules/@types/http-cache-semantics/LICENSE +21 -0
  76. package/node_modules/@types/http-cache-semantics/README.md +16 -0
  77. package/node_modules/@types/http-cache-semantics/index.d.ts +170 -0
  78. package/node_modules/@types/http-cache-semantics/package.json +25 -0
  79. package/node_modules/@types/keyv/LICENSE +21 -0
  80. package/node_modules/@types/keyv/README.md +16 -0
  81. package/node_modules/@types/keyv/index.d.ts +77 -0
  82. package/node_modules/@types/keyv/node_modules/@types/node/LICENSE +21 -0
  83. package/node_modules/@types/keyv/node_modules/@types/node/README.md +16 -0
  84. package/node_modules/@types/keyv/node_modules/@types/node/assert/strict.d.ts +8 -0
  85. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +912 -0
  86. package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +497 -0
  87. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +2142 -0
  88. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +1365 -0
  89. package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +414 -0
  90. package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +412 -0
  91. package/node_modules/@types/keyv/node_modules/@types/node/constants.d.ts +18 -0
  92. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +3307 -0
  93. package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +545 -0
  94. package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +128 -0
  95. package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +357 -0
  96. package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +643 -0
  97. package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +169 -0
  98. package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +623 -0
  99. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +1004 -0
  100. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +3748 -0
  101. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +284 -0
  102. package/node_modules/@types/keyv/node_modules/@types/node/globals.global.d.ts +1 -0
  103. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +1368 -0
  104. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +2100 -0
  105. package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +391 -0
  106. package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +131 -0
  107. package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +2738 -0
  108. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +114 -0
  109. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +783 -0
  110. package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +455 -0
  111. package/node_modules/@types/keyv/node_modules/@types/node/package.json +230 -0
  112. package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +172 -0
  113. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +555 -0
  114. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +1477 -0
  115. package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +117 -0
  116. package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +131 -0
  117. package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +542 -0
  118. package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +424 -0
  119. package/node_modules/@types/keyv/node_modules/@types/node/stream/consumers.d.ts +24 -0
  120. package/node_modules/@types/keyv/node_modules/@types/node/stream/promises.d.ts +42 -0
  121. package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +6 -0
  122. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +1249 -0
  123. package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +67 -0
  124. package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +68 -0
  125. package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +94 -0
  126. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +1019 -0
  127. package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +161 -0
  128. package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +204 -0
  129. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +798 -0
  130. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +1563 -0
  131. package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +378 -0
  132. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +507 -0
  133. package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +158 -0
  134. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +649 -0
  135. package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +517 -0
  136. package/node_modules/@types/keyv/package.json +32 -0
  137. package/node_modules/@types/responselike/LICENSE +21 -0
  138. package/node_modules/@types/responselike/README.md +16 -0
  139. package/node_modules/@types/responselike/index.d.ts +34 -0
  140. package/node_modules/@types/responselike/node_modules/@types/node/LICENSE +21 -0
  141. package/node_modules/@types/responselike/node_modules/@types/node/README.md +16 -0
  142. package/node_modules/@types/responselike/node_modules/@types/node/assert/strict.d.ts +8 -0
  143. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +912 -0
  144. package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +497 -0
  145. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +2142 -0
  146. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +1365 -0
  147. package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +414 -0
  148. package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +412 -0
  149. package/node_modules/@types/responselike/node_modules/@types/node/constants.d.ts +18 -0
  150. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +3307 -0
  151. package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +545 -0
  152. package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +128 -0
  153. package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +357 -0
  154. package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +643 -0
  155. package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +169 -0
  156. package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +623 -0
  157. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +1004 -0
  158. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +3748 -0
  159. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +284 -0
  160. package/node_modules/@types/responselike/node_modules/@types/node/globals.global.d.ts +1 -0
  161. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +1368 -0
  162. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +2100 -0
  163. package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +391 -0
  164. package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +131 -0
  165. package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +2738 -0
  166. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +114 -0
  167. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +783 -0
  168. package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +455 -0
  169. package/node_modules/@types/responselike/node_modules/@types/node/package.json +230 -0
  170. package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +172 -0
  171. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +555 -0
  172. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +1477 -0
  173. package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +117 -0
  174. package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +131 -0
  175. package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +542 -0
  176. package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +424 -0
  177. package/node_modules/@types/responselike/node_modules/@types/node/stream/consumers.d.ts +24 -0
  178. package/node_modules/@types/responselike/node_modules/@types/node/stream/promises.d.ts +42 -0
  179. package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +6 -0
  180. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +1249 -0
  181. package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +67 -0
  182. package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +68 -0
  183. package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +94 -0
  184. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +1019 -0
  185. package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +161 -0
  186. package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +204 -0
  187. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +798 -0
  188. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +1563 -0
  189. package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +378 -0
  190. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +507 -0
  191. package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +158 -0
  192. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +649 -0
  193. package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +517 -0
  194. package/node_modules/@types/responselike/package.json +25 -0
  195. package/node_modules/cacheable-lookup/LICENSE +21 -0
  196. package/node_modules/cacheable-lookup/README.md +240 -0
  197. package/node_modules/cacheable-lookup/index.d.ts +139 -0
  198. package/node_modules/cacheable-lookup/package.json +45 -0
  199. package/node_modules/cacheable-lookup/source/index.js +436 -0
  200. package/node_modules/cacheable-request/LICENSE +21 -0
  201. package/node_modules/cacheable-request/README.md +206 -0
  202. package/node_modules/cacheable-request/package.json +56 -0
  203. package/node_modules/cacheable-request/src/index.js +251 -0
  204. package/node_modules/clone-response/LICENSE +21 -0
  205. package/node_modules/clone-response/README.md +62 -0
  206. package/node_modules/clone-response/package.json +44 -0
  207. package/node_modules/clone-response/src/index.js +17 -0
  208. package/node_modules/decompress-response/index.d.ts +22 -0
  209. package/node_modules/decompress-response/index.js +58 -0
  210. package/node_modules/decompress-response/license +9 -0
  211. package/node_modules/decompress-response/node_modules/mimic-response/index.d.ts +17 -0
  212. package/node_modules/decompress-response/node_modules/mimic-response/index.js +77 -0
  213. package/node_modules/decompress-response/node_modules/mimic-response/license +9 -0
  214. package/node_modules/decompress-response/node_modules/mimic-response/package.json +42 -0
  215. package/node_modules/decompress-response/node_modules/mimic-response/readme.md +78 -0
  216. package/node_modules/decompress-response/package.json +56 -0
  217. package/node_modules/decompress-response/readme.md +48 -0
  218. package/node_modules/defer-to-connect/LICENSE +21 -0
  219. package/node_modules/defer-to-connect/README.md +38 -0
  220. package/node_modules/defer-to-connect/dist/source/index.d.ts +10 -0
  221. package/node_modules/defer-to-connect/dist/source/index.js +47 -0
  222. package/node_modules/defer-to-connect/package.json +71 -0
  223. package/node_modules/end-of-stream/LICENSE +21 -0
  224. package/node_modules/end-of-stream/README.md +54 -0
  225. package/node_modules/end-of-stream/index.js +94 -0
  226. package/node_modules/end-of-stream/package.json +37 -0
  227. package/node_modules/get-stream/buffer-stream.js +52 -0
  228. package/node_modules/get-stream/index.d.ts +108 -0
  229. package/node_modules/get-stream/index.js +60 -0
  230. package/node_modules/get-stream/license +9 -0
  231. package/node_modules/get-stream/package.json +50 -0
  232. package/node_modules/get-stream/readme.md +124 -0
  233. package/node_modules/got/dist/source/as-promise/create-rejection.d.ts +2 -0
  234. package/node_modules/got/dist/source/as-promise/create-rejection.js +30 -0
  235. package/node_modules/got/dist/source/as-promise/index.d.ts +3 -0
  236. package/node_modules/got/dist/source/as-promise/index.js +175 -0
  237. package/node_modules/got/dist/source/as-promise/normalize-arguments.d.ts +3 -0
  238. package/node_modules/got/dist/source/as-promise/normalize-arguments.js +78 -0
  239. package/node_modules/got/dist/source/as-promise/parse-body.d.ts +3 -0
  240. package/node_modules/got/dist/source/as-promise/parse-body.js +25 -0
  241. package/node_modules/got/dist/source/as-promise/types.d.ts +256 -0
  242. package/node_modules/got/dist/source/as-promise/types.js +40 -0
  243. package/node_modules/got/dist/source/core/calculate-retry-delay.d.ts +5 -0
  244. package/node_modules/got/dist/source/core/calculate-retry-delay.js +29 -0
  245. package/node_modules/got/dist/source/core/index.d.ts +1124 -0
  246. package/node_modules/got/dist/source/core/index.js +1491 -0
  247. package/node_modules/got/dist/source/core/utils/dns-ip-version.d.ts +5 -0
  248. package/node_modules/got/dist/source/core/utils/dns-ip-version.js +17 -0
  249. package/node_modules/got/dist/source/core/utils/get-body-size.d.ts +3 -0
  250. package/node_modules/got/dist/source/core/utils/get-body-size.js +32 -0
  251. package/node_modules/got/dist/source/core/utils/get-buffer.d.ts +4 -0
  252. package/node_modules/got/dist/source/core/utils/get-buffer.js +16 -0
  253. package/node_modules/got/dist/source/core/utils/is-form-data.d.ts +8 -0
  254. package/node_modules/got/dist/source/core/utils/is-form-data.js +4 -0
  255. package/node_modules/got/dist/source/core/utils/is-response-ok.d.ts +2 -0
  256. package/node_modules/got/dist/source/core/utils/is-response-ok.js +8 -0
  257. package/node_modules/got/dist/source/core/utils/options-to-url.d.ts +14 -0
  258. package/node_modules/got/dist/source/core/utils/options-to-url.js +53 -0
  259. package/node_modules/got/dist/source/core/utils/proxy-events.d.ts +3 -0
  260. package/node_modules/got/dist/source/core/utils/proxy-events.js +17 -0
  261. package/node_modules/got/dist/source/core/utils/timed-out.d.ts +29 -0
  262. package/node_modules/got/dist/source/core/utils/timed-out.js +121 -0
  263. package/node_modules/got/dist/source/core/utils/unhandle.d.ts +11 -0
  264. package/node_modules/got/dist/source/core/utils/unhandle.js +22 -0
  265. package/node_modules/got/dist/source/core/utils/url-to-options.d.ts +15 -0
  266. package/node_modules/got/dist/source/core/utils/url-to-options.js +24 -0
  267. package/node_modules/got/dist/source/core/utils/weakable-map.d.ts +8 -0
  268. package/node_modules/got/dist/source/core/utils/weakable-map.js +29 -0
  269. package/node_modules/got/dist/source/create.d.ts +5 -0
  270. package/node_modules/got/dist/source/create.js +240 -0
  271. package/node_modules/got/dist/source/index.d.ts +4 -0
  272. package/node_modules/got/dist/source/index.js +132 -0
  273. package/node_modules/got/dist/source/types.d.ts +342 -0
  274. package/node_modules/got/dist/source/types.js +2 -0
  275. package/node_modules/got/dist/source/utils/deep-freeze.d.ts +1 -0
  276. package/node_modules/got/dist/source/utils/deep-freeze.js +12 -0
  277. package/node_modules/got/dist/source/utils/deprecation-warning.d.ts +2 -0
  278. package/node_modules/got/dist/source/utils/deprecation-warning.js +13 -0
  279. package/node_modules/got/license +9 -0
  280. package/node_modules/got/package.json +130 -0
  281. package/node_modules/got/readme.md +2476 -0
  282. package/node_modules/http-cache-semantics/LICENSE +9 -0
  283. package/node_modules/http-cache-semantics/README.md +203 -0
  284. package/node_modules/http-cache-semantics/index.js +673 -0
  285. package/node_modules/http-cache-semantics/package.json +24 -0
  286. package/node_modules/http2-wrapper/LICENSE +21 -0
  287. package/node_modules/http2-wrapper/README.md +470 -0
  288. package/node_modules/http2-wrapper/package.json +54 -0
  289. package/node_modules/http2-wrapper/source/agent.js +670 -0
  290. package/node_modules/http2-wrapper/source/auto.js +149 -0
  291. package/node_modules/http2-wrapper/source/client-request.js +445 -0
  292. package/node_modules/http2-wrapper/source/incoming-message.js +58 -0
  293. package/node_modules/http2-wrapper/source/index.js +28 -0
  294. package/node_modules/http2-wrapper/source/utils/calculate-server-name.js +27 -0
  295. package/node_modules/http2-wrapper/source/utils/errors.js +45 -0
  296. package/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.js +13 -0
  297. package/node_modules/http2-wrapper/source/utils/proxy-events.js +7 -0
  298. package/node_modules/http2-wrapper/source/utils/url-to-options.js +25 -0
  299. package/node_modules/json-buffer/.travis.yml +3 -0
  300. package/node_modules/json-buffer/LICENSE +22 -0
  301. package/node_modules/json-buffer/README.md +24 -0
  302. package/node_modules/json-buffer/index.js +58 -0
  303. package/node_modules/json-buffer/package.json +34 -0
  304. package/node_modules/json-buffer/test/index.js +63 -0
  305. package/node_modules/keyv/LICENSE +21 -0
  306. package/node_modules/keyv/README.md +288 -0
  307. package/node_modules/keyv/package.json +49 -0
  308. package/node_modules/keyv/src/index.js +111 -0
  309. package/node_modules/lowercase-keys/index.d.ts +16 -0
  310. package/node_modules/lowercase-keys/index.js +10 -0
  311. package/node_modules/lowercase-keys/license +9 -0
  312. package/node_modules/lowercase-keys/package.json +38 -0
  313. package/node_modules/lowercase-keys/readme.md +32 -0
  314. package/node_modules/mimic-response/index.js +32 -0
  315. package/node_modules/mimic-response/license +9 -0
  316. package/node_modules/mimic-response/package.json +37 -0
  317. package/node_modules/mimic-response/readme.md +54 -0
  318. package/node_modules/normalize-url/index.d.ts +267 -0
  319. package/node_modules/normalize-url/index.js +216 -0
  320. package/node_modules/normalize-url/license +9 -0
  321. package/node_modules/normalize-url/package.json +50 -0
  322. package/node_modules/normalize-url/readme.md +286 -0
  323. package/node_modules/once/LICENSE +15 -0
  324. package/node_modules/once/README.md +79 -0
  325. package/node_modules/once/once.js +42 -0
  326. package/node_modules/once/package.json +33 -0
  327. package/node_modules/p-cancelable/index.d.ts +176 -0
  328. package/node_modules/p-cancelable/index.js +111 -0
  329. package/node_modules/p-cancelable/license +9 -0
  330. package/node_modules/p-cancelable/package.json +49 -0
  331. package/node_modules/p-cancelable/readme.md +153 -0
  332. package/node_modules/pump/.travis.yml +5 -0
  333. package/node_modules/pump/LICENSE +21 -0
  334. package/node_modules/pump/README.md +65 -0
  335. package/node_modules/pump/index.js +82 -0
  336. package/node_modules/pump/package.json +24 -0
  337. package/node_modules/pump/test-browser.js +66 -0
  338. package/node_modules/pump/test-node.js +53 -0
  339. package/node_modules/quick-lru/index.d.ts +97 -0
  340. package/node_modules/quick-lru/index.js +123 -0
  341. package/node_modules/quick-lru/license +9 -0
  342. package/node_modules/quick-lru/package.json +43 -0
  343. package/node_modules/quick-lru/readme.md +111 -0
  344. package/node_modules/resolve-alpn/LICENSE +22 -0
  345. package/node_modules/resolve-alpn/README.md +60 -0
  346. package/node_modules/resolve-alpn/index.js +43 -0
  347. package/node_modules/resolve-alpn/package.json +34 -0
  348. package/node_modules/responselike/LICENSE +19 -0
  349. package/node_modules/responselike/README.md +77 -0
  350. package/node_modules/responselike/package.json +38 -0
  351. package/node_modules/responselike/src/index.js +34 -0
  352. package/node_modules/wrappy/LICENSE +15 -0
  353. package/node_modules/wrappy/README.md +36 -0
  354. package/node_modules/wrappy/package.json +29 -0
  355. package/node_modules/wrappy/wrappy.js +33 -0
  356. package/package.json +7 -4
@@ -0,0 +1,111 @@
1
+ 'use strict';
2
+
3
+ const EventEmitter = require('events');
4
+ const JSONB = require('json-buffer');
5
+
6
+ const loadStore = opts => {
7
+ const adapters = {
8
+ redis: '@keyv/redis',
9
+ mongodb: '@keyv/mongo',
10
+ mongo: '@keyv/mongo',
11
+ sqlite: '@keyv/sqlite',
12
+ postgresql: '@keyv/postgres',
13
+ postgres: '@keyv/postgres',
14
+ mysql: '@keyv/mysql'
15
+ };
16
+ if (opts.adapter || opts.uri) {
17
+ const adapter = opts.adapter || /^[^:]*/.exec(opts.uri)[0];
18
+ return new (require(adapters[adapter]))(opts);
19
+ }
20
+
21
+ return new Map();
22
+ };
23
+
24
+ class Keyv extends EventEmitter {
25
+ constructor(uri, opts) {
26
+ super();
27
+ this.opts = Object.assign(
28
+ {
29
+ namespace: 'keyv',
30
+ serialize: JSONB.stringify,
31
+ deserialize: JSONB.parse
32
+ },
33
+ (typeof uri === 'string') ? { uri } : uri,
34
+ opts
35
+ );
36
+
37
+ if (!this.opts.store) {
38
+ const adapterOpts = Object.assign({}, this.opts);
39
+ this.opts.store = loadStore(adapterOpts);
40
+ }
41
+
42
+ if (typeof this.opts.store.on === 'function') {
43
+ this.opts.store.on('error', err => this.emit('error', err));
44
+ }
45
+
46
+ this.opts.store.namespace = this.opts.namespace;
47
+ }
48
+
49
+ _getKeyPrefix(key) {
50
+ return `${this.opts.namespace}:${key}`;
51
+ }
52
+
53
+ get(key, opts) {
54
+ const keyPrefixed = this._getKeyPrefix(key);
55
+ const { store } = this.opts;
56
+ return Promise.resolve()
57
+ .then(() => store.get(keyPrefixed))
58
+ .then(data => {
59
+ return (typeof data === 'string') ? this.opts.deserialize(data) : data;
60
+ })
61
+ .then(data => {
62
+ if (data === undefined) {
63
+ return undefined;
64
+ }
65
+
66
+ if (typeof data.expires === 'number' && Date.now() > data.expires) {
67
+ this.delete(key);
68
+ return undefined;
69
+ }
70
+
71
+ return (opts && opts.raw) ? data : data.value;
72
+ });
73
+ }
74
+
75
+ set(key, value, ttl) {
76
+ const keyPrefixed = this._getKeyPrefix(key);
77
+ if (typeof ttl === 'undefined') {
78
+ ttl = this.opts.ttl;
79
+ }
80
+
81
+ if (ttl === 0) {
82
+ ttl = undefined;
83
+ }
84
+
85
+ const { store } = this.opts;
86
+
87
+ return Promise.resolve()
88
+ .then(() => {
89
+ const expires = (typeof ttl === 'number') ? (Date.now() + ttl) : null;
90
+ value = { value, expires };
91
+ return this.opts.serialize(value);
92
+ })
93
+ .then(value => store.set(keyPrefixed, value, ttl))
94
+ .then(() => true);
95
+ }
96
+
97
+ delete(key) {
98
+ const keyPrefixed = this._getKeyPrefix(key);
99
+ const { store } = this.opts;
100
+ return Promise.resolve()
101
+ .then(() => store.delete(keyPrefixed));
102
+ }
103
+
104
+ clear() {
105
+ const { store } = this.opts;
106
+ return Promise.resolve()
107
+ .then(() => store.clear());
108
+ }
109
+ }
110
+
111
+ module.exports = Keyv;
@@ -0,0 +1,16 @@
1
+ /**
2
+ Lowercase the keys of an object.
3
+
4
+ @returns A new object with the keys lowercased.
5
+
6
+ @example
7
+ ```
8
+ import lowercaseKeys = require('lowercase-keys');
9
+
10
+ lowercaseKeys({FOO: true, bAr: false});
11
+ //=> {foo: true, bar: false}
12
+ ```
13
+ */
14
+ declare function lowercaseKeys<T extends unknown>(object: {[key: string]: T}): {[key: string]: T};
15
+
16
+ export = lowercaseKeys;
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+ module.exports = object => {
3
+ const result = {};
4
+
5
+ for (const [key, value] of Object.entries(object)) {
6
+ result[key.toLowerCase()] = value;
7
+ }
8
+
9
+ return result;
10
+ };
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "lowercase-keys",
3
+ "version": "2.0.0",
4
+ "description": "Lowercase the keys of an object",
5
+ "license": "MIT",
6
+ "repository": "sindresorhus/lowercase-keys",
7
+ "author": {
8
+ "name": "Sindre Sorhus",
9
+ "email": "sindresorhus@gmail.com",
10
+ "url": "sindresorhus.com"
11
+ },
12
+ "engines": {
13
+ "node": ">=8"
14
+ },
15
+ "scripts": {
16
+ "test": "xo && ava && tsd"
17
+ },
18
+ "files": [
19
+ "index.js",
20
+ "index.d.ts"
21
+ ],
22
+ "keywords": [
23
+ "object",
24
+ "assign",
25
+ "extend",
26
+ "properties",
27
+ "lowercase",
28
+ "lower-case",
29
+ "case",
30
+ "keys",
31
+ "key"
32
+ ],
33
+ "devDependencies": {
34
+ "ava": "^1.4.1",
35
+ "tsd": "^0.7.2",
36
+ "xo": "^0.24.0"
37
+ }
38
+ }
@@ -0,0 +1,32 @@
1
+ # lowercase-keys [![Build Status](https://travis-ci.org/sindresorhus/lowercase-keys.svg?branch=master)](https://travis-ci.org/sindresorhus/lowercase-keys)
2
+
3
+ > Lowercase the keys of an object
4
+
5
+
6
+ ## Install
7
+
8
+ ```
9
+ $ npm install lowercase-keys
10
+ ```
11
+
12
+
13
+ ## Usage
14
+
15
+ ```js
16
+ const lowercaseKeys = require('lowercase-keys');
17
+
18
+ lowercaseKeys({FOO: true, bAr: false});
19
+ //=> {foo: true, bar: false}
20
+ ```
21
+
22
+
23
+ ## API
24
+
25
+ ### lowercaseKeys(object)
26
+
27
+ Returns a new object with the keys lowercased.
28
+
29
+
30
+ ## License
31
+
32
+ MIT © [Sindre Sorhus](https://sindresorhus.com)
@@ -0,0 +1,32 @@
1
+ 'use strict';
2
+
3
+ // We define these manually to ensure they're always copied
4
+ // even if they would move up the prototype chain
5
+ // https://nodejs.org/api/http.html#http_class_http_incomingmessage
6
+ const knownProps = [
7
+ 'destroy',
8
+ 'setTimeout',
9
+ 'socket',
10
+ 'headers',
11
+ 'trailers',
12
+ 'rawHeaders',
13
+ 'statusCode',
14
+ 'httpVersion',
15
+ 'httpVersionMinor',
16
+ 'httpVersionMajor',
17
+ 'rawTrailers',
18
+ 'statusMessage'
19
+ ];
20
+
21
+ module.exports = (fromStream, toStream) => {
22
+ const fromProps = new Set(Object.keys(fromStream).concat(knownProps));
23
+
24
+ for (const prop of fromProps) {
25
+ // Don't overwrite existing properties
26
+ if (prop in toStream) {
27
+ continue;
28
+ }
29
+
30
+ toStream[prop] = typeof fromStream[prop] === 'function' ? fromStream[prop].bind(fromStream) : fromStream[prop];
31
+ }
32
+ };
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "mimic-response",
3
+ "version": "1.0.1",
4
+ "description": "Mimic a Node.js HTTP response stream",
5
+ "license": "MIT",
6
+ "repository": "sindresorhus/mimic-response",
7
+ "author": {
8
+ "name": "Sindre Sorhus",
9
+ "email": "sindresorhus@gmail.com",
10
+ "url": "sindresorhus.com"
11
+ },
12
+ "engines": {
13
+ "node": ">=4"
14
+ },
15
+ "scripts": {
16
+ "test": "xo && ava"
17
+ },
18
+ "files": [
19
+ "index.js"
20
+ ],
21
+ "keywords": [
22
+ "mimic",
23
+ "response",
24
+ "stream",
25
+ "http",
26
+ "https",
27
+ "request",
28
+ "get",
29
+ "core"
30
+ ],
31
+ "devDependencies": {
32
+ "ava": "*",
33
+ "create-test-server": "^0.1.0",
34
+ "pify": "^3.0.0",
35
+ "xo": "*"
36
+ }
37
+ }
@@ -0,0 +1,54 @@
1
+ # mimic-response [![Build Status](https://travis-ci.org/sindresorhus/mimic-response.svg?branch=master)](https://travis-ci.org/sindresorhus/mimic-response)
2
+
3
+ > Mimic a [Node.js HTTP response stream](https://nodejs.org/api/http.html#http_class_http_incomingmessage)
4
+
5
+
6
+ ## Install
7
+
8
+ ```
9
+ $ npm install mimic-response
10
+ ```
11
+
12
+
13
+ ## Usage
14
+
15
+ ```js
16
+ const stream = require('stream');
17
+ const mimicResponse = require('mimic-response');
18
+
19
+ const responseStream = getHttpResponseStream();
20
+ const myStream = new stream.PassThrough();
21
+
22
+ mimicResponse(responseStream, myStream);
23
+
24
+ console.log(myStream.statusCode);
25
+ //=> 200
26
+ ```
27
+
28
+
29
+ ## API
30
+
31
+ ### mimicResponse(from, to)
32
+
33
+ #### from
34
+
35
+ Type: `Stream`
36
+
37
+ [Node.js HTTP response stream.](https://nodejs.org/api/http.html#http_class_http_incomingmessage)
38
+
39
+ #### to
40
+
41
+ Type: `Stream`
42
+
43
+ Any stream.
44
+
45
+
46
+ ## Related
47
+
48
+ - [mimic-fn](https://github.com/sindresorhus/mimic-fn) - Make a function mimic another one
49
+ - [clone-response](https://github.com/lukechilds/clone-response) - Clone a Node.js response stream
50
+
51
+
52
+ ## License
53
+
54
+ MIT © [Sindre Sorhus](https://sindresorhus.com)
@@ -0,0 +1,267 @@
1
+ declare namespace normalizeUrl {
2
+ interface Options {
3
+ /**
4
+ @default 'http:'
5
+ */
6
+ readonly defaultProtocol?: string;
7
+
8
+ /**
9
+ Prepends `defaultProtocol` to the URL if it's protocol-relative.
10
+
11
+ @default true
12
+
13
+ @example
14
+ ```
15
+ normalizeUrl('//sindresorhus.com:80/');
16
+ //=> 'http://sindresorhus.com'
17
+
18
+ normalizeUrl('//sindresorhus.com:80/', {normalizeProtocol: false});
19
+ //=> '//sindresorhus.com'
20
+ ```
21
+ */
22
+ readonly normalizeProtocol?: boolean;
23
+
24
+ /**
25
+ Normalizes `https:` URLs to `http:`.
26
+
27
+ @default false
28
+
29
+ @example
30
+ ```
31
+ normalizeUrl('https://sindresorhus.com:80/');
32
+ //=> 'https://sindresorhus.com'
33
+
34
+ normalizeUrl('https://sindresorhus.com:80/', {forceHttp: true});
35
+ //=> 'http://sindresorhus.com'
36
+ ```
37
+ */
38
+ readonly forceHttp?: boolean;
39
+
40
+ /**
41
+ Normalizes `http:` URLs to `https:`.
42
+
43
+ This option can't be used with the `forceHttp` option at the same time.
44
+
45
+ @default false
46
+
47
+ @example
48
+ ```
49
+ normalizeUrl('https://sindresorhus.com:80/');
50
+ //=> 'https://sindresorhus.com'
51
+
52
+ normalizeUrl('http://sindresorhus.com:80/', {forceHttps: true});
53
+ //=> 'https://sindresorhus.com'
54
+ ```
55
+ */
56
+ readonly forceHttps?: boolean;
57
+
58
+ /**
59
+ Strip the [authentication](https://en.wikipedia.org/wiki/Basic_access_authentication) part of a URL.
60
+
61
+ @default true
62
+
63
+ @example
64
+ ```
65
+ normalizeUrl('user:password@sindresorhus.com');
66
+ //=> 'https://sindresorhus.com'
67
+
68
+ normalizeUrl('user:password@sindresorhus.com', {stripAuthentication: false});
69
+ //=> 'https://user:password@sindresorhus.com'
70
+ ```
71
+ */
72
+ readonly stripAuthentication?: boolean;
73
+
74
+ /**
75
+ Removes hash from the URL.
76
+
77
+ @default false
78
+
79
+ @example
80
+ ```
81
+ normalizeUrl('sindresorhus.com/about.html#contact');
82
+ //=> 'http://sindresorhus.com/about.html#contact'
83
+
84
+ normalizeUrl('sindresorhus.com/about.html#contact', {stripHash: true});
85
+ //=> 'http://sindresorhus.com/about.html'
86
+ ```
87
+ */
88
+ readonly stripHash?: boolean;
89
+
90
+ /**
91
+ Removes HTTP(S) protocol from an URL `http://sindresorhus.com` → `sindresorhus.com`.
92
+
93
+ @default false
94
+
95
+ @example
96
+ ```
97
+ normalizeUrl('https://sindresorhus.com');
98
+ //=> 'https://sindresorhus.com'
99
+
100
+ normalizeUrl('sindresorhus.com', {stripProtocol: true});
101
+ //=> 'sindresorhus.com'
102
+ ```
103
+ */
104
+ readonly stripProtocol?: boolean;
105
+
106
+ /**
107
+ Strip the [text fragment](https://web.dev/text-fragments/) part of the URL
108
+
109
+ __Note:__ The text fragment will always be removed if the `stripHash` option is set to `true`, as the hash contains the text fragment.
110
+
111
+ @default true
112
+
113
+ @example
114
+ ```
115
+ normalizeUrl('http://sindresorhus.com/about.html#:~:text=hello');
116
+ //=> 'http://sindresorhus.com/about.html#'
117
+
118
+ normalizeUrl('http://sindresorhus.com/about.html#section:~:text=hello');
119
+ //=> 'http://sindresorhus.com/about.html#section'
120
+
121
+ normalizeUrl('http://sindresorhus.com/about.html#:~:text=hello', {stripTextFragment: false});
122
+ //=> 'http://sindresorhus.com/about.html#:~:text=hello'
123
+
124
+ normalizeUrl('http://sindresorhus.com/about.html#section:~:text=hello', {stripTextFragment: false});
125
+ //=> 'http://sindresorhus.com/about.html#section:~:text=hello'
126
+ ```
127
+ */
128
+ readonly stripTextFragment?: boolean;
129
+
130
+ /**
131
+ Removes `www.` from the URL.
132
+
133
+ @default true
134
+
135
+ @example
136
+ ```
137
+ normalizeUrl('http://www.sindresorhus.com');
138
+ //=> 'http://sindresorhus.com'
139
+
140
+ normalizeUrl('http://www.sindresorhus.com', {stripWWW: false});
141
+ //=> 'http://www.sindresorhus.com'
142
+ ```
143
+ */
144
+ readonly stripWWW?: boolean;
145
+
146
+ /**
147
+ Removes query parameters that matches any of the provided strings or regexes.
148
+
149
+ @default [/^utm_\w+/i]
150
+
151
+ @example
152
+ ```
153
+ normalizeUrl('www.sindresorhus.com?foo=bar&ref=test_ref', {
154
+ removeQueryParameters: ['ref']
155
+ });
156
+ //=> 'http://sindresorhus.com/?foo=bar'
157
+ ```
158
+
159
+ If a boolean is provided, `true` will remove all the query parameters.
160
+
161
+ ```
162
+ normalizeUrl('www.sindresorhus.com?foo=bar', {
163
+ removeQueryParameters: true
164
+ });
165
+ //=> 'http://sindresorhus.com'
166
+ ```
167
+
168
+ `false` will not remove any query parameter.
169
+
170
+ ```
171
+ normalizeUrl('www.sindresorhus.com?foo=bar&utm_medium=test&ref=test_ref', {
172
+ removeQueryParameters: false
173
+ });
174
+ //=> 'http://www.sindresorhus.com/?foo=bar&ref=test_ref&utm_medium=test'
175
+ ```
176
+ */
177
+ readonly removeQueryParameters?: ReadonlyArray<RegExp | string> | boolean;
178
+
179
+ /**
180
+ Removes trailing slash.
181
+
182
+ __Note__: Trailing slash is always removed if the URL doesn't have a pathname unless the `removeSingleSlash` option is set to `false`.
183
+
184
+ @default true
185
+
186
+ @example
187
+ ```
188
+ normalizeUrl('http://sindresorhus.com/redirect/');
189
+ //=> 'http://sindresorhus.com/redirect'
190
+
191
+ normalizeUrl('http://sindresorhus.com/redirect/', {removeTrailingSlash: false});
192
+ //=> 'http://sindresorhus.com/redirect/'
193
+
194
+ normalizeUrl('http://sindresorhus.com/', {removeTrailingSlash: false});
195
+ //=> 'http://sindresorhus.com'
196
+ ```
197
+ */
198
+ readonly removeTrailingSlash?: boolean;
199
+
200
+ /**
201
+ Remove a sole `/` pathname in the output. This option is independant of `removeTrailingSlash`.
202
+
203
+ @default true
204
+
205
+ @example
206
+ ```
207
+ normalizeUrl('https://sindresorhus.com/');
208
+ //=> 'https://sindresorhus.com'
209
+
210
+ normalizeUrl('https://sindresorhus.com/', {removeSingleSlash: false});
211
+ //=> 'https://sindresorhus.com/'
212
+ ```
213
+ */
214
+ readonly removeSingleSlash?: boolean;
215
+
216
+ /**
217
+ Removes the default directory index file from path that matches any of the provided strings or regexes.
218
+ When `true`, the regex `/^index\.[a-z]+$/` is used.
219
+
220
+ @default false
221
+
222
+ @example
223
+ ```
224
+ normalizeUrl('www.sindresorhus.com/foo/default.php', {
225
+ removeDirectoryIndex: [/^default\.[a-z]+$/]
226
+ });
227
+ //=> 'http://sindresorhus.com/foo'
228
+ ```
229
+ */
230
+ readonly removeDirectoryIndex?: ReadonlyArray<RegExp | string>;
231
+
232
+ /**
233
+ Sorts the query parameters alphabetically by key.
234
+
235
+ @default true
236
+
237
+ @example
238
+ ```
239
+ normalizeUrl('www.sindresorhus.com?b=two&a=one&c=three', {
240
+ sortQueryParameters: false
241
+ });
242
+ //=> 'http://sindresorhus.com/?b=two&a=one&c=three'
243
+ ```
244
+ */
245
+ readonly sortQueryParameters?: boolean;
246
+ }
247
+ }
248
+
249
+ /**
250
+ [Normalize](https://en.wikipedia.org/wiki/URL_normalization) a URL.
251
+
252
+ @param url - URL to normalize, including [data URL](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs).
253
+
254
+ @example
255
+ ```
256
+ import normalizeUrl = require('normalize-url');
257
+
258
+ normalizeUrl('sindresorhus.com');
259
+ //=> 'http://sindresorhus.com'
260
+
261
+ normalizeUrl('//www.sindresorhus.com:80/../baz?b=bar&a=foo');
262
+ //=> 'http://sindresorhus.com/baz?a=foo&b=bar'
263
+ ```
264
+ */
265
+ declare function normalizeUrl(url: string, options?: normalizeUrl.Options): string;
266
+
267
+ export = normalizeUrl;