cdk-ecr-deployment 0.0.75 → 0.0.81
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 +20 -21
- package/.jsii +43 -35
- package/lambda/Dockerfile +25 -0
- package/lambda/install.js +64 -0
- package/lib/index.js +40 -23
- package/node_modules/@sindresorhus/is/dist/index.d.ts +225 -0
- package/node_modules/@sindresorhus/is/dist/index.js +427 -0
- package/node_modules/@sindresorhus/is/dist/types.d.ts +24 -0
- package/node_modules/@sindresorhus/is/dist/types.js +3 -0
- package/node_modules/@sindresorhus/is/license +9 -0
- package/node_modules/@sindresorhus/is/package.json +96 -0
- package/node_modules/@sindresorhus/is/readme.md +628 -0
- package/node_modules/@szmarczak/http-timer/LICENSE +21 -0
- package/node_modules/@szmarczak/http-timer/README.md +93 -0
- package/node_modules/@szmarczak/http-timer/dist/source/index.d.ts +32 -0
- package/node_modules/@szmarczak/http-timer/dist/source/index.js +126 -0
- package/node_modules/@szmarczak/http-timer/package.json +72 -0
- package/node_modules/@types/cacheable-request/LICENSE +21 -0
- package/node_modules/@types/cacheable-request/README.md +16 -0
- package/node_modules/@types/cacheable-request/index.d.ts +137 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +16 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +912 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +497 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +2142 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +1366 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +414 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +412 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/constants.d.ts +18 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +3307 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +545 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +134 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +368 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +654 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +169 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +623 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +1091 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +3784 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +284 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.global.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +1369 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +2100 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +391 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +131 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +2745 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +114 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +783 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +455 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +230 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +172 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +555 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +1481 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +117 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +131 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +543 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +424 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/consumers.d.ts +24 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/promises.d.ts +42 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +6 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +1249 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +68 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +94 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +1019 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +161 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +204 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +821 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +1594 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +378 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +507 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +158 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +649 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +517 -0
- package/node_modules/@types/cacheable-request/package.json +35 -0
- package/node_modules/@types/http-cache-semantics/LICENSE +21 -0
- package/node_modules/@types/http-cache-semantics/README.md +16 -0
- package/node_modules/@types/http-cache-semantics/index.d.ts +170 -0
- package/node_modules/@types/http-cache-semantics/package.json +25 -0
- package/node_modules/@types/keyv/LICENSE +21 -0
- package/node_modules/@types/keyv/README.md +16 -0
- package/node_modules/@types/keyv/index.d.ts +77 -0
- package/node_modules/@types/keyv/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +16 -0
- package/node_modules/@types/keyv/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +912 -0
- package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +497 -0
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +2142 -0
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +1366 -0
- package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +414 -0
- package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +412 -0
- package/node_modules/@types/keyv/node_modules/@types/node/constants.d.ts +18 -0
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +3307 -0
- package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +545 -0
- package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +134 -0
- package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +368 -0
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +654 -0
- package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +169 -0
- package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +623 -0
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +1091 -0
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +3784 -0
- package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +284 -0
- package/node_modules/@types/keyv/node_modules/@types/node/globals.global.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +1369 -0
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +2100 -0
- package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +391 -0
- package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +131 -0
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +2745 -0
- package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +114 -0
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +783 -0
- package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +455 -0
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +230 -0
- package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +172 -0
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +555 -0
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +1481 -0
- package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +117 -0
- package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +131 -0
- package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +543 -0
- package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +424 -0
- package/node_modules/@types/keyv/node_modules/@types/node/stream/consumers.d.ts +24 -0
- package/node_modules/@types/keyv/node_modules/@types/node/stream/promises.d.ts +42 -0
- package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +6 -0
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +1249 -0
- package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +68 -0
- package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +94 -0
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +1019 -0
- package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +161 -0
- package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +204 -0
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +821 -0
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +1594 -0
- package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +378 -0
- package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +507 -0
- package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +158 -0
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +649 -0
- package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +517 -0
- package/node_modules/@types/keyv/package.json +32 -0
- package/node_modules/@types/responselike/LICENSE +21 -0
- package/node_modules/@types/responselike/README.md +16 -0
- package/node_modules/@types/responselike/index.d.ts +34 -0
- package/node_modules/@types/responselike/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +16 -0
- package/node_modules/@types/responselike/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +912 -0
- package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +497 -0
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +2142 -0
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +1366 -0
- package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +414 -0
- package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +412 -0
- package/node_modules/@types/responselike/node_modules/@types/node/constants.d.ts +18 -0
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +3307 -0
- package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +545 -0
- package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +134 -0
- package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +368 -0
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +654 -0
- package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +169 -0
- package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +623 -0
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +1091 -0
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +3784 -0
- package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +284 -0
- package/node_modules/@types/responselike/node_modules/@types/node/globals.global.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +1369 -0
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +2100 -0
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +391 -0
- package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +131 -0
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +2745 -0
- package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +114 -0
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +783 -0
- package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +455 -0
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +230 -0
- package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +172 -0
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +555 -0
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +1481 -0
- package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +117 -0
- package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +131 -0
- package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +543 -0
- package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +424 -0
- package/node_modules/@types/responselike/node_modules/@types/node/stream/consumers.d.ts +24 -0
- package/node_modules/@types/responselike/node_modules/@types/node/stream/promises.d.ts +42 -0
- package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +6 -0
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +1249 -0
- package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +68 -0
- package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +94 -0
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +1019 -0
- package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +161 -0
- package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +204 -0
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +821 -0
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +1594 -0
- package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +378 -0
- package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +507 -0
- package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +158 -0
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +649 -0
- package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +517 -0
- package/node_modules/@types/responselike/package.json +25 -0
- package/node_modules/cacheable-lookup/LICENSE +21 -0
- package/node_modules/cacheable-lookup/README.md +240 -0
- package/node_modules/cacheable-lookup/index.d.ts +139 -0
- package/node_modules/cacheable-lookup/package.json +45 -0
- package/node_modules/cacheable-lookup/source/index.js +436 -0
- package/node_modules/cacheable-request/LICENSE +21 -0
- package/node_modules/cacheable-request/README.md +206 -0
- package/node_modules/cacheable-request/package.json +56 -0
- package/node_modules/cacheable-request/src/index.js +251 -0
- package/node_modules/clone-response/LICENSE +21 -0
- package/node_modules/clone-response/README.md +62 -0
- package/node_modules/clone-response/package.json +44 -0
- package/node_modules/clone-response/src/index.js +17 -0
- package/node_modules/decompress-response/index.d.ts +22 -0
- package/node_modules/decompress-response/index.js +58 -0
- package/node_modules/decompress-response/license +9 -0
- package/node_modules/decompress-response/node_modules/mimic-response/index.d.ts +17 -0
- package/node_modules/decompress-response/node_modules/mimic-response/index.js +77 -0
- package/node_modules/decompress-response/node_modules/mimic-response/license +9 -0
- package/node_modules/decompress-response/node_modules/mimic-response/package.json +42 -0
- package/node_modules/decompress-response/node_modules/mimic-response/readme.md +78 -0
- package/node_modules/decompress-response/package.json +56 -0
- package/node_modules/decompress-response/readme.md +48 -0
- package/node_modules/defer-to-connect/LICENSE +21 -0
- package/node_modules/defer-to-connect/README.md +38 -0
- package/node_modules/defer-to-connect/dist/source/index.d.ts +10 -0
- package/node_modules/defer-to-connect/dist/source/index.js +47 -0
- package/node_modules/defer-to-connect/package.json +71 -0
- package/node_modules/end-of-stream/LICENSE +21 -0
- package/node_modules/end-of-stream/README.md +54 -0
- package/node_modules/end-of-stream/index.js +94 -0
- package/node_modules/end-of-stream/package.json +37 -0
- package/node_modules/get-stream/buffer-stream.js +52 -0
- package/node_modules/get-stream/index.d.ts +108 -0
- package/node_modules/get-stream/index.js +60 -0
- package/node_modules/get-stream/license +9 -0
- package/node_modules/get-stream/package.json +50 -0
- package/node_modules/get-stream/readme.md +124 -0
- package/node_modules/got/dist/source/as-promise/create-rejection.d.ts +2 -0
- package/node_modules/got/dist/source/as-promise/create-rejection.js +30 -0
- package/node_modules/got/dist/source/as-promise/index.d.ts +3 -0
- package/node_modules/got/dist/source/as-promise/index.js +175 -0
- package/node_modules/got/dist/source/as-promise/normalize-arguments.d.ts +3 -0
- package/node_modules/got/dist/source/as-promise/normalize-arguments.js +78 -0
- package/node_modules/got/dist/source/as-promise/parse-body.d.ts +3 -0
- package/node_modules/got/dist/source/as-promise/parse-body.js +25 -0
- package/node_modules/got/dist/source/as-promise/types.d.ts +256 -0
- package/node_modules/got/dist/source/as-promise/types.js +40 -0
- package/node_modules/got/dist/source/core/calculate-retry-delay.d.ts +5 -0
- package/node_modules/got/dist/source/core/calculate-retry-delay.js +29 -0
- package/node_modules/got/dist/source/core/index.d.ts +1124 -0
- package/node_modules/got/dist/source/core/index.js +1491 -0
- package/node_modules/got/dist/source/core/utils/dns-ip-version.d.ts +5 -0
- package/node_modules/got/dist/source/core/utils/dns-ip-version.js +17 -0
- package/node_modules/got/dist/source/core/utils/get-body-size.d.ts +3 -0
- package/node_modules/got/dist/source/core/utils/get-body-size.js +32 -0
- package/node_modules/got/dist/source/core/utils/get-buffer.d.ts +4 -0
- package/node_modules/got/dist/source/core/utils/get-buffer.js +16 -0
- package/node_modules/got/dist/source/core/utils/is-form-data.d.ts +8 -0
- package/node_modules/got/dist/source/core/utils/is-form-data.js +4 -0
- package/node_modules/got/dist/source/core/utils/is-response-ok.d.ts +2 -0
- package/node_modules/got/dist/source/core/utils/is-response-ok.js +8 -0
- package/node_modules/got/dist/source/core/utils/options-to-url.d.ts +14 -0
- package/node_modules/got/dist/source/core/utils/options-to-url.js +53 -0
- package/node_modules/got/dist/source/core/utils/proxy-events.d.ts +3 -0
- package/node_modules/got/dist/source/core/utils/proxy-events.js +17 -0
- package/node_modules/got/dist/source/core/utils/timed-out.d.ts +29 -0
- package/node_modules/got/dist/source/core/utils/timed-out.js +121 -0
- package/node_modules/got/dist/source/core/utils/unhandle.d.ts +11 -0
- package/node_modules/got/dist/source/core/utils/unhandle.js +22 -0
- package/node_modules/got/dist/source/core/utils/url-to-options.d.ts +15 -0
- package/node_modules/got/dist/source/core/utils/url-to-options.js +24 -0
- package/node_modules/got/dist/source/core/utils/weakable-map.d.ts +8 -0
- package/node_modules/got/dist/source/core/utils/weakable-map.js +29 -0
- package/node_modules/got/dist/source/create.d.ts +5 -0
- package/node_modules/got/dist/source/create.js +240 -0
- package/node_modules/got/dist/source/index.d.ts +4 -0
- package/node_modules/got/dist/source/index.js +132 -0
- package/node_modules/got/dist/source/types.d.ts +342 -0
- package/node_modules/got/dist/source/types.js +2 -0
- package/node_modules/got/dist/source/utils/deep-freeze.d.ts +1 -0
- package/node_modules/got/dist/source/utils/deep-freeze.js +12 -0
- package/node_modules/got/dist/source/utils/deprecation-warning.d.ts +2 -0
- package/node_modules/got/dist/source/utils/deprecation-warning.js +13 -0
- package/node_modules/got/license +9 -0
- package/node_modules/got/package.json +130 -0
- package/node_modules/got/readme.md +2476 -0
- package/node_modules/http-cache-semantics/LICENSE +9 -0
- package/node_modules/http-cache-semantics/README.md +203 -0
- package/node_modules/http-cache-semantics/index.js +673 -0
- package/node_modules/http-cache-semantics/package.json +24 -0
- package/node_modules/http2-wrapper/LICENSE +21 -0
- package/node_modules/http2-wrapper/README.md +470 -0
- package/node_modules/http2-wrapper/package.json +54 -0
- package/node_modules/http2-wrapper/source/agent.js +670 -0
- package/node_modules/http2-wrapper/source/auto.js +149 -0
- package/node_modules/http2-wrapper/source/client-request.js +445 -0
- package/node_modules/http2-wrapper/source/incoming-message.js +58 -0
- package/node_modules/http2-wrapper/source/index.js +28 -0
- package/node_modules/http2-wrapper/source/utils/calculate-server-name.js +27 -0
- package/node_modules/http2-wrapper/source/utils/errors.js +45 -0
- package/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.js +13 -0
- package/node_modules/http2-wrapper/source/utils/proxy-events.js +7 -0
- package/node_modules/http2-wrapper/source/utils/url-to-options.js +25 -0
- package/node_modules/json-buffer/.travis.yml +3 -0
- package/node_modules/json-buffer/LICENSE +22 -0
- package/node_modules/json-buffer/README.md +24 -0
- package/node_modules/json-buffer/index.js +58 -0
- package/node_modules/json-buffer/package.json +34 -0
- package/node_modules/json-buffer/test/index.js +63 -0
- package/node_modules/keyv/LICENSE +21 -0
- package/node_modules/keyv/README.md +288 -0
- package/node_modules/keyv/package.json +49 -0
- package/node_modules/keyv/src/index.js +111 -0
- package/node_modules/lowercase-keys/index.d.ts +16 -0
- package/node_modules/lowercase-keys/index.js +10 -0
- package/node_modules/lowercase-keys/license +9 -0
- package/node_modules/lowercase-keys/package.json +38 -0
- package/node_modules/lowercase-keys/readme.md +32 -0
- package/node_modules/mimic-response/index.js +32 -0
- package/node_modules/mimic-response/license +9 -0
- package/node_modules/mimic-response/package.json +37 -0
- package/node_modules/mimic-response/readme.md +54 -0
- package/node_modules/normalize-url/index.d.ts +267 -0
- package/node_modules/normalize-url/index.js +216 -0
- package/node_modules/normalize-url/license +9 -0
- package/node_modules/normalize-url/package.json +50 -0
- package/node_modules/normalize-url/readme.md +286 -0
- package/node_modules/once/LICENSE +15 -0
- package/node_modules/once/README.md +79 -0
- package/node_modules/once/once.js +42 -0
- package/node_modules/once/package.json +33 -0
- package/node_modules/p-cancelable/index.d.ts +176 -0
- package/node_modules/p-cancelable/index.js +111 -0
- package/node_modules/p-cancelable/license +9 -0
- package/node_modules/p-cancelable/package.json +49 -0
- package/node_modules/p-cancelable/readme.md +153 -0
- package/node_modules/pump/.travis.yml +5 -0
- package/node_modules/pump/LICENSE +21 -0
- package/node_modules/pump/README.md +65 -0
- package/node_modules/pump/index.js +82 -0
- package/node_modules/pump/package.json +24 -0
- package/node_modules/pump/test-browser.js +66 -0
- package/node_modules/pump/test-node.js +53 -0
- package/node_modules/quick-lru/index.d.ts +97 -0
- package/node_modules/quick-lru/index.js +123 -0
- package/node_modules/quick-lru/license +9 -0
- package/node_modules/quick-lru/package.json +43 -0
- package/node_modules/quick-lru/readme.md +111 -0
- package/node_modules/resolve-alpn/LICENSE +22 -0
- package/node_modules/resolve-alpn/README.md +60 -0
- package/node_modules/resolve-alpn/index.js +43 -0
- package/node_modules/resolve-alpn/package.json +34 -0
- package/node_modules/responselike/LICENSE +19 -0
- package/node_modules/responselike/README.md +77 -0
- package/node_modules/responselike/package.json +38 -0
- package/node_modules/responselike/src/index.js +34 -0
- package/node_modules/wrappy/LICENSE +15 -0
- package/node_modules/wrappy/README.md +36 -0
- package/node_modules/wrappy/package.json +29 -0
- package/node_modules/wrappy/wrappy.js +33 -0
- package/package.json +41 -38
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
# cacheable-lookup
|
|
2
|
+
|
|
3
|
+
> A cacheable [`dns.lookup(…)`](https://nodejs.org/api/dns.html#dns_dns_lookup_hostname_options_callback) that respects TTL :tada:
|
|
4
|
+
|
|
5
|
+
[](https://github.com/szmarczak/cacheable-lookup/actions)
|
|
6
|
+
[](https://coveralls.io/github/szmarczak/cacheable-lookup?branch=master)
|
|
7
|
+
[](https://www.npmjs.com/package/cacheable-lookup)
|
|
8
|
+
[](https://packagephobia.now.sh/result?p=cacheable-lookup)
|
|
9
|
+
|
|
10
|
+
Making lots of HTTP requests? You can save some time by caching DNS lookups :zap:
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
### Using the `lookup` option
|
|
15
|
+
|
|
16
|
+
```js
|
|
17
|
+
const http = require('http');
|
|
18
|
+
const CacheableLookup = require('cacheable-lookup');
|
|
19
|
+
|
|
20
|
+
const cacheable = new CacheableLookup();
|
|
21
|
+
|
|
22
|
+
http.get('http://example.com', {lookup: cacheable.lookup}, response => {
|
|
23
|
+
// Handle the response here
|
|
24
|
+
});
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Attaching CacheableLookup to an Agent
|
|
28
|
+
|
|
29
|
+
```js
|
|
30
|
+
const http = require('http');
|
|
31
|
+
const CacheableLookup = require('cacheable-lookup');
|
|
32
|
+
|
|
33
|
+
const cacheable = new CacheableLookup();
|
|
34
|
+
cacheable.install(http.globalAgent);
|
|
35
|
+
|
|
36
|
+
http.get('http://example.com', response => {
|
|
37
|
+
// Handle the response here
|
|
38
|
+
});
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## API
|
|
42
|
+
|
|
43
|
+
### new CacheableLookup(options)
|
|
44
|
+
|
|
45
|
+
Returns a new instance of `CacheableLookup`.
|
|
46
|
+
|
|
47
|
+
#### options
|
|
48
|
+
|
|
49
|
+
Type: `object`<br>
|
|
50
|
+
Default: `{}`
|
|
51
|
+
|
|
52
|
+
Options used to cache the DNS lookups.
|
|
53
|
+
|
|
54
|
+
##### cache
|
|
55
|
+
|
|
56
|
+
Type: `Map` | [`Keyv`](https://github.com/lukechilds/keyv/)<br>
|
|
57
|
+
Default: `new Map()`
|
|
58
|
+
|
|
59
|
+
Custom cache instance. If `undefined`, it will create a new one.
|
|
60
|
+
|
|
61
|
+
**Note**: If you decide to use Keyv instead of the native implementation, the performance will drop by 10x. Memory leaks may occur as it doesn't provide any way to remove all the deprecated values at once.
|
|
62
|
+
|
|
63
|
+
**Tip**: [`QuickLRU`](https://github.com/sindresorhus/quick-lru) is fully compatible with the Map API, you can use it to limit the amount of cached entries. Example:
|
|
64
|
+
|
|
65
|
+
```js
|
|
66
|
+
const http = require('http');
|
|
67
|
+
const CacheableLookup = require('cacheable-lookup');
|
|
68
|
+
const QuickLRU = require('quick-lru');
|
|
69
|
+
|
|
70
|
+
const cacheable = new CacheableLookup({
|
|
71
|
+
cache: new QuickLRU({maxSize: 1000})
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
http.get('http://example.com', {lookup: cacheable.lookup}, response => {
|
|
75
|
+
// Handle the response here
|
|
76
|
+
});
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
##### options.maxTtl
|
|
80
|
+
|
|
81
|
+
Type: `number`<br>
|
|
82
|
+
Default: `Infinity`
|
|
83
|
+
|
|
84
|
+
The maximum lifetime of the entries received from the specifed DNS server (TTL in seconds).
|
|
85
|
+
|
|
86
|
+
If set to `0`, it will make a new DNS query each time.
|
|
87
|
+
|
|
88
|
+
**Pro Tip**: This shouldn't be lower than your DNS server response time in order to prevent bottlenecks. For example, if you use Cloudflare, this value should be greater than `0.01`.
|
|
89
|
+
|
|
90
|
+
##### options.fallbackDuration
|
|
91
|
+
|
|
92
|
+
Type: `number`<br>
|
|
93
|
+
Default: `3600` (1 hour)
|
|
94
|
+
|
|
95
|
+
When the DNS server responds with `ENOTFOUND` or `ENODATA` and the OS reports that the entry is available, it will use `dns.lookup(...)` directly for the requested hostnames for the specified amount of time (in seconds).
|
|
96
|
+
|
|
97
|
+
If you don't query internal hostnames (such as `localhost`, `database.local` etc.), it is strongly recommended to set this value to `0`.
|
|
98
|
+
|
|
99
|
+
##### options.errorTtl
|
|
100
|
+
|
|
101
|
+
Type: `number`<br>
|
|
102
|
+
Default: `0.15`
|
|
103
|
+
|
|
104
|
+
The time how long it needs to remember queries that threw `ENOTFOUND` or `ENODATA` (TTL in seconds).
|
|
105
|
+
|
|
106
|
+
**Note**: This option is independent, `options.maxTtl` does not affect this.
|
|
107
|
+
|
|
108
|
+
**Pro Tip**: This shouldn't be lower than your DNS server response time in order to prevent bottlenecks. For example, if you use Cloudflare, this value should be greater than `0.01`.
|
|
109
|
+
|
|
110
|
+
##### options.resolver
|
|
111
|
+
|
|
112
|
+
Type: `dns.Resolver | dns.promises.Resolver`<br>
|
|
113
|
+
Default: [`new dns.promises.Resolver()`](https://nodejs.org/api/dns.html#dns_class_dns_resolver)
|
|
114
|
+
|
|
115
|
+
An instance of [DNS Resolver](https://nodejs.org/api/dns.html#dns_class_dns_resolver) used to make DNS queries.
|
|
116
|
+
|
|
117
|
+
##### options.lookup
|
|
118
|
+
|
|
119
|
+
Type: `Function`<br>
|
|
120
|
+
Default: [`dns.lookup`](https://nodejs.org/api/dns.html#dns_dns_lookup_hostname_options_callback)
|
|
121
|
+
|
|
122
|
+
The fallback function to use when the DNS server responds with `ENOTFOUND` or `ENODATA`.
|
|
123
|
+
|
|
124
|
+
**Note**: This has no effect if the `fallbackDuration` option is less than `1`.
|
|
125
|
+
|
|
126
|
+
### Entry object
|
|
127
|
+
|
|
128
|
+
Type: `object`
|
|
129
|
+
|
|
130
|
+
#### address
|
|
131
|
+
|
|
132
|
+
Type: `string`
|
|
133
|
+
|
|
134
|
+
The IP address (can be an IPv4 or IPv6 address).
|
|
135
|
+
|
|
136
|
+
#### family
|
|
137
|
+
|
|
138
|
+
Type: `number`
|
|
139
|
+
|
|
140
|
+
The IP family (`4` or `6`).
|
|
141
|
+
|
|
142
|
+
##### expires
|
|
143
|
+
|
|
144
|
+
Type: `number`
|
|
145
|
+
|
|
146
|
+
**Note**: This is not present when falling back to `dns.lookup(...)`!
|
|
147
|
+
|
|
148
|
+
The timestamp (`Date.now() + ttl * 1000`) when the entry expires.
|
|
149
|
+
|
|
150
|
+
#### ttl
|
|
151
|
+
|
|
152
|
+
**Note**: This is not present when falling back to `dns.lookup(...)`!
|
|
153
|
+
|
|
154
|
+
The time in seconds for its lifetime.
|
|
155
|
+
|
|
156
|
+
### Entry object (callback-style)
|
|
157
|
+
|
|
158
|
+
When `options.all` is `false`, then `callback(error, address, family, expires, ttl)` is called. <br>
|
|
159
|
+
When `options.all` is `true`, then `callback(error, entries)` is called.
|
|
160
|
+
|
|
161
|
+
### CacheableLookup instance
|
|
162
|
+
|
|
163
|
+
#### servers
|
|
164
|
+
|
|
165
|
+
Type: `Array`
|
|
166
|
+
|
|
167
|
+
The DNS servers used to make queries. Can be overridden - doing so will clear the cache.
|
|
168
|
+
|
|
169
|
+
#### [lookup(hostname, options, callback)](https://nodejs.org/api/dns.html#dns_dns_lookup_hostname_options_callback)
|
|
170
|
+
|
|
171
|
+
#### lookupAsync(hostname, options)
|
|
172
|
+
|
|
173
|
+
The asynchronous version of `dns.lookup(…)`.
|
|
174
|
+
|
|
175
|
+
Returns an [entry object](#entry-object).<br>
|
|
176
|
+
If `options.all` is true, returns an array of entry objects.
|
|
177
|
+
|
|
178
|
+
##### hostname
|
|
179
|
+
|
|
180
|
+
Type: `string`
|
|
181
|
+
|
|
182
|
+
##### options
|
|
183
|
+
|
|
184
|
+
Type: `object`
|
|
185
|
+
|
|
186
|
+
The same as the [`dns.lookup(…)`](https://nodejs.org/api/dns.html#dns_dns_lookup_hostname_options_callback) options.
|
|
187
|
+
|
|
188
|
+
#### query(hostname)
|
|
189
|
+
|
|
190
|
+
An asynchronous function which returns cached DNS lookup entries.<br>
|
|
191
|
+
This is the base for `lookupAsync(hostname, options)` and `lookup(hostname, options, callback)`.
|
|
192
|
+
|
|
193
|
+
**Note**: This function has no options.
|
|
194
|
+
|
|
195
|
+
Returns an array of objects with `address`, `family`, `ttl` and `expires` properties.
|
|
196
|
+
|
|
197
|
+
#### queryAndCache(hostname)
|
|
198
|
+
|
|
199
|
+
An asynchronous function which makes two DNS queries: A and AAAA. The result is cached.<br>
|
|
200
|
+
This is used by `query(hostname)` if no entry in the database is present.
|
|
201
|
+
|
|
202
|
+
Returns an array of objects with `address`, `family`, `ttl` and `expires` properties.
|
|
203
|
+
|
|
204
|
+
#### updateInterfaceInfo()
|
|
205
|
+
|
|
206
|
+
Updates interface info. For example, you need to run this when you plug or unplug your WiFi driver.
|
|
207
|
+
|
|
208
|
+
**Note:** Running `updateInterfaceInfo()` will trigger `clear()` only on network interface removal.
|
|
209
|
+
|
|
210
|
+
#### clear(hostname?)
|
|
211
|
+
|
|
212
|
+
Clears the cache for the given hostname. If the hostname argument is not present, the entire cache will be emptied.
|
|
213
|
+
|
|
214
|
+
## High performance
|
|
215
|
+
|
|
216
|
+
Performed on:
|
|
217
|
+
- Query: `example.com`
|
|
218
|
+
- CPU: i7-7700k
|
|
219
|
+
- CPU governor: performance
|
|
220
|
+
|
|
221
|
+
```
|
|
222
|
+
CacheableLookup#lookupAsync x 2,896,251 ops/sec ±1.07% (85 runs sampled)
|
|
223
|
+
CacheableLookup#lookupAsync.all x 2,842,664 ops/sec ±1.11% (88 runs sampled)
|
|
224
|
+
CacheableLookup#lookupAsync.all.ADDRCONFIG x 2,598,283 ops/sec ±1.21% (88 runs sampled)
|
|
225
|
+
CacheableLookup#lookup x 2,565,913 ops/sec ±1.56% (85 runs sampled)
|
|
226
|
+
CacheableLookup#lookup.all x 2,609,039 ops/sec ±1.01% (86 runs sampled)
|
|
227
|
+
CacheableLookup#lookup.all.ADDRCONFIG x 2,416,242 ops/sec ±0.89% (85 runs sampled)
|
|
228
|
+
dns#lookup x 7,272 ops/sec ±0.36% (86 runs sampled)
|
|
229
|
+
dns#lookup.all x 7,249 ops/sec ±0.40% (86 runs sampled)
|
|
230
|
+
dns#lookup.all.ADDRCONFIG x 5,693 ops/sec ±0.28% (85 runs sampled)
|
|
231
|
+
Fastest is CacheableLookup#lookupAsync.all
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
## Related
|
|
235
|
+
|
|
236
|
+
- [cacheable-request](https://github.com/lukechilds/cacheable-request) - Wrap native HTTP requests with RFC compliant cache support
|
|
237
|
+
|
|
238
|
+
## License
|
|
239
|
+
|
|
240
|
+
MIT
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import {Resolver, promises as dnsPromises, lookup} from 'dns';
|
|
2
|
+
import {Agent} from 'http';
|
|
3
|
+
|
|
4
|
+
type AsyncResolver = dnsPromises.Resolver;
|
|
5
|
+
|
|
6
|
+
export type IPFamily = 4 | 6;
|
|
7
|
+
|
|
8
|
+
type TPromise<T> = T | Promise<T>;
|
|
9
|
+
|
|
10
|
+
export interface CacheInstance {
|
|
11
|
+
set(hostname: string, entries: EntryObject[], ttl: number): TPromise<void | boolean | this>;
|
|
12
|
+
get(hostname: string): TPromise<EntryObject[] | undefined>;
|
|
13
|
+
delete(hostname: string): TPromise<boolean>;
|
|
14
|
+
clear(): TPromise<void>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface Options {
|
|
18
|
+
/**
|
|
19
|
+
* Custom cache instance. If `undefined`, it will create a new one.
|
|
20
|
+
* @default undefined
|
|
21
|
+
*/
|
|
22
|
+
cache?: CacheInstance;
|
|
23
|
+
/**
|
|
24
|
+
* Limits the cache time (TTL). If set to `0`, it will make a new DNS query each time.
|
|
25
|
+
* @default Infinity
|
|
26
|
+
*/
|
|
27
|
+
maxTtl?: number;
|
|
28
|
+
/**
|
|
29
|
+
* DNS Resolver used to make DNS queries.
|
|
30
|
+
* @default new dns.promises.Resolver()
|
|
31
|
+
*/
|
|
32
|
+
resolver?: Resolver | AsyncResolver;
|
|
33
|
+
/**
|
|
34
|
+
* When the DNS server responds with `ENOTFOUND` or `ENODATA` and the OS reports that the entry is available,
|
|
35
|
+
* it will use `dns.lookup(...)` directly for the requested hostnames for the specified amount of time (in seconds).
|
|
36
|
+
*
|
|
37
|
+
* If you don't query internal hostnames (such as `localhost`, `database.local` etc.),
|
|
38
|
+
* it is strongly recommended to set this value to `0`.
|
|
39
|
+
* @default 3600
|
|
40
|
+
*/
|
|
41
|
+
fallbackDuration?: number;
|
|
42
|
+
/**
|
|
43
|
+
* The time how long it needs to remember failed queries (TTL in seconds).
|
|
44
|
+
*
|
|
45
|
+
* **Note**: This option is independent, `options.maxTtl` does not affect this.
|
|
46
|
+
* @default 0.15
|
|
47
|
+
*/
|
|
48
|
+
errorTtl?: number;
|
|
49
|
+
/**
|
|
50
|
+
* The fallback function to use when the DNS server responds with `ENOTFOUND` or `ENODATA`.
|
|
51
|
+
*
|
|
52
|
+
* **Note**: This has no effect if the `fallbackDuration` option is less than `1`.
|
|
53
|
+
* @default dns.lookup
|
|
54
|
+
*/
|
|
55
|
+
lookup?: typeof lookup;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface EntryObject {
|
|
59
|
+
/**
|
|
60
|
+
* The IP address (can be an IPv4 or IPv5 address).
|
|
61
|
+
*/
|
|
62
|
+
readonly address: string;
|
|
63
|
+
/**
|
|
64
|
+
* The IP family.
|
|
65
|
+
*/
|
|
66
|
+
readonly family: IPFamily;
|
|
67
|
+
/**
|
|
68
|
+
* The original TTL.
|
|
69
|
+
*/
|
|
70
|
+
readonly ttl?: number;
|
|
71
|
+
/**
|
|
72
|
+
* The expiration timestamp.
|
|
73
|
+
*/
|
|
74
|
+
readonly expires?: number;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface LookupOptions {
|
|
78
|
+
/**
|
|
79
|
+
* One or more supported getaddrinfo flags. Multiple flags may be passed by bitwise ORing their values.
|
|
80
|
+
*/
|
|
81
|
+
hints?: number;
|
|
82
|
+
/**
|
|
83
|
+
* The record family. Must be `4` or `6`. IPv4 and IPv6 addresses are both returned by default.
|
|
84
|
+
*/
|
|
85
|
+
family?: IPFamily;
|
|
86
|
+
/**
|
|
87
|
+
* When `true`, the callback returns all resolved addresses in an array. Otherwise, returns a single address.
|
|
88
|
+
* @default false
|
|
89
|
+
*/
|
|
90
|
+
all?: boolean;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export default class CacheableLookup {
|
|
94
|
+
constructor(options?: Options);
|
|
95
|
+
/**
|
|
96
|
+
* The DNS servers used to make queries. Can be overridden - doing so will clear the cache.
|
|
97
|
+
*/
|
|
98
|
+
servers: string[];
|
|
99
|
+
/**
|
|
100
|
+
* @see https://nodejs.org/api/dns.html#dns_dns_lookup_hostname_options_callback
|
|
101
|
+
*/
|
|
102
|
+
lookup(hostname: string, family: IPFamily, callback: (error: NodeJS.ErrnoException, address: string, family: IPFamily) => void): void;
|
|
103
|
+
lookup(hostname: string, callback: (error: NodeJS.ErrnoException, address: string, family: IPFamily) => void): void;
|
|
104
|
+
lookup(hostname: string, options: LookupOptions & {all: true}, callback: (error: NodeJS.ErrnoException, result: ReadonlyArray<EntryObject>) => void): void;
|
|
105
|
+
lookup(hostname: string, options: LookupOptions, callback: (error: NodeJS.ErrnoException, address: string, family: IPFamily) => void): void;
|
|
106
|
+
/**
|
|
107
|
+
* The asynchronous version of `dns.lookup(…)`.
|
|
108
|
+
*/
|
|
109
|
+
lookupAsync(hostname: string, options: LookupOptions & {all: true}): Promise<ReadonlyArray<EntryObject>>;
|
|
110
|
+
lookupAsync(hostname: string, options: LookupOptions): Promise<EntryObject>;
|
|
111
|
+
lookupAsync(hostname: string): Promise<EntryObject>;
|
|
112
|
+
lookupAsync(hostname: string, family: IPFamily): Promise<EntryObject>;
|
|
113
|
+
/**
|
|
114
|
+
* An asynchronous function which returns cached DNS lookup entries. This is the base for `lookupAsync(hostname, options)` and `lookup(hostname, options, callback)`.
|
|
115
|
+
*/
|
|
116
|
+
query(hostname: string): Promise<ReadonlyArray<EntryObject>>;
|
|
117
|
+
/**
|
|
118
|
+
* An asynchronous function which makes a new DNS lookup query and updates the database. This is used by `query(hostname, family)` if no entry in the database is present. Returns an array of objects with `address`, `family`, `ttl` and `expires` properties.
|
|
119
|
+
*/
|
|
120
|
+
queryAndCache(hostname: string): Promise<ReadonlyArray<EntryObject>>;
|
|
121
|
+
/**
|
|
122
|
+
* Attaches itself to an Agent instance.
|
|
123
|
+
*/
|
|
124
|
+
install(agent: Agent): void;
|
|
125
|
+
/**
|
|
126
|
+
* Removes itself from an Agent instance.
|
|
127
|
+
*/
|
|
128
|
+
uninstall(agent: Agent): void;
|
|
129
|
+
/**
|
|
130
|
+
* Updates interface info. For example, you need to run this when you plug or unplug your WiFi driver.
|
|
131
|
+
*
|
|
132
|
+
* **Note:** Running `updateInterfaceInfo()` will trigger `clear()` only on network interface removal.
|
|
133
|
+
*/
|
|
134
|
+
updateInterfaceInfo(): void;
|
|
135
|
+
/**
|
|
136
|
+
* Clears the cache for the given hostname. If the hostname argument is not present, the entire cache will be emptied.
|
|
137
|
+
*/
|
|
138
|
+
clear(hostname?: string): void;
|
|
139
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cacheable-lookup",
|
|
3
|
+
"version": "5.0.4",
|
|
4
|
+
"description": "A cacheable dns.lookup(…) that respects the TTL",
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">=10.6.0"
|
|
7
|
+
},
|
|
8
|
+
"files": [
|
|
9
|
+
"source",
|
|
10
|
+
"index.d.ts"
|
|
11
|
+
],
|
|
12
|
+
"main": "source/index.js",
|
|
13
|
+
"types": "index.d.ts",
|
|
14
|
+
"scripts": {
|
|
15
|
+
"test": "xo && nyc --reporter=lcovonly --reporter=text ava && tsd"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/szmarczak/cacheable-lookup.git"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"dns",
|
|
23
|
+
"lookup",
|
|
24
|
+
"cacheable",
|
|
25
|
+
"ttl"
|
|
26
|
+
],
|
|
27
|
+
"author": "Szymon Marczak",
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/szmarczak/cacheable-lookup/issues"
|
|
31
|
+
},
|
|
32
|
+
"homepage": "https://github.com/szmarczak/cacheable-lookup#readme",
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/keyv": "^3.1.1",
|
|
35
|
+
"ava": "^3.8.2",
|
|
36
|
+
"benchmark": "^2.1.4",
|
|
37
|
+
"coveralls": "^3.0.9",
|
|
38
|
+
"keyv": "^4.0.0",
|
|
39
|
+
"nyc": "^15.0.0",
|
|
40
|
+
"proxyquire": "^2.1.3",
|
|
41
|
+
"tsd": "^0.11.0",
|
|
42
|
+
"quick-lru": "^5.1.0",
|
|
43
|
+
"xo": "^0.25.3"
|
|
44
|
+
}
|
|
45
|
+
}
|