cloudstructs 0.1.39 → 0.2.0
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.
- package/.gitattributes +19 -19
- package/.jsii +2743 -1551
- package/API.md +71 -71
- package/README.md +2 -0
- package/lib/codecommit-mirror/index.d.ts +6 -6
- package/lib/codecommit-mirror/index.js +13 -12
- package/lib/ecs-service-roller/index.d.ts +5 -5
- package/lib/ecs-service-roller/index.js +10 -9
- package/lib/email-receiver/receiver.d.ts +5 -5
- package/lib/email-receiver/receiver.js +15 -14
- package/lib/saml-identity-provider/index.d.ts +4 -4
- package/lib/saml-identity-provider/index.js +10 -9
- package/lib/slack-events/index.d.ts +5 -4
- package/lib/slack-events/index.js +13 -14
- package/lib/slack-textract/index.d.ts +6 -5
- package/lib/slack-textract/index.js +12 -11
- package/lib/state-machine-cr-provider/index.d.ts +2 -1
- package/lib/state-machine-cr-provider/index.js +14 -13
- package/lib/static-website/index.d.ts +6 -6
- package/lib/static-website/index.js +16 -15
- package/lib/url-shortener/index.d.ts +8 -7
- package/lib/url-shortener/index.handler.js +2 -1
- package/lib/url-shortener/index.js +19 -18
- package/node_modules/@sindresorhus/is/dist/index.d.ts +9 -4
- package/node_modules/@sindresorhus/is/dist/index.js +9 -0
- package/node_modules/@sindresorhus/is/package.json +1 -1
- package/node_modules/@sindresorhus/is/readme.md +26 -0
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +31 -20
- package/node_modules/@slack/logger/node_modules/@types/node/cluster.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/console.d.ts +6 -1
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +106 -23
- package/node_modules/@slack/logger/node_modules/@types/node/dgram.d.ts +10 -10
- package/node_modules/@slack/logger/node_modules/@types/node/diagnostics_channel.d.ts +7 -1
- package/node_modules/@slack/logger/node_modules/@types/node/dns/promises.d.ts +12 -1
- package/node_modules/@slack/logger/node_modules/@types/node/dns.d.ts +13 -2
- package/node_modules/@slack/logger/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +107 -13
- package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +107 -46
- package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +0 -1
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +18 -7
- package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/@types/node/inspector.d.ts +9 -2
- package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/os.d.ts +5 -5
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +13 -13
- package/node_modules/@slack/logger/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +8 -4
- package/node_modules/@slack/logger/node_modules/@types/node/punycode.d.ts +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/querystring.d.ts +9 -9
- package/node_modules/@slack/logger/node_modules/@types/node/readline.d.ts +2 -1
- package/node_modules/@slack/logger/node_modules/@types/node/repl.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/stream/web.d.ts +385 -0
- package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +75 -7
- package/node_modules/@slack/logger/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +6 -6
- package/node_modules/@slack/logger/node_modules/@types/node/trace_events.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/tty.d.ts +2 -4
- package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +26 -3
- package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +49 -11
- package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +6 -3
- package/node_modules/@slack/logger/node_modules/@types/node/wasi.d.ts +9 -4
- package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/@types/node/zlib.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +31 -20
- package/node_modules/@slack/web-api/node_modules/@types/node/cluster.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/console.d.ts +6 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +106 -23
- package/node_modules/@slack/web-api/node_modules/@types/node/dgram.d.ts +10 -10
- package/node_modules/@slack/web-api/node_modules/@types/node/diagnostics_channel.d.ts +7 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/dns/promises.d.ts +12 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/dns.d.ts +13 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +107 -13
- package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +107 -46
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +0 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +18 -7
- package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/inspector.d.ts +9 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/os.d.ts +5 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +13 -13
- package/node_modules/@slack/web-api/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +8 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/punycode.d.ts +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/querystring.d.ts +9 -9
- package/node_modules/@slack/web-api/node_modules/@types/node/readline.d.ts +2 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/repl.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/stream/web.d.ts +385 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +75 -7
- package/node_modules/@slack/web-api/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +6 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/trace_events.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/tty.d.ts +2 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +26 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +49 -11
- package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +6 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/wasi.d.ts +9 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +31 -20
- package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +6 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +106 -23
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +10 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +7 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +12 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +13 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +107 -13
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +107 -46
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +0 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +18 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +9 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +13 -13
- package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +8 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +9 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +2 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +385 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +75 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +6 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +2 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +26 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +49 -11
- package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +6 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +9 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/README.md +3 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/assert.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/buffer.d.ts +4 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/child_process.d.ts +31 -20
- package/node_modules/@types/is-stream/node_modules/@types/node/cluster.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/console.d.ts +6 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/crypto.d.ts +106 -23
- package/node_modules/@types/is-stream/node_modules/@types/node/dgram.d.ts +10 -10
- package/node_modules/@types/is-stream/node_modules/@types/node/diagnostics_channel.d.ts +7 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/dns/promises.d.ts +12 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/dns.d.ts +13 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/events.d.ts +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/fs/promises.d.ts +107 -13
- package/node_modules/@types/is-stream/node_modules/@types/node/fs.d.ts +107 -46
- package/node_modules/@types/is-stream/node_modules/@types/node/globals.d.ts +0 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/http.d.ts +18 -7
- package/node_modules/@types/is-stream/node_modules/@types/node/http2.d.ts +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/index.d.ts +4 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/inspector.d.ts +9 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/net.d.ts +3 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/os.d.ts +5 -5
- package/node_modules/@types/is-stream/node_modules/@types/node/package.json +13 -13
- package/node_modules/@types/is-stream/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/perf_hooks.d.ts +3 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/process.d.ts +8 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/punycode.d.ts +3 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/querystring.d.ts +9 -9
- package/node_modules/@types/is-stream/node_modules/@types/node/readline.d.ts +2 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/repl.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/stream/web.d.ts +385 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/stream.d.ts +75 -7
- package/node_modules/@types/is-stream/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/tls.d.ts +6 -6
- package/node_modules/@types/is-stream/node_modules/@types/node/trace_events.d.ts +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/tty.d.ts +2 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/url.d.ts +26 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/util.d.ts +49 -11
- package/node_modules/@types/is-stream/node_modules/@types/node/v8.d.ts +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/vm.d.ts +6 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/wasi.d.ts +9 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/worker_threads.d.ts +4 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/zlib.d.ts +1 -1
- package/node_modules/@types/keyv/README.md +1 -1
- package/node_modules/@types/keyv/index.d.ts +10 -3
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +31 -20
- package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +6 -1
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +106 -23
- package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +10 -10
- package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +7 -1
- package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +12 -1
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +13 -2
- package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +107 -13
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +107 -46
- package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +0 -1
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +18 -7
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +9 -2
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +13 -13
- package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +8 -4
- package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +9 -9
- package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +2 -1
- package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +385 -0
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +75 -7
- package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +6 -6
- package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +2 -4
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +26 -3
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +49 -11
- package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +6 -3
- package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +9 -4
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +1 -1
- package/node_modules/@types/keyv/package.json +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +31 -20
- package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +6 -1
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +106 -23
- package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +10 -10
- package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +7 -1
- package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +12 -1
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +13 -2
- package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +107 -13
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +107 -46
- package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +0 -1
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +18 -7
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +9 -2
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +13 -13
- package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +8 -4
- package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +9 -9
- package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +2 -1
- package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +385 -0
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +75 -7
- package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +6 -6
- package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +2 -4
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +26 -3
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +49 -11
- package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +6 -3
- package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +9 -4
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +1 -1
- package/node_modules/axios/CHANGELOG.md +98 -8
- package/node_modules/axios/README.md +74 -6
- package/node_modules/axios/SECURITY.md +5 -0
- package/node_modules/axios/dist/axios.js +2028 -1591
- package/node_modules/axios/dist/axios.map +1 -1
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.map +1 -1
- package/node_modules/axios/index.d.ts +8 -1
- package/node_modules/axios/lib/adapters/http.js +33 -5
- package/node_modules/axios/lib/adapters/xhr.js +35 -25
- package/node_modules/axios/lib/core/Axios.js +60 -7
- package/node_modules/axios/lib/core/InterceptorManager.js +4 -2
- package/node_modules/axios/lib/core/README.md +1 -0
- package/node_modules/axios/lib/core/dispatchRequest.js +6 -3
- package/node_modules/axios/lib/core/transformData.js +3 -1
- package/node_modules/axios/lib/defaults.js +43 -7
- package/node_modules/axios/lib/helpers/validator.js +105 -0
- package/node_modules/axios/lib/utils.js +1 -3
- package/node_modules/axios/package.json +19 -21
- package/node_modules/follow-redirects/index.js +59 -21
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/got/dist/source/as-promise/parse-body.d.ts +1 -1
- package/node_modules/got/dist/source/as-promise/types.js +2 -0
- package/node_modules/got/dist/source/core/index.d.ts +1 -1
- package/node_modules/got/dist/source/core/index.js +9 -3
- package/node_modules/got/dist/source/types.d.ts +14 -12
- package/node_modules/got/package.json +2 -2
- package/node_modules/got/readme.md +11 -10
- package/node_modules/keyv/LICENSE +1 -1
- package/node_modules/keyv/README.md +12 -10
- package/node_modules/keyv/package.json +17 -12
- package/node_modules/keyv/src/index.js +14 -16
- package/node_modules/mime-db/HISTORY.md +13 -0
- package/node_modules/mime-db/db.json +54 -0
- package/node_modules/mime-db/package.json +7 -7
- package/node_modules/mime-types/HISTORY.md +13 -3
- package/node_modules/mime-types/package.json +7 -7
- package/node_modules/{http2-wrapper/node_modules/quick-lru → quick-lru}/index.d.ts +0 -0
- package/node_modules/{http2-wrapper/node_modules/quick-lru → quick-lru}/index.js +0 -0
- package/node_modules/{http2-wrapper/node_modules/quick-lru → quick-lru}/license +0 -0
- package/node_modules/{http2-wrapper/node_modules/quick-lru → quick-lru}/package.json +0 -0
- package/node_modules/{http2-wrapper/node_modules/quick-lru → quick-lru}/readme.md +0 -0
- package/package.json +33 -84
|
@@ -18,7 +18,7 @@ events.forEach(function (event) {
|
|
|
18
18
|
// Error types with codes
|
|
19
19
|
var RedirectionError = createErrorType(
|
|
20
20
|
"ERR_FR_REDIRECTION_FAILURE",
|
|
21
|
-
""
|
|
21
|
+
"Redirected request failed"
|
|
22
22
|
);
|
|
23
23
|
var TooManyRedirectsError = createErrorType(
|
|
24
24
|
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
@@ -147,10 +147,8 @@ RedirectableRequest.prototype.removeHeader = function (name) {
|
|
|
147
147
|
// Global timeout for all underlying requests
|
|
148
148
|
RedirectableRequest.prototype.setTimeout = function (msecs, callback) {
|
|
149
149
|
var self = this;
|
|
150
|
-
if (callback) {
|
|
151
|
-
this.on("timeout", callback);
|
|
152
|
-
}
|
|
153
150
|
|
|
151
|
+
// Destroys the socket on timeout
|
|
154
152
|
function destroyOnTimeout(socket) {
|
|
155
153
|
socket.setTimeout(msecs);
|
|
156
154
|
socket.removeListener("timeout", socket.destroy);
|
|
@@ -169,18 +167,32 @@ RedirectableRequest.prototype.setTimeout = function (msecs, callback) {
|
|
|
169
167
|
destroyOnTimeout(socket);
|
|
170
168
|
}
|
|
171
169
|
|
|
172
|
-
//
|
|
170
|
+
// Stops a timeout from triggering
|
|
173
171
|
function clearTimer() {
|
|
174
|
-
|
|
172
|
+
// Clear the timeout
|
|
173
|
+
if (self._timeout) {
|
|
174
|
+
clearTimeout(self._timeout);
|
|
175
|
+
self._timeout = null;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// Clean up all attached listeners
|
|
179
|
+
self.removeListener("abort", clearTimer);
|
|
180
|
+
self.removeListener("error", clearTimer);
|
|
181
|
+
self.removeListener("response", clearTimer);
|
|
175
182
|
if (callback) {
|
|
176
183
|
self.removeListener("timeout", callback);
|
|
177
184
|
}
|
|
178
|
-
if (!
|
|
185
|
+
if (!self.socket) {
|
|
179
186
|
self._currentRequest.removeListener("socket", startTimer);
|
|
180
187
|
}
|
|
181
188
|
}
|
|
182
189
|
|
|
183
|
-
//
|
|
190
|
+
// Attach callback if passed
|
|
191
|
+
if (callback) {
|
|
192
|
+
this.on("timeout", callback);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
// Start the timer if or when the socket is opened
|
|
184
196
|
if (this.socket) {
|
|
185
197
|
startTimer(this.socket);
|
|
186
198
|
}
|
|
@@ -188,9 +200,11 @@ RedirectableRequest.prototype.setTimeout = function (msecs, callback) {
|
|
|
188
200
|
this._currentRequest.once("socket", startTimer);
|
|
189
201
|
}
|
|
190
202
|
|
|
203
|
+
// Clean up on events
|
|
191
204
|
this.on("socket", destroyOnTimeout);
|
|
192
|
-
this.
|
|
193
|
-
this.
|
|
205
|
+
this.on("abort", clearTimer);
|
|
206
|
+
this.on("error", clearTimer);
|
|
207
|
+
this.on("response", clearTimer);
|
|
194
208
|
|
|
195
209
|
return this;
|
|
196
210
|
};
|
|
@@ -354,18 +368,32 @@ RedirectableRequest.prototype._processResponse = function (response) {
|
|
|
354
368
|
}
|
|
355
369
|
|
|
356
370
|
// Drop the Host header, as the redirect might lead to a different host
|
|
357
|
-
var
|
|
358
|
-
|
|
371
|
+
var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
|
|
372
|
+
|
|
373
|
+
// If the redirect is relative, carry over the host of the last request
|
|
374
|
+
var currentUrlParts = url.parse(this._currentUrl);
|
|
375
|
+
var currentHost = currentHostHeader || currentUrlParts.host;
|
|
376
|
+
var currentUrl = /^\w+:/.test(location) ? this._currentUrl :
|
|
377
|
+
url.format(Object.assign(currentUrlParts, { host: currentHost }));
|
|
378
|
+
|
|
379
|
+
// Determine the URL of the redirection
|
|
380
|
+
var redirectUrl;
|
|
381
|
+
try {
|
|
382
|
+
redirectUrl = url.resolve(currentUrl, location);
|
|
383
|
+
}
|
|
384
|
+
catch (cause) {
|
|
385
|
+
this.emit("error", new RedirectionError(cause));
|
|
386
|
+
return;
|
|
387
|
+
}
|
|
359
388
|
|
|
360
389
|
// Create the redirected request
|
|
361
|
-
var redirectUrl = url.resolve(this._currentUrl, location);
|
|
362
390
|
debug("redirecting to", redirectUrl);
|
|
363
391
|
this._isRedirect = true;
|
|
364
392
|
var redirectUrlParts = url.parse(redirectUrl);
|
|
365
393
|
Object.assign(this._options, redirectUrlParts);
|
|
366
394
|
|
|
367
|
-
// Drop the Authorization header if redirecting to another
|
|
368
|
-
if (redirectUrlParts.
|
|
395
|
+
// Drop the Authorization header if redirecting to another domain
|
|
396
|
+
if (!(redirectUrlParts.host === currentHost || isSubdomainOf(redirectUrlParts.host, currentHost))) {
|
|
369
397
|
removeMatchingHeaders(/^authorization$/i, this._options.headers);
|
|
370
398
|
}
|
|
371
399
|
|
|
@@ -387,9 +415,7 @@ RedirectableRequest.prototype._processResponse = function (response) {
|
|
|
387
415
|
this._performRequest();
|
|
388
416
|
}
|
|
389
417
|
catch (cause) {
|
|
390
|
-
|
|
391
|
-
error.cause = cause;
|
|
392
|
-
this.emit("error", error);
|
|
418
|
+
this.emit("error", new RedirectionError(cause));
|
|
393
419
|
}
|
|
394
420
|
}
|
|
395
421
|
else {
|
|
@@ -503,13 +529,20 @@ function removeMatchingHeaders(regex, headers) {
|
|
|
503
529
|
delete headers[header];
|
|
504
530
|
}
|
|
505
531
|
}
|
|
506
|
-
return lastValue
|
|
532
|
+
return (lastValue === null || typeof lastValue === "undefined") ?
|
|
533
|
+
undefined : String(lastValue).trim();
|
|
507
534
|
}
|
|
508
535
|
|
|
509
536
|
function createErrorType(code, defaultMessage) {
|
|
510
|
-
function CustomError(
|
|
537
|
+
function CustomError(cause) {
|
|
511
538
|
Error.captureStackTrace(this, this.constructor);
|
|
512
|
-
|
|
539
|
+
if (!cause) {
|
|
540
|
+
this.message = defaultMessage;
|
|
541
|
+
}
|
|
542
|
+
else {
|
|
543
|
+
this.message = defaultMessage + ": " + cause.message;
|
|
544
|
+
this.cause = cause;
|
|
545
|
+
}
|
|
513
546
|
}
|
|
514
547
|
CustomError.prototype = new Error();
|
|
515
548
|
CustomError.prototype.constructor = CustomError;
|
|
@@ -526,6 +559,11 @@ function abortRequest(request) {
|
|
|
526
559
|
request.abort();
|
|
527
560
|
}
|
|
528
561
|
|
|
562
|
+
function isSubdomainOf(subdomain, domain) {
|
|
563
|
+
const dot = subdomain.length - domain.length - 1;
|
|
564
|
+
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
565
|
+
}
|
|
566
|
+
|
|
529
567
|
// Exports
|
|
530
568
|
module.exports = wrap({ http: http, https: https });
|
|
531
569
|
module.exports.wrap = wrap;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ResponseType, Response, ParseJsonFunction } from './types';
|
|
2
|
-
declare const parseBody: (response: Response, responseType: ResponseType, parseJson: ParseJsonFunction, encoding?: "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | undefined) => unknown;
|
|
2
|
+
declare const parseBody: (response: Response, responseType: ResponseType, parseJson: ParseJsonFunction, encoding?: "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | undefined) => unknown;
|
|
3
3
|
export default parseBody;
|
|
@@ -21,6 +21,7 @@ class ParseError extends core_1.RequestError {
|
|
|
21
21
|
const { options } = response.request;
|
|
22
22
|
super(`${error.message} in "${options.url.toString()}"`, error, response.request);
|
|
23
23
|
this.name = 'ParseError';
|
|
24
|
+
this.code = this.code === 'ERR_GOT_REQUEST_ERROR' ? 'ERR_BODY_PARSE_FAILURE' : this.code;
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
exports.ParseError = ParseError;
|
|
@@ -31,6 +32,7 @@ class CancelError extends core_1.RequestError {
|
|
|
31
32
|
constructor(request) {
|
|
32
33
|
super('Promise was canceled', {}, request);
|
|
33
34
|
this.name = 'CancelError';
|
|
35
|
+
this.code = 'ERR_CANCELED';
|
|
34
36
|
}
|
|
35
37
|
get isCanceled() {
|
|
36
38
|
return true;
|
|
@@ -952,7 +952,7 @@ An error to be thrown when a request fails.
|
|
|
952
952
|
Contains a `code` property with error class code, like `ECONNREFUSED`.
|
|
953
953
|
*/
|
|
954
954
|
export declare class RequestError extends Error {
|
|
955
|
-
code
|
|
955
|
+
code: string;
|
|
956
956
|
stack: string;
|
|
957
957
|
readonly options: NormalizedOptions;
|
|
958
958
|
readonly response?: Response;
|
|
@@ -121,11 +121,11 @@ Contains a `code` property with error class code, like `ECONNREFUSED`.
|
|
|
121
121
|
*/
|
|
122
122
|
class RequestError extends Error {
|
|
123
123
|
constructor(message, error, self) {
|
|
124
|
-
var _a;
|
|
124
|
+
var _a, _b;
|
|
125
125
|
super(message);
|
|
126
126
|
Error.captureStackTrace(this, this.constructor);
|
|
127
127
|
this.name = 'RequestError';
|
|
128
|
-
this.code = error.code;
|
|
128
|
+
this.code = (_a = error.code) !== null && _a !== void 0 ? _a : 'ERR_GOT_REQUEST_ERROR';
|
|
129
129
|
if (self instanceof Request) {
|
|
130
130
|
Object.defineProperty(this, 'request', {
|
|
131
131
|
enumerable: false,
|
|
@@ -150,7 +150,7 @@ class RequestError extends Error {
|
|
|
150
150
|
value: self
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
|
-
this.timings = (
|
|
153
|
+
this.timings = (_b = this.request) === null || _b === void 0 ? void 0 : _b.timings;
|
|
154
154
|
// Recover the original stacktrace
|
|
155
155
|
if (is_1.default.string(error.stack) && is_1.default.string(this.stack)) {
|
|
156
156
|
const indexOfMessage = this.stack.indexOf(this.message) + this.message.length;
|
|
@@ -173,6 +173,7 @@ class MaxRedirectsError extends RequestError {
|
|
|
173
173
|
constructor(request) {
|
|
174
174
|
super(`Redirected ${request.options.maxRedirects} times. Aborting.`, {}, request);
|
|
175
175
|
this.name = 'MaxRedirectsError';
|
|
176
|
+
this.code = 'ERR_TOO_MANY_REDIRECTS';
|
|
176
177
|
}
|
|
177
178
|
}
|
|
178
179
|
exports.MaxRedirectsError = MaxRedirectsError;
|
|
@@ -184,6 +185,7 @@ class HTTPError extends RequestError {
|
|
|
184
185
|
constructor(response) {
|
|
185
186
|
super(`Response code ${response.statusCode} (${response.statusMessage})`, {}, response.request);
|
|
186
187
|
this.name = 'HTTPError';
|
|
188
|
+
this.code = 'ERR_NON_2XX_3XX_RESPONSE';
|
|
187
189
|
}
|
|
188
190
|
}
|
|
189
191
|
exports.HTTPError = HTTPError;
|
|
@@ -195,6 +197,7 @@ class CacheError extends RequestError {
|
|
|
195
197
|
constructor(error, request) {
|
|
196
198
|
super(error.message, error, request);
|
|
197
199
|
this.name = 'CacheError';
|
|
200
|
+
this.code = this.code === 'ERR_GOT_REQUEST_ERROR' ? 'ERR_CACHE_ACCESS' : this.code;
|
|
198
201
|
}
|
|
199
202
|
}
|
|
200
203
|
exports.CacheError = CacheError;
|
|
@@ -205,6 +208,7 @@ class UploadError extends RequestError {
|
|
|
205
208
|
constructor(error, request) {
|
|
206
209
|
super(error.message, error, request);
|
|
207
210
|
this.name = 'UploadError';
|
|
211
|
+
this.code = this.code === 'ERR_GOT_REQUEST_ERROR' ? 'ERR_UPLOAD' : this.code;
|
|
208
212
|
}
|
|
209
213
|
}
|
|
210
214
|
exports.UploadError = UploadError;
|
|
@@ -228,6 +232,7 @@ class ReadError extends RequestError {
|
|
|
228
232
|
constructor(error, request) {
|
|
229
233
|
super(error.message, error, request);
|
|
230
234
|
this.name = 'ReadError';
|
|
235
|
+
this.code = this.code === 'ERR_GOT_REQUEST_ERROR' ? 'ERR_READING_RESPONSE_STREAM' : this.code;
|
|
231
236
|
}
|
|
232
237
|
}
|
|
233
238
|
exports.ReadError = ReadError;
|
|
@@ -238,6 +243,7 @@ class UnsupportedProtocolError extends RequestError {
|
|
|
238
243
|
constructor(options) {
|
|
239
244
|
super(`Unsupported protocol "${options.url.protocol}"`, {}, options);
|
|
240
245
|
this.name = 'UnsupportedProtocolError';
|
|
246
|
+
this.code = 'ERR_UNSUPPORTED_PROTOCOL';
|
|
241
247
|
}
|
|
242
248
|
}
|
|
243
249
|
exports.UnsupportedProtocolError = UnsupportedProtocolError;
|
|
@@ -226,49 +226,51 @@ export interface Got extends Record<HTTPAlias, GotRequestFunction>, GotRequestFu
|
|
|
226
226
|
*/
|
|
227
227
|
defaults: InstanceDefaults;
|
|
228
228
|
/**
|
|
229
|
-
An error to be thrown when a cache method fails.
|
|
230
|
-
|
|
229
|
+
An error to be thrown when a cache method fails. For example, if the database goes down or there's a filesystem error.
|
|
230
|
+
Contains a `code` property with `ERR_CACHE_ACCESS` or a more specific failure code.
|
|
231
231
|
*/
|
|
232
232
|
CacheError: typeof CacheError;
|
|
233
233
|
/**
|
|
234
|
-
An error to be thrown when a request fails.
|
|
235
|
-
|
|
234
|
+
An error to be thrown when a request fails. Contains a `code` property with error class code, like `ECONNREFUSED`.
|
|
235
|
+
If there is no specific code supplied, `code` defaults to `ERR_GOT_REQUEST_ERROR`.
|
|
236
236
|
*/
|
|
237
237
|
RequestError: typeof RequestError;
|
|
238
238
|
/**
|
|
239
|
-
An error to be thrown when reading from response stream fails.
|
|
239
|
+
An error to be thrown when reading from response stream fails. Contains a `code` property with
|
|
240
|
+
`ERR_READING_RESPONSE_STREAM` or a more specific failure code.
|
|
240
241
|
*/
|
|
241
242
|
ReadError: typeof ReadError;
|
|
242
243
|
/**
|
|
243
|
-
An error to be thrown when server response code is 2xx, and parsing body fails.
|
|
244
|
-
|
|
244
|
+
An error to be thrown when server response code is 2xx, and parsing body fails. Includes a
|
|
245
|
+
`response` property. Contains a `code` property with `ERR_BODY_PARSE_FAILURE` or a more specific failure code.
|
|
245
246
|
*/
|
|
246
247
|
ParseError: typeof ParseError;
|
|
247
248
|
/**
|
|
248
249
|
An error to be thrown when the server response code is not 2xx nor 3xx if `options.followRedirect` is `true`, but always except for 304.
|
|
249
|
-
Includes a `response` property.
|
|
250
|
+
Includes a `response` property. Contains a `code` property with `ERR_NON_2XX_3XX_RESPONSE` or a more specific failure code.
|
|
250
251
|
*/
|
|
251
252
|
HTTPError: typeof HTTPError;
|
|
252
253
|
/**
|
|
253
254
|
An error to be thrown when the server redirects you more than ten times.
|
|
254
|
-
Includes a `response` property.
|
|
255
|
+
Includes a `response` property. Contains a `code` property with `ERR_TOO_MANY_REDIRECTS`.
|
|
255
256
|
*/
|
|
256
257
|
MaxRedirectsError: typeof MaxRedirectsError;
|
|
257
258
|
/**
|
|
258
|
-
An error to be thrown when given an unsupported protocol.
|
|
259
|
+
An error to be thrown when given an unsupported protocol. Contains a `code` property with `ERR_UNSUPPORTED_PROTOCOL`.
|
|
259
260
|
*/
|
|
260
261
|
UnsupportedProtocolError: typeof UnsupportedProtocolError;
|
|
261
262
|
/**
|
|
262
263
|
An error to be thrown when the request is aborted due to a timeout.
|
|
263
|
-
Includes an `event` and `timings` property.
|
|
264
|
+
Includes an `event` and `timings` property. Contains a `code` property with `ETIMEDOUT`.
|
|
264
265
|
*/
|
|
265
266
|
TimeoutError: typeof TimeoutError;
|
|
266
267
|
/**
|
|
267
268
|
An error to be thrown when the request body is a stream and an error occurs while reading from that stream.
|
|
269
|
+
Contains a `code` property with `ERR_UPLOAD` or a more specific failure code.
|
|
268
270
|
*/
|
|
269
271
|
UploadError: typeof UploadError;
|
|
270
272
|
/**
|
|
271
|
-
An error to be thrown when the request is aborted with `.cancel()`.
|
|
273
|
+
An error to be thrown when the request is aborted with `.cancel()`. Contains a `code` property with `ERR_CANCELED`.
|
|
272
274
|
*/
|
|
273
275
|
CancelError: typeof CancelError;
|
|
274
276
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "got",
|
|
3
|
-
"version": "11.8.
|
|
3
|
+
"version": "11.8.3",
|
|
4
4
|
"description": "Human-friendly and powerful HTTP request library for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "sindresorhus/got",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@types/cacheable-request": "^6.0.1",
|
|
49
49
|
"@types/responselike": "^1.0.0",
|
|
50
50
|
"cacheable-lookup": "^5.0.3",
|
|
51
|
-
"cacheable-request": "^7.0.
|
|
51
|
+
"cacheable-request": "^7.0.2",
|
|
52
52
|
"decompress-response": "^6.0.0",
|
|
53
53
|
"http2-wrapper": "^1.0.0-beta.5.2",
|
|
54
54
|
"lowercase-keys": "^2.0.0",
|
|
@@ -1705,43 +1705,44 @@ Additionaly, the errors may have `request` (Got Stream) and `response` (Got Resp
|
|
|
1705
1705
|
|
|
1706
1706
|
#### got.RequestError
|
|
1707
1707
|
|
|
1708
|
-
When a request fails. Contains a `code` property with error class code, like `ECONNREFUSED`. All the errors below inherit this one.
|
|
1708
|
+
When a request fails. Contains a `code` property with error class code, like `ECONNREFUSED`. If there is no specific code supplied, `code` defaults to `ERR_GOT_REQUEST_ERROR`. All the errors below inherit this one.
|
|
1709
1709
|
|
|
1710
1710
|
#### got.CacheError
|
|
1711
1711
|
|
|
1712
|
-
When a cache method fails, for example, if the database goes down or there's a filesystem error.
|
|
1712
|
+
When a cache method fails, for example, if the database goes down or there's a filesystem error. Contains a `code` property with `ERR_CACHE_ACCESS` or a more specific failure code.
|
|
1713
1713
|
|
|
1714
1714
|
#### got.ReadError
|
|
1715
1715
|
|
|
1716
|
-
When reading from response stream fails.
|
|
1716
|
+
When reading from response stream fails. Contains a `code` property with `ERR_READING_RESPONSE_STREAM` or a more specific failure code.
|
|
1717
1717
|
|
|
1718
1718
|
#### got.ParseError
|
|
1719
1719
|
|
|
1720
|
-
When server response code is 2xx, and parsing body fails. Includes a `response` property.
|
|
1720
|
+
When server response code is 2xx, and parsing body fails. Includes a `response` property. Contains a `code` property with `ERR_BODY_PARSE_FAILURE` or a more specific failure code.
|
|
1721
1721
|
|
|
1722
1722
|
#### got.UploadError
|
|
1723
1723
|
|
|
1724
|
-
When the request body is a stream and an error occurs while reading from that stream.
|
|
1724
|
+
When the request body is a stream and an error occurs while reading from that stream. Contains a `code` property with `ERR_UPLOAD` or a more specific failure code.
|
|
1725
1725
|
|
|
1726
1726
|
#### got.HTTPError
|
|
1727
1727
|
|
|
1728
|
-
When the server response code is not 2xx nor 3xx if `options.followRedirect` is `true`, but always except for 304. Includes a `response` property.
|
|
1728
|
+
When the server response code is not 2xx nor 3xx if `options.followRedirect` is `true`, but always except for 304. Includes a `response` property. Contains a `code` property with `ERR_NON_2XX_3XX_RESPONSE` or a more specific failure code.
|
|
1729
|
+
|
|
1729
1730
|
|
|
1730
1731
|
#### got.MaxRedirectsError
|
|
1731
1732
|
|
|
1732
|
-
When the server redirects you more than ten times. Includes a `response` property.
|
|
1733
|
+
When the server redirects you more than ten times. Includes a `response` property. Contains a `code` property with `ERR_TOO_MANY_REDIRECTS`.
|
|
1733
1734
|
|
|
1734
1735
|
#### got.UnsupportedProtocolError
|
|
1735
1736
|
|
|
1736
|
-
When given an unsupported protocol.
|
|
1737
|
+
When given an unsupported protocol. Contains a `code` property with `ERR_UNSUPPORTED_PROTOCOL`.
|
|
1737
1738
|
|
|
1738
1739
|
#### got.TimeoutError
|
|
1739
1740
|
|
|
1740
|
-
When the request is aborted due to a [timeout](#timeout). Includes an `event` and `timings` property.
|
|
1741
|
+
When the request is aborted due to a [timeout](#timeout). Includes an `event` and `timings` property. Contains a `code` property with `ETIMEDOUT`.
|
|
1741
1742
|
|
|
1742
1743
|
#### got.CancelError
|
|
1743
1744
|
|
|
1744
|
-
When the request is aborted with `.cancel()`.
|
|
1745
|
+
When the request is aborted with `.cancel()`. Contains a `code` property with `ERR_CANCELED`.
|
|
1745
1746
|
|
|
1746
1747
|
## Aborting the request
|
|
1747
1748
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<h1 align="center">
|
|
2
|
-
<img width="250" src="https://
|
|
2
|
+
<img width="250" src="https://jaredwray.com/images/keyv.svg" alt="keyv">
|
|
3
3
|
<br>
|
|
4
4
|
<br>
|
|
5
5
|
</h1>
|
|
6
6
|
|
|
7
7
|
> Simple key-value storage with support for multiple backends
|
|
8
8
|
|
|
9
|
-
[](https://github.com/jaredwray/keyv/actions/workflows/build.yaml)
|
|
10
|
+
[](https://codecov.io/gh/jaredwray/keyv)
|
|
11
11
|
[](https://www.npmjs.com/package/keyv)
|
|
12
12
|
[](https://www.npmjs.com/package/keyv)
|
|
13
13
|
|
|
@@ -100,15 +100,15 @@ const keyv = new Keyv({ serialize: JSON.stringify, deserialize: JSON.parse });
|
|
|
100
100
|
|
|
101
101
|
## Official Storage Adapters
|
|
102
102
|
|
|
103
|
-
The official storage adapters are covered by [over 150 integration tests](https://
|
|
103
|
+
The official storage adapters are covered by [over 150 integration tests](https://github.com/jaredwray/keyv/actions/workflows/build.yaml) to guarantee consistent behaviour. They are lightweight, efficient wrappers over the DB clients making use of indexes and native TTLs where available.
|
|
104
104
|
|
|
105
105
|
Database | Adapter | Native TTL | Status
|
|
106
106
|
---|---|---|---
|
|
107
|
-
Redis | [@keyv/redis](https://github.com/lukechilds/keyv-redis) | Yes | [ | Yes | [ | No | [ | No | [ | No | [ | Yes | [](https://github.com/lukechilds/keyv-redis/actions/workflows/build.yaml) [](https://coveralls.io/github/lukechilds/keyv-redis?branch=master)
|
|
108
|
+
MongoDB | [@keyv/mongo](https://github.com/lukechilds/keyv-mongo) | Yes | [](https://github.com/lukechilds/keyv-mongo/actions/workflows/build.yaml) [](https://coveralls.io/github/lukechilds/keyv-mongo?branch=master)
|
|
109
|
+
SQLite | [@keyv/sqlite](https://github.com/lukechilds/keyv-sqlite) | No | [](https://github.com/lukechilds/keyv-sqlite/actions/workflows/build.yaml) [](https://coveralls.io/github/lukechilds/keyv-sqlite?branch=master)
|
|
110
|
+
PostgreSQL | [@keyv/postgres](https://github.com/lukechilds/keyv-postgres) | No | [](https://github.com/lukechilds/keyv-postgres/actions/workflows/build.yaml) [](https://coveralls.io/github/lukechilds/keyv-postgres?branch=master)
|
|
111
|
+
MySQL | [@keyv/mysql](https://github.com/lukechilds/keyv-mysql) | No | [](https://github.com/jaredwray/keyv-mysql/actions/workflows/build.yaml) [](https://coveralls.io/github/lukechilds/keyv-mysql?branch=master)
|
|
112
112
|
|
|
113
113
|
## Third-party Storage Adapters
|
|
114
114
|
|
|
@@ -142,6 +142,8 @@ The following are third-party storage adapters compatible with Keyv:
|
|
|
142
142
|
- [quick-lru](https://github.com/sindresorhus/quick-lru) - Simple "Least Recently Used" (LRU) cache
|
|
143
143
|
- [keyv-file](https://github.com/zaaack/keyv-file) - File system storage adapter for Keyv
|
|
144
144
|
- [keyv-dynamodb](https://www.npmjs.com/package/keyv-dynamodb) - DynamoDB storage adapter for Keyv
|
|
145
|
+
- [keyv-lru](https://www.npmjs.com/package/keyv-lru) - LRU storage adapter for Keyv
|
|
146
|
+
- [keyv-null](https://www.npmjs.com/package/keyv-null) - Null storage adapter for Keyv
|
|
145
147
|
- [keyv-firestore ](https://github.com/goto-bus-stop/keyv-firestore) – Firebase Cloud Firestore adapter for Keyv
|
|
146
148
|
- [keyv-mssql](https://github.com/pmorgan3/keyv-mssql) - Microsoft Sql Server adapter for Keyv
|
|
147
149
|
- [keyv-memcache](https://github.com/jaredwray/keyv-memcache) - Memcache storage adapter for Keyv
|
|
@@ -285,4 +287,4 @@ Returns a promise which is resolved when the entries have been cleared.
|
|
|
285
287
|
|
|
286
288
|
## License
|
|
287
289
|
|
|
288
|
-
MIT © Luke Childs
|
|
290
|
+
MIT © Jared Wray & Luke Childs
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keyv",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"description": "Simple key-value storage with support for multiple backends",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "xo && nyc ava test/keyv.js",
|
|
8
8
|
"test:full": "xo && nyc ava --serial",
|
|
9
|
-
"
|
|
9
|
+
"test:services:start": "docker-compose -f ./test/storage-adapters/services-compose.yaml up -d",
|
|
10
|
+
"test:services:stop": "docker-compose -f ./test/storage-adapters/services-compose.yaml down -v",
|
|
11
|
+
"coverage": "nyc report --reporter=text-lcov > coverage.lcov"
|
|
10
12
|
},
|
|
11
13
|
"xo": {
|
|
12
|
-
"extends": "xo-lukechilds"
|
|
14
|
+
"extends": "xo-lukechilds",
|
|
15
|
+
"rules": {
|
|
16
|
+
"unicorn/prefer-module": 0
|
|
17
|
+
}
|
|
13
18
|
},
|
|
14
19
|
"repository": {
|
|
15
20
|
"type": "git",
|
|
16
|
-
"url": "git+https://github.com/
|
|
21
|
+
"url": "git+https://github.com/jaredwray/keyv.git"
|
|
17
22
|
},
|
|
18
23
|
"keywords": [
|
|
19
24
|
"key",
|
|
@@ -22,28 +27,28 @@
|
|
|
22
27
|
"cache",
|
|
23
28
|
"ttl"
|
|
24
29
|
],
|
|
25
|
-
"author": "
|
|
30
|
+
"author": "Jared Wray <me@jaredwray.com> (http://jaredwray.com)",
|
|
26
31
|
"license": "MIT",
|
|
27
32
|
"bugs": {
|
|
28
|
-
"url": "https://github.com/
|
|
33
|
+
"url": "https://github.com/jaredwray/keyv/issues"
|
|
29
34
|
},
|
|
30
|
-
"homepage": "https://github.com/
|
|
35
|
+
"homepage": "https://github.com/jaredwray/keyv",
|
|
31
36
|
"dependencies": {
|
|
32
37
|
"json-buffer": "3.0.1"
|
|
33
38
|
},
|
|
34
39
|
"devDependencies": {
|
|
35
|
-
"ava": "^2.2.0",
|
|
36
|
-
"coveralls": "^3.0.0",
|
|
37
|
-
"eslint-config-xo-lukechilds": "^1.0.0",
|
|
38
40
|
"@keyv/mongo": "*",
|
|
39
41
|
"@keyv/mysql": "*",
|
|
40
42
|
"@keyv/postgres": "*",
|
|
41
43
|
"@keyv/redis": "*",
|
|
42
44
|
"@keyv/sqlite": "*",
|
|
43
45
|
"@keyv/test-suite": "*",
|
|
44
|
-
"
|
|
46
|
+
"ava": "^3.15.0",
|
|
47
|
+
"codecov": "^3.8.3",
|
|
48
|
+
"eslint-config-xo-lukechilds": "^1.0.0",
|
|
49
|
+
"nyc": "^15.1.0",
|
|
45
50
|
"this": "^1.0.2",
|
|
46
51
|
"timekeeper": "^2.0.0",
|
|
47
|
-
"xo": "^0.
|
|
52
|
+
"xo": "^0.46.3"
|
|
48
53
|
}
|
|
49
54
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const EventEmitter = require('events');
|
|
4
4
|
const JSONB = require('json-buffer');
|
|
5
5
|
|
|
6
|
-
const loadStore =
|
|
6
|
+
const loadStore = options => {
|
|
7
7
|
const adapters = {
|
|
8
8
|
redis: '@keyv/redis',
|
|
9
9
|
mongodb: '@keyv/mongo',
|
|
@@ -11,36 +11,36 @@ const loadStore = opts => {
|
|
|
11
11
|
sqlite: '@keyv/sqlite',
|
|
12
12
|
postgresql: '@keyv/postgres',
|
|
13
13
|
postgres: '@keyv/postgres',
|
|
14
|
-
mysql: '@keyv/mysql'
|
|
14
|
+
mysql: '@keyv/mysql',
|
|
15
15
|
};
|
|
16
|
-
if (
|
|
17
|
-
const adapter =
|
|
18
|
-
return new (require(adapters[adapter]))(
|
|
16
|
+
if (options.adapter || options.uri) {
|
|
17
|
+
const adapter = options.adapter || /^[^:]*/.exec(options.uri)[0];
|
|
18
|
+
return new (require(adapters[adapter]))(options);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
return new Map();
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
class Keyv extends EventEmitter {
|
|
25
|
-
constructor(uri,
|
|
25
|
+
constructor(uri, options) {
|
|
26
26
|
super();
|
|
27
27
|
this.opts = Object.assign(
|
|
28
28
|
{
|
|
29
29
|
namespace: 'keyv',
|
|
30
30
|
serialize: JSONB.stringify,
|
|
31
|
-
deserialize: JSONB.parse
|
|
31
|
+
deserialize: JSONB.parse,
|
|
32
32
|
},
|
|
33
33
|
(typeof uri === 'string') ? { uri } : uri,
|
|
34
|
-
|
|
34
|
+
options,
|
|
35
35
|
);
|
|
36
36
|
|
|
37
37
|
if (!this.opts.store) {
|
|
38
|
-
const
|
|
39
|
-
this.opts.store = loadStore(
|
|
38
|
+
const adapterOptions = Object.assign({}, this.opts);
|
|
39
|
+
this.opts.store = loadStore(adapterOptions);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
if (typeof this.opts.store.on === 'function') {
|
|
43
|
-
this.opts.store.on('error',
|
|
43
|
+
this.opts.store.on('error', error => this.emit('error', error));
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
this.opts.store.namespace = this.opts.namespace;
|
|
@@ -50,14 +50,12 @@ class Keyv extends EventEmitter {
|
|
|
50
50
|
return `${this.opts.namespace}:${key}`;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
get(key,
|
|
53
|
+
get(key, options) {
|
|
54
54
|
const keyPrefixed = this._getKeyPrefix(key);
|
|
55
55
|
const { store } = this.opts;
|
|
56
56
|
return Promise.resolve()
|
|
57
57
|
.then(() => store.get(keyPrefixed))
|
|
58
|
-
.then(data =>
|
|
59
|
-
return (typeof data === 'string') ? this.opts.deserialize(data) : data;
|
|
60
|
-
})
|
|
58
|
+
.then(data => (typeof data === 'string') ? this.opts.deserialize(data) : data)
|
|
61
59
|
.then(data => {
|
|
62
60
|
if (data === undefined) {
|
|
63
61
|
return undefined;
|
|
@@ -68,7 +66,7 @@ class Keyv extends EventEmitter {
|
|
|
68
66
|
return undefined;
|
|
69
67
|
}
|
|
70
68
|
|
|
71
|
-
return (
|
|
69
|
+
return (options && options.raw) ? data : data.value;
|
|
72
70
|
});
|
|
73
71
|
}
|
|
74
72
|
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
1.51.0 / 2021-11-08
|
|
2
|
+
===================
|
|
3
|
+
|
|
4
|
+
* Add new upstream MIME types
|
|
5
|
+
* Mark `image/vnd.microsoft.icon` as compressible
|
|
6
|
+
* Mark `image/vnd.ms-dds` as compressible
|
|
7
|
+
|
|
8
|
+
1.50.0 / 2021-09-15
|
|
9
|
+
===================
|
|
10
|
+
|
|
11
|
+
* Add deprecated iWorks mime types and extensions
|
|
12
|
+
* Add new upstream MIME types
|
|
13
|
+
|
|
1
14
|
1.49.0 / 2021-07-26
|
|
2
15
|
===================
|
|
3
16
|
|