cdk-ecr-deployment 3.0.76 → 3.0.77
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 +2 -2
- package/lib/index.js +3 -3
- 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 +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +15 -15
- package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +17 -17
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +5 -78
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +17 -17
- package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +16 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +60 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +0 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +8 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +10 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +12 -12
- package/node_modules/@types/cacheable-request/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +9 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +12 -11
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +6 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +5 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/balanced-pool.d.ts +11 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/client.d.ts +12 -1
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/diagnostics-channel.d.ts +1 -2
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/dispatcher.d.ts +17 -3
- package/node_modules/@types/cacheable-request/node_modules/undici-types/eventsource.d.ts +61 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/fetch.d.ts +22 -23
- package/node_modules/@types/cacheable-request/node_modules/undici-types/handlers.d.ts +15 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/index.d.ts +6 -1
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/package.json +1 -1
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/pool.d.ts +11 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/proxy-agent.d.ts +0 -2
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/readable.d.ts +2 -3
- package/node_modules/@types/cacheable-request/node_modules/undici-types/retry-agent.d.ts +11 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/util.d.ts +31 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/webidl.d.ts +6 -1
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/websocket.d.ts +22 -1
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +15 -15
- package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +17 -17
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +5 -78
- package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +17 -17
- package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +16 -0
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +60 -2
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +0 -14
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +8 -8
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +10 -10
- package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +12 -12
- package/node_modules/@types/keyv/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +9 -9
- package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +12 -11
- package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +6 -6
- package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +5 -7
- package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/@types/keyv/node_modules/undici-types/README.md +6 -0
- package/node_modules/@types/keyv/node_modules/undici-types/agent.d.ts +31 -0
- package/node_modules/@types/keyv/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/@types/keyv/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/node_modules/@types/keyv/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/@types/keyv/node_modules/undici-types/client.d.ts +108 -0
- package/node_modules/@types/keyv/node_modules/undici-types/connector.d.ts +34 -0
- package/node_modules/@types/keyv/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/@types/keyv/node_modules/undici-types/cookies.d.ts +28 -0
- package/node_modules/@types/keyv/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/node_modules/@types/keyv/node_modules/undici-types/dispatcher.d.ts +255 -0
- package/node_modules/@types/keyv/node_modules/undici-types/errors.d.ts +128 -0
- package/node_modules/@types/keyv/node_modules/undici-types/eventsource.d.ts +61 -0
- package/node_modules/@types/keyv/node_modules/undici-types/fetch.d.ts +208 -0
- package/node_modules/@types/keyv/node_modules/undici-types/file.d.ts +39 -0
- package/node_modules/@types/keyv/node_modules/undici-types/filereader.d.ts +54 -0
- package/node_modules/@types/keyv/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/@types/keyv/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/@types/keyv/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/@types/keyv/node_modules/undici-types/handlers.d.ts +15 -0
- package/node_modules/@types/keyv/node_modules/undici-types/header.d.ts +4 -0
- package/node_modules/@types/keyv/node_modules/undici-types/index.d.ts +68 -0
- package/node_modules/@types/keyv/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/@types/keyv/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/node_modules/@types/keyv/node_modules/undici-types/mock-client.d.ts +25 -0
- package/node_modules/@types/keyv/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/@types/keyv/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/node_modules/@types/keyv/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/node_modules/@types/keyv/node_modules/undici-types/package.json +55 -0
- package/node_modules/@types/keyv/node_modules/undici-types/patch.d.ts +71 -0
- package/node_modules/@types/keyv/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/@types/keyv/node_modules/undici-types/pool.d.ts +39 -0
- package/node_modules/@types/keyv/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/node_modules/@types/keyv/node_modules/undici-types/readable.d.ts +60 -0
- package/node_modules/@types/keyv/node_modules/undici-types/retry-agent.d.ts +11 -0
- package/node_modules/@types/keyv/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/node_modules/@types/keyv/node_modules/undici-types/util.d.ts +31 -0
- package/node_modules/@types/keyv/node_modules/undici-types/webidl.d.ts +225 -0
- package/node_modules/@types/keyv/node_modules/undici-types/websocket.d.ts +152 -0
- 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 +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +15 -15
- package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +17 -17
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +5 -78
- package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +17 -17
- package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +16 -0
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +60 -2
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +0 -14
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +8 -8
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +10 -10
- package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +12 -12
- package/node_modules/@types/responselike/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +9 -9
- package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +12 -11
- package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +6 -6
- package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +5 -7
- package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/@types/responselike/node_modules/undici-types/README.md +6 -0
- package/node_modules/@types/responselike/node_modules/undici-types/agent.d.ts +31 -0
- package/node_modules/@types/responselike/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/@types/responselike/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/node_modules/@types/responselike/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/@types/responselike/node_modules/undici-types/client.d.ts +108 -0
- package/node_modules/@types/responselike/node_modules/undici-types/connector.d.ts +34 -0
- package/node_modules/@types/responselike/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/@types/responselike/node_modules/undici-types/cookies.d.ts +28 -0
- package/node_modules/@types/responselike/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/node_modules/@types/responselike/node_modules/undici-types/dispatcher.d.ts +255 -0
- package/node_modules/@types/responselike/node_modules/undici-types/errors.d.ts +128 -0
- package/node_modules/@types/responselike/node_modules/undici-types/eventsource.d.ts +61 -0
- package/node_modules/@types/responselike/node_modules/undici-types/fetch.d.ts +208 -0
- package/node_modules/@types/responselike/node_modules/undici-types/file.d.ts +39 -0
- package/node_modules/@types/responselike/node_modules/undici-types/filereader.d.ts +54 -0
- package/node_modules/@types/responselike/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/@types/responselike/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/@types/responselike/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/@types/responselike/node_modules/undici-types/handlers.d.ts +15 -0
- package/node_modules/@types/responselike/node_modules/undici-types/header.d.ts +4 -0
- package/node_modules/@types/responselike/node_modules/undici-types/index.d.ts +68 -0
- package/node_modules/@types/responselike/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/@types/responselike/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/node_modules/@types/responselike/node_modules/undici-types/mock-client.d.ts +25 -0
- package/node_modules/@types/responselike/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/@types/responselike/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/node_modules/@types/responselike/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/node_modules/@types/responselike/node_modules/undici-types/package.json +55 -0
- package/node_modules/@types/responselike/node_modules/undici-types/patch.d.ts +71 -0
- package/node_modules/@types/responselike/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/@types/responselike/node_modules/undici-types/pool.d.ts +39 -0
- package/node_modules/@types/responselike/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/node_modules/@types/responselike/node_modules/undici-types/readable.d.ts +60 -0
- package/node_modules/@types/responselike/node_modules/undici-types/retry-agent.d.ts +11 -0
- package/node_modules/@types/responselike/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/node_modules/@types/responselike/node_modules/undici-types/util.d.ts +31 -0
- package/node_modules/@types/responselike/node_modules/undici-types/webidl.d.ts +225 -0
- package/node_modules/@types/responselike/node_modules/undici-types/websocket.d.ts +152 -0
- package/package.json +3 -3
- package/node_modules/undici-types/handlers.d.ts +0 -9
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/README.md +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/agent.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/api.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/cache.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/connector.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/content-type.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/cookies.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/errors.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/file.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/filereader.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/formdata.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/global-dispatcher.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/global-origin.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/header.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/interceptors.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-agent.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-client.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-errors.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-interceptor.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-pool.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/patch.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/pool-stats.d.ts +0 -0
|
@@ -18,6 +18,9 @@ declare class Dispatcher extends EventEmitter {
|
|
|
18
18
|
/** Starts two-way communications with the requested resource. */
|
|
19
19
|
connect(options: Dispatcher.ConnectOptions): Promise<Dispatcher.ConnectData>;
|
|
20
20
|
connect(options: Dispatcher.ConnectOptions, callback: (err: Error | null, data: Dispatcher.ConnectData) => void): void;
|
|
21
|
+
/** Compose a chain of dispatchers */
|
|
22
|
+
compose(dispatchers: Dispatcher.DispatcherInterceptor[]): Dispatcher.ComposedDispatcher;
|
|
23
|
+
compose(...dispatchers: Dispatcher.DispatcherInterceptor[]): Dispatcher.ComposedDispatcher;
|
|
21
24
|
/** Performs an HTTP request. */
|
|
22
25
|
request(options: Dispatcher.RequestOptions): Promise<Dispatcher.ResponseData>;
|
|
23
26
|
request(options: Dispatcher.RequestOptions, callback: (err: Error | null, data: Dispatcher.ResponseData) => void): void;
|
|
@@ -93,6 +96,8 @@ declare class Dispatcher extends EventEmitter {
|
|
|
93
96
|
}
|
|
94
97
|
|
|
95
98
|
declare namespace Dispatcher {
|
|
99
|
+
export interface ComposedDispatcher extends Dispatcher {}
|
|
100
|
+
export type DispatcherInterceptor = (dispatch: Dispatcher['dispatch']) => Dispatcher['dispatch'];
|
|
96
101
|
export interface DispatchOptions {
|
|
97
102
|
origin?: string | URL;
|
|
98
103
|
path: string;
|
|
@@ -100,7 +105,7 @@ declare namespace Dispatcher {
|
|
|
100
105
|
/** Default: `null` */
|
|
101
106
|
body?: string | Buffer | Uint8Array | Readable | null | FormData;
|
|
102
107
|
/** Default: `null` */
|
|
103
|
-
headers?: IncomingHttpHeaders | string[] | null;
|
|
108
|
+
headers?: IncomingHttpHeaders | string[] | Iterable<[string, string | string[] | undefined]> | null;
|
|
104
109
|
/** Query string params to be embedded in the request URL. Default: `null` */
|
|
105
110
|
query?: Record<string, any>;
|
|
106
111
|
/** Whether the requests can be safely retried or not. If `false` the request won't be sent until all preceding requests in the pipeline have completed. Default: `true` if `method` is `HEAD` or `GET`. */
|
|
@@ -121,6 +126,7 @@ declare namespace Dispatcher {
|
|
|
121
126
|
expectContinue?: boolean;
|
|
122
127
|
}
|
|
123
128
|
export interface ConnectOptions {
|
|
129
|
+
origin: string | URL;
|
|
124
130
|
path: string;
|
|
125
131
|
/** Default: `null` */
|
|
126
132
|
headers?: IncomingHttpHeaders | string[] | null;
|
|
@@ -130,6 +136,8 @@ declare namespace Dispatcher {
|
|
|
130
136
|
opaque?: unknown;
|
|
131
137
|
/** Default: 0 */
|
|
132
138
|
maxRedirections?: number;
|
|
139
|
+
/** Default: false */
|
|
140
|
+
redirectionLimitReached?: boolean;
|
|
133
141
|
/** Default: `null` */
|
|
134
142
|
responseHeader?: 'raw' | null;
|
|
135
143
|
}
|
|
@@ -140,6 +148,8 @@ declare namespace Dispatcher {
|
|
|
140
148
|
signal?: AbortSignal | EventEmitter | null;
|
|
141
149
|
/** Default: 0 */
|
|
142
150
|
maxRedirections?: number;
|
|
151
|
+
/** Default: false */
|
|
152
|
+
redirectionLimitReached?: boolean;
|
|
143
153
|
/** Default: `null` */
|
|
144
154
|
onInfo?: (info: { statusCode: number, headers: Record<string, string | string[]> }) => void;
|
|
145
155
|
/** Default: `null` */
|
|
@@ -163,6 +173,8 @@ declare namespace Dispatcher {
|
|
|
163
173
|
signal?: AbortSignal | EventEmitter | null;
|
|
164
174
|
/** Default: 0 */
|
|
165
175
|
maxRedirections?: number;
|
|
176
|
+
/** Default: false */
|
|
177
|
+
redirectionLimitReached?: boolean;
|
|
166
178
|
/** Default: `null` */
|
|
167
179
|
responseHeader?: 'raw' | null;
|
|
168
180
|
}
|
|
@@ -210,8 +222,10 @@ declare namespace Dispatcher {
|
|
|
210
222
|
onError?(err: Error): void;
|
|
211
223
|
/** Invoked when request is upgraded either due to a `Upgrade` header or `CONNECT` method. */
|
|
212
224
|
onUpgrade?(statusCode: number, headers: Buffer[] | string[] | null, socket: Duplex): void;
|
|
225
|
+
/** Invoked when response is received, before headers have been read. **/
|
|
226
|
+
onResponseStarted?(): void;
|
|
213
227
|
/** Invoked when statusCode and headers have been received. May be invoked multiple times due to 1xx informational headers. */
|
|
214
|
-
onHeaders?(statusCode: number, headers: Buffer[] | string[] | null, resume: () => void): boolean;
|
|
228
|
+
onHeaders?(statusCode: number, headers: Buffer[] | string[] | null, resume: () => void, statusText: string): boolean;
|
|
215
229
|
/** Invoked when response payload data is received. */
|
|
216
230
|
onData?(chunk: Buffer): boolean;
|
|
217
231
|
/** Invoked when response payload and trailers have been received and the request has completed. */
|
|
@@ -226,7 +240,7 @@ declare namespace Dispatcher {
|
|
|
226
240
|
* @link https://fetch.spec.whatwg.org/#body-mixin
|
|
227
241
|
*/
|
|
228
242
|
interface BodyMixin {
|
|
229
|
-
readonly body?: never;
|
|
243
|
+
readonly body?: never;
|
|
230
244
|
readonly bodyUsed: boolean;
|
|
231
245
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
232
246
|
blob(): Promise<Blob>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { MessageEvent, ErrorEvent } from './websocket'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
EventTarget,
|
|
5
|
+
Event,
|
|
6
|
+
EventListenerOptions,
|
|
7
|
+
AddEventListenerOptions,
|
|
8
|
+
EventListenerOrEventListenerObject
|
|
9
|
+
} from './patch'
|
|
10
|
+
|
|
11
|
+
interface EventSourceEventMap {
|
|
12
|
+
error: ErrorEvent
|
|
13
|
+
message: MessageEvent
|
|
14
|
+
open: Event
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface EventSource extends EventTarget {
|
|
18
|
+
close(): void
|
|
19
|
+
readonly CLOSED: 2
|
|
20
|
+
readonly CONNECTING: 0
|
|
21
|
+
readonly OPEN: 1
|
|
22
|
+
onerror: (this: EventSource, ev: ErrorEvent) => any
|
|
23
|
+
onmessage: (this: EventSource, ev: MessageEvent) => any
|
|
24
|
+
onopen: (this: EventSource, ev: Event) => any
|
|
25
|
+
readonly readyState: 0 | 1 | 2
|
|
26
|
+
readonly url: string
|
|
27
|
+
readonly withCredentials: boolean
|
|
28
|
+
|
|
29
|
+
addEventListener<K extends keyof EventSourceEventMap>(
|
|
30
|
+
type: K,
|
|
31
|
+
listener: (this: EventSource, ev: EventSourceEventMap[K]) => any,
|
|
32
|
+
options?: boolean | AddEventListenerOptions
|
|
33
|
+
): void
|
|
34
|
+
addEventListener(
|
|
35
|
+
type: string,
|
|
36
|
+
listener: EventListenerOrEventListenerObject,
|
|
37
|
+
options?: boolean | AddEventListenerOptions
|
|
38
|
+
): void
|
|
39
|
+
removeEventListener<K extends keyof EventSourceEventMap>(
|
|
40
|
+
type: K,
|
|
41
|
+
listener: (this: EventSource, ev: EventSourceEventMap[K]) => any,
|
|
42
|
+
options?: boolean | EventListenerOptions
|
|
43
|
+
): void
|
|
44
|
+
removeEventListener(
|
|
45
|
+
type: string,
|
|
46
|
+
listener: EventListenerOrEventListenerObject,
|
|
47
|
+
options?: boolean | EventListenerOptions
|
|
48
|
+
): void
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export declare const EventSource: {
|
|
52
|
+
prototype: EventSource
|
|
53
|
+
new (url: string | URL, init: EventSourceInit): EventSource
|
|
54
|
+
readonly CLOSED: 2
|
|
55
|
+
readonly CONNECTING: 0
|
|
56
|
+
readonly OPEN: 1
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
interface EventSourceInit {
|
|
60
|
+
withCredentials?: boolean
|
|
61
|
+
}
|
package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/fetch.d.ts
RENAMED
|
@@ -27,12 +27,29 @@ export type BodyInit =
|
|
|
27
27
|
| null
|
|
28
28
|
| string
|
|
29
29
|
|
|
30
|
-
export
|
|
30
|
+
export class BodyMixin {
|
|
31
31
|
readonly body: ReadableStream | null
|
|
32
32
|
readonly bodyUsed: boolean
|
|
33
33
|
|
|
34
34
|
readonly arrayBuffer: () => Promise<ArrayBuffer>
|
|
35
35
|
readonly blob: () => Promise<Blob>
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated This method is not recommended for parsing multipart/form-data bodies in server environments.
|
|
38
|
+
* It is recommended to use a library such as [@fastify/busboy](https://www.npmjs.com/package/@fastify/busboy) as follows:
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```js
|
|
42
|
+
* import { Busboy } from '@fastify/busboy'
|
|
43
|
+
* import { Readable } from 'node:stream'
|
|
44
|
+
*
|
|
45
|
+
* const response = await fetch('...')
|
|
46
|
+
* const busboy = new Busboy({ headers: { 'content-type': response.headers.get('content-type') } })
|
|
47
|
+
*
|
|
48
|
+
* // handle events emitted from `busboy`
|
|
49
|
+
*
|
|
50
|
+
* Readable.fromWeb(response.body).pipe(busboy)
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
36
53
|
readonly formData: () => Promise<FormData>
|
|
37
54
|
readonly json: () => Promise<unknown>
|
|
38
55
|
readonly text: () => Promise<string>
|
|
@@ -105,10 +122,10 @@ export interface RequestInit {
|
|
|
105
122
|
method?: string
|
|
106
123
|
keepalive?: boolean
|
|
107
124
|
headers?: HeadersInit
|
|
108
|
-
body?: BodyInit
|
|
125
|
+
body?: BodyInit | null
|
|
109
126
|
redirect?: RequestRedirect
|
|
110
127
|
integrity?: string
|
|
111
|
-
signal?: AbortSignal
|
|
128
|
+
signal?: AbortSignal | null
|
|
112
129
|
credentials?: RequestCredentials
|
|
113
130
|
mode?: RequestMode
|
|
114
131
|
referrer?: string
|
|
@@ -135,7 +152,7 @@ export type RequestRedirect = 'error' | 'follow' | 'manual'
|
|
|
135
152
|
|
|
136
153
|
export type RequestDuplex = 'half'
|
|
137
154
|
|
|
138
|
-
export declare class Request
|
|
155
|
+
export declare class Request extends BodyMixin {
|
|
139
156
|
constructor (input: RequestInfo, init?: RequestInit)
|
|
140
157
|
|
|
141
158
|
readonly cache: RequestCache
|
|
@@ -153,15 +170,6 @@ export declare class Request implements BodyMixin {
|
|
|
153
170
|
readonly signal: AbortSignal
|
|
154
171
|
readonly duplex: RequestDuplex
|
|
155
172
|
|
|
156
|
-
readonly body: ReadableStream | null
|
|
157
|
-
readonly bodyUsed: boolean
|
|
158
|
-
|
|
159
|
-
readonly arrayBuffer: () => Promise<ArrayBuffer>
|
|
160
|
-
readonly blob: () => Promise<Blob>
|
|
161
|
-
readonly formData: () => Promise<FormData>
|
|
162
|
-
readonly json: () => Promise<unknown>
|
|
163
|
-
readonly text: () => Promise<string>
|
|
164
|
-
|
|
165
173
|
readonly clone: () => Request
|
|
166
174
|
}
|
|
167
175
|
|
|
@@ -181,7 +189,7 @@ export type ResponseType =
|
|
|
181
189
|
|
|
182
190
|
export type ResponseRedirectStatus = 301 | 302 | 303 | 307 | 308
|
|
183
191
|
|
|
184
|
-
export declare class Response
|
|
192
|
+
export declare class Response extends BodyMixin {
|
|
185
193
|
constructor (body?: BodyInit, init?: ResponseInit)
|
|
186
194
|
|
|
187
195
|
readonly headers: Headers
|
|
@@ -192,15 +200,6 @@ export declare class Response implements BodyMixin {
|
|
|
192
200
|
readonly url: string
|
|
193
201
|
readonly redirected: boolean
|
|
194
202
|
|
|
195
|
-
readonly body: ReadableStream | null
|
|
196
|
-
readonly bodyUsed: boolean
|
|
197
|
-
|
|
198
|
-
readonly arrayBuffer: () => Promise<ArrayBuffer>
|
|
199
|
-
readonly blob: () => Promise<Blob>
|
|
200
|
-
readonly formData: () => Promise<FormData>
|
|
201
|
-
readonly json: () => Promise<unknown>
|
|
202
|
-
readonly text: () => Promise<string>
|
|
203
|
-
|
|
204
203
|
readonly clone: () => Response
|
|
205
204
|
|
|
206
205
|
static error (): Response
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Dispatcher from "./dispatcher";
|
|
2
|
+
|
|
3
|
+
export declare class RedirectHandler implements Dispatcher.DispatchHandlers {
|
|
4
|
+
constructor(
|
|
5
|
+
dispatch: Dispatcher,
|
|
6
|
+
maxRedirections: number,
|
|
7
|
+
opts: Dispatcher.DispatchOptions,
|
|
8
|
+
handler: Dispatcher.DispatchHandlers,
|
|
9
|
+
redirectionLimitReached: boolean
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export declare class DecoratorHandler implements Dispatcher.DispatchHandlers {
|
|
14
|
+
constructor(handler: Dispatcher.DispatchHandlers);
|
|
15
|
+
}
|
package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/index.d.ts
RENAMED
|
@@ -14,9 +14,13 @@ import MockPool from'./mock-pool'
|
|
|
14
14
|
import MockAgent from'./mock-agent'
|
|
15
15
|
import mockErrors from'./mock-errors'
|
|
16
16
|
import ProxyAgent from'./proxy-agent'
|
|
17
|
+
import RetryHandler from'./retry-handler'
|
|
18
|
+
import RetryAgent from'./retry-agent'
|
|
17
19
|
import { request, pipeline, stream, connect, upgrade } from './api'
|
|
18
20
|
|
|
21
|
+
export * from './util'
|
|
19
22
|
export * from './cookies'
|
|
23
|
+
export * from './eventsource'
|
|
20
24
|
export * from './fetch'
|
|
21
25
|
export * from './file'
|
|
22
26
|
export * from './filereader'
|
|
@@ -27,7 +31,7 @@ export * from './content-type'
|
|
|
27
31
|
export * from './cache'
|
|
28
32
|
export { Interceptable } from './mock-interceptor'
|
|
29
33
|
|
|
30
|
-
export { Dispatcher, BalancedPool, Pool, Client, buildConnector, errors, Agent, request, stream, pipeline, connect, upgrade, setGlobalDispatcher, getGlobalDispatcher, setGlobalOrigin, getGlobalOrigin, MockClient, MockPool, MockAgent, mockErrors, ProxyAgent, RedirectHandler, DecoratorHandler }
|
|
34
|
+
export { Dispatcher, BalancedPool, Pool, Client, buildConnector, errors, Agent, request, stream, pipeline, connect, upgrade, setGlobalDispatcher, getGlobalDispatcher, setGlobalOrigin, getGlobalOrigin, MockClient, MockPool, MockAgent, mockErrors, ProxyAgent, RedirectHandler, DecoratorHandler, RetryHandler, RetryAgent }
|
|
31
35
|
export default Undici
|
|
32
36
|
|
|
33
37
|
declare namespace Undici {
|
|
@@ -35,6 +39,7 @@ declare namespace Undici {
|
|
|
35
39
|
var Pool: typeof import('./pool').default;
|
|
36
40
|
var RedirectHandler: typeof import ('./handlers').RedirectHandler
|
|
37
41
|
var DecoratorHandler: typeof import ('./handlers').DecoratorHandler
|
|
42
|
+
var RetryHandler: typeof import ('./retry-handler').default
|
|
38
43
|
var createRedirectInterceptor: typeof import ('./interceptors').createRedirectInterceptor
|
|
39
44
|
var BalancedPool: typeof import('./balanced-pool').default;
|
|
40
45
|
var Client: typeof import('./client').default;
|
package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/pool.d.ts
RENAMED
|
@@ -5,6 +5,8 @@ import Dispatcher from "./dispatcher";
|
|
|
5
5
|
|
|
6
6
|
export default Pool
|
|
7
7
|
|
|
8
|
+
type PoolConnectOptions = Omit<Dispatcher.ConnectOptions, "origin">;
|
|
9
|
+
|
|
8
10
|
declare class Pool extends Dispatcher {
|
|
9
11
|
constructor(url: string | URL, options?: Pool.Options)
|
|
10
12
|
/** `true` after `pool.close()` has been called. */
|
|
@@ -13,6 +15,15 @@ declare class Pool extends Dispatcher {
|
|
|
13
15
|
destroyed: boolean;
|
|
14
16
|
/** Aggregate stats for a Pool. */
|
|
15
17
|
readonly stats: TPoolStats;
|
|
18
|
+
|
|
19
|
+
// Override dispatcher APIs.
|
|
20
|
+
override connect(
|
|
21
|
+
options: PoolConnectOptions
|
|
22
|
+
): Promise<Dispatcher.ConnectData>;
|
|
23
|
+
override connect(
|
|
24
|
+
options: PoolConnectOptions,
|
|
25
|
+
callback: (err: Error | null, data: Dispatcher.ConnectData) => void
|
|
26
|
+
): void;
|
|
16
27
|
}
|
|
17
28
|
|
|
18
29
|
declare namespace Pool {
|
|
@@ -44,9 +44,8 @@ declare class BodyReadable extends Readable {
|
|
|
44
44
|
*/
|
|
45
45
|
readonly bodyUsed: boolean
|
|
46
46
|
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* If body is null, it should return null as the body
|
|
47
|
+
/**
|
|
48
|
+
* If body is null, it should return null as the body
|
|
50
49
|
*
|
|
51
50
|
* If body is not null, should return the body as a ReadableStream
|
|
52
51
|
*
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Agent from './agent'
|
|
2
|
+
import buildConnector from './connector';
|
|
3
|
+
import Dispatcher from './dispatcher'
|
|
4
|
+
import { IncomingHttpHeaders } from './header'
|
|
5
|
+
import RetryHandler from './retry-handler'
|
|
6
|
+
|
|
7
|
+
export default RetryAgent
|
|
8
|
+
|
|
9
|
+
declare class RetryAgent extends Dispatcher {
|
|
10
|
+
constructor(dispatcher: Dispatcher, options?: RetryHandler.RetryOptions)
|
|
11
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import Dispatcher from "./dispatcher";
|
|
2
|
+
|
|
3
|
+
export default RetryHandler;
|
|
4
|
+
|
|
5
|
+
declare class RetryHandler implements Dispatcher.DispatchHandlers {
|
|
6
|
+
constructor(
|
|
7
|
+
options: Dispatcher.DispatchOptions & {
|
|
8
|
+
retryOptions?: RetryHandler.RetryOptions;
|
|
9
|
+
},
|
|
10
|
+
retryHandlers: RetryHandler.RetryHandlers
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare namespace RetryHandler {
|
|
15
|
+
export type RetryState = { counter: number; };
|
|
16
|
+
|
|
17
|
+
export type RetryContext = {
|
|
18
|
+
state: RetryState;
|
|
19
|
+
opts: Dispatcher.DispatchOptions & {
|
|
20
|
+
retryOptions?: RetryHandler.RetryOptions;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type OnRetryCallback = (result?: Error | null) => void;
|
|
25
|
+
|
|
26
|
+
export type RetryCallback = (
|
|
27
|
+
err: Error,
|
|
28
|
+
context: {
|
|
29
|
+
state: RetryState;
|
|
30
|
+
opts: Dispatcher.DispatchOptions & {
|
|
31
|
+
retryOptions?: RetryHandler.RetryOptions;
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
callback: OnRetryCallback
|
|
35
|
+
) => number | null;
|
|
36
|
+
|
|
37
|
+
export interface RetryOptions {
|
|
38
|
+
/**
|
|
39
|
+
* Callback to be invoked on every retry iteration.
|
|
40
|
+
* It receives the error, current state of the retry object and the options object
|
|
41
|
+
* passed when instantiating the retry handler.
|
|
42
|
+
*
|
|
43
|
+
* @type {RetryCallback}
|
|
44
|
+
* @memberof RetryOptions
|
|
45
|
+
*/
|
|
46
|
+
retry?: RetryCallback;
|
|
47
|
+
/**
|
|
48
|
+
* Maximum number of retries to allow.
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof RetryOptions
|
|
52
|
+
* @default 5
|
|
53
|
+
*/
|
|
54
|
+
maxRetries?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Max number of milliseconds allow between retries
|
|
57
|
+
*
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof RetryOptions
|
|
60
|
+
* @default 30000
|
|
61
|
+
*/
|
|
62
|
+
maxTimeout?: number;
|
|
63
|
+
/**
|
|
64
|
+
* Initial number of milliseconds to wait before retrying for the first time.
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof RetryOptions
|
|
68
|
+
* @default 500
|
|
69
|
+
*/
|
|
70
|
+
minTimeout?: number;
|
|
71
|
+
/**
|
|
72
|
+
* Factior to multiply the timeout factor between retries.
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof RetryOptions
|
|
76
|
+
* @default 2
|
|
77
|
+
*/
|
|
78
|
+
timeoutFactor?: number;
|
|
79
|
+
/**
|
|
80
|
+
* It enables to automatically infer timeout between retries based on the `Retry-After` header.
|
|
81
|
+
*
|
|
82
|
+
* @type {boolean}
|
|
83
|
+
* @memberof RetryOptions
|
|
84
|
+
* @default true
|
|
85
|
+
*/
|
|
86
|
+
retryAfter?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* HTTP methods to retry.
|
|
89
|
+
*
|
|
90
|
+
* @type {Dispatcher.HttpMethod[]}
|
|
91
|
+
* @memberof RetryOptions
|
|
92
|
+
* @default ['GET', 'HEAD', 'OPTIONS', 'PUT', 'DELETE', 'TRACE'],
|
|
93
|
+
*/
|
|
94
|
+
methods?: Dispatcher.HttpMethod[];
|
|
95
|
+
/**
|
|
96
|
+
* Error codes to be retried. e.g. `ECONNRESET`, `ENOTFOUND`, `ETIMEDOUT`, `ECONNREFUSED`, etc.
|
|
97
|
+
*
|
|
98
|
+
* @type {string[]}
|
|
99
|
+
* @default ['ECONNRESET','ECONNREFUSED','ENOTFOUND','ENETDOWN','ENETUNREACH','EHOSTDOWN','EHOSTUNREACH','EPIPE']
|
|
100
|
+
*/
|
|
101
|
+
errorCodes?: string[];
|
|
102
|
+
/**
|
|
103
|
+
* HTTP status codes to be retried.
|
|
104
|
+
*
|
|
105
|
+
* @type {number[]}
|
|
106
|
+
* @memberof RetryOptions
|
|
107
|
+
* @default [500, 502, 503, 504, 429],
|
|
108
|
+
*/
|
|
109
|
+
statusCodes?: number[];
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export interface RetryHandlers {
|
|
113
|
+
dispatch: Dispatcher["dispatch"];
|
|
114
|
+
handler: Dispatcher.DispatchHandlers;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export namespace util {
|
|
2
|
+
/**
|
|
3
|
+
* Retrieves a header name and returns its lowercase value.
|
|
4
|
+
* @param value Header name
|
|
5
|
+
*/
|
|
6
|
+
export function headerNameToString(value: string | Buffer): string;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Receives a header object and returns the parsed value.
|
|
10
|
+
* @param headers Header object
|
|
11
|
+
*/
|
|
12
|
+
export function parseHeaders(
|
|
13
|
+
headers:
|
|
14
|
+
| Record<string, string | string[]>
|
|
15
|
+
| (Buffer | string | (Buffer | string)[])[]
|
|
16
|
+
): Record<string, string | string[]>;
|
|
17
|
+
/**
|
|
18
|
+
* Receives a header object and returns the parsed value.
|
|
19
|
+
* @param headers Header object
|
|
20
|
+
* @param obj Object to specify a proxy object. Used to assign parsed values. But, if `headers` is an object, it is not used.
|
|
21
|
+
* @returns If `headers` is an object, it is `headers`. Otherwise, if `obj` is specified, it is equivalent to `obj`.
|
|
22
|
+
*/
|
|
23
|
+
export function parseHeaders<
|
|
24
|
+
H extends
|
|
25
|
+
| Record<string, string | string[]>
|
|
26
|
+
| (Buffer | string | (Buffer | string)[])[]
|
|
27
|
+
>(
|
|
28
|
+
headers: H,
|
|
29
|
+
obj?: H extends any[] ? Record<string, string | string[]> : never
|
|
30
|
+
): Record<string, string | string[]>;
|
|
31
|
+
}
|
package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/webidl.d.ts
RENAMED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
type Converter<T> = (object: unknown) => T
|
|
7
7
|
|
|
8
|
-
type SequenceConverter<T> = (object: unknown) => T[]
|
|
8
|
+
type SequenceConverter<T> = (object: unknown, iterable?: IterableIterator<T>) => T[]
|
|
9
9
|
|
|
10
10
|
type RecordConverter<K extends string, V> = (object: unknown) => Record<K, V>
|
|
11
11
|
|
|
@@ -62,6 +62,11 @@ interface WebidlUtil {
|
|
|
62
62
|
* @see https://webidl.spec.whatwg.org/#abstract-opdef-converttoint
|
|
63
63
|
*/
|
|
64
64
|
IntegerPart (N: number): number
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Stringifies {@param V}
|
|
68
|
+
*/
|
|
69
|
+
Stringify (V: any): string
|
|
65
70
|
}
|
|
66
71
|
|
|
67
72
|
interface WebidlConverters {
|
|
@@ -17,7 +17,7 @@ export type BinaryType = 'blob' | 'arraybuffer'
|
|
|
17
17
|
|
|
18
18
|
interface WebSocketEventMap {
|
|
19
19
|
close: CloseEvent
|
|
20
|
-
error:
|
|
20
|
+
error: ErrorEvent
|
|
21
21
|
message: MessageEvent
|
|
22
22
|
open: Event
|
|
23
23
|
}
|
|
@@ -124,6 +124,27 @@ export declare const MessageEvent: {
|
|
|
124
124
|
new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
+
interface ErrorEventInit extends EventInit {
|
|
128
|
+
message?: string
|
|
129
|
+
filename?: string
|
|
130
|
+
lineno?: number
|
|
131
|
+
colno?: number
|
|
132
|
+
error?: any
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
interface ErrorEvent extends Event {
|
|
136
|
+
readonly message: string
|
|
137
|
+
readonly filename: string
|
|
138
|
+
readonly lineno: number
|
|
139
|
+
readonly colno: number
|
|
140
|
+
readonly error: any
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export declare const ErrorEvent: {
|
|
144
|
+
prototype: ErrorEvent
|
|
145
|
+
new (type: string, eventInitDict?: ErrorEventInit): ErrorEvent
|
|
146
|
+
}
|
|
147
|
+
|
|
127
148
|
interface WebSocketInit {
|
|
128
149
|
protocols?: string | string[],
|
|
129
150
|
dispatcher?: Dispatcher,
|
|
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Sun, 28 Jul 2024 10:07:16 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The `node:assert` module provides a set of assertion functions for verifying
|
|
3
3
|
* invariants.
|
|
4
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
4
|
+
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/assert.js)
|
|
5
5
|
*/
|
|
6
6
|
declare module "assert" {
|
|
7
7
|
/**
|
|
@@ -796,7 +796,7 @@ declare module "assert" {
|
|
|
796
796
|
* check that the promise is rejected.
|
|
797
797
|
*
|
|
798
798
|
* If `asyncFn` is a function and it throws an error synchronously, `assert.rejects()` will return a rejected `Promise` with that error. If the
|
|
799
|
-
* function does not return a promise, `assert.rejects()` will return a rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-
|
|
799
|
+
* function does not return a promise, `assert.rejects()` will return a rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v22.x/api/errors.html#err_invalid_return_value)
|
|
800
800
|
* error. In both cases the error handler is skipped.
|
|
801
801
|
*
|
|
802
802
|
* Besides the async nature to await the completion behaves identically to {@link throws}.
|
|
@@ -866,7 +866,7 @@ declare module "assert" {
|
|
|
866
866
|
*
|
|
867
867
|
* If `asyncFn` is a function and it throws an error synchronously, `assert.doesNotReject()` will return a rejected `Promise` with that error. If
|
|
868
868
|
* the function does not return a promise, `assert.doesNotReject()` will return a
|
|
869
|
-
* rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-
|
|
869
|
+
* rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v22.x/api/errors.html#err_invalid_return_value) error. In both cases
|
|
870
870
|
* the error handler is skipped.
|
|
871
871
|
*
|
|
872
872
|
* Using `assert.doesNotReject()` is actually not useful because there is little
|
|
@@ -929,7 +929,7 @@ declare module "assert" {
|
|
|
929
929
|
* If the values do not match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal
|
|
930
930
|
* to the value of the `message` parameter. If the `message` parameter is
|
|
931
931
|
* undefined, a default error message is assigned. If the `message` parameter is an
|
|
932
|
-
* instance of an [Error](https://nodejs.org/docs/latest-
|
|
932
|
+
* instance of an [Error](https://nodejs.org/docs/latest-v22.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
|
|
933
933
|
* @since v13.6.0, v12.16.0
|
|
934
934
|
*/
|
|
935
935
|
function match(value: string, regExp: RegExp, message?: string | Error): void;
|
|
@@ -952,7 +952,7 @@ declare module "assert" {
|
|
|
952
952
|
* If the values do match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal
|
|
953
953
|
* to the value of the `message` parameter. If the `message` parameter is
|
|
954
954
|
* undefined, a default error message is assigned. If the `message` parameter is an
|
|
955
|
-
* instance of an [Error](https://nodejs.org/docs/latest-
|
|
955
|
+
* instance of an [Error](https://nodejs.org/docs/latest-v22.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
|
|
956
956
|
* @since v13.6.0, v12.16.0
|
|
957
957
|
*/
|
|
958
958
|
function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* We strongly discourage the use of the `async_hooks` API.
|
|
3
3
|
* Other APIs that can cover most of its use cases include:
|
|
4
4
|
*
|
|
5
|
-
* * [`AsyncLocalStorage`](https://nodejs.org/docs/latest-
|
|
6
|
-
* * [`process.getActiveResourcesInfo()`](https://nodejs.org/docs/latest-
|
|
5
|
+
* * [`AsyncLocalStorage`](https://nodejs.org/docs/latest-v22.x/api/async_context.html#class-asynclocalstorage) tracks async context
|
|
6
|
+
* * [`process.getActiveResourcesInfo()`](https://nodejs.org/docs/latest-v22.x/api/process.html#processgetactiveresourcesinfo) tracks active resources
|
|
7
7
|
*
|
|
8
8
|
* The `node:async_hooks` module provides an API to track asynchronous resources.
|
|
9
9
|
* It can be accessed using:
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* import async_hooks from 'node:async_hooks';
|
|
13
13
|
* ```
|
|
14
14
|
* @experimental
|
|
15
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
15
|
+
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/async_hooks.js)
|
|
16
16
|
*/
|
|
17
17
|
declare module "async_hooks" {
|
|
18
18
|
/**
|
|
@@ -44,7 +44,7 @@ declare module "async_hooks" {
|
|
|
44
44
|
* ```
|
|
45
45
|
*
|
|
46
46
|
* Promise contexts may not get precise `executionAsyncIds` by default.
|
|
47
|
-
* See the section on [promise execution tracking](https://nodejs.org/docs/latest-
|
|
47
|
+
* See the section on [promise execution tracking](https://nodejs.org/docs/latest-v22.x/api/async_hooks.html#promise-execution-tracking).
|
|
48
48
|
* @since v8.1.0
|
|
49
49
|
* @return The `asyncId` of the current execution context. Useful to track when something calls.
|
|
50
50
|
*/
|
|
@@ -117,7 +117,7 @@ declare module "async_hooks" {
|
|
|
117
117
|
* ```
|
|
118
118
|
*
|
|
119
119
|
* Promise contexts may not get valid `triggerAsyncId`s by default. See
|
|
120
|
-
* the section on [promise execution tracking](https://nodejs.org/docs/latest-
|
|
120
|
+
* the section on [promise execution tracking](https://nodejs.org/docs/latest-v22.x/api/async_hooks.html#promise-execution-tracking).
|
|
121
121
|
* @return The ID of the resource responsible for calling the callback that is currently being executed.
|
|
122
122
|
*/
|
|
123
123
|
function triggerAsyncId(): number;
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
* // Creates a Buffer containing the Latin-1 bytes [0x74, 0xe9, 0x73, 0x74].
|
|
42
42
|
* const buf7 = Buffer.from('tést', 'latin1');
|
|
43
43
|
* ```
|
|
44
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
44
|
+
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/buffer.js)
|
|
45
45
|
*/
|
|
46
46
|
declare module "buffer" {
|
|
47
47
|
import { BinaryLike } from "node:crypto";
|