cloudstructs 0.6.14 → 0.6.15
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 +4 -4
- package/assets/slack-app/provider.lambda/index.js +1 -0
- package/assets/slack-textract/detect.lambda/index.js +19 -12
- package/assets/ssl-server-test/analyze.lambda/index.js +1 -0
- package/lib/codecommit-mirror/index.js +2 -2
- package/lib/ecs-service-roller/index.js +2 -2
- package/lib/email-receiver/receiver.js +1 -1
- package/lib/saml-identity-provider/index.js +2 -2
- package/lib/slack-app/manifest.js +1 -1
- package/lib/slack-app/slack-app.js +2 -2
- package/lib/slack-events/index.js +1 -1
- package/lib/slack-textract/index.js +1 -1
- package/lib/ssl-server-test/index.js +1 -1
- package/lib/state-machine-cr-provider/index.js +1 -1
- package/lib/static-website/index.js +1 -1
- package/lib/toolkit-cleaner/index.js +1 -1
- package/lib/url-shortener/index.js +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +6 -6
- package/node_modules/@slack/logger/node_modules/@types/node/diagnostics_channel.d.ts +5 -5
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +61 -24
- package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +1 -0
- package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +9 -4
- package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +95 -23
- package/node_modules/@slack/logger/node_modules/@types/node/timers/promises.d.ts +25 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/crypto.d.ts +6 -6
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +5 -5
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/http.d.ts +61 -24
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/https.d.ts +1 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/test.d.ts +95 -23
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/timers/promises.d.ts +25 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/util.d.ts +96 -20
- package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +96 -20
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +6 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/diagnostics_channel.d.ts +5 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +61 -24
- package/node_modules/@slack/web-api/node_modules/@types/node/https.d.ts +1 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +9 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +95 -23
- package/node_modules/@slack/web-api/node_modules/@types/node/timers/promises.d.ts +25 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/crypto.d.ts +6 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +5 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/http.d.ts +61 -24
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/https.d.ts +1 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/test.d.ts +95 -23
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/timers/promises.d.ts +25 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/util.d.ts +96 -20
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +96 -20
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +6 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +61 -24
- package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +9 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +95 -23
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +25 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/crypto.d.ts +6 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/http.d.ts +61 -24
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/https.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/test.d.ts +95 -23
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/timers/promises.d.ts +25 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/util.d.ts +96 -20
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +96 -20
- package/node_modules/@types/is-stream/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/crypto.d.ts +6 -6
- package/node_modules/@types/is-stream/node_modules/@types/node/diagnostics_channel.d.ts +5 -5
- package/node_modules/@types/is-stream/node_modules/@types/node/http.d.ts +61 -24
- package/node_modules/@types/is-stream/node_modules/@types/node/https.d.ts +1 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/package.json +9 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/test.d.ts +95 -23
- package/node_modules/@types/is-stream/node_modules/@types/node/timers/promises.d.ts +25 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/crypto.d.ts +6 -6
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +5 -5
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/http.d.ts +61 -24
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/https.d.ts +1 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/test.d.ts +95 -23
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/timers/promises.d.ts +25 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/util.d.ts +96 -20
- package/node_modules/@types/is-stream/node_modules/@types/node/util.d.ts +96 -20
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +6 -6
- package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +61 -24
- package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +9 -4
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +95 -23
- package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +25 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/crypto.d.ts +6 -6
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/http.d.ts +61 -24
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/https.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/test.d.ts +95 -23
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/timers/promises.d.ts +25 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/util.d.ts +96 -20
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +96 -20
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +6 -6
- package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +61 -24
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +9 -4
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +95 -23
- package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +25 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/crypto.d.ts +6 -6
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/http.d.ts +61 -24
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/https.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/test.d.ts +95 -23
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/timers/promises.d.ts +25 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/util.d.ts +96 -20
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +96 -20
- package/node_modules/got/dist/source/as-promise/index.js +1 -0
- package/node_modules/got/package.json +2 -1
- package/package.json +11 -10
|
@@ -6,28 +6,44 @@
|
|
|
6
6
|
* ```js
|
|
7
7
|
* const util = require('util');
|
|
8
8
|
* ```
|
|
9
|
-
* @see [source](https://github.com/nodejs/node/blob/v18.
|
|
9
|
+
* @see [source](https://github.com/nodejs/node/blob/v18.x/lib/util.js)
|
|
10
10
|
*/
|
|
11
11
|
declare module 'util' {
|
|
12
12
|
import * as types from 'node:util/types';
|
|
13
13
|
export interface InspectOptions {
|
|
14
14
|
/**
|
|
15
|
-
* If
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* setter are going to be inspected. This might cause side effects depending on
|
|
19
|
-
* the getter function.
|
|
20
|
-
* @default `false`
|
|
15
|
+
* If `true`, object's non-enumerable symbols and properties are included in the formatted result.
|
|
16
|
+
* `WeakMap` and `WeakSet` entries are also included as well as user defined prototype properties (excluding method properties).
|
|
17
|
+
* @default false
|
|
21
18
|
*/
|
|
22
|
-
getters?: 'get' | 'set' | boolean | undefined;
|
|
23
19
|
showHidden?: boolean | undefined;
|
|
24
20
|
/**
|
|
21
|
+
* Specifies the number of times to recurse while formatting object.
|
|
22
|
+
* This is useful for inspecting large objects.
|
|
23
|
+
* To recurse up to the maximum call stack size pass `Infinity` or `null`.
|
|
25
24
|
* @default 2
|
|
26
25
|
*/
|
|
27
26
|
depth?: number | null | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* If `true`, the output is styled with ANSI color codes. Colors are customizable.
|
|
29
|
+
*/
|
|
28
30
|
colors?: boolean | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* If `false`, `[util.inspect.custom](depth, opts, inspect)` functions are not invoked.
|
|
33
|
+
* @default true
|
|
34
|
+
*/
|
|
29
35
|
customInspect?: boolean | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* If `true`, `Proxy` inspection includes the target and handler objects.
|
|
38
|
+
* @default false
|
|
39
|
+
*/
|
|
30
40
|
showProxy?: boolean | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Specifies the maximum number of `Array`, `TypedArray`, `WeakMap`, and `WeakSet` elements
|
|
43
|
+
* to include when formatting. Set to `null` or `Infinity` to show all elements.
|
|
44
|
+
* Set to `0` or negative to show no elements.
|
|
45
|
+
* @default 100
|
|
46
|
+
*/
|
|
31
47
|
maxArrayLength?: number | null | undefined;
|
|
32
48
|
/**
|
|
33
49
|
* Specifies the maximum number of characters to
|
|
@@ -36,6 +52,12 @@ declare module 'util' {
|
|
|
36
52
|
* @default 10000
|
|
37
53
|
*/
|
|
38
54
|
maxStringLength?: number | null | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The length at which input values are split across multiple lines.
|
|
57
|
+
* Set to `Infinity` to format the input as a single line
|
|
58
|
+
* (in combination with `compact` set to `true` or any number >= `1`).
|
|
59
|
+
* @default 80
|
|
60
|
+
*/
|
|
39
61
|
breakLength?: number | undefined;
|
|
40
62
|
/**
|
|
41
63
|
* Setting this to `false` causes each object key
|
|
@@ -45,13 +67,33 @@ declare module 'util' {
|
|
|
45
67
|
* `breakLength`. Short array elements are also grouped together. Note that no
|
|
46
68
|
* text will be reduced below 16 characters, no matter the `breakLength` size.
|
|
47
69
|
* For more information, see the example below.
|
|
48
|
-
* @default
|
|
70
|
+
* @default true
|
|
49
71
|
*/
|
|
50
72
|
compact?: boolean | number | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* If set to `true` or a function, all properties of an object, and `Set` and `Map`
|
|
75
|
+
* entries are sorted in the resulting string.
|
|
76
|
+
* If set to `true` the default sort is used.
|
|
77
|
+
* If set to a function, it is used as a compare function.
|
|
78
|
+
*/
|
|
51
79
|
sorted?: boolean | ((a: string, b: string) => number) | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* If set to `true`, getters are going to be
|
|
82
|
+
* inspected as well. If set to `'get'` only getters without setter are going
|
|
83
|
+
* to be inspected. If set to `'set'` only getters having a corresponding
|
|
84
|
+
* setter are going to be inspected. This might cause side effects depending on
|
|
85
|
+
* the getter function.
|
|
86
|
+
* @default false
|
|
87
|
+
*/
|
|
88
|
+
getters?: 'get' | 'set' | boolean | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* If set to `true`, an underscore is used to separate every three digits in all bigints and numbers.
|
|
91
|
+
* @default false
|
|
92
|
+
*/
|
|
93
|
+
numericSeparator?: boolean | undefined;
|
|
52
94
|
}
|
|
53
95
|
export type Style = 'special' | 'number' | 'bigint' | 'boolean' | 'undefined' | 'null' | 'string' | 'symbol' | 'date' | 'regexp' | 'module';
|
|
54
|
-
export type CustomInspectFunction = (depth: number, options: InspectOptionsStylized) =>
|
|
96
|
+
export type CustomInspectFunction = (depth: number, options: InspectOptionsStylized) => any; // TODO: , inspect: inspect
|
|
55
97
|
export interface InspectOptionsStylized extends InspectOptions {
|
|
56
98
|
stylize(text: string, styleType: Style): string;
|
|
57
99
|
}
|
|
@@ -899,7 +941,7 @@ declare module 'util' {
|
|
|
899
941
|
* });
|
|
900
942
|
* ```
|
|
901
943
|
* @since v8.2.0
|
|
902
|
-
* @param
|
|
944
|
+
* @param fn An `async` function
|
|
903
945
|
* @return a callback style function
|
|
904
946
|
*/
|
|
905
947
|
export function callbackify(fn: () => Promise<void>): (callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
@@ -1198,16 +1240,31 @@ declare module 'util' {
|
|
|
1198
1240
|
* - `tokens` Detailed parse information (only if `tokens` was specified).
|
|
1199
1241
|
*
|
|
1200
1242
|
*/
|
|
1201
|
-
export function parseArgs<T extends ParseArgsConfig>(config
|
|
1243
|
+
export function parseArgs<T extends ParseArgsConfig>(config?: T): ParsedResults<T>;
|
|
1202
1244
|
|
|
1203
1245
|
interface ParseArgsOptionConfig {
|
|
1246
|
+
/**
|
|
1247
|
+
* Type of argument.
|
|
1248
|
+
*/
|
|
1204
1249
|
type: 'string' | 'boolean';
|
|
1205
|
-
short?: string;
|
|
1206
|
-
multiple?: boolean;
|
|
1207
1250
|
/**
|
|
1251
|
+
* Whether this option can be provided multiple times.
|
|
1252
|
+
* If `true`, all values will be collected in an array.
|
|
1253
|
+
* If `false`, values for the option are last-wins.
|
|
1254
|
+
* @default false.
|
|
1255
|
+
*/
|
|
1256
|
+
multiple?: boolean | undefined;
|
|
1257
|
+
/**
|
|
1258
|
+
* A single character alias for the option.
|
|
1259
|
+
*/
|
|
1260
|
+
short?: string | undefined;
|
|
1261
|
+
/**
|
|
1262
|
+
* The default option value when it is not set by args.
|
|
1263
|
+
* It must be of the same type as the the `type` property.
|
|
1264
|
+
* When `multiple` is `true`, it must be an array.
|
|
1208
1265
|
* @since v18.11.0
|
|
1209
1266
|
*/
|
|
1210
|
-
default?: string | boolean | string[] | boolean[];
|
|
1267
|
+
default?: string | boolean | string[] | boolean[] | undefined;
|
|
1211
1268
|
}
|
|
1212
1269
|
|
|
1213
1270
|
interface ParseArgsOptionsConfig {
|
|
@@ -1215,11 +1272,30 @@ declare module 'util' {
|
|
|
1215
1272
|
}
|
|
1216
1273
|
|
|
1217
1274
|
export interface ParseArgsConfig {
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1275
|
+
/**
|
|
1276
|
+
* Array of argument strings.
|
|
1277
|
+
*/
|
|
1278
|
+
args?: string[] | undefined;
|
|
1279
|
+
/**
|
|
1280
|
+
* Used to describe arguments known to the parser.
|
|
1281
|
+
*/
|
|
1282
|
+
options?: ParseArgsOptionsConfig | undefined;
|
|
1283
|
+
/**
|
|
1284
|
+
* Should an error be thrown when unknown arguments are encountered,
|
|
1285
|
+
* or when arguments are passed that do not match the `type` configured in `options`.
|
|
1286
|
+
* @default true
|
|
1287
|
+
*/
|
|
1288
|
+
strict?: boolean | undefined;
|
|
1289
|
+
/**
|
|
1290
|
+
* Whether this command accepts positional arguments.
|
|
1291
|
+
*/
|
|
1292
|
+
allowPositionals?: boolean | undefined;
|
|
1293
|
+
/**
|
|
1294
|
+
* Return the parsed tokens. This is useful for extending the built-in behavior,
|
|
1295
|
+
* from adding additional checks through to reprocessing the tokens in different ways.
|
|
1296
|
+
* @default false
|
|
1297
|
+
*/
|
|
1298
|
+
tokens?: boolean | undefined;
|
|
1223
1299
|
}
|
|
1224
1300
|
|
|
1225
1301
|
/*
|
|
@@ -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:
|
|
11
|
+
* Last updated: Sat, 17 Dec 2022 20:33:03 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),
|
|
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;
|
|
@@ -3131,23 +3131,23 @@ declare module 'crypto' {
|
|
|
3131
3131
|
/**
|
|
3132
3132
|
* @default 'always'
|
|
3133
3133
|
*/
|
|
3134
|
-
subject
|
|
3134
|
+
subject?: 'always' | 'default' | 'never';
|
|
3135
3135
|
/**
|
|
3136
3136
|
* @default true
|
|
3137
3137
|
*/
|
|
3138
|
-
wildcards
|
|
3138
|
+
wildcards?: boolean;
|
|
3139
3139
|
/**
|
|
3140
3140
|
* @default true
|
|
3141
3141
|
*/
|
|
3142
|
-
partialWildcards
|
|
3142
|
+
partialWildcards?: boolean;
|
|
3143
3143
|
/**
|
|
3144
3144
|
* @default false
|
|
3145
3145
|
*/
|
|
3146
|
-
multiLabelWildcards
|
|
3146
|
+
multiLabelWildcards?: boolean;
|
|
3147
3147
|
/**
|
|
3148
3148
|
* @default false
|
|
3149
3149
|
*/
|
|
3150
|
-
singleLabelSubdomains
|
|
3150
|
+
singleLabelSubdomains?: boolean;
|
|
3151
3151
|
}
|
|
3152
3152
|
/**
|
|
3153
3153
|
* Encapsulates an X509 certificate and provides read-only access to
|
|
@@ -41,7 +41,7 @@ declare module 'diagnostics_channel' {
|
|
|
41
41
|
* @param name The channel name
|
|
42
42
|
* @return If there are active subscribers
|
|
43
43
|
*/
|
|
44
|
-
function hasSubscribers(name: string): boolean;
|
|
44
|
+
function hasSubscribers(name: string | symbol): boolean;
|
|
45
45
|
/**
|
|
46
46
|
* This is the primary entry-point for anyone wanting to interact with a named
|
|
47
47
|
* channel. It produces a channel object which is optimized to reduce overhead at
|
|
@@ -56,8 +56,8 @@ declare module 'diagnostics_channel' {
|
|
|
56
56
|
* @param name The channel name
|
|
57
57
|
* @return The named channel object
|
|
58
58
|
*/
|
|
59
|
-
function channel(name: string): Channel;
|
|
60
|
-
type ChannelListener = (message: unknown, name: string) => void;
|
|
59
|
+
function channel(name: string | symbol): Channel;
|
|
60
|
+
type ChannelListener = (message: unknown, name: string | symbol) => void;
|
|
61
61
|
/**
|
|
62
62
|
* The class `Channel` represents an individual named channel within the data
|
|
63
63
|
* pipeline. It is use to track subscribers and to publish messages when there
|
|
@@ -68,7 +68,7 @@ declare module 'diagnostics_channel' {
|
|
|
68
68
|
* @since v15.1.0, v14.17.0
|
|
69
69
|
*/
|
|
70
70
|
class Channel {
|
|
71
|
-
readonly name: string;
|
|
71
|
+
readonly name: string | symbol;
|
|
72
72
|
/**
|
|
73
73
|
* Check if there are active subscribers to this channel. This is helpful if
|
|
74
74
|
* the message you want to send might be expensive to prepare.
|
|
@@ -88,7 +88,7 @@ declare module 'diagnostics_channel' {
|
|
|
88
88
|
* @since v15.1.0, v14.17.0
|
|
89
89
|
*/
|
|
90
90
|
readonly hasSubscribers: boolean;
|
|
91
|
-
private constructor(name: string);
|
|
91
|
+
private constructor(name: string | symbol);
|
|
92
92
|
/**
|
|
93
93
|
* Publish a message to any subscribers to the channel. This will
|
|
94
94
|
* trigger message handlers synchronously so they will execute within
|
|
@@ -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
|
-
|
|
117
|
-
|
|
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
|
-
|
|
121
|
-
port?: number | string | null | undefined;
|
|
122
|
-
defaultPort?: number | string | undefined;
|
|
130
|
+
insecureHTTPParser?: boolean | undefined;
|
|
123
131
|
localAddress?: string | undefined;
|
|
124
|
-
|
|
132
|
+
localPort?: number | undefined;
|
|
133
|
+
lookup?: LookupFunction | undefined;
|
|
125
134
|
/**
|
|
126
|
-
* @default
|
|
135
|
+
* @default 16384
|
|
127
136
|
*/
|
|
128
137
|
maxHeaderSize?: number | undefined;
|
|
129
138
|
method?: string | undefined;
|
|
130
139
|
path?: string | null | undefined;
|
|
131
|
-
|
|
132
|
-
|
|
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
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
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
|
-
*
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
* @
|
|
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
|
-
|
|
166
|
+
requestTimeout?: number | undefined;
|
|
156
167
|
/**
|
|
157
|
-
*
|
|
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
|
|
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,
|
|
@@ -14,6 +14,7 @@ declare module 'https' {
|
|
|
14
14
|
> = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions<Request, Response>;
|
|
15
15
|
type RequestOptions = http.RequestOptions &
|
|
16
16
|
tls.SecureContextOptions & {
|
|
17
|
+
checkServerIdentity?: typeof tls.checkServerIdentity | undefined;
|
|
17
18
|
rejectUnauthorized?: boolean | undefined; // Defaults to true
|
|
18
19
|
servername?: string | undefined; // SNI TLS Extension
|
|
19
20
|
};
|
|
@@ -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.
|
|
3
|
+
"version": "18.11.17",
|
|
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,12 +209,17 @@
|
|
|
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": "",
|
|
215
220
|
"types": "index.d.ts",
|
|
216
221
|
"typesVersions": {
|
|
217
|
-
"
|
|
222
|
+
"<=4.8": {
|
|
218
223
|
"*": [
|
|
219
224
|
"ts4.8/*"
|
|
220
225
|
]
|
|
@@ -227,6 +232,6 @@
|
|
|
227
232
|
},
|
|
228
233
|
"scripts": {},
|
|
229
234
|
"dependencies": {},
|
|
230
|
-
"typesPublisherContentHash": "
|
|
231
|
-
"typeScriptVersion": "4.
|
|
235
|
+
"typesPublisherContentHash": "2d88944144b47057ed775becb8763772da81db335f442b6aafc1eb4b61e8d915",
|
|
236
|
+
"typeScriptVersion": "4.2"
|
|
232
237
|
}
|