cdk-common 2.0.1246 → 2.0.1247
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/crypto.d.ts +17 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/fs/promises.d.ts +7 -3
- package/node_modules/@types/concat-stream/node_modules/@types/node/fs.d.ts +0 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/http2.d.ts +13 -11
- package/node_modules/@types/concat-stream/node_modules/@types/node/inspector.d.ts +110 -6
- package/node_modules/@types/concat-stream/node_modules/@types/node/module.d.ts +24 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +4 -4
- package/node_modules/@types/concat-stream/node_modules/@types/node/perf_hooks.d.ts +14 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/repl.d.ts +11 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/sqlite.d.ts +0 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/stream.d.ts +17 -6
- package/node_modules/@types/concat-stream/node_modules/@types/node/test.d.ts +16 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/timers.d.ts +0 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/url.d.ts +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/util.d.ts +6 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/worker_threads.d.ts +12 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/zlib.d.ts +8 -2
- package/node_modules/@types/concat-stream/node_modules/undici-types/agent.d.ts +4 -0
- package/node_modules/@types/concat-stream/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/@types/concat-stream/node_modules/undici-types/client.d.ts +6 -3
- package/node_modules/@types/concat-stream/node_modules/undici-types/mock-agent.d.ts +3 -0
- package/node_modules/@types/concat-stream/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/concat-stream/node_modules/undici-types/pool.d.ts +2 -0
- package/node_modules/@types/concat-stream/node_modules/undici-types/proxy-agent.d.ts +1 -0
- package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/crypto.d.ts +17 -1
- package/node_modules/@types/form-data/node_modules/@types/node/fs/promises.d.ts +7 -3
- package/node_modules/@types/form-data/node_modules/@types/node/fs.d.ts +0 -2
- package/node_modules/@types/form-data/node_modules/@types/node/http2.d.ts +13 -11
- package/node_modules/@types/form-data/node_modules/@types/node/inspector.d.ts +110 -6
- package/node_modules/@types/form-data/node_modules/@types/node/module.d.ts +24 -0
- package/node_modules/@types/form-data/node_modules/@types/node/package.json +4 -4
- package/node_modules/@types/form-data/node_modules/@types/node/perf_hooks.d.ts +14 -0
- package/node_modules/@types/form-data/node_modules/@types/node/repl.d.ts +11 -1
- package/node_modules/@types/form-data/node_modules/@types/node/sqlite.d.ts +0 -1
- package/node_modules/@types/form-data/node_modules/@types/node/stream.d.ts +17 -6
- package/node_modules/@types/form-data/node_modules/@types/node/test.d.ts +16 -1
- package/node_modules/@types/form-data/node_modules/@types/node/timers.d.ts +0 -2
- package/node_modules/@types/form-data/node_modules/@types/node/url.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/util.d.ts +6 -2
- package/node_modules/@types/form-data/node_modules/@types/node/worker_threads.d.ts +12 -0
- package/node_modules/@types/form-data/node_modules/@types/node/zlib.d.ts +8 -2
- package/node_modules/@types/form-data/node_modules/undici-types/agent.d.ts +4 -0
- package/node_modules/@types/form-data/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/@types/form-data/node_modules/undici-types/client.d.ts +6 -3
- package/node_modules/@types/form-data/node_modules/undici-types/mock-agent.d.ts +3 -0
- package/node_modules/@types/form-data/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/form-data/node_modules/undici-types/pool.d.ts +2 -0
- package/node_modules/@types/form-data/node_modules/undici-types/proxy-agent.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { URL } from 'url'
|
|
2
2
|
import Dispatcher from './dispatcher'
|
|
3
3
|
import buildConnector from './connector'
|
|
4
|
+
import TClientStats from './client-stats'
|
|
4
5
|
|
|
5
6
|
type ClientConnectOptions = Omit<Dispatcher.ConnectOptions, 'origin'>
|
|
6
7
|
|
|
@@ -15,6 +16,8 @@ export class Client extends Dispatcher {
|
|
|
15
16
|
closed: boolean
|
|
16
17
|
/** `true` after `client.destroyed()` has been called or `client.close()` has been called and the client shutdown has completed. */
|
|
17
18
|
destroyed: boolean
|
|
19
|
+
/** Aggregate stats for a Client. */
|
|
20
|
+
readonly stats: TClientStats
|
|
18
21
|
|
|
19
22
|
// Override dispatcher APIs.
|
|
20
23
|
override connect (
|
|
@@ -84,13 +87,13 @@ export declare namespace Client {
|
|
|
84
87
|
/**
|
|
85
88
|
* @description Enables support for H2 if the server has assigned bigger priority to it through ALPN negotiation.
|
|
86
89
|
* @default false
|
|
87
|
-
|
|
90
|
+
*/
|
|
88
91
|
allowH2?: boolean;
|
|
89
92
|
/**
|
|
90
93
|
* @description Dictates the maximum number of concurrent streams for a single H2 session. It can be overridden by a SETTINGS remote frame.
|
|
91
94
|
* @default 100
|
|
92
|
-
|
|
93
|
-
maxConcurrentStreams?: number
|
|
95
|
+
*/
|
|
96
|
+
maxConcurrentStreams?: number;
|
|
94
97
|
}
|
|
95
98
|
export interface SocketInfo {
|
|
96
99
|
localAddress?: string
|
|
@@ -59,6 +59,9 @@ declare namespace MockAgent {
|
|
|
59
59
|
/** Ignore trailing slashes in the path */
|
|
60
60
|
ignoreTrailingSlash?: boolean;
|
|
61
61
|
|
|
62
|
+
/** Accept URLs with search parameters using non standard syntaxes. default false */
|
|
63
|
+
acceptNonStandardSearchParameters?: boolean;
|
|
64
|
+
|
|
62
65
|
/** Enable call history. you can either call MockAgent.enableCallHistory(). default false */
|
|
63
66
|
enableCallHistory?: boolean
|
|
64
67
|
}
|
|
@@ -33,6 +33,8 @@ declare namespace Pool {
|
|
|
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
|
+
/** The amount of time before a client is removed from the pool and closed. `null` if no time limit. Default `null` */
|
|
37
|
+
clientTtl?: number | null;
|
|
36
38
|
|
|
37
39
|
interceptors?: { Pool?: readonly Dispatcher.DispatchInterceptor[] } & Client.Options['interceptors']
|
|
38
40
|
}
|