cdk-common 2.0.348 → 2.0.350

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.
Files changed (27) hide show
  1. package/.jsii +9 -3
  2. package/API.md +5 -0
  3. package/lib/main.js +1 -1
  4. package/lib/managed-policies.d.ts +1 -0
  5. package/lib/managed-policies.js +2 -1
  6. package/node_modules/@aws-cdk/assert/package.json +8 -8
  7. package/node_modules/@aws-cdk/cfnspec/CHANGELOG.md +2025 -0
  8. package/node_modules/@aws-cdk/cfnspec/cfn.version +1 -1
  9. package/node_modules/@aws-cdk/cfnspec/package.json +3 -3
  10. package/node_modules/@aws-cdk/cfnspec/spec/specification.json +8018 -572
  11. package/node_modules/@aws-cdk/cfnspec/tsconfig.tsbuildinfo +18 -16
  12. package/node_modules/@aws-cdk/cloudformation-diff/package.json +5 -5
  13. package/node_modules/@types/concat-stream/node_modules/@types/node/README.md +2 -2
  14. package/node_modules/@types/concat-stream/node_modules/@types/node/crypto.d.ts +1 -1
  15. package/node_modules/@types/concat-stream/node_modules/@types/node/http.d.ts +61 -24
  16. package/node_modules/@types/concat-stream/node_modules/@types/node/index.d.ts +1 -0
  17. package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +7 -2
  18. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/crypto.d.ts +1 -1
  19. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/http.d.ts +61 -24
  20. package/node_modules/@types/form-data/node_modules/@types/node/README.md +2 -2
  21. package/node_modules/@types/form-data/node_modules/@types/node/crypto.d.ts +1 -1
  22. package/node_modules/@types/form-data/node_modules/@types/node/http.d.ts +61 -24
  23. package/node_modules/@types/form-data/node_modules/@types/node/index.d.ts +1 -0
  24. package/node_modules/@types/form-data/node_modules/@types/node/package.json +7 -2
  25. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/crypto.d.ts +1 -1
  26. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/http.d.ts +61 -24
  27. package/package.json +3 -3
@@ -317,8 +317,8 @@
317
317
  "affectsGlobalScope": false
318
318
  },
319
319
  "../../../node_modules/@types/node/ts4.8/crypto.d.ts": {
320
- "version": "afcc1c426b76db7ec80e563d4fb0ba9e6bcc6e63c2d7e9342e649dc56d26347f",
321
- "signature": "afcc1c426b76db7ec80e563d4fb0ba9e6bcc6e63c2d7e9342e649dc56d26347f",
320
+ "version": "dab86d9604fe40854ef3c0a6f9e8948873dc3509213418e5e457f410fd11200f",
321
+ "signature": "dab86d9604fe40854ef3c0a6f9e8948873dc3509213418e5e457f410fd11200f",
322
322
  "affectsGlobalScope": false
323
323
  },
324
324
  "../../../node_modules/@types/node/ts4.8/dgram.d.ts": {
@@ -327,8 +327,8 @@
327
327
  "affectsGlobalScope": false
328
328
  },
329
329
  "../../../node_modules/@types/node/ts4.8/diagnostics_channel.d.ts": {
330
- "version": "75ecef44f126e2ae018b4abbd85b6e8a2e2ba1638ebec56cc64274643ce3567b",
331
- "signature": "75ecef44f126e2ae018b4abbd85b6e8a2e2ba1638ebec56cc64274643ce3567b",
330
+ "version": "489532ff54b714f0e0939947a1c560e516d3ae93d51d639ab02e907a0e950114",
331
+ "signature": "489532ff54b714f0e0939947a1c560e516d3ae93d51d639ab02e907a0e950114",
332
332
  "affectsGlobalScope": false
333
333
  },
334
334
  "../../../node_modules/@types/node/ts4.8/dns.d.ts": {
@@ -367,8 +367,8 @@
367
367
  "affectsGlobalScope": false
368
368
  },
