cdk-ecr-deployment 0.0.73 → 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 +33 -30
  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 +24 -21
@@ -0,0 +1,391 @@
1
+ /**
2
+ * HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as a
3
+ * separate module.
4
+ * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/https.js)
5
+ */
6
+ declare module 'https' {
7
+ import { Duplex } from 'node:stream';
8
+ import * as tls from 'node:tls';
9
+ import * as http from 'node:http';
10
+ import { URL } from 'node:url';
11
+ type ServerOptions = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions;
12
+ type RequestOptions = http.RequestOptions &
13
+ tls.SecureContextOptions & {
14
+ rejectUnauthorized?: boolean | undefined; // Defaults to true
15
+ servername?: string | undefined; // SNI TLS Extension
16
+ };
17
+ interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions {
18
+ rejectUnauthorized?: boolean | undefined;
19
+ maxCachedSessions?: number | undefined;
20
+ }
21
+ /**
22
+ * An `Agent` object for HTTPS similar to `http.Agent`. See {@link request} for more information.
23
+ * @since v0.4.5
24
+ */
25
+ class Agent extends http.Agent {
26
+ constructor(options?: AgentOptions);
27
+ options: AgentOptions;
28
+ }
29
+ interface Server extends http.Server {}
30
+ /**
31
+ * See `http.Server` for more information.
32
+ * @since v0.3.4
33
+ */
34
+ class Server extends tls.Server {
35
+ constructor(requestListener?: http.RequestListener);
36
+ constructor(options: ServerOptions, requestListener?: http.RequestListener);
37
+ addListener(event: string, listener: (...args: any[]) => void): this;
38
+ addListener(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
39
+ addListener(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this;
40
+ addListener(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
41
+ addListener(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this;
42
+ addListener(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this;
43
+ addListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
44
+ addListener(event: 'close', listener: () => void): this;
45
+ addListener(event: 'connection', listener: (socket: Duplex) => void): this;
46
+ addListener(event: 'error', listener: (err: Error) => void): this;
47
+ addListener(event: 'listening', listener: () => void): this;
48
+ addListener(event: 'checkContinue', listener: http.RequestListener): this;
49
+ addListener(event: 'checkExpectation', listener: http.RequestListener): this;
50
+ addListener(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this;
51
+ addListener(event: 'connect', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this;
52
+ addListener(event: 'request', listener: http.RequestListener): this;
53
+ addListener(event: 'upgrade', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this;
54
+ emit(event: string, ...args: any[]): boolean;
55
+ emit(event: 'keylog', line: Buffer, tlsSocket: tls.TLSSocket): boolean;
56
+ emit(event: 'newSession', sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void): boolean;
57
+ emit(event: 'OCSPRequest', certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void): boolean;
58
+ emit(event: 'resumeSession', sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void): boolean;
59
+ emit(event: 'secureConnection', tlsSocket: tls.TLSSocket): boolean;
60
+ emit(event: 'tlsClientError', err: Error, tlsSocket: tls.TLSSocket): boolean;
61
+ emit(event: 'close'): boolean;
62
+ emit(event: 'connection', socket: Duplex): boolean;
63
+ emit(event: 'error', err: Error): boolean;
64
+ emit(event: 'listening'): boolean;
65
+ emit(event: 'checkContinue', req: http.IncomingMessage, res: http.ServerResponse): boolean;
66
+ emit(event: 'checkExpectation', req: http.IncomingMessage, res: http.ServerResponse): boolean;
67
+ emit(event: 'clientError', err: Error, socket: Duplex): boolean;
68
+ emit(event: 'connect', req: http.IncomingMessage, socket: Duplex, head: Buffer): boolean;
69
+ emit(event: 'request', req: http.IncomingMessage, res: http.ServerResponse): boolean;
70
+ emit(event: 'upgrade', req: http.IncomingMessage, socket: Duplex, head: Buffer): boolean;
71
+ on(event: string, listener: (...args: any[]) => void): this;
72
+ on(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
73
+ on(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this;
74
+ on(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
75
+ on(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this;
76
+ on(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this;
77
+ on(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
78
+ on(event: 'close', listener: () => void): this;
79
+ on(event: 'connection', listener: (socket: Duplex) => void): this;
80
+ on(event: 'error', listener: (err: Error) => void): this;
81
+ on(event: 'listening', listener: () => void): this;
82
+ on(event: 'checkContinue', listener: http.RequestListener): this;
83
+ on(event: 'checkExpectation', listener: http.RequestListener): this;
84
+ on(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this;
85
+ on(event: 'connect', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this;
86
+ on(event: 'request', listener: http.RequestListener): this;
87
+ on(event: 'upgrade', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this;
88
+ once(event: string, listener: (...args: any[]) => void): this;
89
+ once(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
90
+ once(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this;
91
+ once(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
92
+ once(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this;
93
+ once(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this;
94
+ once(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
95
+ once(event: 'close', listener: () => void): this;
96
+ once(event: 'connection', listener: (socket: Duplex) => void): this;
97
+ once(event: 'error', listener: (err: Error) => void): this;
98
+ once(event: 'listening', listener: () => void): this;
99
+ once(event: 'checkContinue', listener: http.RequestListener): this;
100
+ once(event: 'checkExpectation', listener: http.RequestListener): this;
101
+ once(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this;
102
+ once(event: 'connect', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this;
103
+ once(event: 'request', listener: http.RequestListener): this;
104
+ once(event: 'upgrade', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this;
105
+ prependListener(event: string, listener: (...args: any[]) => void): this;
106
+ prependListener(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
107
+ prependListener(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this;
108
+ prependListener(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
109
+ prependListener(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this;
110
+ prependListener(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this;
111
+ prependListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
112
+ prependListener(event: 'close', listener: () => void): this;
113
+ prependListener(event: 'connection', listener: (socket: Duplex) => void): this;
114
+ prependListener(event: 'error', listener: (err: Error) => void): this;
115
+ prependListener(event: 'listening', listener: () => void): this;
116
+ prependListener(event: 'checkContinue', listener: http.RequestListener): this;
117
+ prependListener(event: 'checkExpectation', listener: http.RequestListener): this;
118
+ prependListener(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this;
119
+ prependListener(event: 'connect', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this;
120
+ prependListener(event: 'request', listener: http.RequestListener): this;
121
+ prependListener(event: 'upgrade', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this;
122
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
123
+ prependOnceListener(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
124
+ prependOnceListener(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this;
125
+ prependOnceListener(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
126
+ prependOnceListener(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this;
127
+ prependOnceListener(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this;
128
+ prependOnceListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
129
+ prependOnceListener(event: 'close', listener: () => void): this;
130
+ prependOnceListener(event: 'connection', listener: (socket: Duplex) => void): this;
131
+ prependOnceListener(event: 'error', listener: (err: Error) => void): this;
132
+ prependOnceListener(event: 'listening', listener: () => void): this;
133
+ prependOnceListener(event: 'checkContinue', listener: http.RequestListener): this;
134
+ prependOnceListener(event: 'checkExpectation', listener: http.RequestListener): this;
135
+ prependOnceListener(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this;
136
+ prependOnceListener(event: 'connect', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this;
137
+ prependOnceListener(event: 'request', listener: http.RequestListener): this;
138
+ prependOnceListener(event: 'upgrade', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this;
139
+ }
140
+ /**
141
+ * ```js
142
+ * // curl -k https://localhost:8000/
143
+ * const https = require('https');
144
+ * const fs = require('fs');
145
+ *
146
+ * const options = {
147
+ * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
148
+ * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem')
149
+ * };
150
+ *
151
+ * https.createServer(options, (req, res) => {
152
+ * res.writeHead(200);
153
+ * res.end('hello world\n');
154
+ * }).listen(8000);
155
+ * ```
156
+ *
157
+ * Or
158
+ *
159
+ * ```js
160
+ * const https = require('https');
161
+ * const fs = require('fs');
162
+ *
163
+ * const options = {
164
+ * pfx: fs.readFileSync('test/fixtures/test_cert.pfx'),
165
+ * passphrase: 'sample'
166
+ * };
167
+ *
168
+ * https.createServer(options, (req, res) => {
169
+ * res.writeHead(200);
170
+ * res.end('hello world\n');
171
+ * }).listen(8000);
172
+ * ```
173
+ * @since v0.3.4
174
+ * @param options Accepts `options` from `createServer`, `createSecureContext` and `createServer`.
175
+ * @param requestListener A listener to be added to the `'request'` event.
176
+ */
177
+ function createServer(requestListener?: http.RequestListener): Server;
178
+ function createServer(options: ServerOptions, requestListener?: http.RequestListener): Server;
179
+ /**
180
+ * Makes a request to a secure web server.
181
+ *
182
+ * The following additional `options` from `tls.connect()` are also accepted:`ca`, `cert`, `ciphers`, `clientCertEngine`, `crl`, `dhparam`, `ecdhCurve`,`honorCipherOrder`, `key`, `passphrase`,
183
+ * `pfx`, `rejectUnauthorized`,`secureOptions`, `secureProtocol`, `servername`, `sessionIdContext`,`highWaterMark`.
184
+ *
185
+ * `options` can be an object, a string, or a `URL` object. If `options` is a
186
+ * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object.
187
+ *
188
+ * `https.request()` returns an instance of the `http.ClientRequest` class. The `ClientRequest` instance is a writable stream. If one needs to
189
+ * upload a file with a POST request, then write to the `ClientRequest` object.
190
+ *
191
+ * ```js
192
+ * const https = require('https');
193
+ *
194
+ * const options = {
195
+ * hostname: 'encrypted.google.com',
196
+ * port: 443,
197
+ * path: '/',
198
+ * method: 'GET'
199
+ * };
200
+ *
201
+ * const req = https.request(options, (res) => {
202
+ * console.log('statusCode:', res.statusCode);
203
+ * console.log('headers:', res.headers);
204
+ *
205
+ * res.on('data', (d) => {
206
+ * process.stdout.write(d);
207
+ * });
208
+ * });
209
+ *
210
+ * req.on('error', (e) => {
211
+ * console.error(e);
212
+ * });
213
+ * req.end();
214
+ * ```
215
+ *
216
+ * Example using options from `tls.connect()`:
217
+ *
218
+ * ```js
219
+ * const options = {
220
+ * hostname: 'encrypted.google.com',
221
+ * port: 443,
222
+ * path: '/',
223
+ * method: 'GET',
224
+ * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
225
+ * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem')
226
+ * };
227
+ * options.agent = new https.Agent(options);
228
+ *
229
+ * const req = https.request(options, (res) => {
230
+ * // ...
231
+ * });
232
+ * ```
233
+ *
234
+ * Alternatively, opt out of connection pooling by not using an `Agent`.
235
+ *
236
+ * ```js
237
+ * const options = {
238
+ * hostname: 'encrypted.google.com',
239
+ * port: 443,
240
+ * path: '/',
241
+ * method: 'GET',
242
+ * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
243
+ * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'),
244
+ * agent: false
245
+ * };
246
+ *
247
+ * const req = https.request(options, (res) => {
248
+ * // ...
249
+ * });
250
+ * ```
251
+ *
252
+ * Example using a `URL` as `options`:
253
+ *
254
+ * ```js
255
+ * const options = new URL('https://abc:xyz@example.com');
256
+ *
257
+ * const req = https.request(options, (res) => {
258
+ * // ...
259
+ * });
260
+ * ```
261
+ *
262
+ * Example pinning on certificate fingerprint, or the public key (similar to`pin-sha256`):
263
+ *
264
+ * ```js
265
+ * const tls = require('tls');
266
+ * const https = require('https');
267
+ * const crypto = require('crypto');
268
+ *
269
+ * function sha256(s) {
270
+ * return crypto.createHash('sha256').update(s).digest('base64');
271
+ * }
272
+ * const options = {
273
+ * hostname: 'github.com',
274
+ * port: 443,
275
+ * path: '/',
276
+ * method: 'GET',
277
+ * checkServerIdentity: function(host, cert) {
278
+ * // Make sure the certificate is issued to the host we are connected to
279
+ * const err = tls.checkServerIdentity(host, cert);
280
+ * if (err) {
281
+ * return err;
282
+ * }
283
+ *
284
+ * // Pin the public key, similar to HPKP pin-sha25 pinning
285
+ * const pubkey256 = 'pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU=';
286
+ * if (sha256(cert.pubkey) !== pubkey256) {
287
+ * const msg = 'Certificate verification error: ' +
288
+ * `The public key of '${cert.subject.CN}' ` +
289
+ * 'does not match our pinned fingerprint';
290
+ * return new Error(msg);
291
+ * }
292
+ *
293
+ * // Pin the exact certificate, rather than the pub key
294
+ * const cert256 = '25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:' +
295
+ * 'D8:3E:4C:1D:98:DB:71:E4:1A:48:03:98:EA:22:6A:BD:8B:93:16';
296
+ * if (cert.fingerprint256 !== cert256) {
297
+ * const msg = 'Certificate verification error: ' +
298
+ * `The certificate of '${cert.subject.CN}' ` +
299
+ * 'does not match our pinned fingerprint';
300
+ * return new Error(msg);
301
+ * }
302
+ *
303
+ * // This loop is informational only.
304
+ * // Print the certificate and public key fingerprints of all certs in the
305
+ * // chain. Its common to pin the public key of the issuer on the public
306
+ * // internet, while pinning the public key of the service in sensitive
307
+ * // environments.
308
+ * do {
309
+ * console.log('Subject Common Name:', cert.subject.CN);
310
+ * console.log(' Certificate SHA256 fingerprint:', cert.fingerprint256);
311
+ *
312
+ * hash = crypto.createHash('sha256');
313
+ * console.log(' Public key ping-sha256:', sha256(cert.pubkey));
314
+ *
315
+ * lastprint256 = cert.fingerprint256;
316
+ * cert = cert.issuerCertificate;
317
+ * } while (cert.fingerprint256 !== lastprint256);
318
+ *
319
+ * },
320
+ * };
321
+ *
322
+ * options.agent = new https.Agent(options);
323
+ * const req = https.request(options, (res) => {
324
+ * console.log('All OK. Server matched our pinned cert or public key');
325
+ * console.log('statusCode:', res.statusCode);
326
+ * // Print the HPKP values
327
+ * console.log('headers:', res.headers['public-key-pins']);
328
+ *
329
+ * res.on('data', (d) => {});
330
+ * });
331
+ *
332
+ * req.on('error', (e) => {
333
+ * console.error(e.message);
334
+ * });
335
+ * req.end();
336
+ * ```
337
+ *
338
+ * Outputs for example:
339
+ *
340
+ * ```text
341
+ * Subject Common Name: github.com
342
+ * Certificate SHA256 fingerprint: 25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:D8:3E:4C:1D:98:DB:71:E4:1A:48:03:98:EA:22:6A:BD:8B:93:16
343
+ * Public key ping-sha256: pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU=
344
+ * Subject Common Name: DigiCert SHA2 Extended Validation Server CA
345
+ * Certificate SHA256 fingerprint: 40:3E:06:2A:26:53:05:91:13:28:5B:AF:80:A0:D4:AE:42:2C:84:8C:9F:78:FA:D0:1F:C9:4B:C5:B8:7F:EF:1A
346
+ * Public key ping-sha256: RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho=
347
+ * Subject Common Name: DigiCert High Assurance EV Root CA
348
+ * Certificate SHA256 fingerprint: 74:31:E5:F4:C3:C1:CE:46:90:77:4F:0B:61:E0:54:40:88:3B:A9:A0:1E:D0:0B:A6:AB:D7:80:6E:D3:B1:18:CF
349
+ * Public key ping-sha256: WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18=
350
+ * All OK. Server matched our pinned cert or public key
351
+ * statusCode: 200
352
+ * headers: max-age=0; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; pin-sha256="RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho=";
353
+ * pin-sha256="k2v657xBsOVe1PQRwOsHsw3bsGT2VzIqz5K+59sNQws="; pin-sha256="K87oWBWM9UZfyddvDfoxL+8lpNyoUB2ptGtn0fv6G2Q="; pin-sha256="IQBnNBEiFuhj+8x6X8XLgh01V9Ic5/V3IRQLNFFc7v4=";
354
+ * pin-sha256="iie1VXtL7HzAMF+/PVPR9xzT80kQxdZeJ+zduCB3uj0="; pin-sha256="LvRiGEjRqfzurezaWuj8Wie2gyHMrW5Q06LspMnox7A="; includeSubDomains
355
+ * ```
356
+ * @since v0.3.6
357
+ * @param options Accepts all `options` from `request`, with some differences in default values:
358
+ */
359
+ function request(options: RequestOptions | string | URL, callback?: (res: http.IncomingMessage) => void): http.ClientRequest;
360
+ function request(url: string | URL, options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest;
361
+ /**
362
+ * Like `http.get()` but for HTTPS.
363
+ *
364
+ * `options` can be an object, a string, or a `URL` object. If `options` is a
365
+ * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object.
366
+ *
367
+ * ```js
368
+ * const https = require('https');
369
+ *
370
+ * https.get('https://encrypted.google.com/', (res) => {
371
+ * console.log('statusCode:', res.statusCode);
372
+ * console.log('headers:', res.headers);
373
+ *
374
+ * res.on('data', (d) => {
375
+ * process.stdout.write(d);
376
+ * });
377
+ *
378
+ * }).on('error', (e) => {
379
+ * console.error(e);
380
+ * });
381
+ * ```
382
+ * @since v0.3.6
383
+ * @param options Accepts the same `options` as {@link request}, with the `method` always set to `GET`.
384
+ */
385
+ function get(options: RequestOptions | string | URL, callback?: (res: http.IncomingMessage) => void): http.ClientRequest;
386
+ function get(url: string | URL, options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest;
387
+ let globalAgent: Agent;
388
+ }
389
+ declare module 'node:https' {
390
+ export * from 'https';
391
+ }
@@ -0,0 +1,131 @@
1
+ // Type definitions for non-npm package Node.js 16.10
2
+ // Project: https://nodejs.org/
3
+ // Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
4
+ // DefinitelyTyped <https://github.com/DefinitelyTyped>
5
+ // Alberto Schiabel <https://github.com/jkomyno>
6
+ // Alvis HT Tang <https://github.com/alvis>
7
+ // Andrew Makarov <https://github.com/r3nya>
8
+ // Benjamin Toueg <https://github.com/btoueg>
9
+ // Chigozirim C. <https://github.com/smac89>
10
+ // David Junger <https://github.com/touffy>
11
+ // Deividas Bakanas <https://github.com/DeividasBakanas>
12
+ // Eugene Y. Q. Shen <https://github.com/eyqs>
13
+ // Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>
14
+ // Huw <https://github.com/hoo29>
15
+ // Kelvin Jin <https://github.com/kjin>
16
+ // Klaus Meinhardt <https://github.com/ajafff>
17
+ // Lishude <https://github.com/islishude>
18
+ // Mariusz Wiktorczyk <https://github.com/mwiktorczyk>
19
+ // Mohsen Azimi <https://github.com/mohsen1>
20
+ // Nicolas Even <https://github.com/n-e>
21
+ // Nikita Galkin <https://github.com/galkin>
22
+ // Parambir Singh <https://github.com/parambirs>
23
+ // Sebastian Silbermann <https://github.com/eps1lon>
24
+ // Simon Schick <https://github.com/SimonSchick>
25
+ // Thomas den Hollander <https://github.com/ThomasdenH>
26
+ // Wilco Bakker <https://github.com/WilcoBakker>
27
+ // wwwy3y3 <https://github.com/wwwy3y3>
28
+ // Samuel Ainsworth <https://github.com/samuela>
29
+ // Kyle Uehlein <https://github.com/kuehlein>
30
+ // Thanik Bhongbhibhat <https://github.com/bhongy>
31
+ // Marcin Kopacz <https://github.com/chyzwar>
32
+ // Trivikram Kamat <https://github.com/trivikr>
33
+ // Minh Son Nguyen <https://github.com/nguymin4>
34
+ // Junxiao Shi <https://github.com/yoursunny>
35
+ // Ilia Baryshnikov <https://github.com/qwelias>
36
+ // ExE Boss <https://github.com/ExE-Boss>
37
+ // Surasak Chaisurin <https://github.com/Ryan-Willpower>
38
+ // Piotr Błażejewicz <https://github.com/peterblazejewicz>
39
+ // Anna Henningsen <https://github.com/addaleax>
40
+ // Victor Perin <https://github.com/victorperin>
41
+ // Yongsheng Zhang <https://github.com/ZYSzys>
42
+ // NodeJS Contributors <https://github.com/NodeJS>
43
+ // Linus Unnebäck <https://github.com/LinusU>
44
+ // wafuwafu13 <https://github.com/wafuwafu13>
45
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
46
+
47
+ /**
48
+ * License for programmatically and manually incorporated
49
+ * documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc
50
+ *
51
+ * Copyright Node.js contributors. All rights reserved.
52
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
53
+ * of this software and associated documentation files (the "Software"), to
54
+ * deal in the Software without restriction, including without limitation the
55
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
56
+ * sell copies of the Software, and to permit persons to whom the Software is
57
+ * furnished to do so, subject to the following conditions:
58
+ *
59
+ * The above copyright notice and this permission notice shall be included in
60
+ * all copies or substantial portions of the Software.
61
+ *
62
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
63
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
64
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
65
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
66
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
67
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
68
+ * IN THE SOFTWARE.
69
+ */
70
+
71
+ // NOTE: These definitions support NodeJS and TypeScript 3.7+.
72
+
73
+ // Reference required types from the default lib:
74
+ /// <reference lib="es2020" />
75
+ /// <reference lib="esnext.asynciterable" />
76
+ /// <reference lib="esnext.intl" />
77
+ /// <reference lib="esnext.bigint" />
78
+
79
+ // Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
80
+ /// <reference path="assert.d.ts" />
81
+ /// <reference path="assert/strict.d.ts" />
82
+ /// <reference path="globals.d.ts" />
83
+ /// <reference path="async_hooks.d.ts" />
84
+ /// <reference path="buffer.d.ts" />
85
+ /// <reference path="child_process.d.ts" />
86
+ /// <reference path="cluster.d.ts" />
87
+ /// <reference path="console.d.ts" />
88
+ /// <reference path="constants.d.ts" />
89
+ /// <reference path="crypto.d.ts" />
90
+ /// <reference path="dgram.d.ts" />
91
+ /// <reference path="diagnostics_channel.d.ts" />
92
+ /// <reference path="dns.d.ts" />
93
+ /// <reference path="dns/promises.d.ts" />
94
+ /// <reference path="dns/promises.d.ts" />
95
+ /// <reference path="domain.d.ts" />
96
+ /// <reference path="events.d.ts" />
97
+ /// <reference path="fs.d.ts" />
98
+ /// <reference path="fs/promises.d.ts" />
99
+ /// <reference path="http.d.ts" />
100
+ /// <reference path="http2.d.ts" />
101
+ /// <reference path="https.d.ts" />
102
+ /// <reference path="inspector.d.ts" />
103
+ /// <reference path="module.d.ts" />
104
+ /// <reference path="net.d.ts" />
105
+ /// <reference path="os.d.ts" />
106
+ /// <reference path="path.d.ts" />
107
+ /// <reference path="perf_hooks.d.ts" />
108
+ /// <reference path="process.d.ts" />
109
+ /// <reference path="punycode.d.ts" />
110
+ /// <reference path="querystring.d.ts" />
111
+ /// <reference path="readline.d.ts" />
112
+ /// <reference path="repl.d.ts" />
113
+ /// <reference path="stream.d.ts" />
114
+ /// <reference path="stream/promises.d.ts" />
115
+ /// <reference path="stream/consumers.d.ts" />
116
+ /// <reference path="stream/web.d.ts" />
117
+ /// <reference path="string_decoder.d.ts" />
118
+ /// <reference path="timers.d.ts" />
119
+ /// <reference path="timers/promises.d.ts" />
120
+ /// <reference path="tls.d.ts" />
121
+ /// <reference path="trace_events.d.ts" />
122
+ /// <reference path="tty.d.ts" />
123
+ /// <reference path="url.d.ts" />
124
+ /// <reference path="util.d.ts" />
125
+ /// <reference path="v8.d.ts" />
126
+ /// <reference path="vm.d.ts" />
127
+ /// <reference path="wasi.d.ts" />
128
+ /// <reference path="worker_threads.d.ts" />
129
+ /// <reference path="zlib.d.ts" />
130
+
131
+ /// <reference path="globals.global.d.ts" />