cdk-ecr-deployment 0.0.73 → 0.0.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +33 -30
- 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 +1365 -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 +128 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +357 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +643 -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 +1004 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +3748 -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 +1368 -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 +2738 -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 +1477 -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 +542 -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 +798 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +1563 -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 +1365 -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 +128 -0
- package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +357 -0
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +643 -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 +1004 -0
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +3748 -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 +1368 -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 +2738 -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 +1477 -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 +542 -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 +798 -0
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +1563 -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 +1365 -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 +128 -0
- package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +357 -0
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +643 -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 +1004 -0
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +3748 -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 +1368 -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 +2738 -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 +1477 -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 +542 -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 +798 -0
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +1563 -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 +24 -21
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const EventEmitter = require('events');
|
|
4
|
+
const JSONB = require('json-buffer');
|
|
5
|
+
|
|
6
|
+
const loadStore = opts => {
|
|
7
|
+
const adapters = {
|
|
8
|
+
redis: '@keyv/redis',
|
|
9
|
+
mongodb: '@keyv/mongo',
|
|
10
|
+
mongo: '@keyv/mongo',
|
|
11
|
+
sqlite: '@keyv/sqlite',
|
|
12
|
+
postgresql: '@keyv/postgres',
|
|
13
|
+
postgres: '@keyv/postgres',
|
|
14
|
+
mysql: '@keyv/mysql'
|
|
15
|
+
};
|
|
16
|
+
if (opts.adapter || opts.uri) {
|
|
17
|
+
const adapter = opts.adapter || /^[^:]*/.exec(opts.uri)[0];
|
|
18
|
+
return new (require(adapters[adapter]))(opts);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return new Map();
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
class Keyv extends EventEmitter {
|
|
25
|
+
constructor(uri, opts) {
|
|
26
|
+
super();
|
|
27
|
+
this.opts = Object.assign(
|
|
28
|
+
{
|
|
29
|
+
namespace: 'keyv',
|
|
30
|
+
serialize: JSONB.stringify,
|
|
31
|
+
deserialize: JSONB.parse
|
|
32
|
+
},
|
|
33
|
+
(typeof uri === 'string') ? { uri } : uri,
|
|
34
|
+
opts
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
if (!this.opts.store) {
|
|
38
|
+
const adapterOpts = Object.assign({}, this.opts);
|
|
39
|
+
this.opts.store = loadStore(adapterOpts);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if (typeof this.opts.store.on === 'function') {
|
|
43
|
+
this.opts.store.on('error', err => this.emit('error', err));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
this.opts.store.namespace = this.opts.namespace;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
_getKeyPrefix(key) {
|
|
50
|
+
return `${this.opts.namespace}:${key}`;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
get(key, opts) {
|
|
54
|
+
const keyPrefixed = this._getKeyPrefix(key);
|
|
55
|
+
const { store } = this.opts;
|
|
56
|
+
return Promise.resolve()
|
|
57
|
+
.then(() => store.get(keyPrefixed))
|
|
58
|
+
.then(data => {
|
|
59
|
+
return (typeof data === 'string') ? this.opts.deserialize(data) : data;
|
|
60
|
+
})
|
|
61
|
+
.then(data => {
|
|
62
|
+
if (data === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if (typeof data.expires === 'number' && Date.now() > data.expires) {
|
|
67
|
+
this.delete(key);
|
|
68
|
+
return undefined;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return (opts && opts.raw) ? data : data.value;
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
set(key, value, ttl) {
|
|
76
|
+
const keyPrefixed = this._getKeyPrefix(key);
|
|
77
|
+
if (typeof ttl === 'undefined') {
|
|
78
|
+
ttl = this.opts.ttl;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if (ttl === 0) {
|
|
82
|
+
ttl = undefined;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
const { store } = this.opts;
|
|
86
|
+
|
|
87
|
+
return Promise.resolve()
|
|
88
|
+
.then(() => {
|
|
89
|
+
const expires = (typeof ttl === 'number') ? (Date.now() + ttl) : null;
|
|
90
|
+
value = { value, expires };
|
|
91
|
+
return this.opts.serialize(value);
|
|
92
|
+
})
|
|
93
|
+
.then(value => store.set(keyPrefixed, value, ttl))
|
|
94
|
+
.then(() => true);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
delete(key) {
|
|
98
|
+
const keyPrefixed = this._getKeyPrefix(key);
|
|
99
|
+
const { store } = this.opts;
|
|
100
|
+
return Promise.resolve()
|
|
101
|
+
.then(() => store.delete(keyPrefixed));
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
clear() {
|
|
105
|
+
const { store } = this.opts;
|
|
106
|
+
return Promise.resolve()
|
|
107
|
+
.then(() => store.clear());
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
module.exports = Keyv;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
Lowercase the keys of an object.
|
|
3
|
+
|
|
4
|
+
@returns A new object with the keys lowercased.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```
|
|
8
|
+
import lowercaseKeys = require('lowercase-keys');
|
|
9
|
+
|
|
10
|
+
lowercaseKeys({FOO: true, bAr: false});
|
|
11
|
+
//=> {foo: true, bar: false}
|
|
12
|
+
```
|
|
13
|
+
*/
|
|
14
|
+
declare function lowercaseKeys<T extends unknown>(object: {[key: string]: T}): {[key: string]: T};
|
|
15
|
+
|
|
16
|
+
export = lowercaseKeys;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "lowercase-keys",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Lowercase the keys of an object",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/lowercase-keys",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Sindre Sorhus",
|
|
9
|
+
"email": "sindresorhus@gmail.com",
|
|
10
|
+
"url": "sindresorhus.com"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=8"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"test": "xo && ava && tsd"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"index.js",
|
|
20
|
+
"index.d.ts"
|
|
21
|
+
],
|
|
22
|
+
"keywords": [
|
|
23
|
+
"object",
|
|
24
|
+
"assign",
|
|
25
|
+
"extend",
|
|
26
|
+
"properties",
|
|
27
|
+
"lowercase",
|
|
28
|
+
"lower-case",
|
|
29
|
+
"case",
|
|
30
|
+
"keys",
|
|
31
|
+
"key"
|
|
32
|
+
],
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"ava": "^1.4.1",
|
|
35
|
+
"tsd": "^0.7.2",
|
|
36
|
+
"xo": "^0.24.0"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# lowercase-keys [](https://travis-ci.org/sindresorhus/lowercase-keys)
|
|
2
|
+
|
|
3
|
+
> Lowercase the keys of an object
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
$ npm install lowercase-keys
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
const lowercaseKeys = require('lowercase-keys');
|
|
17
|
+
|
|
18
|
+
lowercaseKeys({FOO: true, bAr: false});
|
|
19
|
+
//=> {foo: true, bar: false}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## API
|
|
24
|
+
|
|
25
|
+
### lowercaseKeys(object)
|
|
26
|
+
|
|
27
|
+
Returns a new object with the keys lowercased.
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## License
|
|
31
|
+
|
|
32
|
+
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// We define these manually to ensure they're always copied
|
|
4
|
+
// even if they would move up the prototype chain
|
|
5
|
+
// https://nodejs.org/api/http.html#http_class_http_incomingmessage
|
|
6
|
+
const knownProps = [
|
|
7
|
+
'destroy',
|
|
8
|
+
'setTimeout',
|
|
9
|
+
'socket',
|
|
10
|
+
'headers',
|
|
11
|
+
'trailers',
|
|
12
|
+
'rawHeaders',
|
|
13
|
+
'statusCode',
|
|
14
|
+
'httpVersion',
|
|
15
|
+
'httpVersionMinor',
|
|
16
|
+
'httpVersionMajor',
|
|
17
|
+
'rawTrailers',
|
|
18
|
+
'statusMessage'
|
|
19
|
+
];
|
|
20
|
+
|
|
21
|
+
module.exports = (fromStream, toStream) => {
|
|
22
|
+
const fromProps = new Set(Object.keys(fromStream).concat(knownProps));
|
|
23
|
+
|
|
24
|
+
for (const prop of fromProps) {
|
|
25
|
+
// Don't overwrite existing properties
|
|
26
|
+
if (prop in toStream) {
|
|
27
|
+
continue;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
toStream[prop] = typeof fromStream[prop] === 'function' ? fromStream[prop].bind(fromStream) : fromStream[prop];
|
|
31
|
+
}
|
|
32
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mimic-response",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Mimic a Node.js HTTP response stream",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/mimic-response",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Sindre Sorhus",
|
|
9
|
+
"email": "sindresorhus@gmail.com",
|
|
10
|
+
"url": "sindresorhus.com"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=4"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"test": "xo && ava"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"index.js"
|
|
20
|
+
],
|
|
21
|
+
"keywords": [
|
|
22
|
+
"mimic",
|
|
23
|
+
"response",
|
|
24
|
+
"stream",
|
|
25
|
+
"http",
|
|
26
|
+
"https",
|
|
27
|
+
"request",
|
|
28
|
+
"get",
|
|
29
|
+
"core"
|
|
30
|
+
],
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"ava": "*",
|
|
33
|
+
"create-test-server": "^0.1.0",
|
|
34
|
+
"pify": "^3.0.0",
|
|
35
|
+
"xo": "*"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# mimic-response [](https://travis-ci.org/sindresorhus/mimic-response)
|
|
2
|
+
|
|
3
|
+
> Mimic a [Node.js HTTP response stream](https://nodejs.org/api/http.html#http_class_http_incomingmessage)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
$ npm install mimic-response
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
const stream = require('stream');
|
|
17
|
+
const mimicResponse = require('mimic-response');
|
|
18
|
+
|
|
19
|
+
const responseStream = getHttpResponseStream();
|
|
20
|
+
const myStream = new stream.PassThrough();
|
|
21
|
+
|
|
22
|
+
mimicResponse(responseStream, myStream);
|
|
23
|
+
|
|
24
|
+
console.log(myStream.statusCode);
|
|
25
|
+
//=> 200
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## API
|
|
30
|
+
|
|
31
|
+
### mimicResponse(from, to)
|
|
32
|
+
|
|
33
|
+
#### from
|
|
34
|
+
|
|
35
|
+
Type: `Stream`
|
|
36
|
+
|
|
37
|
+
[Node.js HTTP response stream.](https://nodejs.org/api/http.html#http_class_http_incomingmessage)
|
|
38
|
+
|
|
39
|
+
#### to
|
|
40
|
+
|
|
41
|
+
Type: `Stream`
|
|
42
|
+
|
|
43
|
+
Any stream.
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## Related
|
|
47
|
+
|
|
48
|
+
- [mimic-fn](https://github.com/sindresorhus/mimic-fn) - Make a function mimic another one
|
|
49
|
+
- [clone-response](https://github.com/lukechilds/clone-response) - Clone a Node.js response stream
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
## License
|
|
53
|
+
|
|
54
|
+
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
declare namespace normalizeUrl {
|
|
2
|
+
interface Options {
|
|
3
|
+
/**
|
|
4
|
+
@default 'http:'
|
|
5
|
+
*/
|
|
6
|
+
readonly defaultProtocol?: string;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
Prepends `defaultProtocol` to the URL if it's protocol-relative.
|
|
10
|
+
|
|
11
|
+
@default true
|
|
12
|
+
|
|
13
|
+
@example
|
|
14
|
+
```
|
|
15
|
+
normalizeUrl('//sindresorhus.com:80/');
|
|
16
|
+
//=> 'http://sindresorhus.com'
|
|
17
|
+
|
|
18
|
+
normalizeUrl('//sindresorhus.com:80/', {normalizeProtocol: false});
|
|
19
|
+
//=> '//sindresorhus.com'
|
|
20
|
+
```
|
|
21
|
+
*/
|
|
22
|
+
readonly normalizeProtocol?: boolean;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
Normalizes `https:` URLs to `http:`.
|
|
26
|
+
|
|
27
|
+
@default false
|
|
28
|
+
|
|
29
|
+
@example
|
|
30
|
+
```
|
|
31
|
+
normalizeUrl('https://sindresorhus.com:80/');
|
|
32
|
+
//=> 'https://sindresorhus.com'
|
|
33
|
+
|
|
34
|
+
normalizeUrl('https://sindresorhus.com:80/', {forceHttp: true});
|
|
35
|
+
//=> 'http://sindresorhus.com'
|
|
36
|
+
```
|
|
37
|
+
*/
|
|
38
|
+
readonly forceHttp?: boolean;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
Normalizes `http:` URLs to `https:`.
|
|
42
|
+
|
|
43
|
+
This option can't be used with the `forceHttp` option at the same time.
|
|
44
|
+
|
|
45
|
+
@default false
|
|
46
|
+
|
|
47
|
+
@example
|
|
48
|
+
```
|
|
49
|
+
normalizeUrl('https://sindresorhus.com:80/');
|
|
50
|
+
//=> 'https://sindresorhus.com'
|
|
51
|
+
|
|
52
|
+
normalizeUrl('http://sindresorhus.com:80/', {forceHttps: true});
|
|
53
|
+
//=> 'https://sindresorhus.com'
|
|
54
|
+
```
|
|
55
|
+
*/
|
|
56
|
+
readonly forceHttps?: boolean;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
Strip the [authentication](https://en.wikipedia.org/wiki/Basic_access_authentication) part of a URL.
|
|
60
|
+
|
|
61
|
+
@default true
|
|
62
|
+
|
|
63
|
+
@example
|
|
64
|
+
```
|
|
65
|
+
normalizeUrl('user:password@sindresorhus.com');
|
|
66
|
+
//=> 'https://sindresorhus.com'
|
|
67
|
+
|
|
68
|
+
normalizeUrl('user:password@sindresorhus.com', {stripAuthentication: false});
|
|
69
|
+
//=> 'https://user:password@sindresorhus.com'
|
|
70
|
+
```
|
|
71
|
+
*/
|
|
72
|
+
readonly stripAuthentication?: boolean;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
Removes hash from the URL.
|
|
76
|
+
|
|
77
|
+
@default false
|
|
78
|
+
|
|
79
|
+
@example
|
|
80
|
+
```
|
|
81
|
+
normalizeUrl('sindresorhus.com/about.html#contact');
|
|
82
|
+
//=> 'http://sindresorhus.com/about.html#contact'
|
|
83
|
+
|
|
84
|
+
normalizeUrl('sindresorhus.com/about.html#contact', {stripHash: true});
|
|
85
|
+
//=> 'http://sindresorhus.com/about.html'
|
|
86
|
+
```
|
|
87
|
+
*/
|
|
88
|
+
readonly stripHash?: boolean;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
Removes HTTP(S) protocol from an URL `http://sindresorhus.com` → `sindresorhus.com`.
|
|
92
|
+
|
|
93
|
+
@default false
|
|
94
|
+
|
|
95
|
+
@example
|
|
96
|
+
```
|
|
97
|
+
normalizeUrl('https://sindresorhus.com');
|
|
98
|
+
//=> 'https://sindresorhus.com'
|
|
99
|
+
|
|
100
|
+
normalizeUrl('sindresorhus.com', {stripProtocol: true});
|
|
101
|
+
//=> 'sindresorhus.com'
|
|
102
|
+
```
|
|
103
|
+
*/
|
|
104
|
+
readonly stripProtocol?: boolean;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
Strip the [text fragment](https://web.dev/text-fragments/) part of the URL
|
|
108
|
+
|
|
109
|
+
__Note:__ The text fragment will always be removed if the `stripHash` option is set to `true`, as the hash contains the text fragment.
|
|
110
|
+
|
|
111
|
+
@default true
|
|
112
|
+
|
|
113
|
+
@example
|
|
114
|
+
```
|
|
115
|
+
normalizeUrl('http://sindresorhus.com/about.html#:~:text=hello');
|
|
116
|
+
//=> 'http://sindresorhus.com/about.html#'
|
|
117
|
+
|
|
118
|
+
normalizeUrl('http://sindresorhus.com/about.html#section:~:text=hello');
|
|
119
|
+
//=> 'http://sindresorhus.com/about.html#section'
|
|
120
|
+
|
|
121
|
+
normalizeUrl('http://sindresorhus.com/about.html#:~:text=hello', {stripTextFragment: false});
|
|
122
|
+
//=> 'http://sindresorhus.com/about.html#:~:text=hello'
|
|
123
|
+
|
|
124
|
+
normalizeUrl('http://sindresorhus.com/about.html#section:~:text=hello', {stripTextFragment: false});
|
|
125
|
+
//=> 'http://sindresorhus.com/about.html#section:~:text=hello'
|
|
126
|
+
```
|
|
127
|
+
*/
|
|
128
|
+
readonly stripTextFragment?: boolean;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
Removes `www.` from the URL.
|
|
132
|
+
|
|
133
|
+
@default true
|
|
134
|
+
|
|
135
|
+
@example
|
|
136
|
+
```
|
|
137
|
+
normalizeUrl('http://www.sindresorhus.com');
|
|
138
|
+
//=> 'http://sindresorhus.com'
|
|
139
|
+
|
|
140
|
+
normalizeUrl('http://www.sindresorhus.com', {stripWWW: false});
|
|
141
|
+
//=> 'http://www.sindresorhus.com'
|
|
142
|
+
```
|
|
143
|
+
*/
|
|
144
|
+
readonly stripWWW?: boolean;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
Removes query parameters that matches any of the provided strings or regexes.
|
|
148
|
+
|
|
149
|
+
@default [/^utm_\w+/i]
|
|
150
|
+
|
|
151
|
+
@example
|
|
152
|
+
```
|
|
153
|
+
normalizeUrl('www.sindresorhus.com?foo=bar&ref=test_ref', {
|
|
154
|
+
removeQueryParameters: ['ref']
|
|
155
|
+
});
|
|
156
|
+
//=> 'http://sindresorhus.com/?foo=bar'
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
If a boolean is provided, `true` will remove all the query parameters.
|
|
160
|
+
|
|
161
|
+
```
|
|
162
|
+
normalizeUrl('www.sindresorhus.com?foo=bar', {
|
|
163
|
+
removeQueryParameters: true
|
|
164
|
+
});
|
|
165
|
+
//=> 'http://sindresorhus.com'
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
`false` will not remove any query parameter.
|
|
169
|
+
|
|
170
|
+
```
|
|
171
|
+
normalizeUrl('www.sindresorhus.com?foo=bar&utm_medium=test&ref=test_ref', {
|
|
172
|
+
removeQueryParameters: false
|
|
173
|
+
});
|
|
174
|
+
//=> 'http://www.sindresorhus.com/?foo=bar&ref=test_ref&utm_medium=test'
|
|
175
|
+
```
|
|
176
|
+
*/
|
|
177
|
+
readonly removeQueryParameters?: ReadonlyArray<RegExp | string> | boolean;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
Removes trailing slash.
|
|
181
|
+
|
|
182
|
+
__Note__: Trailing slash is always removed if the URL doesn't have a pathname unless the `removeSingleSlash` option is set to `false`.
|
|
183
|
+
|
|
184
|
+
@default true
|
|
185
|
+
|
|
186
|
+
@example
|
|
187
|
+
```
|
|
188
|
+
normalizeUrl('http://sindresorhus.com/redirect/');
|
|
189
|
+
//=> 'http://sindresorhus.com/redirect'
|
|
190
|
+
|
|
191
|
+
normalizeUrl('http://sindresorhus.com/redirect/', {removeTrailingSlash: false});
|
|
192
|
+
//=> 'http://sindresorhus.com/redirect/'
|
|
193
|
+
|
|
194
|
+
normalizeUrl('http://sindresorhus.com/', {removeTrailingSlash: false});
|
|
195
|
+
//=> 'http://sindresorhus.com'
|
|
196
|
+
```
|
|
197
|
+
*/
|
|
198
|
+
readonly removeTrailingSlash?: boolean;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
Remove a sole `/` pathname in the output. This option is independant of `removeTrailingSlash`.
|
|
202
|
+
|
|
203
|
+
@default true
|
|
204
|
+
|
|
205
|
+
@example
|
|
206
|
+
```
|
|
207
|
+
normalizeUrl('https://sindresorhus.com/');
|
|
208
|
+
//=> 'https://sindresorhus.com'
|
|
209
|
+
|
|
210
|
+
normalizeUrl('https://sindresorhus.com/', {removeSingleSlash: false});
|
|
211
|
+
//=> 'https://sindresorhus.com/'
|
|
212
|
+
```
|
|
213
|
+
*/
|
|
214
|
+
readonly removeSingleSlash?: boolean;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
Removes the default directory index file from path that matches any of the provided strings or regexes.
|
|
218
|
+
When `true`, the regex `/^index\.[a-z]+$/` is used.
|
|
219
|
+
|
|
220
|
+
@default false
|
|
221
|
+
|
|
222
|
+
@example
|
|
223
|
+
```
|
|
224
|
+
normalizeUrl('www.sindresorhus.com/foo/default.php', {
|
|
225
|
+
removeDirectoryIndex: [/^default\.[a-z]+$/]
|
|
226
|
+
});
|
|
227
|
+
//=> 'http://sindresorhus.com/foo'
|
|
228
|
+
```
|
|
229
|
+
*/
|
|
230
|
+
readonly removeDirectoryIndex?: ReadonlyArray<RegExp | string>;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
Sorts the query parameters alphabetically by key.
|
|
234
|
+
|
|
235
|
+
@default true
|
|
236
|
+
|
|
237
|
+
@example
|
|
238
|
+
```
|
|
239
|
+
normalizeUrl('www.sindresorhus.com?b=two&a=one&c=three', {
|
|
240
|
+
sortQueryParameters: false
|
|
241
|
+
});
|
|
242
|
+
//=> 'http://sindresorhus.com/?b=two&a=one&c=three'
|
|
243
|
+
```
|
|
244
|
+
*/
|
|
245
|
+
readonly sortQueryParameters?: boolean;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
[Normalize](https://en.wikipedia.org/wiki/URL_normalization) a URL.
|
|
251
|
+
|
|
252
|
+
@param url - URL to normalize, including [data URL](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs).
|
|
253
|
+
|
|
254
|
+
@example
|
|
255
|
+
```
|
|
256
|
+
import normalizeUrl = require('normalize-url');
|
|
257
|
+
|
|
258
|
+
normalizeUrl('sindresorhus.com');
|
|
259
|
+
//=> 'http://sindresorhus.com'
|
|
260
|
+
|
|
261
|
+
normalizeUrl('//www.sindresorhus.com:80/../baz?b=bar&a=foo');
|
|
262
|
+
//=> 'http://sindresorhus.com/baz?a=foo&b=bar'
|
|
263
|
+
```
|
|
264
|
+
*/
|
|
265
|
+
declare function normalizeUrl(url: string, options?: normalizeUrl.Options): string;
|
|
266
|
+
|
|
267
|
+
export = normalizeUrl;
|