cdk-common 2.0.1201 → 2.0.1203
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +3 -3
- package/lib/main.js +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/assert.d.ts +5 -5
- package/node_modules/@types/concat-stream/node_modules/@types/node/async_hooks.d.ts +26 -6
- package/node_modules/@types/concat-stream/node_modules/@types/node/buffer.d.ts +1 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/child_process.d.ts +2 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/cluster.d.ts +15 -15
- package/node_modules/@types/concat-stream/node_modules/@types/node/console.d.ts +17 -17
- package/node_modules/@types/concat-stream/node_modules/@types/node/crypto.d.ts +35 -28
- package/node_modules/@types/concat-stream/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/dns.d.ts +16 -16
- package/node_modules/@types/concat-stream/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/events.d.ts +1 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/fs/promises.d.ts +16 -9
- package/node_modules/@types/concat-stream/node_modules/@types/node/fs.d.ts +28 -19
- package/node_modules/@types/concat-stream/node_modules/@types/node/globals.d.ts +7 -6
- package/node_modules/@types/concat-stream/node_modules/@types/node/globals.typedarray.d.ts +1 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/http.d.ts +2 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/http2.d.ts +6 -3
- package/node_modules/@types/concat-stream/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/index.d.ts +7 -5
- package/node_modules/@types/concat-stream/node_modules/@types/node/inspector.d.ts +3 -7
- package/node_modules/@types/concat-stream/node_modules/@types/node/module.d.ts +63 -29
- package/node_modules/@types/concat-stream/node_modules/@types/node/net.d.ts +2 -5
- package/node_modules/@types/concat-stream/node_modules/@types/node/os.d.ts +8 -7
- package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +13 -3
- package/node_modules/@types/concat-stream/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/perf_hooks.d.ts +8 -8
- package/node_modules/@types/concat-stream/node_modules/@types/node/process.d.ts +21 -11
- package/node_modules/@types/concat-stream/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/readline/promises.d.ts +0 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/readline.d.ts +13 -13
- package/node_modules/@types/concat-stream/node_modules/@types/node/repl.d.ts +14 -16
- package/node_modules/@types/concat-stream/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/sqlite.d.ts +182 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/stream.d.ts +8 -19
- package/node_modules/@types/concat-stream/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/test.d.ts +53 -15
- package/node_modules/@types/concat-stream/node_modules/@types/node/timers/promises.d.ts +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/tls.d.ts +2 -48
- package/node_modules/@types/concat-stream/node_modules/@types/node/trace_events.d.ts +6 -6
- package/node_modules/@types/concat-stream/node_modules/@types/node/{compatibility → ts5.1/compatibility}/disposable.d.ts +0 -4
- package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.1/index.d.ts +98 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.6/index.d.ts +9 -5
- package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.7/index.d.ts +96 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/url.d.ts +52 -19
- package/node_modules/@types/concat-stream/node_modules/@types/node/util.d.ts +16 -295
- package/node_modules/@types/concat-stream/node_modules/@types/node/v8.d.ts +29 -32
- package/node_modules/@types/concat-stream/node_modules/@types/node/vm.d.ts +17 -10
- package/node_modules/@types/concat-stream/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/worker_threads.d.ts +34 -18
- package/node_modules/@types/concat-stream/node_modules/@types/node/zlib.d.ts +5 -7
- package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/agent.d.ts +7 -7
- package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/api.d.ts +24 -24
- package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/balanced-pool.d.ts +11 -11
- package/node_modules/@types/concat-stream/node_modules/undici-types/cache-interceptor.d.ts +172 -0
- package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/client.d.ts +12 -13
- package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/cookies.d.ts +2 -0
- package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/diagnostics-channel.d.ts +10 -10
- package/node_modules/@types/concat-stream/node_modules/undici-types/dispatcher.d.ts +281 -0
- package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/env-http-proxy-agent.d.ts +2 -2
- package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/errors.d.ts +69 -47
- package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/fetch.d.ts +17 -16
- package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/formdata.d.ts +7 -7
- package/node_modules/@types/concat-stream/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/@types/concat-stream/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/@types/concat-stream/node_modules/undici-types/h2c-client.d.ts +75 -0
- package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/handlers.d.ts +7 -7
- package/node_modules/@types/concat-stream/node_modules/undici-types/header.d.ts +160 -0
- package/node_modules/@types/concat-stream/node_modules/undici-types/index.d.ts +75 -0
- package/node_modules/@types/concat-stream/node_modules/undici-types/interceptors.d.ts +34 -0
- package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/mock-agent.d.ts +33 -18
- package/node_modules/@types/concat-stream/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/mock-client.d.ts +4 -4
- package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/mock-errors.d.ts +3 -3
- package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/mock-interceptor.d.ts +19 -19
- package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/mock-pool.d.ts +4 -4
- package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/package.json +1 -1
- package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/patch.d.ts +0 -4
- package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/pool-stats.d.ts +8 -8
- package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/pool.d.ts +12 -12
- package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/proxy-agent.d.ts +4 -4
- package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/readable.d.ts +18 -15
- package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/retry-agent.d.ts +1 -1
- package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/retry-handler.d.ts +10 -10
- package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/util.d.ts +3 -3
- package/node_modules/@types/concat-stream/node_modules/undici-types/utility.d.ts +7 -0
- package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/webidl.d.ts +44 -6
- package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/websocket.d.ts +35 -1
- package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/assert.d.ts +5 -5
- package/node_modules/@types/form-data/node_modules/@types/node/async_hooks.d.ts +26 -6
- package/node_modules/@types/form-data/node_modules/@types/node/buffer.d.ts +1 -2
- package/node_modules/@types/form-data/node_modules/@types/node/child_process.d.ts +2 -2
- package/node_modules/@types/form-data/node_modules/@types/node/cluster.d.ts +15 -15
- package/node_modules/@types/form-data/node_modules/@types/node/console.d.ts +17 -17
- package/node_modules/@types/form-data/node_modules/@types/node/crypto.d.ts +35 -28
- package/node_modules/@types/form-data/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/dns.d.ts +16 -16
- package/node_modules/@types/form-data/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/events.d.ts +1 -2
- package/node_modules/@types/form-data/node_modules/@types/node/fs/promises.d.ts +16 -9
- package/node_modules/@types/form-data/node_modules/@types/node/fs.d.ts +28 -19
- package/node_modules/@types/form-data/node_modules/@types/node/globals.d.ts +7 -6
- package/node_modules/@types/form-data/node_modules/@types/node/globals.typedarray.d.ts +1 -0
- package/node_modules/@types/form-data/node_modules/@types/node/http.d.ts +2 -2
- package/node_modules/@types/form-data/node_modules/@types/node/http2.d.ts +6 -3
- package/node_modules/@types/form-data/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/index.d.ts +7 -5
- package/node_modules/@types/form-data/node_modules/@types/node/inspector.d.ts +3 -7
- package/node_modules/@types/form-data/node_modules/@types/node/module.d.ts +63 -29
- package/node_modules/@types/form-data/node_modules/@types/node/net.d.ts +2 -5
- package/node_modules/@types/form-data/node_modules/@types/node/os.d.ts +8 -7
- package/node_modules/@types/form-data/node_modules/@types/node/package.json +13 -3
- package/node_modules/@types/form-data/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/perf_hooks.d.ts +8 -8
- package/node_modules/@types/form-data/node_modules/@types/node/process.d.ts +21 -11
- package/node_modules/@types/form-data/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/readline/promises.d.ts +0 -1
- package/node_modules/@types/form-data/node_modules/@types/node/readline.d.ts +13 -13
- package/node_modules/@types/form-data/node_modules/@types/node/repl.d.ts +14 -16
- package/node_modules/@types/form-data/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/sqlite.d.ts +182 -2
- package/node_modules/@types/form-data/node_modules/@types/node/stream.d.ts +8 -19
- package/node_modules/@types/form-data/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/test.d.ts +53 -15
- package/node_modules/@types/form-data/node_modules/@types/node/timers/promises.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/tls.d.ts +2 -48
- package/node_modules/@types/form-data/node_modules/@types/node/trace_events.d.ts +6 -6
- package/node_modules/@types/form-data/node_modules/@types/node/{compatibility → ts5.1/compatibility}/disposable.d.ts +0 -4
- package/node_modules/@types/form-data/node_modules/@types/node/ts5.1/index.d.ts +98 -0
- package/node_modules/@types/form-data/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/node_modules/@types/form-data/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
- package/node_modules/@types/form-data/node_modules/@types/node/ts5.6/index.d.ts +9 -5
- package/node_modules/@types/form-data/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/node_modules/@types/form-data/node_modules/@types/node/ts5.7/index.d.ts +96 -0
- package/node_modules/@types/form-data/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/url.d.ts +52 -19
- package/node_modules/@types/form-data/node_modules/@types/node/util.d.ts +16 -295
- package/node_modules/@types/form-data/node_modules/@types/node/v8.d.ts +29 -32
- package/node_modules/@types/form-data/node_modules/@types/node/vm.d.ts +17 -10
- package/node_modules/@types/form-data/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/worker_threads.d.ts +34 -18
- package/node_modules/@types/form-data/node_modules/@types/node/zlib.d.ts +5 -7
- package/node_modules/@types/form-data/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/@types/form-data/node_modules/undici-types/README.md +6 -0
- package/node_modules/@types/form-data/node_modules/undici-types/agent.d.ts +31 -0
- package/node_modules/@types/form-data/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/@types/form-data/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/node_modules/@types/form-data/node_modules/undici-types/cache-interceptor.d.ts +172 -0
- package/node_modules/@types/form-data/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/@types/form-data/node_modules/undici-types/client.d.ts +107 -0
- package/node_modules/@types/form-data/node_modules/undici-types/connector.d.ts +34 -0
- package/node_modules/@types/form-data/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/@types/form-data/node_modules/undici-types/cookies.d.ts +30 -0
- package/node_modules/@types/form-data/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/node_modules/@types/form-data/node_modules/undici-types/dispatcher.d.ts +281 -0
- package/node_modules/@types/form-data/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/node_modules/@types/form-data/node_modules/undici-types/errors.d.ts +171 -0
- package/node_modules/@types/form-data/node_modules/undici-types/eventsource.d.ts +61 -0
- package/node_modules/@types/form-data/node_modules/undici-types/fetch.d.ts +210 -0
- package/node_modules/@types/form-data/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/@types/form-data/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/@types/form-data/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/@types/form-data/node_modules/undici-types/h2c-client.d.ts +75 -0
- package/node_modules/@types/form-data/node_modules/undici-types/handlers.d.ts +15 -0
- package/node_modules/@types/form-data/node_modules/undici-types/header.d.ts +160 -0
- package/node_modules/@types/form-data/node_modules/undici-types/index.d.ts +75 -0
- package/node_modules/@types/form-data/node_modules/undici-types/interceptors.d.ts +34 -0
- package/node_modules/@types/form-data/node_modules/undici-types/mock-agent.d.ts +65 -0
- package/node_modules/@types/form-data/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/node_modules/@types/form-data/node_modules/undici-types/mock-client.d.ts +25 -0
- package/node_modules/@types/form-data/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/@types/form-data/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/node_modules/@types/form-data/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/node_modules/@types/form-data/node_modules/undici-types/package.json +55 -0
- package/node_modules/@types/form-data/node_modules/undici-types/patch.d.ts +29 -0
- package/node_modules/@types/form-data/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/@types/form-data/node_modules/undici-types/pool.d.ts +39 -0
- package/node_modules/@types/form-data/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/node_modules/@types/form-data/node_modules/undici-types/readable.d.ts +68 -0
- package/node_modules/@types/form-data/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/node_modules/@types/form-data/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/node_modules/@types/form-data/node_modules/undici-types/util.d.ts +18 -0
- package/node_modules/@types/form-data/node_modules/undici-types/utility.d.ts +7 -0
- package/node_modules/@types/form-data/node_modules/undici-types/webidl.d.ts +266 -0
- package/node_modules/@types/form-data/node_modules/undici-types/websocket.d.ts +184 -0
- package/package.json +2 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/node_modules/@types/concat-stream/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
- package/node_modules/@types/form-data/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/node_modules/@types/form-data/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
- package/node_modules/undici-types/dispatcher.d.ts +0 -256
- package/node_modules/undici-types/file.d.ts +0 -39
- package/node_modules/undici-types/filereader.d.ts +0 -54
- package/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/node_modules/undici-types/global-origin.d.ts +0 -7
- package/node_modules/undici-types/header.d.ts +0 -4
- package/node_modules/undici-types/index.d.ts +0 -71
- package/node_modules/undici-types/interceptors.d.ts +0 -17
- /package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/LICENSE +0 -0
- /package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/README.md +0 -0
- /package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/cache.d.ts +0 -0
- /package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/connector.d.ts +0 -0
- /package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/content-type.d.ts +0 -0
- /package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/eventsource.d.ts +0 -0
package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/mock-pool.d.ts
RENAMED
|
@@ -7,13 +7,13 @@ export default MockPool
|
|
|
7
7
|
|
|
8
8
|
/** MockPool extends the Pool API and allows one to mock requests. */
|
|
9
9
|
declare class MockPool extends Pool implements Interceptable {
|
|
10
|
-
constructor(origin: string, options: MockPool.Options)
|
|
10
|
+
constructor (origin: string, options: MockPool.Options)
|
|
11
11
|
/** Intercepts any matching requests that use the same origin as this mock pool. */
|
|
12
|
-
intercept(options: MockInterceptor.Options): MockInterceptor
|
|
12
|
+
intercept (options: MockInterceptor.Options): MockInterceptor
|
|
13
13
|
/** Dispatches a mocked request. */
|
|
14
|
-
dispatch(options: Dispatcher.DispatchOptions, handlers: Dispatcher.
|
|
14
|
+
dispatch (options: Dispatcher.DispatchOptions, handlers: Dispatcher.DispatchHandler): boolean
|
|
15
15
|
/** Closes the mock pool and gracefully waits for enqueued requests to complete. */
|
|
16
|
-
close(): Promise<void
|
|
16
|
+
close (): Promise<void>
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
declare namespace MockPool {
|
package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/pool-stats.d.ts
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import Pool from
|
|
1
|
+
import Pool from './pool'
|
|
2
2
|
|
|
3
3
|
export default PoolStats
|
|
4
4
|
|
|
5
5
|
declare class PoolStats {
|
|
6
|
-
constructor(pool: Pool)
|
|
6
|
+
constructor (pool: Pool)
|
|
7
7
|
/** Number of open socket connections in this pool. */
|
|
8
|
-
connected: number
|
|
8
|
+
connected: number
|
|
9
9
|
/** Number of open socket connections in this pool that do not have an active request. */
|
|
10
|
-
free: number
|
|
10
|
+
free: number
|
|
11
11
|
/** Number of pending requests across all clients in this pool. */
|
|
12
|
-
pending: number
|
|
12
|
+
pending: number
|
|
13
13
|
/** Number of queued requests across all clients in this pool. */
|
|
14
|
-
queued: number
|
|
14
|
+
queued: number
|
|
15
15
|
/** Number of currently active requests across all clients in this pool. */
|
|
16
|
-
running: number
|
|
16
|
+
running: number
|
|
17
17
|
/** Number of active, pending, or queued requests across all clients in this pool. */
|
|
18
|
-
size: number
|
|
18
|
+
size: number
|
|
19
19
|
}
|
package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/pool.d.ts
RENAMED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import Client from './client'
|
|
2
2
|
import TPoolStats from './pool-stats'
|
|
3
3
|
import { URL } from 'url'
|
|
4
|
-
import Dispatcher from
|
|
4
|
+
import Dispatcher from './dispatcher'
|
|
5
5
|
|
|
6
6
|
export default Pool
|
|
7
7
|
|
|
8
|
-
type PoolConnectOptions = Omit<Dispatcher.ConnectOptions,
|
|
8
|
+
type PoolConnectOptions = Omit<Dispatcher.ConnectOptions, 'origin'>
|
|
9
9
|
|
|
10
10
|
declare class Pool extends Dispatcher {
|
|
11
|
-
constructor(url: string | URL, options?: Pool.Options)
|
|
11
|
+
constructor (url: string | URL, options?: Pool.Options)
|
|
12
12
|
/** `true` after `pool.close()` has been called. */
|
|
13
|
-
closed: boolean
|
|
13
|
+
closed: boolean
|
|
14
14
|
/** `true` after `pool.destroyed()` has been called or `pool.close()` has been called and the pool shutdown has completed. */
|
|
15
|
-
destroyed: boolean
|
|
15
|
+
destroyed: boolean
|
|
16
16
|
/** Aggregate stats for a Pool. */
|
|
17
|
-
readonly stats: TPoolStats
|
|
17
|
+
readonly stats: TPoolStats
|
|
18
18
|
|
|
19
19
|
// Override dispatcher APIs.
|
|
20
|
-
override connect(
|
|
20
|
+
override connect (
|
|
21
21
|
options: PoolConnectOptions
|
|
22
|
-
): Promise<Dispatcher.ConnectData
|
|
23
|
-
override connect(
|
|
22
|
+
): Promise<Dispatcher.ConnectData>
|
|
23
|
+
override connect (
|
|
24
24
|
options: PoolConnectOptions,
|
|
25
25
|
callback: (err: Error | null, data: Dispatcher.ConnectData) => void
|
|
26
|
-
): void
|
|
26
|
+
): void
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
declare namespace Pool {
|
|
30
|
-
export type PoolStats = TPoolStats
|
|
30
|
+
export type PoolStats = TPoolStats
|
|
31
31
|
export interface Options extends Client.Options {
|
|
32
32
|
/** Default: `(origin, opts) => new Client(origin, opts)`. */
|
|
33
33
|
factory?(origin: URL, opts: object): Dispatcher;
|
|
34
34
|
/** The max number of clients to create. `null` if no limit. Default `null`. */
|
|
35
35
|
connections?: number | null;
|
|
36
36
|
|
|
37
|
-
interceptors?: { Pool?: readonly Dispatcher.DispatchInterceptor[] } & Client.Options[
|
|
37
|
+
interceptors?: { Pool?: readonly Dispatcher.DispatchInterceptor[] } & Client.Options['interceptors']
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import Agent from './agent'
|
|
2
|
-
import buildConnector from './connector'
|
|
2
|
+
import buildConnector from './connector'
|
|
3
3
|
import Dispatcher from './dispatcher'
|
|
4
4
|
import { IncomingHttpHeaders } from './header'
|
|
5
5
|
|
|
6
6
|
export default ProxyAgent
|
|
7
7
|
|
|
8
8
|
declare class ProxyAgent extends Dispatcher {
|
|
9
|
-
constructor(options: ProxyAgent.Options | string)
|
|
9
|
+
constructor (options: ProxyAgent.Options | string)
|
|
10
10
|
|
|
11
|
-
dispatch(options: Agent.DispatchOptions, handler: Dispatcher.
|
|
12
|
-
close(): Promise<void
|
|
11
|
+
dispatch (options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandler): boolean
|
|
12
|
+
close (): Promise<void>
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
declare namespace ProxyAgent {
|
package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/readable.d.ts
RENAMED
|
@@ -1,45 +1,47 @@
|
|
|
1
|
-
import { Readable } from
|
|
1
|
+
import { Readable } from 'stream'
|
|
2
2
|
import { Blob } from 'buffer'
|
|
3
3
|
|
|
4
4
|
export default BodyReadable
|
|
5
5
|
|
|
6
6
|
declare class BodyReadable extends Readable {
|
|
7
|
-
constructor(
|
|
8
|
-
resume
|
|
9
|
-
abort
|
|
10
|
-
contentType?: string
|
|
11
|
-
|
|
7
|
+
constructor (opts: {
|
|
8
|
+
resume: (this: Readable, size: number) => void | null;
|
|
9
|
+
abort: () => void | null;
|
|
10
|
+
contentType?: string;
|
|
11
|
+
contentLength?: number;
|
|
12
|
+
highWaterMark?: number;
|
|
13
|
+
})
|
|
12
14
|
|
|
13
15
|
/** Consumes and returns the body as a string
|
|
14
16
|
* https://fetch.spec.whatwg.org/#dom-body-text
|
|
15
17
|
*/
|
|
16
|
-
text(): Promise<string>
|
|
18
|
+
text (): Promise<string>
|
|
17
19
|
|
|
18
20
|
/** Consumes and returns the body as a JavaScript Object
|
|
19
21
|
* https://fetch.spec.whatwg.org/#dom-body-json
|
|
20
22
|
*/
|
|
21
|
-
json(): Promise<unknown>
|
|
23
|
+
json (): Promise<unknown>
|
|
22
24
|
|
|
23
25
|
/** Consumes and returns the body as a Blob
|
|
24
26
|
* https://fetch.spec.whatwg.org/#dom-body-blob
|
|
25
27
|
*/
|
|
26
|
-
blob(): Promise<Blob>
|
|
28
|
+
blob (): Promise<Blob>
|
|
27
29
|
|
|
28
30
|
/** Consumes and returns the body as an Uint8Array
|
|
29
31
|
* https://fetch.spec.whatwg.org/#dom-body-bytes
|
|
30
32
|
*/
|
|
31
|
-
bytes(): Promise<Uint8Array>
|
|
33
|
+
bytes (): Promise<Uint8Array>
|
|
32
34
|
|
|
33
35
|
/** Consumes and returns the body as an ArrayBuffer
|
|
34
36
|
* https://fetch.spec.whatwg.org/#dom-body-arraybuffer
|
|
35
37
|
*/
|
|
36
|
-
arrayBuffer(): Promise<ArrayBuffer>
|
|
38
|
+
arrayBuffer (): Promise<ArrayBuffer>
|
|
37
39
|
|
|
38
40
|
/** Not implemented
|
|
39
41
|
*
|
|
40
42
|
* https://fetch.spec.whatwg.org/#dom-body-formdata
|
|
41
43
|
*/
|
|
42
|
-
formData(): Promise<never>
|
|
44
|
+
formData (): Promise<never>
|
|
43
45
|
|
|
44
46
|
/** Returns true if the body is not null and the body has been consumed
|
|
45
47
|
*
|
|
@@ -49,7 +51,7 @@ declare class BodyReadable extends Readable {
|
|
|
49
51
|
*/
|
|
50
52
|
readonly bodyUsed: boolean
|
|
51
53
|
|
|
52
|
-
/**
|
|
54
|
+
/**
|
|
53
55
|
* If body is null, it should return null as the body
|
|
54
56
|
*
|
|
55
57
|
* If body is not null, should return the body as a ReadableStream
|
|
@@ -59,7 +61,8 @@ declare class BodyReadable extends Readable {
|
|
|
59
61
|
readonly body: never | undefined
|
|
60
62
|
|
|
61
63
|
/** Dumps the response body by reading `limit` number of bytes.
|
|
62
|
-
* @param opts.limit Number of bytes to read (optional) - Default:
|
|
64
|
+
* @param opts.limit Number of bytes to read (optional) - Default: 131072
|
|
65
|
+
* @param opts.signal AbortSignal to cancel the operation (optional)
|
|
63
66
|
*/
|
|
64
|
-
dump(opts?: { limit: number }): Promise<void>
|
|
67
|
+
dump (opts?: { limit: number; signal?: AbortSignal }): Promise<void>
|
|
65
68
|
}
|
|
@@ -4,5 +4,5 @@ import RetryHandler from './retry-handler'
|
|
|
4
4
|
export default RetryAgent
|
|
5
5
|
|
|
6
6
|
declare class RetryAgent extends Dispatcher {
|
|
7
|
-
constructor(dispatcher: Dispatcher, options?: RetryHandler.RetryOptions)
|
|
7
|
+
constructor (dispatcher: Dispatcher, options?: RetryHandler.RetryOptions)
|
|
8
8
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import Dispatcher from
|
|
1
|
+
import Dispatcher from './dispatcher'
|
|
2
2
|
|
|
3
|
-
export default RetryHandler
|
|
3
|
+
export default RetryHandler
|
|
4
4
|
|
|
5
|
-
declare class RetryHandler implements Dispatcher.
|
|
6
|
-
constructor(
|
|
5
|
+
declare class RetryHandler implements Dispatcher.DispatchHandler {
|
|
6
|
+
constructor (
|
|
7
7
|
options: Dispatcher.DispatchOptions & {
|
|
8
8
|
retryOptions?: RetryHandler.RetryOptions;
|
|
9
9
|
},
|
|
10
10
|
retryHandlers: RetryHandler.RetryHandlers
|
|
11
|
-
)
|
|
11
|
+
)
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
declare namespace RetryHandler {
|
|
15
|
-
export type RetryState = { counter: number; }
|
|
15
|
+
export type RetryState = { counter: number; }
|
|
16
16
|
|
|
17
17
|
export type RetryContext = {
|
|
18
18
|
state: RetryState;
|
|
@@ -21,7 +21,7 @@ declare namespace RetryHandler {
|
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
export type OnRetryCallback = (result?: Error | null) => void
|
|
24
|
+
export type OnRetryCallback = (result?: Error | null) => void
|
|
25
25
|
|
|
26
26
|
export type RetryCallback = (
|
|
27
27
|
err: Error,
|
|
@@ -32,7 +32,7 @@ declare namespace RetryHandler {
|
|
|
32
32
|
};
|
|
33
33
|
},
|
|
34
34
|
callback: OnRetryCallback
|
|
35
|
-
) =>
|
|
35
|
+
) => void
|
|
36
36
|
|
|
37
37
|
export interface RetryOptions {
|
|
38
38
|
/**
|
|
@@ -110,7 +110,7 @@ declare namespace RetryHandler {
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
export interface RetryHandlers {
|
|
113
|
-
dispatch: Dispatcher[
|
|
114
|
-
handler: Dispatcher.
|
|
113
|
+
dispatch: Dispatcher['dispatch'];
|
|
114
|
+
handler: Dispatcher.DispatchHandler;
|
|
115
115
|
}
|
|
116
116
|
}
|
package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/util.d.ts
RENAMED
|
@@ -3,7 +3,7 @@ export namespace util {
|
|
|
3
3
|
* Retrieves a header name and returns its lowercase value.
|
|
4
4
|
* @param value Header name
|
|
5
5
|
*/
|
|
6
|
-
export function headerNameToString(value: string | Buffer): string
|
|
6
|
+
export function headerNameToString (value: string | Buffer): string
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Receives a header object and returns the parsed value.
|
|
@@ -11,8 +11,8 @@ export namespace util {
|
|
|
11
11
|
* @param obj Object to specify a proxy object. Used to assign parsed values.
|
|
12
12
|
* @returns If `obj` is specified, it is equivalent to `obj`.
|
|
13
13
|
*/
|
|
14
|
-
export function parseHeaders(
|
|
14
|
+
export function parseHeaders (
|
|
15
15
|
headers: (Buffer | string | (Buffer | string)[])[],
|
|
16
16
|
obj?: Record<string, string | string[]>
|
|
17
|
-
): Record<string, string | string[]
|
|
17
|
+
): Record<string, string | string[]>
|
|
18
18
|
}
|
package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/webidl.d.ts
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// These types are not exported, and are only used internally
|
|
2
|
+
import * as undici from './index'
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Take in an unknown value and return one that is of type T
|
|
@@ -34,11 +35,24 @@ interface WebidlErrors {
|
|
|
34
35
|
}): TypeError
|
|
35
36
|
}
|
|
36
37
|
|
|
38
|
+
interface WebIDLTypes {
|
|
39
|
+
UNDEFINED: 1,
|
|
40
|
+
BOOLEAN: 2,
|
|
41
|
+
STRING: 3,
|
|
42
|
+
SYMBOL: 4,
|
|
43
|
+
NUMBER: 5,
|
|
44
|
+
BIGINT: 6,
|
|
45
|
+
NULL: 7
|
|
46
|
+
OBJECT: 8
|
|
47
|
+
}
|
|
48
|
+
|
|
37
49
|
interface WebidlUtil {
|
|
38
50
|
/**
|
|
39
51
|
* @see https://tc39.es/ecma262/#sec-ecmascript-data-types-and-values
|
|
40
52
|
*/
|
|
41
|
-
Type (object: unknown):
|
|
53
|
+
Type (object: unknown): WebIDLTypes[keyof WebIDLTypes]
|
|
54
|
+
|
|
55
|
+
TypeValueToString (o: unknown):
|
|
42
56
|
| 'Undefined'
|
|
43
57
|
| 'Boolean'
|
|
44
58
|
| 'String'
|
|
@@ -48,6 +62,8 @@ interface WebidlUtil {
|
|
|
48
62
|
| 'Null'
|
|
49
63
|
| 'Object'
|
|
50
64
|
|
|
65
|
+
Types: WebIDLTypes
|
|
66
|
+
|
|
51
67
|
/**
|
|
52
68
|
* @see https://webidl.spec.whatwg.org/#abstract-opdef-converttoint
|
|
53
69
|
*/
|
|
@@ -68,6 +84,8 @@ interface WebidlUtil {
|
|
|
68
84
|
*/
|
|
69
85
|
Stringify (V: any): string
|
|
70
86
|
|
|
87
|
+
MakeTypeAssertion <I>(I: I): (arg: any) => arg is I
|
|
88
|
+
|
|
71
89
|
/**
|
|
72
90
|
* Mark a value as uncloneable for Node.js.
|
|
73
91
|
* This is only effective in some newer Node.js versions.
|
|
@@ -156,7 +174,7 @@ interface WebidlConverters {
|
|
|
156
174
|
): NodeJS.TypedArray | ArrayBufferLike | DataView
|
|
157
175
|
|
|
158
176
|
['sequence<ByteString>']: SequenceConverter<string>
|
|
159
|
-
|
|
177
|
+
|
|
160
178
|
['sequence<sequence<ByteString>>']: SequenceConverter<string[]>
|
|
161
179
|
|
|
162
180
|
['record<ByteString, ByteString>']: RecordConverter<string, string>
|
|
@@ -164,16 +182,35 @@ interface WebidlConverters {
|
|
|
164
182
|
[Key: string]: (...args: any[]) => unknown
|
|
165
183
|
}
|
|
166
184
|
|
|
185
|
+
type IsAssertion<T> = (arg: any) => arg is T
|
|
186
|
+
|
|
187
|
+
interface WebidlIs {
|
|
188
|
+
Request: IsAssertion<undici.Request>
|
|
189
|
+
Response: IsAssertion<undici.Response>
|
|
190
|
+
ReadableStream: IsAssertion<ReadableStream>
|
|
191
|
+
Blob: IsAssertion<Blob>
|
|
192
|
+
URLSearchParams: IsAssertion<URLSearchParams>
|
|
193
|
+
File: IsAssertion<File>
|
|
194
|
+
FormData: IsAssertion<undici.FormData>
|
|
195
|
+
URL: IsAssertion<URL>
|
|
196
|
+
WebSocketError: IsAssertion<undici.WebSocketError>
|
|
197
|
+
AbortSignal: IsAssertion<AbortSignal>
|
|
198
|
+
MessagePort: IsAssertion<MessagePort>
|
|
199
|
+
}
|
|
200
|
+
|
|
167
201
|
export interface Webidl {
|
|
168
202
|
errors: WebidlErrors
|
|
169
203
|
util: WebidlUtil
|
|
170
204
|
converters: WebidlConverters
|
|
205
|
+
is: WebidlIs
|
|
171
206
|
|
|
172
207
|
/**
|
|
173
208
|
* @description Performs a brand-check on {@param V} to ensure it is a
|
|
174
209
|
* {@param cls} object.
|
|
175
210
|
*/
|
|
176
|
-
brandCheck <Interface>(V: unknown, cls: Interface
|
|
211
|
+
brandCheck <Interface extends new () => unknown>(V: unknown, cls: Interface): asserts V is Interface
|
|
212
|
+
|
|
213
|
+
brandCheckMultiple <Interfaces extends (new () => unknown)[]> (list: Interfaces): (V: any) => asserts V is Interfaces[number]
|
|
177
214
|
|
|
178
215
|
/**
|
|
179
216
|
* @see https://webidl.spec.whatwg.org/#es-sequence
|
|
@@ -196,10 +233,11 @@ export interface Webidl {
|
|
|
196
233
|
* Similar to {@link Webidl.brandCheck} but allows skipping the check if third party
|
|
197
234
|
* interfaces are allowed.
|
|
198
235
|
*/
|
|
199
|
-
interfaceConverter <Interface>(
|
|
236
|
+
interfaceConverter <Interface>(typeCheck: IsAssertion<Interface>, name: string): (
|
|
200
237
|
V: unknown,
|
|
201
|
-
|
|
202
|
-
|
|
238
|
+
prefix: string,
|
|
239
|
+
argument: string
|
|
240
|
+
) => asserts V is Interface
|
|
203
241
|
|
|
204
242
|
// TODO(@KhafraDev): a type could likely be implemented that can infer the return type
|
|
205
243
|
// from the converters given?
|
package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/websocket.d.ts
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
|
|
3
3
|
import type { Blob } from 'buffer'
|
|
4
|
+
import type { ReadableStream, WritableStream } from 'stream/web'
|
|
4
5
|
import type { MessagePort } from 'worker_threads'
|
|
5
6
|
import {
|
|
6
7
|
EventInit,
|
|
@@ -22,7 +23,7 @@ interface WebSocketEventMap {
|
|
|
22
23
|
|
|
23
24
|
interface WebSocket extends EventTarget {
|
|
24
25
|
binaryType: BinaryType
|
|
25
|
-
|
|
26
|
+
|
|
26
27
|
readonly bufferedAmount: number
|
|
27
28
|
readonly extensions: string
|
|
28
29
|
|
|
@@ -148,3 +149,36 @@ interface WebSocketInit {
|
|
|
148
149
|
dispatcher?: Dispatcher,
|
|
149
150
|
headers?: HeadersInit
|
|
150
151
|
}
|
|
152
|
+
|
|
153
|
+
interface WebSocketStreamOptions {
|
|
154
|
+
protocols?: string | string[]
|
|
155
|
+
signal?: AbortSignal
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
interface WebSocketCloseInfo {
|
|
159
|
+
closeCode: number
|
|
160
|
+
reason: string
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
interface WebSocketStream {
|
|
164
|
+
closed: Promise<WebSocketCloseInfo>
|
|
165
|
+
opened: Promise<{
|
|
166
|
+
extensions: string
|
|
167
|
+
protocol: string
|
|
168
|
+
readable: ReadableStream
|
|
169
|
+
writable: WritableStream
|
|
170
|
+
}>
|
|
171
|
+
url: string
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export declare const WebSocketStream: {
|
|
175
|
+
prototype: WebSocketStream
|
|
176
|
+
new (url: string | URL, options?: WebSocketStreamOptions): WebSocketStream
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
interface WebSocketError extends Event, WebSocketCloseInfo {}
|
|
180
|
+
|
|
181
|
+
export declare const WebSocketError: {
|
|
182
|
+
prototype: WebSocketError
|
|
183
|
+
new (type: string, init?: WebSocketCloseInfo): WebSocketError
|
|
184
|
+
}
|
|
@@ -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: Tue, 10 Jun 2025 02:18:06 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/v24.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-v24.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-v24.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-v24.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-v24.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-v24.x/api/async_context.html#class-asynclocalstorage) tracks async context
|
|
6
|
+
* * [`process.getActiveResourcesInfo()`](https://nodejs.org/docs/latest-v24.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/v24.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-v24.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-v24.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;
|
|
@@ -320,6 +320,16 @@ declare module "async_hooks" {
|
|
|
320
320
|
*/
|
|
321
321
|
triggerAsyncId(): number;
|
|
322
322
|
}
|
|
323
|
+
interface AsyncLocalStorageOptions {
|
|
324
|
+
/**
|
|
325
|
+
* The default value to be used when no store is provided.
|
|
326
|
+
*/
|
|
327
|
+
defaultValue?: any;
|
|
328
|
+
/**
|
|
329
|
+
* A name for the `AsyncLocalStorage` value.
|
|
330
|
+
*/
|
|
331
|
+
name?: string | undefined;
|
|
332
|
+
}
|
|
323
333
|
/**
|
|
324
334
|
* This class creates stores that stay coherent through asynchronous operations.
|
|
325
335
|
*
|
|
@@ -358,8 +368,8 @@ declare module "async_hooks" {
|
|
|
358
368
|
* http.get('http://localhost:8080');
|
|
359
369
|
* // Prints:
|
|
360
370
|
* // 0: start
|
|
361
|
-
* // 1: start
|
|
362
371
|
* // 0: finish
|
|
372
|
+
* // 1: start
|
|
363
373
|
* // 1: finish
|
|
364
374
|
* ```
|
|
365
375
|
*
|
|
@@ -369,6 +379,11 @@ declare module "async_hooks" {
|
|
|
369
379
|
* @since v13.10.0, v12.17.0
|
|
370
380
|
*/
|
|
371
381
|
class AsyncLocalStorage<T> {
|
|
382
|
+
/**
|
|
383
|
+
* Creates a new instance of `AsyncLocalStorage`. Store is only provided within a
|
|
384
|
+
* `run()` call or after an `enterWith()` call.
|
|
385
|
+
*/
|
|
386
|
+
constructor(options?: AsyncLocalStorageOptions);
|
|
372
387
|
/**
|
|
373
388
|
* Binds the given function to the current execution context.
|
|
374
389
|
* @since v19.8.0
|
|
@@ -430,6 +445,11 @@ declare module "async_hooks" {
|
|
|
430
445
|
* @since v13.10.0, v12.17.0
|
|
431
446
|
*/
|
|
432
447
|
getStore(): T | undefined;
|
|
448
|
+
/**
|
|
449
|
+
* The name of the `AsyncLocalStorage` instance if provided.
|
|
450
|
+
* @since v24.0.0
|
|
451
|
+
*/
|
|
452
|
+
readonly name: string;
|
|
433
453
|
/**
|
|
434
454
|
* Runs a function synchronously within a context and returns its
|
|
435
455
|
* return value. The store is not accessible outside of the callback function.
|
|
@@ -46,7 +46,7 @@ type _File = typeof globalThis extends { onmessage: any; File: any } ? {} : impo
|
|
|
46
46
|
* // Creates a Buffer containing the Latin-1 bytes [0x74, 0xe9, 0x73, 0x74].
|
|
47
47
|
* const buf7 = Buffer.from('tést', 'latin1');
|
|
48
48
|
* ```
|
|
49
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
49
|
+
* @see [source](https://github.com/nodejs/node/blob/v24.x/lib/buffer.js)
|
|
50
50
|
*/
|
|
51
51
|
declare module "buffer" {
|
|
52
52
|
import { BinaryLike } from "node:crypto";
|
|
@@ -118,7 +118,6 @@ declare module "buffer" {
|
|
|
118
118
|
* Resolves a `'blob:nodedata:...'` an associated `Blob` object registered using
|
|
119
119
|
* a prior call to `URL.createObjectURL()`.
|
|
120
120
|
* @since v16.7.0
|
|
121
|
-
* @experimental
|
|
122
121
|
* @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`.
|
|
123
122
|
*/
|
|
124
123
|
export function resolveObjectURL(id: string): Blob | undefined;
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
* For certain use cases, such as automating shell scripts, the `synchronous counterparts` may be more convenient. In many cases, however,
|
|
64
64
|
* the synchronous methods can have significant impact on performance due to
|
|
65
65
|
* stalling the event loop while spawned processes complete.
|
|
66
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
66
|
+
* @see [source](https://github.com/nodejs/node/blob/v24.x/lib/child_process.js)
|
|
67
67
|
*/
|
|
68
68
|
declare module "child_process" {
|
|
69
69
|
import { ObjectEncodingOptions } from "node:fs";
|
|
@@ -458,7 +458,7 @@ declare module "child_process" {
|
|
|
458
458
|
* as the connection may have been closed during the time it takes to send the
|
|
459
459
|
* connection to the child.
|
|
460
460
|
* @since v0.5.9
|
|
461
|
-
* @param sendHandle `undefined`, or a [`net.Socket`](https://nodejs.org/docs/latest-
|
|
461
|
+
* @param sendHandle `undefined`, or a [`net.Socket`](https://nodejs.org/docs/latest-v24.x/api/net.html#class-netsocket), [`net.Server`](https://nodejs.org/docs/latest-v24.x/api/net.html#class-netserver), or [`dgram.Socket`](https://nodejs.org/docs/latest-v24.x/api/dgram.html#class-dgramsocket) object.
|
|
462
462
|
* @param options The `options` argument, if present, is an object used to parameterize the sending of certain types of handles. `options` supports the following properties:
|
|
463
463
|
*/
|
|
464
464
|
send(message: Serializable, callback?: (error: Error | null) => void): boolean;
|