cdk-ecr-deployment 0.0.76 → 0.0.82

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (357) hide show
  1. package/.gitattributes +20 -21
  2. package/.jsii +43 -35
  3. package/lambda/Dockerfile +25 -0
  4. package/lambda/install.js +64 -0
  5. package/lib/index.js +40 -23
  6. package/node_modules/@sindresorhus/is/dist/index.d.ts +225 -0
  7. package/node_modules/@sindresorhus/is/dist/index.js +427 -0
  8. package/node_modules/@sindresorhus/is/dist/types.d.ts +24 -0
  9. package/node_modules/@sindresorhus/is/dist/types.js +3 -0
  10. package/node_modules/@sindresorhus/is/license +9 -0
  11. package/node_modules/@sindresorhus/is/package.json +96 -0
  12. package/node_modules/@sindresorhus/is/readme.md +628 -0
  13. package/node_modules/@szmarczak/http-timer/LICENSE +21 -0
  14. package/node_modules/@szmarczak/http-timer/README.md +93 -0
  15. package/node_modules/@szmarczak/http-timer/dist/source/index.d.ts +32 -0
  16. package/node_modules/@szmarczak/http-timer/dist/source/index.js +126 -0
  17. package/node_modules/@szmarczak/http-timer/package.json +72 -0
  18. package/node_modules/@types/cacheable-request/LICENSE +21 -0
  19. package/node_modules/@types/cacheable-request/README.md +16 -0
  20. package/node_modules/@types/cacheable-request/index.d.ts +137 -0
  21. package/node_modules/@types/cacheable-request/node_modules/@types/node/LICENSE +21 -0
  22. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +16 -0
  23. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert/strict.d.ts +8 -0
  24. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +912 -0
  25. package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +497 -0
  26. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +2142 -0
  27. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +1366 -0
  28. package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +414 -0
  29. package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +412 -0
  30. package/node_modules/@types/cacheable-request/node_modules/@types/node/constants.d.ts +18 -0
  31. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +3307 -0
  32. package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +545 -0
  33. package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +134 -0
  34. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +368 -0
  35. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +654 -0
  36. package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +169 -0
  37. package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +623 -0
  38. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +1091 -0
  39. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +3784 -0
  40. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +284 -0
  41. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.global.d.ts +1 -0
  42. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +1369 -0
  43. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +2100 -0
  44. package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +391 -0
  45. package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +131 -0
  46. package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +2745 -0
  47. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +114 -0
  48. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +783 -0
  49. package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +455 -0
  50. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +230 -0
  51. package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +172 -0
  52. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +555 -0
  53. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +1481 -0
  54. package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +117 -0
  55. package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +131 -0
  56. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +543 -0
  57. package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +424 -0
  58. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/consumers.d.ts +24 -0
  59. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/promises.d.ts +42 -0
  60. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +391 -0
  61. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +1249 -0
  62. package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +67 -0
  63. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +68 -0
  64. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +94 -0
  65. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +1019 -0
  66. package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +161 -0
  67. package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +204 -0
  68. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +821 -0
  69. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +1594 -0
  70. package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +378 -0
  71. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +507 -0
  72. package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +158 -0
  73. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +649 -0
  74. package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +517 -0
  75. package/node_modules/@types/cacheable-request/package.json +35 -0
  76. package/node_modules/@types/http-cache-semantics/LICENSE +21 -0
  77. package/node_modules/@types/http-cache-semantics/README.md +16 -0
  78. package/node_modules/@types/http-cache-semantics/index.d.ts +170 -0
  79. package/node_modules/@types/http-cache-semantics/package.json +25 -0
  80. package/node_modules/@types/keyv/LICENSE +21 -0
  81. package/node_modules/@types/keyv/README.md +16 -0
  82. package/node_modules/@types/keyv/index.d.ts +77 -0
  83. package/node_modules/@types/keyv/node_modules/@types/node/LICENSE +21 -0
  84. package/node_modules/@types/keyv/node_modules/@types/node/README.md +16 -0
  85. package/node_modules/@types/keyv/node_modules/@types/node/assert/strict.d.ts +8 -0
  86. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +912 -0
  87. package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +497 -0
  88. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +2142 -0
  89. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +1366 -0
  90. package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +414 -0
  91. package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +412 -0
  92. package/node_modules/@types/keyv/node_modules/@types/node/constants.d.ts +18 -0
  93. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +3307 -0
  94. package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +545 -0
  95. package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +134 -0
  96. package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +368 -0
  97. package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +654 -0
  98. package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +169 -0
  99. package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +623 -0
  100. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +1091 -0
  101. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +3784 -0
  102. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +284 -0
  103. package/node_modules/@types/keyv/node_modules/@types/node/globals.global.d.ts +1 -0
  104. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +1369 -0
  105. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +2100 -0
  106. package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +391 -0
  107. package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +131 -0
  108. package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +2745 -0
  109. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +114 -0
  110. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +783 -0
  111. package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +455 -0
  112. package/node_modules/@types/keyv/node_modules/@types/node/package.json +230 -0
  113. package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +172 -0
  114. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +555 -0
  115. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +1481 -0
  116. package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +117 -0
  117. package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +131 -0
  118. package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +543 -0
  119. package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +424 -0
  120. package/node_modules/@types/keyv/node_modules/@types/node/stream/consumers.d.ts +24 -0
  121. package/node_modules/@types/keyv/node_modules/@types/node/stream/promises.d.ts +42 -0
  122. package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +391 -0
  123. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +1249 -0
  124. package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +67 -0
  125. package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +68 -0
  126. package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +94 -0
  127. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +1019 -0
  128. package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +161 -0
  129. package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +204 -0
  130. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +821 -0
  131. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +1594 -0
  132. package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +378 -0
  133. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +507 -0
  134. package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +158 -0
  135. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +649 -0
  136. package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +517 -0
  137. package/node_modules/@types/keyv/package.json +32 -0
  138. package/node_modules/@types/responselike/LICENSE +21 -0
  139. package/node_modules/@types/responselike/README.md +16 -0
  140. package/node_modules/@types/responselike/index.d.ts +34 -0
  141. package/node_modules/@types/responselike/node_modules/@types/node/LICENSE +21 -0
  142. package/node_modules/@types/responselike/node_modules/@types/node/README.md +16 -0
  143. package/node_modules/@types/responselike/node_modules/@types/node/assert/strict.d.ts +8 -0
  144. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +912 -0
  145. package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +497 -0
  146. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +2142 -0
  147. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +1366 -0
  148. package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +414 -0
  149. package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +412 -0
  150. package/node_modules/@types/responselike/node_modules/@types/node/constants.d.ts +18 -0
  151. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +3307 -0
  152. package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +545 -0
  153. package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +134 -0
  154. package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +368 -0
  155. package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +654 -0
  156. package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +169 -0
  157. package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +623 -0
  158. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +1091 -0
  159. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +3784 -0
  160. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +284 -0
  161. package/node_modules/@types/responselike/node_modules/@types/node/globals.global.d.ts +1 -0
  162. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +1369 -0
  163. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +2100 -0
  164. package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +391 -0
  165. package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +131 -0
  166. package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +2745 -0
  167. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +114 -0
  168. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +783 -0
  169. package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +455 -0
  170. package/node_modules/@types/responselike/node_modules/@types/node/package.json +230 -0
  171. package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +172 -0
  172. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +555 -0
  173. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +1481 -0
  174. package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +117 -0
  175. package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +131 -0
  176. package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +543 -0
  177. package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +424 -0
  178. package/node_modules/@types/responselike/node_modules/@types/node/stream/consumers.d.ts +24 -0
  179. package/node_modules/@types/responselike/node_modules/@types/node/stream/promises.d.ts +42 -0
  180. package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +391 -0
  181. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +1249 -0
  182. package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +67 -0
  183. package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +68 -0
  184. package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +94 -0
  185. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +1019 -0
  186. package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +161 -0
  187. package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +204 -0
  188. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +821 -0
  189. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +1594 -0
  190. package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +378 -0
  191. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +507 -0
  192. package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +158 -0
  193. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +649 -0
  194. package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +517 -0
  195. package/node_modules/@types/responselike/package.json +25 -0
  196. package/node_modules/cacheable-lookup/LICENSE +21 -0
  197. package/node_modules/cacheable-lookup/README.md +240 -0
  198. package/node_modules/cacheable-lookup/index.d.ts +139 -0
  199. package/node_modules/cacheable-lookup/package.json +45 -0
  200. package/node_modules/cacheable-lookup/source/index.js +436 -0
  201. package/node_modules/cacheable-request/LICENSE +21 -0
  202. package/node_modules/cacheable-request/README.md +206 -0
  203. package/node_modules/cacheable-request/package.json +56 -0
  204. package/node_modules/cacheable-request/src/index.js +251 -0
  205. package/node_modules/clone-response/LICENSE +21 -0
  206. package/node_modules/clone-response/README.md +62 -0
  207. package/node_modules/clone-response/package.json +44 -0
  208. package/node_modules/clone-response/src/index.js +17 -0
  209. package/node_modules/decompress-response/index.d.ts +22 -0
  210. package/node_modules/decompress-response/index.js +58 -0
  211. package/node_modules/decompress-response/license +9 -0
  212. package/node_modules/decompress-response/node_modules/mimic-response/index.d.ts +17 -0
  213. package/node_modules/decompress-response/node_modules/mimic-response/index.js +77 -0
  214. package/node_modules/decompress-response/node_modules/mimic-response/license +9 -0
  215. package/node_modules/decompress-response/node_modules/mimic-response/package.json +42 -0
  216. package/node_modules/decompress-response/node_modules/mimic-response/readme.md +78 -0
  217. package/node_modules/decompress-response/package.json +56 -0
  218. package/node_modules/decompress-response/readme.md +48 -0
  219. package/node_modules/defer-to-connect/LICENSE +21 -0
  220. package/node_modules/defer-to-connect/README.md +38 -0
  221. package/node_modules/defer-to-connect/dist/source/index.d.ts +10 -0
  222. package/node_modules/defer-to-connect/dist/source/index.js +47 -0
  223. package/node_modules/defer-to-connect/package.json +71 -0
  224. package/node_modules/end-of-stream/LICENSE +21 -0
  225. package/node_modules/end-of-stream/README.md +54 -0
  226. package/node_modules/end-of-stream/index.js +94 -0
  227. package/node_modules/end-of-stream/package.json +37 -0
  228. package/node_modules/get-stream/buffer-stream.js +52 -0
  229. package/node_modules/get-stream/index.d.ts +108 -0
  230. package/node_modules/get-stream/index.js +60 -0
  231. package/node_modules/get-stream/license +9 -0
  232. package/node_modules/get-stream/package.json +50 -0
  233. package/node_modules/get-stream/readme.md +124 -0
  234. package/node_modules/got/dist/source/as-promise/create-rejection.d.ts +2 -0
  235. package/node_modules/got/dist/source/as-promise/create-rejection.js +30 -0
  236. package/node_modules/got/dist/source/as-promise/index.d.ts +3 -0
  237. package/node_modules/got/dist/source/as-promise/index.js +175 -0
  238. package/node_modules/got/dist/source/as-promise/normalize-arguments.d.ts +3 -0
  239. package/node_modules/got/dist/source/as-promise/normalize-arguments.js +78 -0
  240. package/node_modules/got/dist/source/as-promise/parse-body.d.ts +3 -0
  241. package/node_modules/got/dist/source/as-promise/parse-body.js +25 -0
  242. package/node_modules/got/dist/source/as-promise/types.d.ts +256 -0
  243. package/node_modules/got/dist/source/as-promise/types.js +42 -0
  244. package/node_modules/got/dist/source/core/calculate-retry-delay.d.ts +5 -0
  245. package/node_modules/got/dist/source/core/calculate-retry-delay.js +29 -0
  246. package/node_modules/got/dist/source/core/index.d.ts +1124 -0
  247. package/node_modules/got/dist/source/core/index.js +1497 -0
  248. package/node_modules/got/dist/source/core/utils/dns-ip-version.d.ts +5 -0
  249. package/node_modules/got/dist/source/core/utils/dns-ip-version.js +17 -0
  250. package/node_modules/got/dist/source/core/utils/get-body-size.d.ts +3 -0
  251. package/node_modules/got/dist/source/core/utils/get-body-size.js +32 -0
  252. package/node_modules/got/dist/source/core/utils/get-buffer.d.ts +4 -0
  253. package/node_modules/got/dist/source/core/utils/get-buffer.js +16 -0
  254. package/node_modules/got/dist/source/core/utils/is-form-data.d.ts +8 -0
  255. package/node_modules/got/dist/source/core/utils/is-form-data.js +4 -0
  256. package/node_modules/got/dist/source/core/utils/is-response-ok.d.ts +2 -0
  257. package/node_modules/got/dist/source/core/utils/is-response-ok.js +8 -0
  258. package/node_modules/got/dist/source/core/utils/options-to-url.d.ts +14 -0
  259. package/node_modules/got/dist/source/core/utils/options-to-url.js +53 -0
  260. package/node_modules/got/dist/source/core/utils/proxy-events.d.ts +3 -0
  261. package/node_modules/got/dist/source/core/utils/proxy-events.js +17 -0
  262. package/node_modules/got/dist/source/core/utils/timed-out.d.ts +29 -0
  263. package/node_modules/got/dist/source/core/utils/timed-out.js +121 -0
  264. package/node_modules/got/dist/source/core/utils/unhandle.d.ts +11 -0
  265. package/node_modules/got/dist/source/core/utils/unhandle.js +22 -0
  266. package/node_modules/got/dist/source/core/utils/url-to-options.d.ts +15 -0
  267. package/node_modules/got/dist/source/core/utils/url-to-options.js +24 -0
  268. package/node_modules/got/dist/source/core/utils/weakable-map.d.ts +8 -0
  269. package/node_modules/got/dist/source/core/utils/weakable-map.js +29 -0
  270. package/node_modules/got/dist/source/create.d.ts +5 -0
  271. package/node_modules/got/dist/source/create.js +240 -0
  272. package/node_modules/got/dist/source/index.d.ts +4 -0
  273. package/node_modules/got/dist/source/index.js +132 -0
  274. package/node_modules/got/dist/source/types.d.ts +344 -0
  275. package/node_modules/got/dist/source/types.js +2 -0
  276. package/node_modules/got/dist/source/utils/deep-freeze.d.ts +1 -0
  277. package/node_modules/got/dist/source/utils/deep-freeze.js +12 -0
  278. package/node_modules/got/dist/source/utils/deprecation-warning.d.ts +2 -0
  279. package/node_modules/got/dist/source/utils/deprecation-warning.js +13 -0
  280. package/node_modules/got/license +9 -0
  281. package/node_modules/got/package.json +130 -0
  282. package/node_modules/got/readme.md +2477 -0
  283. package/node_modules/http-cache-semantics/LICENSE +9 -0
  284. package/node_modules/http-cache-semantics/README.md +203 -0
  285. package/node_modules/http-cache-semantics/index.js +673 -0
  286. package/node_modules/http-cache-semantics/package.json +24 -0
  287. package/node_modules/http2-wrapper/LICENSE +21 -0
  288. package/node_modules/http2-wrapper/README.md +470 -0
  289. package/node_modules/http2-wrapper/package.json +54 -0
  290. package/node_modules/http2-wrapper/source/agent.js +670 -0
  291. package/node_modules/http2-wrapper/source/auto.js +149 -0
  292. package/node_modules/http2-wrapper/source/client-request.js +445 -0
  293. package/node_modules/http2-wrapper/source/incoming-message.js +58 -0
  294. package/node_modules/http2-wrapper/source/index.js +28 -0
  295. package/node_modules/http2-wrapper/source/utils/calculate-server-name.js +27 -0
  296. package/node_modules/http2-wrapper/source/utils/errors.js +45 -0
  297. package/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.js +13 -0
  298. package/node_modules/http2-wrapper/source/utils/proxy-events.js +7 -0
  299. package/node_modules/http2-wrapper/source/utils/url-to-options.js +25 -0
  300. package/node_modules/json-buffer/.travis.yml +3 -0
  301. package/node_modules/json-buffer/LICENSE +22 -0
  302. package/node_modules/json-buffer/README.md +24 -0
  303. package/node_modules/json-buffer/index.js +58 -0
  304. package/node_modules/json-buffer/package.json +34 -0
  305. package/node_modules/json-buffer/test/index.js +63 -0
  306. package/node_modules/keyv/LICENSE +21 -0
  307. package/node_modules/keyv/README.md +290 -0
  308. package/node_modules/keyv/package.json +54 -0
  309. package/node_modules/keyv/src/index.js +109 -0
  310. package/node_modules/lowercase-keys/index.d.ts +16 -0
  311. package/node_modules/lowercase-keys/index.js +10 -0
  312. package/node_modules/lowercase-keys/license +9 -0
  313. package/node_modules/lowercase-keys/package.json +38 -0
  314. package/node_modules/lowercase-keys/readme.md +32 -0
  315. package/node_modules/mimic-response/index.js +32 -0
  316. package/node_modules/mimic-response/license +9 -0
  317. package/node_modules/mimic-response/package.json +37 -0
  318. package/node_modules/mimic-response/readme.md +54 -0
  319. package/node_modules/normalize-url/index.d.ts +267 -0
  320. package/node_modules/normalize-url/index.js +216 -0
  321. package/node_modules/normalize-url/license +9 -0
  322. package/node_modules/normalize-url/package.json +50 -0
  323. package/node_modules/normalize-url/readme.md +286 -0
  324. package/node_modules/once/LICENSE +15 -0
  325. package/node_modules/once/README.md +79 -0
  326. package/node_modules/once/once.js +42 -0
  327. package/node_modules/once/package.json +33 -0
  328. package/node_modules/p-cancelable/index.d.ts +176 -0
  329. package/node_modules/p-cancelable/index.js +111 -0
  330. package/node_modules/p-cancelable/license +9 -0
  331. package/node_modules/p-cancelable/package.json +49 -0
  332. package/node_modules/p-cancelable/readme.md +153 -0
  333. package/node_modules/pump/.travis.yml +5 -0
  334. package/node_modules/pump/LICENSE +21 -0
  335. package/node_modules/pump/README.md +65 -0
  336. package/node_modules/pump/index.js +82 -0
  337. package/node_modules/pump/package.json +24 -0
  338. package/node_modules/pump/test-browser.js +66 -0
  339. package/node_modules/pump/test-node.js +53 -0
  340. package/node_modules/quick-lru/index.d.ts +97 -0
  341. package/node_modules/quick-lru/index.js +123 -0
  342. package/node_modules/quick-lru/license +9 -0
  343. package/node_modules/quick-lru/package.json +43 -0
  344. package/node_modules/quick-lru/readme.md +111 -0
  345. package/node_modules/resolve-alpn/LICENSE +22 -0
  346. package/node_modules/resolve-alpn/README.md +60 -0
  347. package/node_modules/resolve-alpn/index.js +43 -0
  348. package/node_modules/resolve-alpn/package.json +34 -0
  349. package/node_modules/responselike/LICENSE +19 -0
  350. package/node_modules/responselike/README.md +77 -0
  351. package/node_modules/responselike/package.json +38 -0
  352. package/node_modules/responselike/src/index.js +34 -0
  353. package/node_modules/wrappy/LICENSE +15 -0
  354. package/node_modules/wrappy/README.md +36 -0
  355. package/node_modules/wrappy/package.json +29 -0
  356. package/node_modules/wrappy/wrappy.js +33 -0
  357. package/package.json +42 -39
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "once",
3
+ "version": "1.4.0",
4
+ "description": "Run a function exactly one time",
5
+ "main": "once.js",
6
+ "directories": {
7
+ "test": "test"
8
+ },
9
+ "dependencies": {
10
+ "wrappy": "1"
11
+ },
12
+ "devDependencies": {
13
+ "tap": "^7.0.1"
14
+ },
15
+ "scripts": {
16
+ "test": "tap test/*.js"
17
+ },
18
+ "files": [
19
+ "once.js"
20
+ ],
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git://github.com/isaacs/once"
24
+ },
25
+ "keywords": [
26
+ "once",
27
+ "function",
28
+ "one",
29
+ "single"
30
+ ],
31
+ "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
32
+ "license": "ISC"
33
+ }
@@ -0,0 +1,176 @@
1
+ declare class CancelErrorClass extends Error {
2
+ readonly name: 'CancelError';
3
+ readonly isCanceled: true;
4
+
5
+ constructor(reason?: string);
6
+ }
7
+
8
+ declare namespace PCancelable {
9
+ /**
10
+ Accepts a function that is called when the promise is canceled.
11
+
12
+ You're not required to call this function. You can call this function multiple times to add multiple cancel handlers.
13
+ */
14
+ interface OnCancelFunction {
15
+ (cancelHandler: () => void): void;
16
+ shouldReject: boolean;
17
+ }
18
+
19
+ type CancelError = CancelErrorClass;
20
+ }
21
+
22
+ declare class PCancelable<ValueType> extends Promise<ValueType> {
23
+ /**
24
+ Convenience method to make your promise-returning or async function cancelable.
25
+
26
+ @param fn - A promise-returning function. The function you specify will have `onCancel` appended to its parameters.
27
+
28
+ @example
29
+ ```
30
+ import PCancelable = require('p-cancelable');
31
+
32
+ const fn = PCancelable.fn((input, onCancel) => {
33
+ const job = new Job();
34
+
35
+ onCancel(() => {
36
+ job.cleanup();
37
+ });
38
+
39
+ return job.start(); //=> Promise
40
+ });
41
+
42
+ const cancelablePromise = fn('input'); //=> PCancelable
43
+
44
+ // …
45
+
46
+ cancelablePromise.cancel();
47
+ ```
48
+ */
49
+ static fn<ReturnType>(
50
+ userFn: (onCancel: PCancelable.OnCancelFunction) => PromiseLike<ReturnType>
51
+ ): () => PCancelable<ReturnType>;
52
+ static fn<Agument1Type, ReturnType>(
53
+ userFn: (
54
+ argument1: Agument1Type,
55
+ onCancel: PCancelable.OnCancelFunction
56
+ ) => PromiseLike<ReturnType>
57
+ ): (argument1: Agument1Type) => PCancelable<ReturnType>;
58
+ static fn<Agument1Type, Agument2Type, ReturnType>(
59
+ userFn: (
60
+ argument1: Agument1Type,
61
+ argument2: Agument2Type,
62
+ onCancel: PCancelable.OnCancelFunction
63
+ ) => PromiseLike<ReturnType>
64
+ ): (
65
+ argument1: Agument1Type,
66
+ argument2: Agument2Type
67
+ ) => PCancelable<ReturnType>;
68
+ static fn<Agument1Type, Agument2Type, Agument3Type, ReturnType>(
69
+ userFn: (
70
+ argument1: Agument1Type,
71
+ argument2: Agument2Type,
72
+ argument3: Agument3Type,
73
+ onCancel: PCancelable.OnCancelFunction
74
+ ) => PromiseLike<ReturnType>
75
+ ): (
76
+ argument1: Agument1Type,
77
+ argument2: Agument2Type,
78
+ argument3: Agument3Type
79
+ ) => PCancelable<ReturnType>;
80
+ static fn<Agument1Type, Agument2Type, Agument3Type, Agument4Type, ReturnType>(
81
+ userFn: (
82
+ argument1: Agument1Type,
83
+ argument2: Agument2Type,
84
+ argument3: Agument3Type,
85
+ argument4: Agument4Type,
86
+ onCancel: PCancelable.OnCancelFunction
87
+ ) => PromiseLike<ReturnType>
88
+ ): (
89
+ argument1: Agument1Type,
90
+ argument2: Agument2Type,
91
+ argument3: Agument3Type,
92
+ argument4: Agument4Type
93
+ ) => PCancelable<ReturnType>;
94
+ static fn<
95
+ Agument1Type,
96
+ Agument2Type,
97
+ Agument3Type,
98
+ Agument4Type,
99
+ Agument5Type,
100
+ ReturnType
101
+ >(
102
+ userFn: (
103
+ argument1: Agument1Type,
104
+ argument2: Agument2Type,
105
+ argument3: Agument3Type,
106
+ argument4: Agument4Type,
107
+ argument5: Agument5Type,
108
+ onCancel: PCancelable.OnCancelFunction
109
+ ) => PromiseLike<ReturnType>
110
+ ): (
111
+ argument1: Agument1Type,
112
+ argument2: Agument2Type,
113
+ argument3: Agument3Type,
114
+ argument4: Agument4Type,
115
+ argument5: Agument5Type
116
+ ) => PCancelable<ReturnType>;
117
+ static fn<ReturnType>(
118
+ userFn: (...arguments: unknown[]) => PromiseLike<ReturnType>
119
+ ): (...arguments: unknown[]) => PCancelable<ReturnType>;
120
+
121
+ /**
122
+ Create a promise that can be canceled.
123
+
124
+ Can be constructed in the same was as a [`Promise` constructor](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise), but with an appended `onCancel` parameter in `executor`. `PCancelable` is a subclass of `Promise`.
125
+
126
+ Cancelling will reject the promise with `CancelError`. To avoid that, set `onCancel.shouldReject` to `false`.
127
+
128
+ @example
129
+ ```
130
+ import PCancelable = require('p-cancelable');
131
+
132
+ const cancelablePromise = new PCancelable((resolve, reject, onCancel) => {
133
+ const job = new Job();
134
+
135
+ onCancel.shouldReject = false;
136
+ onCancel(() => {
137
+ job.stop();
138
+ });
139
+
140
+ job.on('finish', resolve);
141
+ });
142
+
143
+ cancelablePromise.cancel(); // Doesn't throw an error
144
+ ```
145
+ */
146
+ constructor(
147
+ executor: (
148
+ resolve: (value?: ValueType | PromiseLike<ValueType>) => void,
149
+ reject: (reason?: unknown) => void,
150
+ onCancel: PCancelable.OnCancelFunction
151
+ ) => void
152
+ );
153
+
154
+ /**
155
+ Whether the promise is canceled.
156
+ */
157
+ readonly isCanceled: boolean;
158
+
159
+ /**
160
+ Cancel the promise and optionally provide a reason.
161
+
162
+ The cancellation is synchronous. Calling it after the promise has settled or multiple times does nothing.
163
+
164
+ @param reason - The cancellation reason to reject the promise with.
165
+ */
166
+ cancel: (reason?: string) => void;
167
+
168
+ /**
169
+ Rejection reason when `.cancel()` is called.
170
+
171
+ It includes a `.isCanceled` property for convenience.
172
+ */
173
+ static CancelError: typeof CancelErrorClass;
174
+ }
175
+
176
+ export = PCancelable;
@@ -0,0 +1,111 @@
1
+ 'use strict';
2
+
3
+ class CancelError extends Error {
4
+ constructor(reason) {
5
+ super(reason || 'Promise was canceled');
6
+ this.name = 'CancelError';
7
+ }
8
+
9
+ get isCanceled() {
10
+ return true;
11
+ }
12
+ }
13
+
14
+ class PCancelable {
15
+ static fn(userFn) {
16
+ return (...arguments_) => {
17
+ return new PCancelable((resolve, reject, onCancel) => {
18
+ arguments_.push(onCancel);
19
+ // eslint-disable-next-line promise/prefer-await-to-then
20
+ userFn(...arguments_).then(resolve, reject);
21
+ });
22
+ };
23
+ }
24
+
25
+ constructor(executor) {
26
+ this._cancelHandlers = [];
27
+ this._isPending = true;
28
+ this._isCanceled = false;
29
+ this._rejectOnCancel = true;
30
+
31
+ this._promise = new Promise((resolve, reject) => {
32
+ this._reject = reject;
33
+
34
+ const onResolve = value => {
35
+ if (!this._isCanceled || !onCancel.shouldReject) {
36
+ this._isPending = false;
37
+ resolve(value);
38
+ }
39
+ };
40
+
41
+ const onReject = error => {
42
+ this._isPending = false;
43
+ reject(error);
44
+ };
45
+
46
+ const onCancel = handler => {
47
+ if (!this._isPending) {
48
+ throw new Error('The `onCancel` handler was attached after the promise settled.');
49
+ }
50
+
51
+ this._cancelHandlers.push(handler);
52
+ };
53
+
54
+ Object.defineProperties(onCancel, {
55
+ shouldReject: {
56
+ get: () => this._rejectOnCancel,
57
+ set: boolean => {
58
+ this._rejectOnCancel = boolean;
59
+ }
60
+ }
61
+ });
62
+
63
+ return executor(onResolve, onReject, onCancel);
64
+ });
65
+ }
66
+
67
+ then(onFulfilled, onRejected) {
68
+ // eslint-disable-next-line promise/prefer-await-to-then
69
+ return this._promise.then(onFulfilled, onRejected);
70
+ }
71
+
72
+ catch(onRejected) {
73
+ return this._promise.catch(onRejected);
74
+ }
75
+
76
+ finally(onFinally) {
77
+ return this._promise.finally(onFinally);
78
+ }
79
+
80
+ cancel(reason) {
81
+ if (!this._isPending || this._isCanceled) {
82
+ return;
83
+ }
84
+
85
+ this._isCanceled = true;
86
+
87
+ if (this._cancelHandlers.length > 0) {
88
+ try {
89
+ for (const handler of this._cancelHandlers) {
90
+ handler();
91
+ }
92
+ } catch (error) {
93
+ this._reject(error);
94
+ return;
95
+ }
96
+ }
97
+
98
+ if (this._rejectOnCancel) {
99
+ this._reject(new CancelError(reason));
100
+ }
101
+ }
102
+
103
+ get isCanceled() {
104
+ return this._isCanceled;
105
+ }
106
+ }
107
+
108
+ Object.setPrototypeOf(PCancelable.prototype, Promise.prototype);
109
+
110
+ module.exports = PCancelable;
111
+ module.exports.CancelError = CancelError;
@@ -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,49 @@
1
+ {
2
+ "name": "p-cancelable",
3
+ "version": "2.1.1",
4
+ "description": "Create a promise that can be canceled",
5
+ "license": "MIT",
6
+ "repository": "sindresorhus/p-cancelable",
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
+ "promise",
24
+ "cancelable",
25
+ "cancel",
26
+ "canceled",
27
+ "canceling",
28
+ "cancellable",
29
+ "cancellation",
30
+ "abort",
31
+ "abortable",
32
+ "aborting",
33
+ "cleanup",
34
+ "task",
35
+ "token",
36
+ "async",
37
+ "function",
38
+ "await",
39
+ "promises",
40
+ "bluebird"
41
+ ],
42
+ "devDependencies": {
43
+ "ava": "^1.4.1",
44
+ "delay": "^4.1.0",
45
+ "promise.prototype.finally": "^3.1.0",
46
+ "tsd": "^0.7.1",
47
+ "xo": "^0.24.0"
48
+ }
49
+ }
@@ -0,0 +1,153 @@
1
+ # p-cancelable
2
+
3
+ > Create a promise that can be canceled
4
+
5
+ Useful for animation, loading resources, long-running async computations, async iteration, etc.
6
+
7
+ *If you target [Node.js 15](https://medium.com/@nodejs/node-js-v15-0-0-is-here-deb00750f278) or later, this package is [less useful](https://github.com/sindresorhus/p-cancelable/issues/27) and you should probably use [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController) instead.*
8
+
9
+ ## Install
10
+
11
+ ```
12
+ $ npm install p-cancelable
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ```js
18
+ const PCancelable = require('p-cancelable');
19
+
20
+ const cancelablePromise = new PCancelable((resolve, reject, onCancel) => {
21
+ const worker = new SomeLongRunningOperation();
22
+
23
+ onCancel(() => {
24
+ worker.close();
25
+ });
26
+
27
+ worker.on('finish', resolve);
28
+ worker.on('error', reject);
29
+ });
30
+
31
+ (async () => {
32
+ try {
33
+ console.log('Operation finished successfully:', await cancelablePromise);
34
+ } catch (error) {
35
+ if (cancelablePromise.isCanceled) {
36
+ // Handle the cancelation here
37
+ console.log('Operation was canceled');
38
+ return;
39
+ }
40
+
41
+ throw error;
42
+ }
43
+ })();
44
+
45
+ // Cancel the operation after 10 seconds
46
+ setTimeout(() => {
47
+ cancelablePromise.cancel('Unicorn has changed its color');
48
+ }, 10000);
49
+ ```
50
+
51
+ ## API
52
+
53
+ ### new PCancelable(executor)
54
+
55
+ Same as the [`Promise` constructor](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise), but with an appended `onCancel` parameter in `executor`.<br>
56
+ Cancelling will reject the promise with `PCancelable.CancelError`. To avoid that, set `onCancel.shouldReject` to `false`.
57
+
58
+ ```js
59
+ const PCancelable = require('p-cancelable');
60
+
61
+ const cancelablePromise = new PCancelable((resolve, reject, onCancel) => {
62
+ const job = new Job();
63
+
64
+ onCancel.shouldReject = false;
65
+ onCancel(() => {
66
+ job.stop();
67
+ });
68
+
69
+ job.on('finish', resolve);
70
+ });
71
+
72
+ cancelablePromise.cancel(); // Doesn't throw an error
73
+ ```
74
+
75
+ `PCancelable` is a subclass of `Promise`.
76
+
77
+ #### onCanceled(fn)
78
+
79
+ Type: `Function`
80
+
81
+ Accepts a function that is called when the promise is canceled.
82
+
83
+ You're not required to call this function. You can call this function multiple times to add multiple cancel handlers.
84
+
85
+ ### PCancelable#cancel(reason?)
86
+
87
+ Type: `Function`
88
+
89
+ Cancel the promise and optionally provide a reason.
90
+
91
+ The cancellation is synchronous. Calling it after the promise has settled or multiple times does nothing.
92
+
93
+ ### PCancelable#isCanceled
94
+
95
+ Type: `boolean`
96
+
97
+ Whether the promise is canceled.
98
+
99
+ ### PCancelable.CancelError
100
+
101
+ Type: `Error`
102
+
103
+ Rejection reason when `.cancel()` is called.
104
+
105
+ It includes a `.isCanceled` property for convenience.
106
+
107
+ ### PCancelable.fn(fn)
108
+
109
+ Convenience method to make your promise-returning or async function cancelable.
110
+
111
+ The function you specify will have `onCancel` appended to its parameters.
112
+
113
+ ```js
114
+ const PCancelable = require('p-cancelable');
115
+
116
+ const fn = PCancelable.fn((input, onCancel) => {
117
+ const job = new Job();
118
+
119
+ onCancel(() => {
120
+ job.cleanup();
121
+ });
122
+
123
+ return job.start(); //=> Promise
124
+ });
125
+
126
+ const cancelablePromise = fn('input'); //=> PCancelable
127
+
128
+ // …
129
+
130
+ cancelablePromise.cancel();
131
+ ```
132
+
133
+ ## FAQ
134
+
135
+ ### Cancelable vs. Cancellable
136
+
137
+ [In American English, the verb cancel is usually inflected canceled and canceling—with one l.](http://grammarist.com/spelling/cancel/)<br>Both a [browser API](https://developer.mozilla.org/en-US/docs/Web/API/Event/cancelable) and the [Cancelable Promises proposal](https://github.com/tc39/proposal-cancelable-promises) use this spelling.
138
+
139
+ ### What about the official [Cancelable Promises proposal](https://github.com/tc39/proposal-cancelable-promises)?
140
+
141
+ ~~It's still an early draft and I don't really like its current direction. It complicates everything and will require deep changes in the ecosystem to adapt to it. And the way you have to use cancel tokens is verbose and convoluted. I much prefer the more pragmatic and less invasive approach in this module.~~ The proposal was withdrawn.
142
+
143
+ ## p-cancelable for enterprise
144
+
145
+ Available as part of the Tidelift Subscription.
146
+
147
+ The maintainers of p-cancelable and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-p-cancelable?utm_source=npm-p-cancelable&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
148
+
149
+ ## Related
150
+
151
+ - [p-progress](https://github.com/sindresorhus/p-progress) - Create a promise that reports progress
152
+ - [p-lazy](https://github.com/sindresorhus/p-lazy) - Create a lazy promise that defers execution until `.then()` or `.catch()` is called
153
+ - [More…](https://github.com/sindresorhus/promise-fun)
@@ -0,0 +1,5 @@
1
+ language: node_js
2
+ node_js:
3
+ - "0.10"
4
+
5
+ script: "npm test"
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014 Mathias Buus
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,65 @@
1
+ # pump
2
+
3
+ pump is a small node module that pipes streams together and destroys all of them if one of them closes.
4
+
5
+ ```
6
+ npm install pump
7
+ ```
8
+
9
+ [![build status](http://img.shields.io/travis/mafintosh/pump.svg?style=flat)](http://travis-ci.org/mafintosh/pump)
10
+
11
+ ## What problem does it solve?
12
+
13
+ When using standard `source.pipe(dest)` source will _not_ be destroyed if dest emits close or an error.
14
+ You are also not able to provide a callback to tell when then pipe has finished.
15
+
16
+ pump does these two things for you
17
+
18
+ ## Usage
19
+
20
+ Simply pass the streams you want to pipe together to pump and add an optional callback
21
+
22
+ ``` js
23
+ var pump = require('pump')
24
+ var fs = require('fs')
25
+
26
+ var source = fs.createReadStream('/dev/random')
27
+ var dest = fs.createWriteStream('/dev/null')
28
+
29
+ pump(source, dest, function(err) {
30
+ console.log('pipe finished', err)
31
+ })
32
+
33
+ setTimeout(function() {
34
+ dest.destroy() // when dest is closed pump will destroy source
35
+ }, 1000)
36
+ ```
37
+
38
+ You can use pump to pipe more than two streams together as well
39
+
40
+ ``` js
41
+ var transform = someTransformStream()
42
+
43
+ pump(source, transform, anotherTransform, dest, function(err) {
44
+ console.log('pipe finished', err)
45
+ })
46
+ ```
47
+
48
+ If `source`, `transform`, `anotherTransform` or `dest` closes all of them will be destroyed.
49
+
50
+ Similarly to `stream.pipe()`, `pump()` returns the last stream passed in, so you can do:
51
+
52
+ ```
53
+ return pump(s1, s2) // returns s2
54
+ ```
55
+
56
+ If you want to return a stream that combines *both* s1 and s2 to a single stream use
57
+ [pumpify](https://github.com/mafintosh/pumpify) instead.
58
+
59
+ ## License
60
+
61
+ MIT
62
+
63
+ ## Related
64
+
65
+ `pump` is part of the [mississippi stream utility collection](https://github.com/maxogden/mississippi) which includes more useful stream modules similar to this one.