369
369
  "../../../node_modules/@types/node/ts4.8/http.d.ts": {
370
- "version": "b01a80007e448d035a16c74b5c95a5405b2e81b12fabcf18b75aa9eb9ef28990",
371
- "signature": "b01a80007e448d035a16c74b5c95a5405b2e81b12fabcf18b75aa9eb9ef28990",
370
+ "version": "5eec82ac21f84d83586c59a16b9b8502d34505d1393393556682fe7e7fde9ef2",
371
+ "signature": "5eec82ac21f84d83586c59a16b9b8502d34505d1393393556682fe7e7fde9ef2",
372
372
  "affectsGlobalScope": false
373
373
  },
374
374
  "../../../node_modules/@types/node/ts4.8/http2.d.ts": {
@@ -477,8 +477,8 @@
477
477
  "affectsGlobalScope": true
478
478
  },
479
479
  "../../../node_modules/@types/node/ts4.8/timers/promises.d.ts": {
480
- "version": "664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980",
481
- "signature": "664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980",
480
+ "version": "e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6",
481
+ "signature": "e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6",
482
482
  "affectsGlobalScope": false
483
483
  },
484
484
  "../../../node_modules/@types/node/ts4.8/tls.d.ts": {
@@ -1151,8 +1151,8 @@
1151
1151
  "affectsGlobalScope": false
1152
1152
  },
1153
1153
  "../../../node_modules/@types/aws-lambda/trigger/sqs.d.ts": {
1154
- "version": "fffea7dd8984cbf4513fe24d9923e59bea0eda7dd67fc8af725f64b949c6cc90",
1155
- "signature": "fffea7dd8984cbf4513fe24d9923e59bea0eda7dd67fc8af725f64b949c6cc90",
1154
+ "version": "fb8aebad66729980040dcf5ec38b723a4abb2336db77e51b1d642f73a81291b4",
1155
+ "signature": "fb8aebad66729980040dcf5ec38b723a4abb2336db77e51b1d642f73a81291b4",
1156
1156
  "affectsGlobalScope": false
1157
1157
  },
1158
1158
  "../../../node_modules/@types/aws-lambda/trigger/msk.d.ts": {
@@ -1181,8 +1181,8 @@
1181
1181
  "affectsGlobalScope": false
1182
1182
  },
1183
1183
  "../../../node_modules/@babel/types/lib/index.d.ts": {
1184
- "version": "b2f7fe7faccd7324583435ad92f8cb26a4ccc85de336839cf78afd6006f1d4bc",
1185
- "signature": "b2f7fe7faccd7324583435ad92f8cb26a4ccc85de336839cf78afd6006f1d4bc",
1184
+ "version": "f4617bbd5403ec5b058db53b242dcb1421952e2652bd5c80abf6a1c4ea5656d6",
1185
+ "signature": "f4617bbd5403ec5b058db53b242dcb1421952e2652bd5c80abf6a1c4ea5656d6",
1186
1186
  "affectsGlobalScope": false
1187
1187
  },
1188
1188
  "../../../node_modules/@types/babel__generator/index.d.ts": {
@@ -1191,8 +1191,8 @@
1191
1191
  "affectsGlobalScope": false
1192
1192
  },
1193
1193
  "../../../node_modules/@babel/parser/typings/babel-parser.d.ts": {
1194
- "version": "7463cb4f8b66b66d5468fc84f5446f48b8402cdeec6bfce1f0b2ab383992d3b5",
1195
- "signature": "7463cb4f8b66b66d5468fc84f5446f48b8402cdeec6bfce1f0b2ab383992d3b5",
1194
+ "version": "230d323ef7f2ffadfc0ceae494492c4d2faa2b4eaec07a4b71424d084b97ebb8",
1195
+ "signature": "230d323ef7f2ffadfc0ceae494492c4d2faa2b4eaec07a4b71424d084b97ebb8",
1196
1196
  "affectsGlobalScope": false
1197
1197
  },
1198
1198
  "../../../node_modules/@types/babel__template/index.d.ts": {
@@ -1321,8 +1321,8 @@
1321
1321
  "affectsGlobalScope": false
1322
1322
  },
1323
1323
  "../../../node_modules/@types/lodash/ts4.2/common/array.d.ts": {
1324
- "version": "fe4a2042d087990ebfc7dc0142d5aaf5a152e4baea86b45f283f103ec1e871ea",
1325
- "signature": "fe4a2042d087990ebfc7dc0142d5aaf5a152e4baea86b45f283f103ec1e871ea",
1324
+ "version": "458111fc89d11d2151277c822dfdc1a28fa5b6b2493cf942e37d4cd0a6ee5f22",
1325
+ "signature": "458111fc89d11d2151277c822dfdc1a28fa5b6b2493cf942e37d4cd0a6ee5f22",
1326
1326
  "affectsGlobalScope": false
1327
1327
  },
