cloudstructs 0.6.9 → 0.6.11
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/.jsii +3 -3
- package/assets/codecommit-mirror/docker/mirror.sh +0 -0
- package/assets/email-receiver/s3.lambda/index.js +1 -0
- package/assets/email-receiver/whitelist.lambda/index.js +1 -0
- package/assets/slack-app/provider.lambda/index.js +10 -77
- package/assets/slack-events/events.lambda/index.js +1 -0
- package/assets/slack-textract/detect.lambda/index.js +52 -101
- package/assets/ssl-server-test/analyze.lambda/index.js +10 -77
- package/assets/ssl-server-test/extract-grade.lambda/index.js +1 -0
- package/assets/static-website/origin-request.edge-lambda/index.js +1 -0
- package/assets/toolkit-cleaner/clean-images.lambda/index.js +1 -0
- package/assets/toolkit-cleaner/clean-objects.lambda/index.js +1 -0
- package/assets/toolkit-cleaner/extract-template-hashes.lambda/index.js +1 -0
- package/assets/toolkit-cleaner/get-stack-names.lambda/index.js +1 -0
- package/assets/url-shortener/redirect.edge-lambda/index.js +1 -0
- package/assets/url-shortener/shortener.lambda/index.js +1 -0
- package/lib/codecommit-mirror/index.js +2 -2
- package/lib/ecs-service-roller/index.js +2 -2
- package/lib/email-receiver/receiver.js +1 -1
- package/lib/saml-identity-provider/index.js +2 -2
- package/lib/slack-app/manifest.js +1 -1
- package/lib/slack-app/slack-app.js +2 -2
- package/lib/slack-events/index.js +1 -1
- package/lib/slack-textract/index.js +1 -1
- package/lib/ssl-server-test/index.js +1 -1
- package/lib/state-machine-cr-provider/index.js +1 -1
- package/lib/static-website/index.js +1 -1
- package/lib/toolkit-cleaner/index.js +1 -1
- package/lib/url-shortener/index.js +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +50 -0
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +22 -2
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +11 -8
- package/node_modules/@slack/logger/node_modules/@types/node/dom-events.d.ts +126 -0
- package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +43 -6
- package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +18 -0
- package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +17 -11
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +216 -54
- package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +29 -1
- package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +198 -58
- package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +3 -2
- package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +55 -2
- package/node_modules/@slack/logger/node_modules/@types/node/os.d.ts +10 -0
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +10 -3
- package/node_modules/@slack/logger/node_modules/@types/node/path.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +15 -0
- package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/querystring.d.ts +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/stream/consumers.d.ts +2 -14
- package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +5 -4
- package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +129 -5
- package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +12 -12
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/assert/strict.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/assert.d.ts +50 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/async_hooks.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/buffer.d.ts +23 -2
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/child_process.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/cluster.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/console.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/constants.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/crypto.d.ts +11 -8
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/dgram.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/diagnostics_channel.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/dns/promises.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/dns.d.ts +0 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/dom-events.d.ts +126 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/domain.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/events.d.ts +43 -6
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/fs/promises.d.ts +18 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/fs.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/globals.d.ts +1 -1
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/globals.global.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/http.d.ts +216 -54
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/http2.d.ts +29 -1
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/https.d.ts +198 -58
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/index.d.ts +2 -46
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/inspector.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/module.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/net.d.ts +55 -2
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/os.d.ts +10 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/path.d.ts +4 -4
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/perf_hooks.d.ts +15 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/process.d.ts +1 -1
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/punycode.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/querystring.d.ts +3 -3
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/readline/promises.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/readline.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/repl.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/stream/consumers.d.ts +2 -14
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/stream/promises.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/stream/web.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/stream.d.ts +2 -1
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/string_decoder.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/test.d.ts +129 -5
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/timers/promises.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/timers.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/tls.d.ts +12 -12
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/trace_events.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/tty.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/url.d.ts +6 -6
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/util.d.ts +58 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/v8.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/vm.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/wasi.d.ts +0 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/worker_threads.d.ts +43 -0
- package/node_modules/{@types/keyv/node_modules/@types/node → @slack/logger/node_modules/@types/node/ts4.8}/zlib.d.ts +0 -0
- package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +6 -6
- package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +58 -0
- package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +43 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +50 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +22 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +11 -8
- package/node_modules/@slack/web-api/node_modules/@types/node/dom-events.d.ts +126 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +43 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +18 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +17 -11
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +216 -54
- package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +29 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/https.d.ts +198 -58
- package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +3 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +55 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/os.d.ts +10 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +10 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/path.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +15 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/querystring.d.ts +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/stream/consumers.d.ts +2 -14
- package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +5 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +129 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +12 -12
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/assert.d.ts +961 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/async_hooks.d.ts +501 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/buffer.d.ts +2259 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/child_process.d.ts +1369 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/cluster.d.ts +410 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/console.d.ts +412 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/crypto.d.ts +3964 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +153 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/dns/promises.d.ts +370 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/dns.d.ts +659 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/dom-events.d.ts +126 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/events.d.ts +678 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/fs/promises.d.ts +1138 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/fs.d.ts +3872 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/globals.d.ts +294 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/http.d.ts +1614 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/http2.d.ts +2134 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/https.d.ts +541 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/inspector.d.ts +2741 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/module.d.ts +114 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/net.d.ts +869 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/os.d.ts +466 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/perf_hooks.d.ts +625 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/process.d.ts +1482 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/readline/promises.d.ts +143 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/readline.d.ts +653 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/stream/web.d.ts +330 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/stream.d.ts +1340 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/test.d.ts +314 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/timers/promises.d.ts +68 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/timers.d.ts +94 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/tls.d.ts +1028 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/trace_events.d.ts +171 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/tty.d.ts +206 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/url.d.ts +897 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/util.d.ts +1850 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/v8.d.ts +396 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/vm.d.ts +509 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/wasi.d.ts +158 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/worker_threads.d.ts +689 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +6 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +58 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +43 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +50 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +22 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +11 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dom-events.d.ts +126 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +43 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +18 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +17 -11
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +216 -54
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +29 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +198 -58
- package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +3 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +55 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +10 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +10 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +15 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/consumers.d.ts +2 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +5 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +129 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +12 -12
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/assert.d.ts +961 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/async_hooks.d.ts +501 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/buffer.d.ts +2259 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/child_process.d.ts +1369 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/cluster.d.ts +410 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/console.d.ts +412 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/crypto.d.ts +3964 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +153 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dns/promises.d.ts +370 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dns.d.ts +659 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dom-events.d.ts +126 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/events.d.ts +678 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/fs/promises.d.ts +1138 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/fs.d.ts +3872 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/globals.d.ts +294 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/http.d.ts +1614 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/http2.d.ts +2134 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/https.d.ts +541 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/inspector.d.ts +2741 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/module.d.ts +114 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/net.d.ts +869 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/os.d.ts +466 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/perf_hooks.d.ts +625 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/process.d.ts +1482 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/readline/promises.d.ts +143 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/readline.d.ts +653 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/web.d.ts +330 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream.d.ts +1340 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/test.d.ts +314 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/timers/promises.d.ts +68 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/timers.d.ts +94 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/tls.d.ts +1028 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/trace_events.d.ts +171 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/tty.d.ts +206 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/url.d.ts +897 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/util.d.ts +1850 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/v8.d.ts +396 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/vm.d.ts +509 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/wasi.d.ts +158 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/worker_threads.d.ts +689 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +6 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +58 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +43 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/assert.d.ts +50 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/buffer.d.ts +22 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/crypto.d.ts +11 -8
- package/node_modules/@types/is-stream/node_modules/@types/node/dom-events.d.ts +126 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/events.d.ts +43 -6
- package/node_modules/@types/is-stream/node_modules/@types/node/fs/promises.d.ts +18 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/globals.d.ts +17 -11
- package/node_modules/@types/is-stream/node_modules/@types/node/http.d.ts +216 -54
- package/node_modules/@types/is-stream/node_modules/@types/node/http2.d.ts +29 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/https.d.ts +198 -58
- package/node_modules/@types/is-stream/node_modules/@types/node/index.d.ts +3 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/net.d.ts +55 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/os.d.ts +10 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/package.json +10 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/path.d.ts +4 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/perf_hooks.d.ts +15 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/querystring.d.ts +3 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/stream/consumers.d.ts +2 -14
- package/node_modules/@types/is-stream/node_modules/@types/node/stream.d.ts +5 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/test.d.ts +129 -5
- package/node_modules/@types/is-stream/node_modules/@types/node/tls.d.ts +12 -12
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/assert.d.ts +961 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/async_hooks.d.ts +501 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/buffer.d.ts +2259 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/child_process.d.ts +1369 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/cluster.d.ts +410 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/console.d.ts +412 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/crypto.d.ts +3964 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +153 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/dns/promises.d.ts +370 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/dns.d.ts +659 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/dom-events.d.ts +126 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/events.d.ts +678 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/fs/promises.d.ts +1138 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/fs.d.ts +3872 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/globals.d.ts +294 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/http.d.ts +1614 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/http2.d.ts +2134 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/https.d.ts +541 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/inspector.d.ts +2741 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/module.d.ts +114 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/net.d.ts +869 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/os.d.ts +466 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/perf_hooks.d.ts +625 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/process.d.ts +1482 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/readline/promises.d.ts +143 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/readline.d.ts +653 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/stream/web.d.ts +330 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/stream.d.ts +1340 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/test.d.ts +314 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/timers/promises.d.ts +68 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/timers.d.ts +94 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/tls.d.ts +1028 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/trace_events.d.ts +171 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/tty.d.ts +206 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/url.d.ts +897 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/util.d.ts +1850 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/v8.d.ts +396 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/vm.d.ts +509 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/wasi.d.ts +158 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/worker_threads.d.ts +689 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/url.d.ts +6 -6
- package/node_modules/@types/is-stream/node_modules/@types/node/util.d.ts +58 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/worker_threads.d.ts +43 -0
- package/node_modules/@types/keyv/README.md +3 -16
- package/node_modules/@types/keyv/package.json +5 -25
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +50 -0
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +22 -2
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +11 -8
- package/node_modules/@types/responselike/node_modules/@types/node/dom-events.d.ts +126 -0
- package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +43 -6
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +18 -0
- package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +17 -11
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +216 -54
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +29 -1
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +198 -58
- package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +3 -2
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +55 -2
- package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +10 -0
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +10 -3
- package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +15 -0
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/stream/consumers.d.ts +2 -14
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +5 -4
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +129 -5
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +12 -12
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/assert.d.ts +961 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/async_hooks.d.ts +501 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/buffer.d.ts +2259 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/child_process.d.ts +1369 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/cluster.d.ts +410 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/console.d.ts +412 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/crypto.d.ts +3964 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +153 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dns/promises.d.ts +370 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dns.d.ts +659 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dom-events.d.ts +126 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/events.d.ts +678 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/fs/promises.d.ts +1138 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/fs.d.ts +3872 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/globals.d.ts +294 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/http.d.ts +1614 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/http2.d.ts +2134 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/https.d.ts +541 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/inspector.d.ts +2741 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/module.d.ts +114 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/net.d.ts +869 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/os.d.ts +466 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/perf_hooks.d.ts +625 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/process.d.ts +1482 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/readline/promises.d.ts +143 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/readline.d.ts +653 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/web.d.ts +330 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream.d.ts +1340 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/test.d.ts +314 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/timers/promises.d.ts +68 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/timers.d.ts +94 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/tls.d.ts +1028 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/trace_events.d.ts +171 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/tty.d.ts +206 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/url.d.ts +897 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/util.d.ts +1850 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/v8.d.ts +396 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/vm.d.ts +509 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/wasi.d.ts +158 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/worker_threads.d.ts +689 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +6 -6
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +58 -0
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +43 -0
- package/node_modules/follow-redirects/index.js +48 -25
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/keyv/README.md +22 -2
- package/node_modules/keyv/package.json +3 -4
- package/node_modules/keyv/src/index.js +5 -8
- package/package.json +13 -12
- package/node_modules/@types/json-buffer/LICENSE +0 -21
- package/node_modules/@types/json-buffer/README.md +0 -16
- package/node_modules/@types/json-buffer/index.d.ts +0 -19
- package/node_modules/@types/json-buffer/package.json +0 -24
- package/node_modules/@types/keyv/index.d.ts +0 -90
- package/node_modules/@types/keyv/node_modules/@types/node/LICENSE +0 -21
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +0 -16
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +0 -225
- package/node_modules/compress-brotli/LICENSE.md +0 -21
- package/node_modules/compress-brotli/README.md +0 -125
- package/node_modules/compress-brotli/package.json +0 -97
- package/node_modules/compress-brotli/src/index.d.ts +0 -36
- package/node_modules/compress-brotli/src/index.js +0 -45
- package/node_modules/compress-brotli/src/merge-options.js +0 -18
|
@@ -15,6 +15,11 @@ events.forEach(function (event) {
|
|
|
15
15
|
};
|
|
16
16
|
});
|
|
17
17
|
|
|
18
|
+
var InvalidUrlError = createErrorType(
|
|
19
|
+
"ERR_INVALID_URL",
|
|
20
|
+
"Invalid URL",
|
|
21
|
+
TypeError
|
|
22
|
+
);
|
|
18
23
|
// Error types with codes
|
|
19
24
|
var RedirectionError = createErrorType(
|
|
20
25
|
"ERR_FR_REDIRECTION_FAILURE",
|
|
@@ -75,10 +80,10 @@ RedirectableRequest.prototype.write = function (data, encoding, callback) {
|
|
|
75
80
|
}
|
|
76
81
|
|
|
77
82
|
// Validate input and shift parameters if necessary
|
|
78
|
-
if (!(
|
|
83
|
+
if (!isString(data) && !isBuffer(data)) {
|
|
79
84
|
throw new TypeError("data should be a string, Buffer or Uint8Array");
|
|
80
85
|
}
|
|
81
|
-
if (
|
|
86
|
+
if (isFunction(encoding)) {
|
|
82
87
|
callback = encoding;
|
|
83
88
|
encoding = null;
|
|
84
89
|
}
|
|
@@ -107,11 +112,11 @@ RedirectableRequest.prototype.write = function (data, encoding, callback) {
|
|
|
107
112
|
// Ends the current native request
|
|
108
113
|
RedirectableRequest.prototype.end = function (data, encoding, callback) {
|
|
109
114
|
// Shift parameters if necessary
|
|
110
|
-
if (
|
|
115
|
+
if (isFunction(data)) {
|
|
111
116
|
callback = data;
|
|
112
117
|
data = encoding = null;
|
|
113
118
|
}
|
|
114
|
-
else if (
|
|
119
|
+
else if (isFunction(encoding)) {
|
|
115
120
|
callback = encoding;
|
|
116
121
|
encoding = null;
|
|
117
122
|
}
|
|
@@ -288,7 +293,7 @@ RedirectableRequest.prototype._performRequest = function () {
|
|
|
288
293
|
url.format(this._options) :
|
|
289
294
|
// When making a request to a proxy, […]
|
|
290
295
|
// a client MUST send the target URI in absolute-form […].
|
|
291
|
-
this.
|
|
296
|
+
this._options.path;
|
|
292
297
|
|
|
293
298
|
// End a redirected request
|
|
294
299
|
// (The first request must be ended explicitly with RedirectableRequest#end)
|
|
@@ -409,7 +414,7 @@ RedirectableRequest.prototype._processResponse = function (response) {
|
|
|
409
414
|
redirectUrl = url.resolve(currentUrl, location);
|
|
410
415
|
}
|
|
411
416
|
catch (cause) {
|
|
412
|
-
this.emit("error", new RedirectionError(cause));
|
|
417
|
+
this.emit("error", new RedirectionError({ cause: cause }));
|
|
413
418
|
return;
|
|
414
419
|
}
|
|
415
420
|
|
|
@@ -429,7 +434,7 @@ RedirectableRequest.prototype._processResponse = function (response) {
|
|
|
429
434
|
}
|
|
430
435
|
|
|
431
436
|
// Evaluate the beforeRedirect callback
|
|
432
|
-
if (
|
|
437
|
+
if (isFunction(beforeRedirect)) {
|
|
433
438
|
var responseDetails = {
|
|
434
439
|
headers: response.headers,
|
|
435
440
|
statusCode: statusCode,
|
|
@@ -454,7 +459,7 @@ RedirectableRequest.prototype._processResponse = function (response) {
|
|
|
454
459
|
this._performRequest();
|
|
455
460
|
}
|
|
456
461
|
catch (cause) {
|
|
457
|
-
this.emit("error", new RedirectionError(cause));
|
|
462
|
+
this.emit("error", new RedirectionError({ cause: cause }));
|
|
458
463
|
}
|
|
459
464
|
};
|
|
460
465
|
|
|
@@ -476,15 +481,19 @@ function wrap(protocols) {
|
|
|
476
481
|
// Executes a request, following redirects
|
|
477
482
|
function request(input, options, callback) {
|
|
478
483
|
// Parse parameters
|
|
479
|
-
if (
|
|
480
|
-
var
|
|
484
|
+
if (isString(input)) {
|
|
485
|
+
var parsed;
|
|
481
486
|
try {
|
|
482
|
-
|
|
487
|
+
parsed = urlToOptions(new URL(input));
|
|
483
488
|
}
|
|
484
489
|
catch (err) {
|
|
485
490
|
/* istanbul ignore next */
|
|
486
|
-
|
|
491
|
+
parsed = url.parse(input);
|
|
492
|
+
}
|
|
493
|
+
if (!isString(parsed.protocol)) {
|
|
494
|
+
throw new InvalidUrlError({ input });
|
|
487
495
|
}
|
|
496
|
+
input = parsed;
|
|
488
497
|
}
|
|
489
498
|
else if (URL && (input instanceof URL)) {
|
|
490
499
|
input = urlToOptions(input);
|
|
@@ -494,7 +503,7 @@ function wrap(protocols) {
|
|
|
494
503
|
options = input;
|
|
495
504
|
input = { protocol: protocol };
|
|
496
505
|
}
|
|
497
|
-
if (
|
|
506
|
+
if (isFunction(options)) {
|
|
498
507
|
callback = options;
|
|
499
508
|
options = null;
|
|
500
509
|
}
|
|
@@ -505,6 +514,9 @@ function wrap(protocols) {
|
|
|
505
514
|
maxBodyLength: exports.maxBodyLength,
|
|
506
515
|
}, input, options);
|
|
507
516
|
options.nativeProtocols = nativeProtocols;
|
|
517
|
+
if (!isString(options.host) && !isString(options.hostname)) {
|
|
518
|
+
options.hostname = "::1";
|
|
519
|
+
}
|
|
508
520
|
|
|
509
521
|
assert.equal(options.protocol, protocol, "protocol mismatch");
|
|
510
522
|
debug("options", options);
|
|
@@ -562,21 +574,19 @@ function removeMatchingHeaders(regex, headers) {
|
|
|
562
574
|
undefined : String(lastValue).trim();
|
|
563
575
|
}
|
|
564
576
|
|
|
565
|
-
function createErrorType(code,
|
|
566
|
-
|
|
577
|
+
function createErrorType(code, message, baseClass) {
|
|
578
|
+
// Create constructor
|
|
579
|
+
function CustomError(properties) {
|
|
567
580
|
Error.captureStackTrace(this, this.constructor);
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
else {
|
|
572
|
-
this.message = defaultMessage + ": " + cause.message;
|
|
573
|
-
this.cause = cause;
|
|
574
|
-
}
|
|
581
|
+
Object.assign(this, properties || {});
|
|
582
|
+
this.code = code;
|
|
583
|
+
this.message = this.cause ? message + ": " + this.cause.message : message;
|
|
575
584
|
}
|
|
576
|
-
|
|
585
|
+
|
|
586
|
+
// Attach constructor and set default properties
|
|
587
|
+
CustomError.prototype = new (baseClass || Error)();
|
|
577
588
|
CustomError.prototype.constructor = CustomError;
|
|
578
589
|
CustomError.prototype.name = "Error [" + code + "]";
|
|
579
|
-
CustomError.prototype.code = code;
|
|
580
590
|
return CustomError;
|
|
581
591
|
}
|
|
582
592
|
|
|
@@ -589,10 +599,23 @@ function abortRequest(request) {
|
|
|
589
599
|
}
|
|
590
600
|
|
|
591
601
|
function isSubdomain(subdomain, domain) {
|
|
592
|
-
|
|
602
|
+
assert(isString(subdomain) && isString(domain));
|
|
603
|
+
var dot = subdomain.length - domain.length - 1;
|
|
593
604
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
594
605
|
}
|
|
595
606
|
|
|
607
|
+
function isString(value) {
|
|
608
|
+
return typeof value === "string" || value instanceof String;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
function isFunction(value) {
|
|
612
|
+
return typeof value === "function";
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
function isBuffer(value) {
|
|
616
|
+
return typeof value === "object" && ("length" in value);
|
|
617
|
+
}
|
|
618
|
+
|
|
596
619
|
// Exports
|
|
597
620
|
module.exports = wrap({ http: http, https: https });
|
|
598
621
|
module.exports.wrap = wrap;
|
|
@@ -187,6 +187,20 @@ const awesomeModule = new AwesomeModule({ cache: 'redis://localhost' });
|
|
|
187
187
|
const awesomeModule = new AwesomeModule({ cache: some3rdPartyStore });
|
|
188
188
|
```
|
|
189
189
|
|
|
190
|
+
## Compression
|
|
191
|
+
|
|
192
|
+
Keyv supports `gzip` and `brotli` compression. To enable compression, pass the `compress` option to the constructor.
|
|
193
|
+
|
|
194
|
+
```js
|
|
195
|
+
const KeyvGzip = require('@keyv/compress-gzip');
|
|
196
|
+
const Keyv = require('keyv');
|
|
197
|
+
|
|
198
|
+
const keyvGzip = new KeyvGzip();;
|
|
199
|
+
const keyv = new Keyv({ compression: KeyvGzip });
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
You can also pass a custom compression function to the `compression` option. Following the pattern of the official compression adapters.
|
|
203
|
+
|
|
190
204
|
## API
|
|
191
205
|
|
|
192
206
|
### new Keyv([uri], [options])
|
|
@@ -224,6 +238,13 @@ Default: `undefined`
|
|
|
224
238
|
|
|
225
239
|
Default TTL. Can be overridden by specififying a TTL on `.set()`.
|
|
226
240
|
|
|
241
|
+
#### options.compression
|
|
242
|
+
|
|
243
|
+
Type: `@keyv/compress-<compression_package_name>`<br>
|
|
244
|
+
Default: `undefined`
|
|
245
|
+
|
|
246
|
+
Compression package to use. See [Compression](#compression) for more details.
|
|
247
|
+
|
|
227
248
|
#### options.serialize
|
|
228
249
|
|
|
229
250
|
Type: `Function`<br>
|
|
@@ -315,7 +336,6 @@ In this section of the documentation we will cover:
|
|
|
315
336
|
This package requires the following dependencies to run:
|
|
316
337
|
|
|
317
338
|
1) [Yarn V1](https://yarnpkg.com/getting-started/install)
|
|
318
|
-
2) [Lerna](https://lerna.js.org/)
|
|
319
339
|
3) [Docker](https://docs.docker.com/get-docker/)
|
|
320
340
|
|
|
321
341
|
## Setting up your workspace
|
|
@@ -337,7 +357,7 @@ Once the project is installed locally, you are ready to start up its services:
|
|
|
337
357
|
|
|
338
358
|
## Available Commands
|
|
339
359
|
|
|
340
|
-
Once the project is running, you can execute a variety of commands. The root workspace and each subpackage contain a `package.json` file with a `scripts` field listing all the commands that can be executed from that directory. This project also supports native `yarn`,
|
|
360
|
+
Once the project is running, you can execute a variety of commands. The root workspace and each subpackage contain a `package.json` file with a `scripts` field listing all the commands that can be executed from that directory. This project also supports native `yarn`, and `docker` commands.
|
|
341
361
|
|
|
342
362
|
Here, we'll cover the primary commands that can be executed from the root directory. Unless otherwise noted, these commands can also be executed from a subpackage. If executed from a subpackage, they will only affect that subpackage, rather than the entire workspace.
|
|
343
363
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keyv",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0",
|
|
4
4
|
"description": "Simple key-value storage with support for multiple backends",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -32,13 +32,12 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/jaredwray/keyv",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"compress-brotli": "^1.3.8",
|
|
36
35
|
"json-buffer": "3.0.1"
|
|
37
36
|
},
|
|
38
37
|
"devDependencies": {
|
|
39
38
|
"@keyv/test-suite": "*",
|
|
40
|
-
"ava": "^4.3.
|
|
41
|
-
"eslint": "^8.
|
|
39
|
+
"ava": "^4.3.0",
|
|
40
|
+
"eslint": "^8.19.0",
|
|
42
41
|
"eslint-plugin-promise": "^6.0.0",
|
|
43
42
|
"nyc": "^15.1.0",
|
|
44
43
|
"pify": "5.0.0",
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
const EventEmitter = require('events');
|
|
4
4
|
const JSONB = require('json-buffer');
|
|
5
|
-
const compressBrotli = require('compress-brotli');
|
|
6
5
|
|
|
7
6
|
const loadStore = options => {
|
|
8
7
|
const adapters = {
|
|
@@ -51,13 +50,11 @@ class Keyv extends EventEmitter {
|
|
|
51
50
|
this.opts.store = loadStore(adapterOptions);
|
|
52
51
|
}
|
|
53
52
|
|
|
54
|
-
if (this.opts.
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
this.opts.
|
|
58
|
-
|
|
59
|
-
return {value: await brotli.decompress(value), expires};
|
|
60
|
-
};
|
|
53
|
+
if (this.opts.compression) {
|
|
54
|
+
const compression = this.opts.compression;
|
|
55
|
+
const {serialize, deserialize} = compression.opts;
|
|
56
|
+
this.opts.serialize = serialize;
|
|
57
|
+
this.opts.deserialize = deserialize;
|
|
61
58
|
}
|
|
62
59
|
|
|
63
60
|
if (typeof this.opts.store.on === 'function' && emitErrors) {
|
package/package.json
CHANGED
|
@@ -76,7 +76,6 @@
|
|
|
76
76
|
"pre-compile": "npx projen pre-compile",
|
|
77
77
|
"release": "npx projen release",
|
|
78
78
|
"test": "npx projen test",
|
|
79
|
-
"test:update": "npx projen test:update",
|
|
80
79
|
"test:watch": "npx projen test:watch",
|
|
81
80
|
"unbump": "npx projen unbump",
|
|
82
81
|
"upgrade": "npx projen upgrade",
|
|
@@ -91,7 +90,7 @@
|
|
|
91
90
|
"devDependencies": {
|
|
92
91
|
"@aws-cdk/aws-apigatewayv2-alpha": "2.1.0-alpha.0",
|
|
93
92
|
"@aws-cdk/aws-apigatewayv2-integrations-alpha": "2.1.0-alpha.0",
|
|
94
|
-
"@types/aws-lambda": "^8.10.
|
|
93
|
+
"@types/aws-lambda": "^8.10.108",
|
|
95
94
|
"@types/jest": "^27",
|
|
96
95
|
"@types/node": "^14",
|
|
97
96
|
"@types/tsscmp": "^1.0.0",
|
|
@@ -99,24 +98,24 @@
|
|
|
99
98
|
"@typescript-eslint/parser": "^5",
|
|
100
99
|
"aws-cdk": "^2",
|
|
101
100
|
"aws-cdk-lib": "2.1.0",
|
|
102
|
-
"aws-sdk": "^2.
|
|
103
|
-
"aws-sdk-mock": "^5.
|
|
101
|
+
"aws-sdk": "^2.1244.0",
|
|
102
|
+
"aws-sdk-mock": "^5.8.0",
|
|
104
103
|
"constructs": "10.0.5",
|
|
105
|
-
"esbuild": "^0.15.
|
|
104
|
+
"esbuild": "^0.15.12",
|
|
106
105
|
"eslint": "^8",
|
|
107
106
|
"eslint-import-resolver-node": "^0.3.6",
|
|
108
107
|
"eslint-import-resolver-typescript": "^2.7.1",
|
|
109
108
|
"eslint-plugin-import": "^2.26.0",
|
|
110
109
|
"jest": "^27",
|
|
111
110
|
"jest-junit": "^13",
|
|
112
|
-
"jsii": "^1.
|
|
113
|
-
"jsii-diff": "^1.
|
|
111
|
+
"jsii": "^1.70.0",
|
|
112
|
+
"jsii-diff": "^1.70.0",
|
|
114
113
|
"jsii-docgen": "^1.8.110",
|
|
115
|
-
"jsii-pacmak": "^1.
|
|
114
|
+
"jsii-pacmak": "^1.70.0",
|
|
116
115
|
"json-schema": "^0.4.0",
|
|
117
116
|
"nock": "^13.2.9",
|
|
118
|
-
"npm-check-updates": "^
|
|
119
|
-
"projen": "^0.
|
|
117
|
+
"npm-check-updates": "^16",
|
|
118
|
+
"projen": "^0.65.7",
|
|
120
119
|
"standard-version": "^9",
|
|
121
120
|
"ts-jest": "^27",
|
|
122
121
|
"ts-node": "^10.9.1",
|
|
@@ -141,7 +140,7 @@
|
|
|
141
140
|
],
|
|
142
141
|
"main": "lib/index.js",
|
|
143
142
|
"license": "Apache-2.0",
|
|
144
|
-
"version": "0.6.
|
|
143
|
+
"version": "0.6.11",
|
|
145
144
|
"jest": {
|
|
146
145
|
"testMatch": [
|
|
147
146
|
"<rootDir>/src/**/__tests__/**/*.ts?(x)",
|
|
@@ -208,6 +207,8 @@
|
|
|
208
207
|
}
|
|
209
208
|
},
|
|
210
209
|
"resolutions": {
|
|
210
|
+
"@types/responselike": "1.0.0",
|
|
211
|
+
"got": "12.3.1",
|
|
211
212
|
"@types/prettier": "2.6.0"
|
|
212
213
|
},
|
|
213
214
|
"exports": {
|
|
@@ -228,4 +229,4 @@
|
|
|
228
229
|
"./lib/url-shortener": "./lib/url-shortener/index.js"
|
|
229
230
|
},
|
|
230
231
|
"//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"."
|
|
231
|
-
}
|
|
232
|
+
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
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 all
|
|
13
|
-
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 THE
|
|
21
|
-
SOFTWARE
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# Installation
|
|
2
|
-
> `npm install --save @types/json-buffer`
|
|
3
|
-
|
|
4
|
-
# Summary
|
|
5
|
-
This package contains type definitions for json-buffer (https://github.com/dominictarr/json-buffer).
|
|
6
|
-
|
|
7
|
-
# Details
|
|
8
|
-
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-buffer
|
|
9
|
-
|
|
10
|
-
Additional Details
|
|
11
|
-
* Last updated: Fri, 26 Jul 2019 18:14:43 GMT
|
|
12
|
-
* Dependencies: none
|
|
13
|
-
* Global values: none
|
|
14
|
-
|
|
15
|
-
# Credits
|
|
16
|
-
These definitions were written by Paul Hawxby <https://github.com/phawxby>.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// Type definitions for json-buffer 3.0
|
|
2
|
-
// Project: https://github.com/dominictarr/json-buffer
|
|
3
|
-
// Definitions by: Paul Hawxby <https://github.com/phawxby>
|
|
4
|
-
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Converts supplied object to a string and safely handles buffers by converting them to a base64 string.
|
|
8
|
-
*
|
|
9
|
-
* @param o - Object to convert.
|
|
10
|
-
* @returns - JSON string.
|
|
11
|
-
*/
|
|
12
|
-
export function stringify(o: any): string;
|
|
13
|
-
/**
|
|
14
|
-
* Converts JSON string back to an object. Converts base64 encoded buffers back to buffers
|
|
15
|
-
*
|
|
16
|
-
* @param s - String to convert back to object.
|
|
17
|
-
* @returns - Object.
|
|
18
|
-
*/
|
|
19
|
-
export function parse(s: string): any;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@types/json-buffer",
|
|
3
|
-
"version": "3.0.0",
|
|
4
|
-
"description": "TypeScript definitions for json-buffer",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"contributors": [
|
|
7
|
-
{
|
|
8
|
-
"name": "Paul Hawxby",
|
|
9
|
-
"url": "https://github.com/phawxby",
|
|
10
|
-
"githubUsername": "phawxby"
|
|
11
|
-
}
|
|
12
|
-
],
|
|
13
|
-
"main": "",
|
|
14
|
-
"types": "index",
|
|
15
|
-
"repository": {
|
|
16
|
-
"type": "git",
|
|
17
|
-
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
|
18
|
-
"directory": "types/json-buffer"
|
|
19
|
-
},
|
|
20
|
-
"scripts": {},
|
|
21
|
-
"dependencies": {},
|
|
22
|
-
"typesPublisherContentHash": "3e653db758e5ea8bb43afa948bb570021ae1b6d1fc4169f3fc96ec2a25faff3a",
|
|
23
|
-
"typeScriptVersion": "2.0"
|
|
24
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
// Type definitions for keyv 3.1
|
|
2
|
-
// Project: https://github.com/lukechilds/keyv
|
|
3
|
-
// Definitions by: AryloYeung <https://github.com/Arylo>
|
|
4
|
-
// BendingBender <https://github.com/BendingBender>
|
|
5
|
-
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
6
|
-
// TypeScript Version: 2.8
|
|
7
|
-
|
|
8
|
-
/// <reference types="node" />
|
|
9
|
-
import { EventEmitter } from 'events';
|
|
10
|
-
|
|
11
|
-
type WithRequiredProperties<T, K extends keyof T> = T & Required<Pick<T, K>>;
|
|
12
|
-
|
|
13
|
-
declare class Keyv<TValue = any, TOpts extends { [key: string]: any } = {}> extends EventEmitter {
|
|
14
|
-
/**
|
|
15
|
-
* `this.opts` is an object containing at least the properties listed
|
|
16
|
-
* below. However, `Keyv.Options` allows arbitrary properties as well.
|
|
17
|
-
* These properties can be specified as the second type parameter to `Keyv`.
|
|
18
|
-
*/
|
|
19
|
-
opts: WithRequiredProperties<
|
|
20
|
-
Keyv.Options<TValue>,
|
|
21
|
-
'deserialize' | 'namespace' | 'serialize' | 'store' | 'uri'
|
|
22
|
-
> &
|
|
23
|
-
TOpts;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* @param opts The options object is also passed through to the storage adapter. Check your storage adapter docs for any extra options.
|
|
27
|
-
*/
|
|
28
|
-
constructor(opts?: Keyv.Options<TValue> & TOpts);
|
|
29
|
-
/**
|
|
30
|
-
* @param uri The connection string URI.
|
|
31
|
-
*
|
|
32
|
-
* Merged into the options object as options.uri.
|
|
33
|
-
* @param opts The options object is also passed through to the storage adapter. Check your storage adapter docs for any extra options.
|
|
34
|
-
*/
|
|
35
|
-
constructor(uri?: string, opts?: Keyv.Options<TValue> & TOpts);
|
|
36
|
-
|
|
37
|
-
/** Returns the value. */
|
|
38
|
-
get<TRaw extends boolean = false>(key: string, options?: { raw?: TRaw }):
|
|
39
|
-
Promise<(TRaw extends false
|
|
40
|
-
? TValue
|
|
41
|
-
: Keyv.DeserializedData<TValue>) | undefined>;
|
|
42
|
-
/**
|
|
43
|
-
* Set a value.
|
|
44
|
-
*
|
|
45
|
-
* By default keys are persistent. You can set an expiry TTL in milliseconds.
|
|
46
|
-
*/
|
|
47
|
-
set(key: string, value: TValue, ttl?: number): Promise<true>;
|
|
48
|
-
/**
|
|
49
|
-
* Deletes an entry.
|
|
50
|
-
*
|
|
51
|
-
* Returns `true` if the key existed, `false` if not.
|
|
52
|
-
*/
|
|
53
|
-
delete(key: string): Promise<boolean>;
|
|
54
|
-
/** Delete all entries in the current namespace. */
|
|
55
|
-
clear(): Promise<void>;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
declare namespace Keyv {
|
|
59
|
-
interface Options<TValue> {
|
|
60
|
-
/** Namespace for the current instance. */
|
|
61
|
-
namespace?: string | undefined;
|
|
62
|
-
/** A custom serialization function. */
|
|
63
|
-
serialize?: ((data: DeserializedData<TValue>) => string) | undefined;
|
|
64
|
-
/** A custom deserialization function. */
|
|
65
|
-
deserialize?: ((data: string) => DeserializedData<TValue> | undefined) | undefined;
|
|
66
|
-
/** The connection string URI. */
|
|
67
|
-
uri?: string | undefined;
|
|
68
|
-
/** The storage adapter instance to be used by Keyv. */
|
|
69
|
-
store?: Store<TValue> | undefined;
|
|
70
|
-
/** Default TTL. Can be overridden by specififying a TTL on `.set()`. */
|
|
71
|
-
ttl?: number | undefined;
|
|
72
|
-
/** Specify an adapter to use. e.g `'redis'` or `'mongodb'`. */
|
|
73
|
-
adapter?: 'redis' | 'mongodb' | 'mongo' | 'sqlite' | 'postgresql' | 'postgres' | 'mysql' | undefined;
|
|
74
|
-
|
|
75
|
-
[key: string]: any;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
interface DeserializedData<TValue> {
|
|
79
|
-
value: TValue; expires: number | null;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
interface Store<TValue> {
|
|
83
|
-
get(key: string): TValue | Promise<TValue | undefined> | undefined;
|
|
84
|
-
set(key: string, value: TValue, ttl?: number): any;
|
|
85
|
-
delete(key: string): boolean | Promise<boolean>;
|
|
86
|
-
clear(): void | Promise<void>;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export = Keyv;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
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 all
|
|
13
|
-
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 THE
|
|
21
|
-
SOFTWARE
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# Installation
|
|
2
|
-
> `npm install --save @types/node`
|
|
3
|
-
|
|
4
|
-
# Summary
|
|
5
|
-
This package contains type definitions for Node.js (https://nodejs.org/).
|
|
6
|
-
|
|
7
|
-
# Details
|
|
8
|
-
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
|
-
|
|
10
|
-
### Additional Details
|
|
11
|
-
* Last updated: Mon, 22 Aug 2022 20:32:37 GMT
|
|
12
|
-
* Dependencies: none
|
|
13
|
-
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
|
-
|
|
15
|
-
# Credits
|
|
16
|
-
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), [wafuwafu13](https://github.com/wafuwafu13), and [Matteo Collina](https://github.com/mcollina).
|