cdk-common 2.0.221 → 2.0.224
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/@aws-cdk/assert/package.json +8 -8
- package/node_modules/@aws-cdk/cfnspec/package.json +3 -3
- package/node_modules/@aws-cdk/cfnspec/tsconfig.tsbuildinfo +5 -5
- package/node_modules/@aws-cdk/cloudformation-diff/package.json +5 -5
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/LICENSE +0 -0
- package/node_modules/@types/node/README.md +16 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/assert.d.ts +35 -6
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/async_hooks.d.ts +96 -11
- package/node_modules/@types/node/buffer.d.ts +89 -0
- package/node_modules/@types/node/child_process.d.ts +514 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/cluster.d.ts +43 -38
- package/node_modules/@types/node/console.d.ts +142 -0
- package/node_modules/@types/node/constants.d.ts +18 -0
- package/node_modules/@types/node/crypto.d.ts +1283 -0
- package/node_modules/@types/node/dgram.d.ts +144 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/dns.d.ts +33 -12
- package/node_modules/@types/node/domain.d.ts +27 -0
- package/node_modules/@types/node/events.d.ts +82 -0
- package/node_modules/@types/node/fs/promises.d.ts +569 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/fs.d.ts +736 -757
- package/node_modules/@types/node/globals.d.ts +746 -0
- package/node_modules/@types/node/globals.global.d.ts +1 -0
- package/node_modules/@types/node/http.d.ts +492 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/http2.d.ts +289 -186
- package/node_modules/@types/node/https.d.ts +142 -0
- package/node_modules/@types/node/index.d.ts +98 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/inspector.d.ts +1508 -1619
- package/node_modules/@types/node/module.d.ts +56 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/net.d.ts +128 -71
- package/node_modules/@types/node/os.d.ts +242 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/package.json +67 -23
- package/node_modules/@types/node/path.d.ts +168 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/perf_hooks.d.ts +124 -19
- package/node_modules/@types/node/process.d.ts +413 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/punycode.d.ts +11 -1
- package/node_modules/@types/node/querystring.d.ts +31 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/readline.d.ts +55 -24
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/repl.d.ts +40 -22
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/stream.d.ts +103 -57
- package/node_modules/@types/node/string_decoder.d.ts +10 -0
- package/node_modules/@types/node/timers.d.ts +19 -0
- package/node_modules/@types/node/tls.d.ts +784 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/trace_events.d.ts +7 -4
- package/node_modules/@types/node/tty.d.ts +69 -0
- package/node_modules/@types/node/url.d.ts +149 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/util.d.ts +70 -41
- package/node_modules/@types/node/v8.d.ts +190 -0
- package/node_modules/@types/node/vm.d.ts +155 -0
- package/node_modules/@types/node/wasi.d.ts +89 -0
- package/node_modules/@types/node/worker_threads.d.ts +241 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/zlib.d.ts +91 -54
- package/package.json +3 -3
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/README.md +0 -16
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/base.d.ts +0 -19
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/buffer.d.ts +0 -16
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/child_process.d.ts +0 -369
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/console.d.ts +0 -3
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/constants.d.ts +0 -449
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/crypto.d.ts +0 -613
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/dgram.d.ts +0 -97
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/domain.d.ts +0 -16
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/events.d.ts +0 -30
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/globals.d.ts +0 -1066
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/http.d.ts +0 -274
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/https.d.ts +0 -51
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/index.d.ts +0 -41
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/module.d.ts +0 -3
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/os.d.ts +0 -254
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/path.d.ts +0 -159
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/process.d.ts +0 -3
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/querystring.d.ts +0 -17
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/string_decoder.d.ts +0 -9
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/timers.d.ts +0 -16
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/tls.d.ts +0 -459
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/ts3.6/assert.d.ts +0 -73
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/ts3.6/base.d.ts +0 -54
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/ts3.6/index.d.ts +0 -6
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/tty.d.ts +0 -17
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/url.d.ts +0 -104
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/v8.d.ts +0 -28
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/vm.d.ts +0 -81
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/worker_threads.d.ts +0 -124
package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/package.json
RENAMED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.18.23",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
|
+
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
5
6
|
"license": "MIT",
|
|
6
7
|
"contributors": [
|
|
7
8
|
{
|
|
@@ -29,11 +30,21 @@
|
|
|
29
30
|
"url": "https://github.com/r3nya",
|
|
30
31
|
"githubUsername": "r3nya"
|
|
31
32
|
},
|
|
33
|
+
{
|
|
34
|
+
"name": "Benjamin Toueg",
|
|
35
|
+
"url": "https://github.com/btoueg",
|
|
36
|
+
"githubUsername": "btoueg"
|
|
37
|
+
},
|
|
32
38
|
{
|
|
33
39
|
"name": "Chigozirim C.",
|
|
34
40
|
"url": "https://github.com/smac89",
|
|
35
41
|
"githubUsername": "smac89"
|
|
36
42
|
},
|
|
43
|
+
{
|
|
44
|
+
"name": "David Junger",
|
|
45
|
+
"url": "https://github.com/touffy",
|
|
46
|
+
"githubUsername": "touffy"
|
|
47
|
+
},
|
|
37
48
|
{
|
|
38
49
|
"name": "Deividas Bakanas",
|
|
39
50
|
"url": "https://github.com/DeividasBakanas",
|
|
@@ -104,6 +115,11 @@
|
|
|
104
115
|
"url": "https://github.com/eps1lon",
|
|
105
116
|
"githubUsername": "eps1lon"
|
|
106
117
|
},
|
|
118
|
+
{
|
|
119
|
+
"name": "Seth Westphal",
|
|
120
|
+
"url": "https://github.com/westy92",
|
|
121
|
+
"githubUsername": "westy92"
|
|
122
|
+
},
|
|
107
123
|
{
|
|
108
124
|
"name": "Simon Schick",
|
|
109
125
|
"url": "https://github.com/SimonSchick",
|
|
@@ -124,16 +140,6 @@
|
|
|
124
140
|
"url": "https://github.com/wwwy3y3",
|
|
125
141
|
"githubUsername": "wwwy3y3"
|
|
126
142
|
},
|
|
127
|
-
{
|
|
128
|
-
"name": "Zane Hannan AU",
|
|
129
|
-
"url": "https://github.com/ZaneHannanAU",
|
|
130
|
-
"githubUsername": "ZaneHannanAU"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"name": "Jeremie Rodriguez",
|
|
134
|
-
"url": "https://github.com/jeremiergz",
|
|
135
|
-
"githubUsername": "jeremiergz"
|
|
136
|
-
},
|
|
137
143
|
{
|
|
138
144
|
"name": "Samuel Ainsworth",
|
|
139
145
|
"url": "https://github.com/samuela",
|
|
@@ -150,25 +156,63 @@
|
|
|
150
156
|
"githubUsername": "bhongy"
|
|
151
157
|
},
|
|
152
158
|
{
|
|
153
|
-
"name": "
|
|
154
|
-
"url": "https://github.com/
|
|
155
|
-
"githubUsername": "
|
|
159
|
+
"name": "Marcin Kopacz",
|
|
160
|
+
"url": "https://github.com/chyzwar",
|
|
161
|
+
"githubUsername": "chyzwar"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"name": "Trivikram Kamat",
|
|
165
|
+
"url": "https://github.com/trivikr",
|
|
166
|
+
"githubUsername": "trivikr"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"name": "Junxiao Shi",
|
|
170
|
+
"url": "https://github.com/yoursunny",
|
|
171
|
+
"githubUsername": "yoursunny"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"name": "Ilia Baryshnikov",
|
|
175
|
+
"url": "https://github.com/qwelias",
|
|
176
|
+
"githubUsername": "qwelias"
|
|
156
177
|
},
|
|
157
178
|
{
|
|
158
179
|
"name": "ExE Boss",
|
|
159
180
|
"url": "https://github.com/ExE-Boss",
|
|
160
181
|
"githubUsername": "ExE-Boss"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "Piotr Błażejewicz",
|
|
185
|
+
"url": "https://github.com/peterblazejewicz",
|
|
186
|
+
"githubUsername": "peterblazejewicz"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"name": "Anna Henningsen",
|
|
190
|
+
"url": "https://github.com/addaleax",
|
|
191
|
+
"githubUsername": "addaleax"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"name": "Victor Perin",
|
|
195
|
+
"url": "https://github.com/victorperin",
|
|
196
|
+
"githubUsername": "victorperin"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"name": "Yongsheng Zhang",
|
|
200
|
+
"url": "https://github.com/ZYSzys",
|
|
201
|
+
"githubUsername": "ZYSzys"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "Bond",
|
|
205
|
+
"url": "https://github.com/bondz",
|
|
206
|
+
"githubUsername": "bondz"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "Linus Unnebäck",
|
|
210
|
+
"url": "https://github.com/LinusU",
|
|
211
|
+
"githubUsername": "LinusU"
|
|
161
212
|
}
|
|
162
213
|
],
|
|
163
214
|
"main": "",
|
|
164
215
|
"types": "index.d.ts",
|
|
165
|
-
"typesVersions": {
|
|
166
|
-
"<=3.6": {
|
|
167
|
-
"*": [
|
|
168
|
-
"ts3.6/*"
|
|
169
|
-
]
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
216
|
"repository": {
|
|
173
217
|
"type": "git",
|
|
174
218
|
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
|
@@ -176,6 +220,6 @@
|
|
|
176
220
|
},
|
|
177
221
|
"scripts": {},
|
|
178
222
|
"dependencies": {},
|
|
179
|
-
"typesPublisherContentHash": "
|
|
180
|
-
"typeScriptVersion": "
|
|
223
|
+
"typesPublisherContentHash": "b5b491c97ebfa0f92fab2356a8663c88c63e3bb189ec9bbd4cd5679add975b4c",
|
|
224
|
+
"typeScriptVersion": "4.0"
|
|
181
225
|
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
declare module 'path' {
|
|
2
|
+
namespace path {
|
|
3
|
+
/**
|
|
4
|
+
* A parsed path object generated by path.parse() or consumed by path.format().
|
|
5
|
+
*/
|
|
6
|
+
interface ParsedPath {
|
|
7
|
+
/**
|
|
8
|
+
* The root of the path such as '/' or 'c:\'
|
|
9
|
+
*/
|
|
10
|
+
root: string;
|
|
11
|
+
/**
|
|
12
|
+
* The full directory path such as '/home/user/dir' or 'c:\path\dir'
|
|
13
|
+
*/
|
|
14
|
+
dir: string;
|
|
15
|
+
/**
|
|
16
|
+
* The file name including extension (if any) such as 'index.html'
|
|
17
|
+
*/
|
|
18
|
+
base: string;
|
|
19
|
+
/**
|
|
20
|
+
* The file extension (if any) such as '.html'
|
|
21
|
+
*/
|
|
22
|
+
ext: string;
|
|
23
|
+
/**
|
|
24
|
+
* The file name without extension (if any) such as 'index'
|
|
25
|
+
*/
|
|
26
|
+
name: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
interface FormatInputPathObject {
|
|
30
|
+
/**
|
|
31
|
+
* The root of the path such as '/' or 'c:\'
|
|
32
|
+
*/
|
|
33
|
+
root?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The full directory path such as '/home/user/dir' or 'c:\path\dir'
|
|
36
|
+
*/
|
|
37
|
+
dir?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* The file name including extension (if any) such as 'index.html'
|
|
40
|
+
*/
|
|
41
|
+
base?: string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* The file extension (if any) such as '.html'
|
|
44
|
+
*/
|
|
45
|
+
ext?: string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* The file name without extension (if any) such as 'index'
|
|
48
|
+
*/
|
|
49
|
+
name?: string | undefined;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
interface PlatformPath {
|
|
53
|
+
/**
|
|
54
|
+
* Normalize a string path, reducing '..' and '.' parts.
|
|
55
|
+
* When multiple slashes are found, they're replaced by a single one; when the path contains a trailing slash, it is preserved. On Windows backslashes are used.
|
|
56
|
+
*
|
|
57
|
+
* @param path string path to normalize.
|
|
58
|
+
* @throws {TypeError} if `path` is not a string.
|
|
59
|
+
*/
|
|
60
|
+
normalize(path: string): string;
|
|
61
|
+
/**
|
|
62
|
+
* Join all arguments together and normalize the resulting path.
|
|
63
|
+
*
|
|
64
|
+
* @param paths paths to join.
|
|
65
|
+
* @throws {TypeError} if any of the path segments is not a string.
|
|
66
|
+
*/
|
|
67
|
+
join(...paths: string[]): string;
|
|
68
|
+
/**
|
|
69
|
+
* The right-most parameter is considered {to}. Other parameters are considered an array of {from}.
|
|
70
|
+
*
|
|
71
|
+
* Starting from leftmost {from} parameter, resolves {to} to an absolute path.
|
|
72
|
+
*
|
|
73
|
+
* If {to} isn't already absolute, {from} arguments are prepended in right to left order,
|
|
74
|
+
* until an absolute path is found. If after using all {from} paths still no absolute path is found,
|
|
75
|
+
* the current working directory is used as well. The resulting path is normalized,
|
|
76
|
+
* and trailing slashes are removed unless the path gets resolved to the root directory.
|
|
77
|
+
*
|
|
78
|
+
* @param paths A sequence of paths or path segments.
|
|
79
|
+
* @throws {TypeError} if any of the arguments is not a string.
|
|
80
|
+
*/
|
|
81
|
+
resolve(...paths: string[]): string;
|
|
82
|
+
/**
|
|
83
|
+
* Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory.
|
|
84
|
+
*
|
|
85
|
+
* If the given {path} is a zero-length string, `false` will be returned.
|
|
86
|
+
*
|
|
87
|
+
* @param path path to test.
|
|
88
|
+
* @throws {TypeError} if `path` is not a string.
|
|
89
|
+
*/
|
|
90
|
+
isAbsolute(path: string): boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Solve the relative path from {from} to {to} based on the current working directory.
|
|
93
|
+
* At times we have two absolute paths, and we need to derive the relative path from one to the other. This is actually the reverse transform of path.resolve.
|
|
94
|
+
*
|
|
95
|
+
* @throws {TypeError} if either `from` or `to` is not a string.
|
|
96
|
+
*/
|
|
97
|
+
relative(from: string, to: string): string;
|
|
98
|
+
/**
|
|
99
|
+
* Return the directory name of a path. Similar to the Unix dirname command.
|
|
100
|
+
*
|
|
101
|
+
* @param path the path to evaluate.
|
|
102
|
+
* @throws {TypeError} if `path` is not a string.
|
|
103
|
+
*/
|
|
104
|
+
dirname(path: string): string;
|
|
105
|
+
/**
|
|
106
|
+
* Return the last portion of a path. Similar to the Unix basename command.
|
|
107
|
+
* Often used to extract the file name from a fully qualified path.
|
|
108
|
+
*
|
|
109
|
+
* @param path the path to evaluate.
|
|
110
|
+
* @param ext optionally, an extension to remove from the result.
|
|
111
|
+
* @throws {TypeError} if `path` is not a string or if `ext` is given and is not a string.
|
|
112
|
+
*/
|
|
113
|
+
basename(path: string, ext?: string): string;
|
|
114
|
+
/**
|
|
115
|
+
* Return the extension of the path, from the last '.' to end of string in the last portion of the path.
|
|
116
|
+
* If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string.
|
|
117
|
+
*
|
|
118
|
+
* @param path the path to evaluate.
|
|
119
|
+
* @throws {TypeError} if `path` is not a string.
|
|
120
|
+
*/
|
|
121
|
+
extname(path: string): string;
|
|
122
|
+
/**
|
|
123
|
+
* The platform-specific file separator. '\\' or '/'.
|
|
124
|
+
*/
|
|
125
|
+
readonly sep: string;
|
|
126
|
+
/**
|
|
127
|
+
* The platform-specific file delimiter. ';' or ':'.
|
|
128
|
+
*/
|
|
129
|
+
readonly delimiter: string;
|
|
130
|
+
/**
|
|
131
|
+
* Returns an object from a path string - the opposite of format().
|
|
132
|
+
*
|
|
133
|
+
* @param path path to evaluate.
|
|
134
|
+
* @throws {TypeError} if `path` is not a string.
|
|
135
|
+
*/
|
|
136
|
+
parse(path: string): ParsedPath;
|
|
137
|
+
/**
|
|
138
|
+
* Returns a path string from an object - the opposite of parse().
|
|
139
|
+
*
|
|
140
|
+
* @param pathObject path to evaluate.
|
|
141
|
+
*/
|
|
142
|
+
format(pathObject: FormatInputPathObject): string;
|
|
143
|
+
/**
|
|
144
|
+
* On Windows systems only, returns an equivalent namespace-prefixed path for the given path.
|
|
145
|
+
* If path is not a string, path will be returned without modifications.
|
|
146
|
+
* This method is meaningful only on Windows system.
|
|
147
|
+
* On POSIX systems, the method is non-operational and always returns path without modifications.
|
|
148
|
+
*/
|
|
149
|
+
toNamespacedPath(path: string): string;
|
|
150
|
+
/**
|
|
151
|
+
* Posix specific pathing.
|
|
152
|
+
* Same as parent object on posix.
|
|
153
|
+
*/
|
|
154
|
+
readonly posix: PlatformPath;
|
|
155
|
+
/**
|
|
156
|
+
* Windows specific pathing.
|
|
157
|
+
* Same as parent object on windows
|
|
158
|
+
*/
|
|
159
|
+
readonly win32: PlatformPath;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
const path: path.PlatformPath;
|
|
163
|
+
export = path;
|
|
164
|
+
}
|
|
165
|
+
declare module 'node:path' {
|
|
166
|
+
import path = require('path');
|
|
167
|
+
export = path;
|
|
168
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
import { AsyncResource } from
|
|
1
|
+
declare module 'perf_hooks' {
|
|
2
|
+
import { AsyncResource } from 'async_hooks';
|
|
3
|
+
|
|
4
|
+
type EntryType = 'node' | 'mark' | 'measure' | 'gc' | 'function' | 'http2' | 'http';
|
|
3
5
|
|
|
4
6
|
interface PerformanceEntry {
|
|
5
7
|
/**
|
|
@@ -22,27 +24,45 @@ declare module "perf_hooks" {
|
|
|
22
24
|
* The type of the performance entry.
|
|
23
25
|
* Currently it may be one of: 'node', 'mark', 'measure', 'gc', or 'function'.
|
|
24
26
|
*/
|
|
25
|
-
readonly entryType:
|
|
27
|
+
readonly entryType: EntryType;
|
|
26
28
|
|
|
27
29
|
/**
|
|
28
|
-
* When performanceEntry.entryType is equal to 'gc', the performance.kind property identifies
|
|
30
|
+
* When `performanceEntry.entryType` is equal to 'gc', `the performance.kind` property identifies
|
|
29
31
|
* the type of garbage collection operation that occurred.
|
|
30
|
-
*
|
|
32
|
+
* See perf_hooks.constants for valid values.
|
|
33
|
+
*/
|
|
34
|
+
readonly kind?: number | undefined;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* When `performanceEntry.entryType` is equal to 'gc', the `performance.flags`
|
|
38
|
+
* property contains additional information about garbage collection operation.
|
|
39
|
+
* See perf_hooks.constants for valid values.
|
|
31
40
|
*/
|
|
32
|
-
readonly
|
|
41
|
+
readonly flags?: number | undefined;
|
|
33
42
|
}
|
|
34
43
|
|
|
35
44
|
interface PerformanceNodeTiming extends PerformanceEntry {
|
|
36
45
|
/**
|
|
37
46
|
* The high resolution millisecond timestamp at which the Node.js process completed bootstrap.
|
|
38
|
-
* If bootstrapping has not yet finished, the property has the value of -1.
|
|
39
47
|
*/
|
|
40
48
|
readonly bootstrapComplete: number;
|
|
41
49
|
|
|
42
50
|
/**
|
|
43
|
-
* The high resolution millisecond timestamp at which the Node.js
|
|
44
|
-
* If
|
|
45
|
-
|
|
51
|
+
* The high resolution millisecond timestamp at which the Node.js process completed bootstrapping.
|
|
52
|
+
* If bootstrapping has not yet finished, the property has the value of -1.
|
|
53
|
+
*/
|
|
54
|
+
readonly environment: number;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* The high resolution millisecond timestamp at which the Node.js environment was initialized.
|
|
58
|
+
*/
|
|
59
|
+
readonly idleTime: number;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The high resolution millisecond timestamp of the amount of time the event loop has been idle
|
|
63
|
+
* within the event loop's event provider (e.g. `epoll_wait`). This does not take CPU usage
|
|
64
|
+
* into consideration. If the event loop has not yet started (e.g., in the first tick of the main script),
|
|
65
|
+
* the property has the value of 0.
|
|
46
66
|
*/
|
|
47
67
|
readonly loopExit: number;
|
|
48
68
|
|
|
@@ -52,17 +72,18 @@ declare module "perf_hooks" {
|
|
|
52
72
|
*/
|
|
53
73
|
readonly loopStart: number;
|
|
54
74
|
|
|
55
|
-
/**
|
|
56
|
-
* The high resolution millisecond timestamp at which the Node.js process was initialized.
|
|
57
|
-
*/
|
|
58
|
-
readonly nodeStart: number;
|
|
59
|
-
|
|
60
75
|
/**
|
|
61
76
|
* The high resolution millisecond timestamp at which the V8 platform was initialized.
|
|
62
77
|
*/
|
|
63
78
|
readonly v8Start: number;
|
|
64
79
|
}
|
|
65
80
|
|
|
81
|
+
interface EventLoopUtilization {
|
|
82
|
+
idle: number;
|
|
83
|
+
active: number;
|
|
84
|
+
utilization: number;
|
|
85
|
+
}
|
|
86
|
+
|
|
66
87
|
interface Performance {
|
|
67
88
|
/**
|
|
68
89
|
* If name is not provided, removes all PerformanceMark objects from the Performance Timeline.
|
|
@@ -95,7 +116,7 @@ declare module "perf_hooks" {
|
|
|
95
116
|
* @param startMark
|
|
96
117
|
* @param endMark
|
|
97
118
|
*/
|
|
98
|
-
measure(name: string, startMark
|
|
119
|
+
measure(name: string, startMark?: string, endMark?: string): void;
|
|
99
120
|
|
|
100
121
|
/**
|
|
101
122
|
* An instance of the PerformanceNodeTiming class that provides performance metrics for specific Node.js operational milestones.
|
|
@@ -118,6 +139,16 @@ declare module "perf_hooks" {
|
|
|
118
139
|
* @param fn
|
|
119
140
|
*/
|
|
120
141
|
timerify<T extends (...optionalParams: any[]) => any>(fn: T): T;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* eventLoopUtilization is similar to CPU utilization except that it is calculated using high precision wall-clock time.
|
|
145
|
+
* It represents the percentage of time the event loop has spent outside the event loop's event provider (e.g. epoll_wait).
|
|
146
|
+
* No other CPU idle time is taken into consideration.
|
|
147
|
+
*
|
|
148
|
+
* @param util1 The result of a previous call to eventLoopUtilization()
|
|
149
|
+
* @param util2 The result of a previous call to eventLoopUtilization() prior to util1
|
|
150
|
+
*/
|
|
151
|
+
eventLoopUtilization(util1?: EventLoopUtilization, util2?: EventLoopUtilization): EventLoopUtilization;
|
|
121
152
|
}
|
|
122
153
|
|
|
123
154
|
interface PerformanceObserverEntryList {
|
|
@@ -130,13 +161,13 @@ declare module "perf_hooks" {
|
|
|
130
161
|
* @return a list of PerformanceEntry objects in chronological order with respect to performanceEntry.startTime
|
|
131
162
|
* whose performanceEntry.name is equal to name, and optionally, whose performanceEntry.entryType is equal to type.
|
|
132
163
|
*/
|
|
133
|
-
getEntriesByName(name: string, type?:
|
|
164
|
+
getEntriesByName(name: string, type?: EntryType): PerformanceEntry[];
|
|
134
165
|
|
|
135
166
|
/**
|
|
136
167
|
* @return Returns a list of PerformanceEntry objects in chronological order with respect to performanceEntry.startTime
|
|
137
168
|
* whose performanceEntry.entryType is equal to type.
|
|
138
169
|
*/
|
|
139
|
-
getEntriesByType(type:
|
|
170
|
+
getEntriesByType(type: EntryType): PerformanceEntry[];
|
|
140
171
|
}
|
|
141
172
|
|
|
142
173
|
type PerformanceObserverCallback = (list: PerformanceObserverEntryList, observer: PerformanceObserver) => void;
|
|
@@ -155,7 +186,7 @@ declare module "perf_hooks" {
|
|
|
155
186
|
* Property buffered defaults to false.
|
|
156
187
|
* @param options
|
|
157
188
|
*/
|
|
158
|
-
observe(options: { entryTypes: ReadonlyArray<
|
|
189
|
+
observe(options: { entryTypes: ReadonlyArray<EntryType>; buffered?: boolean | undefined }): void;
|
|
159
190
|
}
|
|
160
191
|
|
|
161
192
|
namespace constants {
|
|
@@ -163,7 +194,81 @@ declare module "perf_hooks" {
|
|
|
163
194
|
const NODE_PERFORMANCE_GC_MINOR: number;
|
|
164
195
|
const NODE_PERFORMANCE_GC_INCREMENTAL: number;
|
|
165
196
|
const NODE_PERFORMANCE_GC_WEAKCB: number;
|
|
197
|
+
|
|
198
|
+
const NODE_PERFORMANCE_GC_FLAGS_NO: number;
|
|
199
|
+
const NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: number;
|
|
200
|
+
const NODE_PERFORMANCE_GC_FLAGS_FORCED: number;
|
|
201
|
+
const NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: number;
|
|
202
|
+
const NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: number;
|
|
203
|
+
const NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: number;
|
|
204
|
+
const NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: number;
|
|
166
205
|
}
|
|
167
206
|
|
|
168
207
|
const performance: Performance;
|
|
208
|
+
|
|
209
|
+
interface EventLoopMonitorOptions {
|
|
210
|
+
/**
|
|
211
|
+
* The sampling rate in milliseconds.
|
|
212
|
+
* Must be greater than zero.
|
|
213
|
+
* @default 10
|
|
214
|
+
*/
|
|
215
|
+
resolution?: number | undefined;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
interface EventLoopDelayMonitor {
|
|
219
|
+
/**
|
|
220
|
+
* Enables the event loop delay sample timer. Returns `true` if the timer was started, `false` if it was already started.
|
|
221
|
+
*/
|
|
222
|
+
enable(): boolean;
|
|
223
|
+
/**
|
|
224
|
+
* Disables the event loop delay sample timer. Returns `true` if the timer was stopped, `false` if it was already stopped.
|
|
225
|
+
*/
|
|
226
|
+
disable(): boolean;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Resets the collected histogram data.
|
|
230
|
+
*/
|
|
231
|
+
reset(): void;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Returns the value at the given percentile.
|
|
235
|
+
* @param percentile A percentile value between 1 and 100.
|
|
236
|
+
*/
|
|
237
|
+
percentile(percentile: number): number;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* A `Map` object detailing the accumulated percentile distribution.
|
|
241
|
+
*/
|
|
242
|
+
readonly percentiles: Map<number, number>;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* The number of times the event loop delay exceeded the maximum 1 hour eventloop delay threshold.
|
|
246
|
+
*/
|
|
247
|
+
readonly exceeds: number;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* The minimum recorded event loop delay.
|
|
251
|
+
*/
|
|
252
|
+
readonly min: number;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* The maximum recorded event loop delay.
|
|
256
|
+
*/
|
|
257
|
+
readonly max: number;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* The mean of the recorded event loop delays.
|
|
261
|
+
*/
|
|
262
|
+
readonly mean: number;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* The standard deviation of the recorded event loop delays.
|
|
266
|
+
*/
|
|
267
|
+
readonly stddev: number;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
function monitorEventLoopDelay(options?: EventLoopMonitorOptions): EventLoopDelayMonitor;
|
|
271
|
+
}
|
|
272
|
+
declare module 'node:perf_hooks' {
|
|
273
|
+
export * from 'perf_hooks';
|
|
169
274
|
}
|