1328
1328
  "../../../node_modules/@types/lodash/ts4.2/common/collection.d.ts": {
@@ -2277,6 +2277,7 @@
2277
2277
  "../../../node_modules/@types/node/ts4.8/util.d.ts"
2278
2278
  ],
2279
2279
  "../../../node_modules/@types/node/ts4.8/http.d.ts": [
2280
+ "../../../node_modules/@types/node/ts4.8/dns.d.ts",
2280
2281
  "../../../node_modules/@types/node/ts4.8/http.d.ts",
2281
2282
  "../../../node_modules/@types/node/ts4.8/net.d.ts",
2282
2283
  "../../../node_modules/@types/node/ts4.8/stream.d.ts",
@@ -3927,6 +3928,7 @@
3927
3928
  "../../../node_modules/@types/node/ts4.8/util.d.ts"
3928
3929
  ],
3929
3930
  "../../../node_modules/@types/node/ts4.8/http.d.ts": [
3931
+ "../../../node_modules/@types/node/ts4.8/dns.d.ts",
3930
3932
  "../../../node_modules/@types/node/ts4.8/http.d.ts",
3931
3933
  "../../../node_modules/@types/node/ts4.8/net.d.ts",
3932
3934
  "../../../node_modules/@types/node/ts4.8/stream.d.ts",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-cdk/cloudformation-diff",
3
- "version": "2.54.0",
3
+ "version": "2.55.0",
4
4
  "description": "Utilities to diff CDK stacks against CloudFormation templates",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -23,8 +23,8 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@aws-cdk/cfnspec": "2.54.0",
27
- "@types/node": "^14.18.33",
26
+ "@aws-cdk/cfnspec": "2.55.0",
27
+ "@types/node": "^14.18.34",
28
28
  "chalk": "^4",
29
29
  "diff": "^5.1.0",
30
30
  "fast-deep-equal": "^3.1.3",
@@ -32,8 +32,8 @@
32
32
  "table": "^6.8.1"
33
33
  },
34
34
  "devDependencies": {
35
- "@aws-cdk/cdk-build-tools": "2.54.0",
36
- "@aws-cdk/pkglint": "2.54.0",
35
+ "@aws-cdk/cdk-build-tools": "2.55.0",
36
+ "@aws-cdk/pkglint": "2.55.0",
37
37
  "@types/jest": "^27.5.2",
38
38
  "@types/string-width": "^4.0.1",
39
39
  "fast-check": "^2.25.0",
@@ -8,9 +8,9 @@ This package contains type definitions for Node.js (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: Sat, 10 Dec 2022 19:03:04 GMT
11
+ * Last updated: Tue, 13 Dec 2022 21:03:28 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
14
14
 
15
15
  # Credits
16
- These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), [wafuwafu13](https://github.com/wafuwafu13), and [Matteo Collina](https://github.com/mcollina).
16
+ These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), [wafuwafu13](https://github.com/wafuwafu13), [Matteo Collina](https://github.com/mcollina), and [Dmitry Semigradsky](https://github.com/Semigradsky).
@@ -2357,7 +2357,7 @@ declare module 'crypto' {
2357
2357
  /** @deprecated since v10.0.0 */
2358
2358
  const DEFAULT_ENCODING: BufferEncoding;
2359
2359
  type KeyType = 'rsa' | 'rsa-pss' | 'dsa' | 'ec' | 'ed25519' | 'ed448' | 'x25519' | 'x448';
2360
- type KeyFormat = 'pem' | 'der';
2360
+ type KeyFormat = 'pem' | 'der' | 'jwk';
2361
2361
  interface BasePrivateKeyEncodingOptions<T extends KeyFormat> {
2362
2362
  format: T;
2363
2363
  cipher?: string | undefined;
@@ -43,6 +43,7 @@ declare module 'http' {
43
43
  import * as stream from 'node:stream';
44
44
  import { URL } from 'node:url';
45
45
  import { TcpSocketConnectOpts, Socket, Server as NetServer, LookupFunction } from 'node:net';
46
+ import { LookupOptions } from 'node:dns';
46
47
  // incoming headers will never contain number
47
48
  interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
48
49
  accept?: string | undefined;
@@ -113,56 +114,87 @@ declare module 'http' {
113
114
  type OutgoingHttpHeader = number | string | string[];
114
115
  interface OutgoingHttpHeaders extends NodeJS.Dict<OutgoingHttpHeader> {}
115
116
  interface ClientRequestArgs {
116
- signal?: AbortSignal | undefined;
117
- protocol?: string | null | undefined;
117
+ _defaultAgent?: Agent | undefined;
118
+ agent?: Agent | boolean | undefined;
119
+ auth?: string | null | undefined;
120
+ // https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278
121
+ createConnection?:
122
+ | ((options: ClientRequestArgs, oncreate: (err: Error, socket: Socket) => void) => Socket)
123
+ | undefined;
124
+ defaultPort?: number | string | undefined;
125
+ family?: number | undefined;
126
+ headers?: OutgoingHttpHeaders | undefined;
127
+ hints?: LookupOptions['hints'];
118
128
  host?: string | null | undefined;
119
129
  hostname?: string | null | undefined;
120
- family?: number | undefined;
121
- port?: number | string | null | undefined;
122
- defaultPort?: number | string | undefined;
130
+ insecureHTTPParser?: boolean | undefined;
123
131
  localAddress?: string | undefined;
124
- socketPath?: string | undefined;
132
+ localPort?: number | undefined;
133
+ lookup?: LookupFunction | undefined;
125
134
  /**
126
- * @default 8192
135
+ * @default 16384
127
136
  */
128
137
  maxHeaderSize?: number | undefined;
129
138
  method?: string | undefined;
130
139
  path?: string | null | undefined;
131
- headers?: OutgoingHttpHeaders | undefined;
132
- auth?: string | null | undefined;
133
- agent?: Agent | boolean | undefined;
134
- _defaultAgent?: Agent | undefined;
135
- timeout?: number | undefined;
140
+ port?: number | string | null | undefined;
141
+ protocol?: string | null | undefined;
136
142
  setHost?: boolean | undefined;
137
- // https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278
138
- createConnection?:
139
- | ((options: ClientRequestArgs, oncreate: (err: Error, socket: Socket) => void) => Socket)
140
- | undefined;
141
- lookup?: LookupFunction | undefined;
143
+ signal?: AbortSignal | undefined;
144
+ socketPath?: string | undefined;
145
+ timeout?: number | undefined;
146
+ uniqueHeaders?: Array<string | string[]> | undefined;
142
147
  }
143
148
  interface ServerOptions<
144
149
  Request extends typeof IncomingMessage = typeof IncomingMessage,
145
150
  Response extends typeof ServerResponse = typeof ServerResponse,
146
151
  > {
152
+ /**
153
+ * Specifies the `IncomingMessage` class to be used. Useful for extending the original `IncomingMessage`.
154
+ */
147
155
  IncomingMessage?: Request | undefined;
156
+ /**
157
+ * Specifies the `ServerResponse` class to be used. Useful for extending the original `ServerResponse`.
158
+ */
148
159
  ServerResponse?: Response | undefined;
149
160
  /**
150
- * Optionally overrides the value of
151
- * `--max-http-header-size` for requests received by this server, i.e.
152
- * the maximum length of request headers in bytes.
153
- * @default 8192
161
+ * Sets the timeout value in milliseconds for receiving the entire request from the client.
162
+ * @see Server.requestTimeout for more information.
163
+ * @default 300000
164
+ * @since v18.0.0
154
165
  */
155
- maxHeaderSize?: number | undefined;
166
+ requestTimeout?: number | undefined;
156
167
  /**
157
- * Use an insecure HTTP parser that accepts invalid HTTP headers when true.
168
+ * The number of milliseconds of inactivity a server needs to wait for additional incoming data,
169
+ * after it has finished writing the last response, before a socket will be destroyed.
170
+ * @see Server.keepAliveTimeout for more information.
171
+ * @default 5000
172
+ * @since v18.0.0
173
+ */
174
+ keepAliveTimeout?: number | undefined;
175
+ /**
176
+ * Sets the interval value in milliseconds to check for request and headers timeout in incomplete requests.
177
+ * @default 30000
178
+ */
179
+ connectionsCheckingInterval?: number | undefined;
180
+ /**
181
+ * Use an insecure HTTP parser that accepts invalid HTTP headers when `true`.
158
182
  * Using the insecure parser should be avoided.
159
183
  * See --insecure-http-parser for more information.
160
184
  * @default false
161
185
  */
162
186
  insecureHTTPParser?: boolean | undefined;
187
+ /**
188
+ * Optionally overrides the value of
189
+ * `--max-http-header-size` for requests received by this server, i.e.
190
+ * the maximum length of request headers in bytes.
191
+ * @default 16384
192
+ * @since v13.3.0
193
+ */
194
+ maxHeaderSize?: number | undefined;
163
195
  /**
164
196
  * If set to `true`, it disables the use of Nagle's algorithm immediately after a new incoming connection is received.
165
- * @default false
197
+ * @default true
166
198
  * @since v16.5.0
167
199
  */
168
200
  noDelay?: boolean | undefined;
@@ -179,6 +211,11 @@ declare module 'http' {
179
211
  * @since v16.5.0
180
212
  */
181
213
  keepAliveInitialDelay?: number | undefined;
214
+ /**
215
+ * A list of response headers that should be sent only once.
216
+ * If the header's value is an array, the items will be joined using `; `.
217
+ */
218
+ uniqueHeaders?: Array<string | string[]> | undefined;
182
219
  }
183
220
  type RequestListener<
184
221
  Request extends typeof IncomingMessage = typeof IncomingMessage,
@@ -41,6 +41,7 @@
41
41
  // Linus Unnebäck <https://github.com/LinusU>
42
42
  // wafuwafu13 <https://github.com/wafuwafu13>
43
43
  // Matteo Collina <https://github.com/mcollina>
44
+ // Dmitry Semigradsky <https://github.com/Semigradsky>
44
45
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
45
46
 
46
47
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.11.13",
3
+ "version": "18.11.15",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -209,6 +209,11 @@
209
209
  "name": "Matteo Collina",
210
210
  "url": "https://github.com/mcollina",
211
211
  "githubUsername": "mcollina"
212
+ },
213
+ {
214
+ "name": "Dmitry Semigradsky",
215
+ "url": "https://github.com/Semigradsky",
216
+ "githubUsername": "Semigradsky"
212
217
  }
213
218
  ],
214
219
  "main": "",
@@ -227,6 +232,6 @@
227
232
  },
228
233
  "scripts": {},
229
234
  "dependencies": {},
230
- "typesPublisherContentHash": "f646b23d6bcabdf3a36c28435dfcad24f0cc39b0e73450b4612986d24bbcfb35",
235
+ "typesPublisherContentHash": "b7e8091addea0e147932a20cafdc84263043cfcbd5e95a43955a99bd6c391b2b",
231
236
  "typeScriptVersion": "4.2"
232
237
  }
@@ -2357,7 +2357,7 @@ declare module 'crypto' {
2357
2357
  /** @deprecated since v10.0.0 */
2358
2358
  const DEFAULT_ENCODING: BufferEncoding;
2359
2359
  type KeyType = 'rsa' | 'rsa-pss' | 'dsa' | 'ec' | 'ed25519' | 'ed448' | 'x25519' | 'x448';
2360
- type KeyFormat = 'pem' | 'der';
2360
+ type KeyFormat = 'pem' | 'der' | 'jwk';
2361
2361
  interface BasePrivateKeyEncodingOptions<T extends KeyFormat> {
2362
2362
  format: T;
2363
2363
  cipher?: string | undefined;
@@ -43,6 +43,7 @@ declare module 'http' {
43
43
  import * as stream from 'node:stream';
44
44
  import { URL } from 'node:url';
45
45
  import { TcpSocketConnectOpts, Socket, Server as NetServer, LookupFunction } from 'node:net';
46
+ import { LookupOptions } from 'node:dns';
46
47
  // incoming headers will never contain number
47
48
  interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
48
49
  accept?: string | undefined;
@@ -113,56 +114,87 @@ declare module 'http' {
113
114
  type OutgoingHttpHeader = number | string | string[];
114
115
  interface OutgoingHttpHeaders extends NodeJS.Dict<OutgoingHttpHeader> {}
115
116
  interface ClientRequestArgs {
116
- signal?: AbortSignal | undefined;
117
- protocol?: string | null | undefined;
117
+ _defaultAgent?: Agent | undefined;
118
+ agent?: Agent | boolean | undefined;
119
+ auth?: string | null | undefined;
120
+ // https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278
121
+ createConnection?:
122
+ | ((options: ClientRequestArgs, oncreate: (err: Error, socket: Socket) => void) => Socket)
123
+ | undefined;
124
+ defaultPort?: number | string | undefined;
125
+ family?: number | undefined;
126
+ headers?: OutgoingHttpHeaders | undefined;
127
+ hints?: LookupOptions['hints'];
118
128
  host?: string | null | undefined;
119
129
  hostname?: string | null | undefined;
120
- family?: number | undefined;
121
- port?: number | string | null | undefined;
122
- defaultPort?: number | string | undefined;
130
+ insecureHTTPParser?: boolean | undefined;
123
131
  localAddress?: string | undefined;
124
- socketPath?: string | undefined;
132
+ localPort?: number | undefined;
133
+ lookup?: LookupFunction | undefined;
125
134
  /**
126
- * @default 8192
135
+ * @default 16384
127
136
  */
128
137
  maxHeaderSize?: number | undefined;
129
138
  method?: string | undefined;
130
139
  path?: string | null | undefined;
131
- headers?: OutgoingHttpHeaders | undefined;
132
- auth?: string | null | undefined;
133
- agent?: Agent | boolean | undefined;
134
- _defaultAgent?: Agent | undefined;
135
- timeout?: number | undefined;
140
+ port?: number | string | null | undefined;
141
+ protocol?: string | null | undefined;
136
142
  setHost?: boolean | undefined;
137
- // https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278
138
- createConnection?:
139
- | ((options: ClientRequestArgs, oncreate: (err: Error, socket: Socket) => void) => Socket)
140
- | undefined;
141
- lookup?: LookupFunction | undefined;
143
+ signal?: AbortSignal | undefined;
144
+ socketPath?: string | undefined;
145
+ timeout?: number | undefined;
146
+ uniqueHeaders?: Array<string | string[]> | undefined;
142
147
  }
143
148
  interface ServerOptions<
144
149
  Request extends typeof IncomingMessage = typeof IncomingMessage,
145
150
  Response extends typeof ServerResponse = typeof ServerResponse,
146
151
  > {
152
+ /**
153
+ * Specifies the `IncomingMessage` class to be used. Useful for extending the original `IncomingMessage`.
154
+ */
147
155
  IncomingMessage?: Request | undefined;
156
+ /**
157
+ * Specifies the `ServerResponse` class to be used. Useful for extending the original `ServerResponse`.
158
+ */
148
159
  ServerResponse?: Response | undefined;
149
160
  /**
150
- * Optionally overrides the value of
151
- * `--max-http-header-size` for requests received by this server, i.e.
152
- * the maximum length of request headers in bytes.
153
- * @default 8192
161
+ * Sets the timeout value in milliseconds for receiving the entire request from the client.
162
+ * @see Server.requestTimeout for more information.
163
+ * @default 300000
164
+ * @since v18.0.0
154
165
  */
155
- maxHeaderSize?: number | undefined;
166
+ requestTimeout?: number | undefined;
156
167
  /**
157
- * Use an insecure HTTP parser that accepts invalid HTTP headers when true.
168
+ * The number of milliseconds of inactivity a server needs to wait for additional incoming data,
169
+ * after it has finished writing the last response, before a socket will be destroyed.
170
+ * @see Server.keepAliveTimeout for more information.
171
+ * @default 5000
172
+ * @since v18.0.0
173
+ */
174
+ keepAliveTimeout?: number | undefined;
175
+ /**
176
+ * Sets the interval value in milliseconds to check for request and headers timeout in incomplete requests.
177
+ * @default 30000
178
+ */
179
+ connectionsCheckingInterval?: number | undefined;
180
+ /**
181
+ * Use an insecure HTTP parser that accepts invalid HTTP headers when `true`.
158
182
  * Using the insecure parser should be avoided.
159
183
  * See --insecure-http-parser for more information.
160
184
  * @default false
161
185
  */
162
186
  insecureHTTPParser?: boolean | undefined;
187
+ /**
188
+ * Optionally overrides the value of
189
+ * `--max-http-header-size` for requests received by this server, i.e.
190
+ * the maximum length of request headers in bytes.
191
+ * @default 16384
192
+ * @since v13.3.0
193
+ */
194
+ maxHeaderSize?: number | undefined;
163
195
  /**
164
196
  * If set to `true`, it disables the use of Nagle's algorithm immediately after a new incoming connection is received.
165
- * @default false
197
+ * @default true
166
198
  * @since v16.5.0
167
199
  */
168
200
  noDelay?: boolean | undefined;
@@ -179,6 +211,11 @@ declare module 'http' {
179
211
  * @since v16.5.0
180
212
  */
181
213
  keepAliveInitialDelay?: number | undefined;
214
+ /**
215
+ * A list of response headers that should be sent only once.
216
+ * If the header's value is an array, the items will be joined using `; `.
217
+ */
218
+ uniqueHeaders?: Array<string | string[]> | undefined;
182
219
  }
183
220
  type RequestListener<
184
221
  Request extends typeof IncomingMessage = typeof IncomingMessage,
@@ -8,9 +8,9 @@ This package contains type definitions for Node.js (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: Sat, 10 Dec 2022 19:03:04 GMT
11
+ * Last updated: Tue, 13 Dec 2022 21:03:28 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
14
14
 
15
15
  # Credits
16
- These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), [wafuwafu13](https://github.com/wafuwafu13), and [Matteo Collina](https://github.com/mcollina).
16
+ These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), [wafuwafu13](https://github.com/wafuwafu13), [Matteo Collina](https://github.com/mcollina), and [Dmitry Semigradsky](https://github.com/Semigradsky).
@@ -2357,7 +2357,7 @@ declare module 'crypto' {
2357
2357
  /** @deprecated since v10.0.0 */
2358
2358
  const DEFAULT_ENCODING: BufferEncoding;
2359
2359
  type KeyType = 'rsa' | 'rsa-pss' | 'dsa' | 'ec' | 'ed25519' | 'ed448' | 'x25519' | 'x448';
2360
- type KeyFormat = 'pem' | 'der';
2360
+ type KeyFormat = 'pem' | 'der' | 'jwk';
2361
2361
  interface BasePrivateKeyEncodingOptions<T extends KeyFormat> {
2362
2362
  format: T;
2363
2363
  cipher?: string | undefined;
@@ -43,6 +43,7 @@ declare module 'http' {
43
43
  import * as stream from 'node:stream';
44
44
  import { URL } from 'node:url';
45
45
  import { TcpSocketConnectOpts, Socket, Server as NetServer, LookupFunction } from 'node:net';
46
+ import { LookupOptions } from 'node:dns';
46
47
  // incoming headers will never contain number
47
48
  interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
48
49
  accept?: string | undefined;
@@ -113,56 +114,87 @@ declare module 'http' {
113
114
  type OutgoingHttpHeader = number | string | string[];
114
115
  interface OutgoingHttpHeaders extends NodeJS.Dict<OutgoingHttpHeader> {}
115
116
  interface ClientRequestArgs {
116
- signal?: AbortSignal | undefined;
117
- protocol?: string | null | undefined;
117
+ _defaultAgent?: Agent | undefined;
118
+ agent?: Agent | boolean | undefined;
119
+ auth?: string | null | undefined;
120
+ // https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278
121
+ createConnection?:
122
+ | ((options: ClientRequestArgs, oncreate: (err: Error, socket: Socket) => void) => Socket)
123
+ | undefined;
124
+ defaultPort?: number | string | undefined;
125
+ family?: number | undefined;
126
+ headers?: OutgoingHttpHeaders | undefined;
127
+ hints?: LookupOptions['hints'];
118
128
  host?: string | null | undefined;
119
129
  hostname?: string | null | undefined;
120
- family?: number | undefined;
121
- port?: number | string | null | undefined;
122
- defaultPort?: number | string | undefined;
130
+ insecureHTTPParser?: boolean | undefined;
123
131
  localAddress?: string | undefined;
124
- socketPath?: string | undefined;
132
+ localPort?: number | undefined;
133
+ lookup?: LookupFunction | undefined;
125
134
  /**
126
- * @default 8192
135
+ * @default 16384
127
136
  */
128
137
  maxHeaderSize?: number | undefined;
129
138
  method?: string | undefined;
130
139
  path?: string | null | undefined;
131
- headers?: OutgoingHttpHeaders | undefined;
132
- auth?: string | null | undefined;
133
- agent?: Agent | boolean | undefined;
134
- _defaultAgent?: Agent | undefined;
135
- timeout?: number | undefined;
140
+ port?: number | string | null | undefined;
141
+ protocol?: string | null | undefined;
136
142
  setHost?: boolean | undefined;
137
- // https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278
138
- createConnection?:
139
- | ((options: ClientRequestArgs, oncreate: (err: Error, socket: Socket) => void) => Socket)
140
- | undefined;
141
- lookup?: LookupFunction | undefined;
143
+ signal?: AbortSignal | undefined;
144
+ socketPath?: string | undefined;
145
+ timeout?: number | undefined;
146
+ uniqueHeaders?: Array<string | string[]> | undefined;
142
147
  }
143
148
  interface ServerOptions<
144
149
  Request extends typeof IncomingMessage = typeof IncomingMessage,
145
150
  Response extends typeof ServerResponse = typeof ServerResponse,
146
151
  > {
152
+ /**
153
+ * Specifies the `IncomingMessage` class to be used. Useful for extending the original `IncomingMessage`.
154
+ */
147
155
  IncomingMessage?: Request | undefined;
156
+ /**
157
+ * Specifies the `ServerResponse` class to be used. Useful for extending the original `ServerResponse`.
158
+ */
148
159
  ServerResponse?: Response | undefined;
149
160
  /**
150
- * Optionally overrides the value of
151
- * `--max-http-header-size` for requests received by this server, i.e.
152
- * the maximum length of request headers in bytes.
153
- * @default 8192
161
+ * Sets the timeout value in milliseconds for receiving the entire request from the client.
162
+ * @see Server.requestTimeout for more information.
163
+ * @default 300000
164
+ * @since v18.0.0
154
165
  */
155
- maxHeaderSize?: number | undefined;
166
+ requestTimeout?: number | undefined;
156
167
  /**
157
- * Use an insecure HTTP parser that accepts invalid HTTP headers when true.
168
+ * The number of milliseconds of inactivity a server needs to wait for additional incoming data,
169
+ * after it has finished writing the last response, before a socket will be destroyed.
170
+ * @see Server.keepAliveTimeout for more information.
171
+ * @default 5000
172
+ * @since v18.0.0
173
+ */
174
+ keepAliveTimeout?: number | undefined;
175
+ /**
176
+ * Sets the interval value in milliseconds to check for request and headers timeout in incomplete requests.
177
+ * @default 30000
178
+ */
179
+ connectionsCheckingInterval?: number | undefined;
180
+ /**
181
+ * Use an insecure HTTP parser that accepts invalid HTTP headers when `true`.
158
182
  * Using the insecure parser should be avoided.
159
183
  * See --insecure-http-parser for more information.
160
184
  * @default false
161
185
  */
162
186
  insecureHTTPParser?: boolean | undefined;
187
+ /**
188
+ * Optionally overrides the value of
189
+ * `--max-http-header-size` for requests received by this server, i.e.
190
+ * the maximum length of request headers in bytes.
191
+ * @default 16384
192
+ * @since v13.3.0
193
+ */
194
+ maxHeaderSize?: number | undefined;
163
195
  /**
164
196
  * If set to `true`, it disables the use of Nagle's algorithm immediately after a new incoming connection is received.
165
- * @default false
197
+ * @default true
166
198
  * @since v16.5.0
167
199
  */
168
200
  noDelay?: boolean | undefined;
@@ -179,6 +211,11 @@ declare module 'http' {
179
211
  * @since v16.5.0
180
212
  */
181
213
  keepAliveInitialDelay?: number | undefined;
214
+ /**
215
+ * A list of response headers that should be sent only once.
216
+ * If the header's value is an array, the items will be joined using `; `.
217
+ */
218
+ uniqueHeaders?: Array<string | string[]> | undefined;
182
219
  }
183
220
  type RequestListener<
184
221
  Request extends typeof IncomingMessage = typeof IncomingMessage,