@wbce/projen-d9 0.0.27
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 +552 -0
- package/API.md +8472 -0
- package/CHANGELOG.md +189 -0
- package/LICENSE +674 -0
- package/README.md +82 -0
- package/lib/cli/commands/init.d.ts +1 -0
- package/lib/cli/commands/init.js +8 -0
- package/lib/cli/commands/save/apply-snapshot.d.ts +7 -0
- package/lib/cli/commands/save/apply-snapshot.js +278 -0
- package/lib/cli/commands/save/cli.d.ts +8 -0
- package/lib/cli/commands/save/cli.js +33 -0
- package/lib/cli/commands/save/draft.d.ts +0 -0
- package/lib/cli/commands/save/draft.js +2 -0
- package/lib/cli/commands/save/utils.d.ts +9 -0
- package/lib/cli/commands/save/utils.js +123 -0
- package/lib/cli/commands/sync.d.ts +5 -0
- package/lib/cli/commands/sync.js +13 -0
- package/lib/cli/index.d.ts +2 -0
- package/lib/cli/index.js +44 -0
- package/lib/index.d.ts +59 -0
- package/lib/index.js +322 -0
- package/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@types/node/README.md +16 -0
- package/node_modules/@types/node/assert.d.ts +117 -0
- package/node_modules/@types/node/async_hooks.d.ts +246 -0
- package/node_modules/@types/node/buffer.d.ts +22 -0
- package/node_modules/@types/node/child_process.d.ts +507 -0
- package/node_modules/@types/node/cluster.d.ts +260 -0
- package/node_modules/@types/node/console.d.ts +3 -0
- package/node_modules/@types/node/constants.d.ts +448 -0
- package/node_modules/@types/node/crypto.d.ts +1183 -0
- package/node_modules/@types/node/dgram.d.ts +118 -0
- package/node_modules/@types/node/dns.d.ts +372 -0
- package/node_modules/@types/node/domain.d.ts +16 -0
- package/node_modules/@types/node/events.d.ts +47 -0
- package/node_modules/@types/node/fs.d.ts +2567 -0
- package/node_modules/@types/node/globals.d.ts +1351 -0
- package/node_modules/@types/node/globals.global.d.ts +1 -0
- package/node_modules/@types/node/http.d.ts +456 -0
- package/node_modules/@types/node/http2.d.ts +952 -0
- package/node_modules/@types/node/https.d.ts +156 -0
- package/node_modules/@types/node/index.d.ts +91 -0
- package/node_modules/@types/node/inspector.d.ts +3040 -0
- package/node_modules/@types/node/module.d.ts +3 -0
- package/node_modules/@types/node/net.d.ts +290 -0
- package/node_modules/@types/node/os.d.ts +263 -0
- package/node_modules/@types/node/package.json +195 -0
- package/node_modules/@types/node/path.d.ts +159 -0
- package/node_modules/@types/node/perf_hooks.d.ts +259 -0
- package/node_modules/@types/node/process.d.ts +15 -0
- package/node_modules/@types/node/punycode.d.ts +75 -0
- package/node_modules/@types/node/querystring.d.ts +29 -0
- package/node_modules/@types/node/readline.d.ts +158 -0
- package/node_modules/@types/node/repl.d.ts +390 -0
- package/node_modules/@types/node/stream.d.ts +334 -0
- package/node_modules/@types/node/string_decoder.d.ts +7 -0
- package/node_modules/@types/node/timers.d.ts +16 -0
- package/node_modules/@types/node/tls.d.ts +713 -0
- package/node_modules/@types/node/trace_events.d.ts +61 -0
- package/node_modules/@types/node/tty.d.ts +66 -0
- package/node_modules/@types/node/url.d.ts +147 -0
- package/node_modules/@types/node/util.d.ts +200 -0
- package/node_modules/@types/node/v8.d.ts +197 -0
- package/node_modules/@types/node/vm.d.ts +112 -0
- package/node_modules/@types/node/wasi.d.ts +55 -0
- package/node_modules/@types/node/worker_threads.d.ts +207 -0
- package/node_modules/@types/node/zlib.d.ts +356 -0
- package/node_modules/@types/pg/LICENSE +21 -0
- package/node_modules/@types/pg/README.md +15 -0
- package/node_modules/@types/pg/index.d.mts +56 -0
- package/node_modules/@types/pg/index.d.ts +360 -0
- package/node_modules/@types/pg/lib/connection-parameters.d.ts +58 -0
- package/node_modules/@types/pg/lib/type-overrides.d.ts +77 -0
- package/node_modules/@types/pg/package.json +38 -0
- package/node_modules/@types/pg-copy-streams/LICENSE +21 -0
- package/node_modules/@types/pg-copy-streams/README.md +38 -0
- package/node_modules/@types/pg-copy-streams/index.d.ts +19 -0
- package/node_modules/@types/pg-copy-streams/package.json +28 -0
- package/node_modules/commander/LICENSE +22 -0
- package/node_modules/commander/Readme.md +1176 -0
- package/node_modules/commander/esm.mjs +16 -0
- package/node_modules/commander/index.js +24 -0
- package/node_modules/commander/lib/argument.js +150 -0
- package/node_modules/commander/lib/command.js +2777 -0
- package/node_modules/commander/lib/error.js +39 -0
- package/node_modules/commander/lib/help.js +747 -0
- package/node_modules/commander/lib/option.js +380 -0
- package/node_modules/commander/lib/suggestSimilar.js +101 -0
- package/node_modules/commander/package-support.json +19 -0
- package/node_modules/commander/package.json +82 -0
- package/node_modules/commander/typings/esm.d.mts +3 -0
- package/node_modules/commander/typings/index.d.ts +1113 -0
- package/node_modules/pg/LICENSE +21 -0
- package/node_modules/pg/README.md +95 -0
- package/node_modules/pg/esm/index.mjs +20 -0
- package/node_modules/pg/lib/client.js +743 -0
- package/node_modules/pg/lib/connection-parameters.js +171 -0
- package/node_modules/pg/lib/connection.js +221 -0
- package/node_modules/pg/lib/crypto/cert-signatures.js +122 -0
- package/node_modules/pg/lib/crypto/sasl.js +212 -0
- package/node_modules/pg/lib/crypto/utils-legacy.js +43 -0
- package/node_modules/pg/lib/crypto/utils-webcrypto.js +89 -0
- package/node_modules/pg/lib/crypto/utils.js +9 -0
- package/node_modules/pg/lib/defaults.js +91 -0
- package/node_modules/pg/lib/index.js +73 -0
- package/node_modules/pg/lib/native/client.js +323 -0
- package/node_modules/pg/lib/native/index.js +2 -0
- package/node_modules/pg/lib/native/query.js +165 -0
- package/node_modules/pg/lib/query.js +252 -0
- package/node_modules/pg/lib/result.js +109 -0
- package/node_modules/pg/lib/stream.js +83 -0
- package/node_modules/pg/lib/type-overrides.js +35 -0
- package/node_modules/pg/lib/utils.js +217 -0
- package/node_modules/pg/package.json +76 -0
- package/node_modules/pg-copy-streams/Makefile +19 -0
- package/node_modules/pg-copy-streams/README.md +315 -0
- package/node_modules/pg-copy-streams/copy-both.js +267 -0
- package/node_modules/pg-copy-streams/copy-from.js +173 -0
- package/node_modules/pg-copy-streams/copy-to.js +177 -0
- package/node_modules/pg-copy-streams/eslint.config.js +55 -0
- package/node_modules/pg-copy-streams/index.js +17 -0
- package/node_modules/pg-copy-streams/message-formats.js +27 -0
- package/node_modules/pg-copy-streams/obuf.js +376 -0
- package/node_modules/pg-copy-streams/package.json +51 -0
- package/package.json +136 -0
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@types/node",
|
|
3
|
+
"version": "12.20.55",
|
|
4
|
+
"description": "TypeScript definitions for Node.js",
|
|
5
|
+
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"contributors": [
|
|
8
|
+
{
|
|
9
|
+
"name": "Microsoft TypeScript",
|
|
10
|
+
"url": "https://github.com/Microsoft",
|
|
11
|
+
"githubUsername": "Microsoft"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "DefinitelyTyped",
|
|
15
|
+
"url": "https://github.com/DefinitelyTyped",
|
|
16
|
+
"githubUsername": "DefinitelyTyped"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "Alberto Schiabel",
|
|
20
|
+
"url": "https://github.com/jkomyno",
|
|
21
|
+
"githubUsername": "jkomyno"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "Alvis HT Tang",
|
|
25
|
+
"url": "https://github.com/alvis",
|
|
26
|
+
"githubUsername": "alvis"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "Andrew Makarov",
|
|
30
|
+
"url": "https://github.com/r3nya",
|
|
31
|
+
"githubUsername": "r3nya"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "Benjamin Toueg",
|
|
35
|
+
"url": "https://github.com/btoueg",
|
|
36
|
+
"githubUsername": "btoueg"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "Chigozirim C.",
|
|
40
|
+
"url": "https://github.com/smac89",
|
|
41
|
+
"githubUsername": "smac89"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "David Junger",
|
|
45
|
+
"url": "https://github.com/touffy",
|
|
46
|
+
"githubUsername": "touffy"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "Deividas Bakanas",
|
|
50
|
+
"url": "https://github.com/DeividasBakanas",
|
|
51
|
+
"githubUsername": "DeividasBakanas"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "Eugene Y. Q. Shen",
|
|
55
|
+
"url": "https://github.com/eyqs",
|
|
56
|
+
"githubUsername": "eyqs"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "Hannes Magnusson",
|
|
60
|
+
"url": "https://github.com/Hannes-Magnusson-CK",
|
|
61
|
+
"githubUsername": "Hannes-Magnusson-CK"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "Hoàng Văn Khải",
|
|
65
|
+
"url": "https://github.com/KSXGitHub",
|
|
66
|
+
"githubUsername": "KSXGitHub"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "Huw",
|
|
70
|
+
"url": "https://github.com/hoo29",
|
|
71
|
+
"githubUsername": "hoo29"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "Kelvin Jin",
|
|
75
|
+
"url": "https://github.com/kjin",
|
|
76
|
+
"githubUsername": "kjin"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "Klaus Meinhardt",
|
|
80
|
+
"url": "https://github.com/ajafff",
|
|
81
|
+
"githubUsername": "ajafff"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "Lishude",
|
|
85
|
+
"url": "https://github.com/islishude",
|
|
86
|
+
"githubUsername": "islishude"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "Mariusz Wiktorczyk",
|
|
90
|
+
"url": "https://github.com/mwiktorczyk",
|
|
91
|
+
"githubUsername": "mwiktorczyk"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "Mohsen Azimi",
|
|
95
|
+
"url": "https://github.com/mohsen1",
|
|
96
|
+
"githubUsername": "mohsen1"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "Nicolas Even",
|
|
100
|
+
"url": "https://github.com/n-e",
|
|
101
|
+
"githubUsername": "n-e"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "Nikita Galkin",
|
|
105
|
+
"url": "https://github.com/galkin",
|
|
106
|
+
"githubUsername": "galkin"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "Parambir Singh",
|
|
110
|
+
"url": "https://github.com/parambirs",
|
|
111
|
+
"githubUsername": "parambirs"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "Sebastian Silbermann",
|
|
115
|
+
"url": "https://github.com/eps1lon",
|
|
116
|
+
"githubUsername": "eps1lon"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "Simon Schick",
|
|
120
|
+
"url": "https://github.com/SimonSchick",
|
|
121
|
+
"githubUsername": "SimonSchick"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"name": "Thomas den Hollander",
|
|
125
|
+
"url": "https://github.com/ThomasdenH",
|
|
126
|
+
"githubUsername": "ThomasdenH"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "Wilco Bakker",
|
|
130
|
+
"url": "https://github.com/WilcoBakker",
|
|
131
|
+
"githubUsername": "WilcoBakker"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "wwwy3y3",
|
|
135
|
+
"url": "https://github.com/wwwy3y3",
|
|
136
|
+
"githubUsername": "wwwy3y3"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "Zane Hannan AU",
|
|
140
|
+
"url": "https://github.com/ZaneHannanAU",
|
|
141
|
+
"githubUsername": "ZaneHannanAU"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "Samuel Ainsworth",
|
|
145
|
+
"url": "https://github.com/samuela",
|
|
146
|
+
"githubUsername": "samuela"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "Kyle Uehlein",
|
|
150
|
+
"url": "https://github.com/kuehlein",
|
|
151
|
+
"githubUsername": "kuehlein"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"name": "Thanik Bhongbhibhat",
|
|
155
|
+
"url": "https://github.com/bhongy",
|
|
156
|
+
"githubUsername": "bhongy"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
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"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "ExE Boss",
|
|
180
|
+
"url": "https://github.com/ExE-Boss",
|
|
181
|
+
"githubUsername": "ExE-Boss"
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
"main": "",
|
|
185
|
+
"types": "index.d.ts",
|
|
186
|
+
"repository": {
|
|
187
|
+
"type": "git",
|
|
188
|
+
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
|
189
|
+
"directory": "types/node"
|
|
190
|
+
},
|
|
191
|
+
"scripts": {},
|
|
192
|
+
"dependencies": {},
|
|
193
|
+
"typesPublisherContentHash": "3d29774cbf5180f3bd5b1bd954e268a18a74c90d34acff15c56308ec98960bec",
|
|
194
|
+
"typeScriptVersion": "3.9"
|
|
195
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
declare module 'path' {
|
|
2
|
+
/**
|
|
3
|
+
* A parsed path object generated by path.parse() or consumed by path.format().
|
|
4
|
+
*/
|
|
5
|
+
interface ParsedPath {
|
|
6
|
+
/**
|
|
7
|
+
* The root of the path such as '/' or 'c:\'
|
|
8
|
+
*/
|
|
9
|
+
root: string;
|
|
10
|
+
/**
|
|
11
|
+
* The full directory path such as '/home/user/dir' or 'c:\path\dir'
|
|
12
|
+
*/
|
|
13
|
+
dir: string;
|
|
14
|
+
/**
|
|
15
|
+
* The file name including extension (if any) such as 'index.html'
|
|
16
|
+
*/
|
|
17
|
+
base: string;
|
|
18
|
+
/**
|
|
19
|
+
* The file extension (if any) such as '.html'
|
|
20
|
+
*/
|
|
21
|
+
ext: string;
|
|
22
|
+
/**
|
|
23
|
+
* The file name without extension (if any) such as 'index'
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
}
|
|
27
|
+
interface FormatInputPathObject {
|
|
28
|
+
/**
|
|
29
|
+
* The root of the path such as '/' or 'c:\'
|
|
30
|
+
*/
|
|
31
|
+
root?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* The full directory path such as '/home/user/dir' or 'c:\path\dir'
|
|
34
|
+
*/
|
|
35
|
+
dir?: string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* The file name including extension (if any) such as 'index.html'
|
|
38
|
+
*/
|
|
39
|
+
base?: string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* The file extension (if any) such as '.html'
|
|
42
|
+
*/
|
|
43
|
+
ext?: string | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* The file name without extension (if any) such as 'index'
|
|
46
|
+
*/
|
|
47
|
+
name?: string | undefined;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Normalize a string path, reducing '..' and '.' parts.
|
|
52
|
+
* 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.
|
|
53
|
+
*
|
|
54
|
+
* @param p string path to normalize.
|
|
55
|
+
*/
|
|
56
|
+
function normalize(p: string): string;
|
|
57
|
+
/**
|
|
58
|
+
* Join all arguments together and normalize the resulting path.
|
|
59
|
+
* Arguments must be strings. In v0.8, non-string arguments were silently ignored. In v0.10 and up, an exception is thrown.
|
|
60
|
+
*
|
|
61
|
+
* @param paths paths to join.
|
|
62
|
+
*/
|
|
63
|
+
function join(...paths: string[]): string;
|
|
64
|
+
/**
|
|
65
|
+
* The right-most parameter is considered {to}. Other parameters are considered an array of {from}.
|
|
66
|
+
*
|
|
67
|
+
* Starting from leftmost {from} parameter, resolves {to} to an absolute path.
|
|
68
|
+
*
|
|
69
|
+
* If {to} isn't already absolute, {from} arguments are prepended in right to left order,
|
|
70
|
+
* until an absolute path is found. If after using all {from} paths still no absolute path is found,
|
|
71
|
+
* the current working directory is used as well. The resulting path is normalized,
|
|
72
|
+
* and trailing slashes are removed unless the path gets resolved to the root directory.
|
|
73
|
+
*
|
|
74
|
+
* @param pathSegments string paths to join. Non-string arguments are ignored.
|
|
75
|
+
*/
|
|
76
|
+
function resolve(...pathSegments: string[]): string;
|
|
77
|
+
/**
|
|
78
|
+
* Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory.
|
|
79
|
+
*
|
|
80
|
+
* @param path path to test.
|
|
81
|
+
*/
|
|
82
|
+
function isAbsolute(path: string): boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Solve the relative path from {from} to {to}.
|
|
85
|
+
* 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.
|
|
86
|
+
*/
|
|
87
|
+
function relative(from: string, to: string): string;
|
|
88
|
+
/**
|
|
89
|
+
* Return the directory name of a path. Similar to the Unix dirname command.
|
|
90
|
+
*
|
|
91
|
+
* @param p the path to evaluate.
|
|
92
|
+
*/
|
|
93
|
+
function dirname(p: string): string;
|
|
94
|
+
/**
|
|
95
|
+
* Return the last portion of a path. Similar to the Unix basename command.
|
|
96
|
+
* Often used to extract the file name from a fully qualified path.
|
|
97
|
+
*
|
|
98
|
+
* @param p the path to evaluate.
|
|
99
|
+
* @param ext optionally, an extension to remove from the result.
|
|
100
|
+
*/
|
|
101
|
+
function basename(p: string, ext?: string): string;
|
|
102
|
+
/**
|
|
103
|
+
* Return the extension of the path, from the last '.' to end of string in the last portion of the path.
|
|
104
|
+
* If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string
|
|
105
|
+
*
|
|
106
|
+
* @param p the path to evaluate.
|
|
107
|
+
*/
|
|
108
|
+
function extname(p: string): string;
|
|
109
|
+
/**
|
|
110
|
+
* The platform-specific file separator. '\\' or '/'.
|
|
111
|
+
*/
|
|
112
|
+
const sep: '\\' | '/';
|
|
113
|
+
/**
|
|
114
|
+
* The platform-specific file delimiter. ';' or ':'.
|
|
115
|
+
*/
|
|
116
|
+
const delimiter: ';' | ':';
|
|
117
|
+
/**
|
|
118
|
+
* Returns an object from a path string - the opposite of format().
|
|
119
|
+
*
|
|
120
|
+
* @param pathString path to evaluate.
|
|
121
|
+
*/
|
|
122
|
+
function parse(pathString: string): ParsedPath;
|
|
123
|
+
/**
|
|
124
|
+
* Returns a path string from an object - the opposite of parse().
|
|
125
|
+
*
|
|
126
|
+
* @param pathString path to evaluate.
|
|
127
|
+
*/
|
|
128
|
+
function format(pathObject: FormatInputPathObject): string;
|
|
129
|
+
|
|
130
|
+
namespace posix {
|
|
131
|
+
function normalize(p: string): string;
|
|
132
|
+
function join(...paths: string[]): string;
|
|
133
|
+
function resolve(...pathSegments: string[]): string;
|
|
134
|
+
function isAbsolute(p: string): boolean;
|
|
135
|
+
function relative(from: string, to: string): string;
|
|
136
|
+
function dirname(p: string): string;
|
|
137
|
+
function basename(p: string, ext?: string): string;
|
|
138
|
+
function extname(p: string): string;
|
|
139
|
+
const sep: string;
|
|
140
|
+
const delimiter: string;
|
|
141
|
+
function parse(p: string): ParsedPath;
|
|
142
|
+
function format(pP: FormatInputPathObject): string;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
namespace win32 {
|
|
146
|
+
function normalize(p: string): string;
|
|
147
|
+
function join(...paths: string[]): string;
|
|
148
|
+
function resolve(...pathSegments: string[]): string;
|
|
149
|
+
function isAbsolute(p: string): boolean;
|
|
150
|
+
function relative(from: string, to: string): string;
|
|
151
|
+
function dirname(p: string): string;
|
|
152
|
+
function basename(p: string, ext?: string): string;
|
|
153
|
+
function extname(p: string): string;
|
|
154
|
+
const sep: string;
|
|
155
|
+
const delimiter: string;
|
|
156
|
+
function parse(p: string): ParsedPath;
|
|
157
|
+
function format(pP: FormatInputPathObject): string;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
declare module 'perf_hooks' {
|
|
2
|
+
import { AsyncResource } from 'async_hooks';
|
|
3
|
+
|
|
4
|
+
interface PerformanceEntry {
|
|
5
|
+
/**
|
|
6
|
+
* The total number of milliseconds elapsed for this entry.
|
|
7
|
+
* This value will not be meaningful for all Performance Entry types.
|
|
8
|
+
*/
|
|
9
|
+
readonly duration: number;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The name of the performance entry.
|
|
13
|
+
*/
|
|
14
|
+
readonly name: string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The high resolution millisecond timestamp marking the starting time of the Performance Entry.
|
|
18
|
+
*/
|
|
19
|
+
readonly startTime: number;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The type of the performance entry.
|
|
23
|
+
* Currently it may be one of: 'node', 'mark', 'measure', 'gc', or 'function'.
|
|
24
|
+
*/
|
|
25
|
+
readonly entryType: string;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* When performanceEntry.entryType is equal to 'gc', the performance.kind property identifies
|
|
29
|
+
* the type of garbage collection operation that occurred.
|
|
30
|
+
* The value may be one of perf_hooks.constants.
|
|
31
|
+
*/
|
|
32
|
+
readonly kind?: number | undefined;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
interface PerformanceNodeTiming extends PerformanceEntry {
|
|
36
|
+
/**
|
|
37
|
+
* 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
|
+
*/
|
|
40
|
+
readonly bootstrapComplete: number;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* The high resolution millisecond timestamp at which the Node.js process completed bootstrapping.
|
|
44
|
+
* If bootstrapping has not yet finished, the property has the value of -1.
|
|
45
|
+
*/
|
|
46
|
+
readonly environment: number;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* The high resolution millisecond timestamp at which the Node.js environment was initialized.
|
|
50
|
+
*/
|
|
51
|
+
readonly idleTime: number;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* The high resolution millisecond timestamp at which the Node.js event loop exited.
|
|
55
|
+
* If the event loop has not yet exited, the property has the value of -1.
|
|
56
|
+
* It can only have a value of not -1 in a handler of the 'exit' event.
|
|
57
|
+
*/
|
|
58
|
+
readonly loopExit: number;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* The high resolution millisecond timestamp at which the Node.js event loop started.
|
|
62
|
+
* If the event loop has not yet started (e.g., in the first tick of the main script), the property has the value of -1.
|
|
63
|
+
*/
|
|
64
|
+
readonly loopStart: number;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* The high resolution millisecond timestamp at which the Node.js process was initialized.
|
|
68
|
+
*/
|
|
69
|
+
readonly nodeStart: number;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The high resolution millisecond timestamp at which the V8 platform was initialized.
|
|
73
|
+
*/
|
|
74
|
+
readonly v8Start: number;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
interface EventLoopUtilization {
|
|
78
|
+
idle: number;
|
|
79
|
+
active: number;
|
|
80
|
+
utilization: number;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
interface Performance {
|
|
84
|
+
/**
|
|
85
|
+
* If name is not provided, removes all PerformanceMark objects from the Performance Timeline.
|
|
86
|
+
* If name is provided, removes only the named mark.
|
|
87
|
+
* @param name
|
|
88
|
+
*/
|
|
89
|
+
clearMarks(name?: string): void;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Creates a new PerformanceMark entry in the Performance Timeline.
|
|
93
|
+
* A PerformanceMark is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'mark',
|
|
94
|
+
* and whose performanceEntry.duration is always 0.
|
|
95
|
+
* Performance marks are used to mark specific significant moments in the Performance Timeline.
|
|
96
|
+
* @param name
|
|
97
|
+
*/
|
|
98
|
+
mark(name?: string): void;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Creates a new PerformanceMeasure entry in the Performance Timeline.
|
|
102
|
+
* A PerformanceMeasure is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'measure',
|
|
103
|
+
* and whose performanceEntry.duration measures the number of milliseconds elapsed since startMark and endMark.
|
|
104
|
+
*
|
|
105
|
+
* The startMark argument may identify any existing PerformanceMark in the the Performance Timeline, or may identify
|
|
106
|
+
* any of the timestamp properties provided by the PerformanceNodeTiming class. If the named startMark does not exist,
|
|
107
|
+
* then startMark is set to timeOrigin by default.
|
|
108
|
+
*
|
|
109
|
+
* The endMark argument must identify any existing PerformanceMark in the the Performance Timeline or any of the timestamp
|
|
110
|
+
* properties provided by the PerformanceNodeTiming class. If the named endMark does not exist, an error will be thrown.
|
|
111
|
+
* @param name
|
|
112
|
+
* @param startMark
|
|
113
|
+
* @param endMark
|
|
114
|
+
*/
|
|
115
|
+
measure(name: string, startMark?: string, endMark?: string): void;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* An instance of the PerformanceNodeTiming class that provides performance metrics for specific Node.js operational milestones.
|
|
119
|
+
*/
|
|
120
|
+
readonly nodeTiming: PerformanceNodeTiming;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @return the current high resolution millisecond timestamp
|
|
124
|
+
*/
|
|
125
|
+
now(): number;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* The timeOrigin specifies the high resolution millisecond timestamp from which all performance metric durations are measured.
|
|
129
|
+
*/
|
|
130
|
+
readonly timeOrigin: number;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Wraps a function within a new function that measures the running time of the wrapped function.
|
|
134
|
+
* A PerformanceObserver must be subscribed to the 'function' event type in order for the timing details to be accessed.
|
|
135
|
+
* @param fn
|
|
136
|
+
*/
|
|
137
|
+
timerify<T extends (...optionalParams: any[]) => any>(fn: T): T;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* eventLoopUtilization is similar to CPU utilization except that it is calculated using high precision wall-clock time.
|
|
141
|
+
* It represents the percentage of time the event loop has spent outside the event loop's event provider (e.g. epoll_wait).
|
|
142
|
+
* No other CPU idle time is taken into consideration.
|
|
143
|
+
*
|
|
144
|
+
* @param util1 The result of a previous call to eventLoopUtilization()
|
|
145
|
+
* @param util2 The result of a previous call to eventLoopUtilization() prior to util1
|
|
146
|
+
*/
|
|
147
|
+
eventLoopUtilization(util1?: EventLoopUtilization, util2?: EventLoopUtilization): EventLoopUtilization;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
interface PerformanceObserverEntryList {
|
|
151
|
+
/**
|
|
152
|
+
* @return a list of PerformanceEntry objects in chronological order with respect to performanceEntry.startTime.
|
|
153
|
+
*/
|
|
154
|
+
getEntries(): PerformanceEntry[];
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @return a list of PerformanceEntry objects in chronological order with respect to performanceEntry.startTime
|
|
158
|
+
* whose performanceEntry.name is equal to name, and optionally, whose performanceEntry.entryType is equal to type.
|
|
159
|
+
*/
|
|
160
|
+
getEntriesByName(name: string, type?: string): PerformanceEntry[];
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* @return Returns a list of PerformanceEntry objects in chronological order with respect to performanceEntry.startTime
|
|
164
|
+
* whose performanceEntry.entryType is equal to type.
|
|
165
|
+
*/
|
|
166
|
+
getEntriesByType(type: string): PerformanceEntry[];
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
type PerformanceObserverCallback = (list: PerformanceObserverEntryList, observer: PerformanceObserver) => void;
|
|
170
|
+
|
|
171
|
+
class PerformanceObserver extends AsyncResource {
|
|
172
|
+
constructor(callback: PerformanceObserverCallback);
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Disconnects the PerformanceObserver instance from all notifications.
|
|
176
|
+
*/
|
|
177
|
+
disconnect(): void;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Subscribes the PerformanceObserver instance to notifications of new PerformanceEntry instances identified by options.entryTypes.
|
|
181
|
+
* When options.buffered is false, the callback will be invoked once for every PerformanceEntry instance.
|
|
182
|
+
* Property buffered defaults to false.
|
|
183
|
+
* @param options
|
|
184
|
+
*/
|
|
185
|
+
observe(options: { entryTypes: ReadonlyArray<string>; buffered?: boolean | undefined }): void;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
namespace constants {
|
|
189
|
+
const NODE_PERFORMANCE_GC_MAJOR: number;
|
|
190
|
+
const NODE_PERFORMANCE_GC_MINOR: number;
|
|
191
|
+
const NODE_PERFORMANCE_GC_INCREMENTAL: number;
|
|
192
|
+
const NODE_PERFORMANCE_GC_WEAKCB: number;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
const performance: Performance;
|
|
196
|
+
|
|
197
|
+
interface EventLoopMonitorOptions {
|
|
198
|
+
/**
|
|
199
|
+
* The sampling rate in milliseconds.
|
|
200
|
+
* Must be greater than zero.
|
|
201
|
+
* @default 10
|
|
202
|
+
*/
|
|
203
|
+
resolution?: number | undefined;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
interface EventLoopDelayMonitor {
|
|
207
|
+
/**
|
|
208
|
+
* Enables the event loop delay sample timer. Returns `true` if the timer was started, `false` if it was already started.
|
|
209
|
+
*/
|
|
210
|
+
enable(): boolean;
|
|
211
|
+
/**
|
|
212
|
+
* Disables the event loop delay sample timer. Returns `true` if the timer was stopped, `false` if it was already stopped.
|
|
213
|
+
*/
|
|
214
|
+
disable(): boolean;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Resets the collected histogram data.
|
|
218
|
+
*/
|
|
219
|
+
reset(): void;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Returns the value at the given percentile.
|
|
223
|
+
* @param percentile A percentile value between 1 and 100.
|
|
224
|
+
*/
|
|
225
|
+
percentile(percentile: number): number;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* A `Map` object detailing the accumulated percentile distribution.
|
|
229
|
+
*/
|
|
230
|
+
readonly percentiles: Map<number, number>;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* The number of times the event loop delay exceeded the maximum 1 hour eventloop delay threshold.
|
|
234
|
+
*/
|
|
235
|
+
readonly exceeds: number;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* The minimum recorded event loop delay.
|
|
239
|
+
*/
|
|
240
|
+
readonly min: number;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* The maximum recorded event loop delay.
|
|
244
|
+
*/
|
|
245
|
+
readonly max: number;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* The mean of the recorded event loop delays.
|
|
249
|
+
*/
|
|
250
|
+
readonly mean: number;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* The standard deviation of the recorded event loop delays.
|
|
254
|
+
*/
|
|
255
|
+
readonly stddev: number;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
function monitorEventLoopDelay(options?: EventLoopMonitorOptions): EventLoopDelayMonitor;
|
|
259
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare module 'process' {
|
|
2
|
+
import * as tty from 'tty';
|
|
3
|
+
|
|
4
|
+
global {
|
|
5
|
+
namespace NodeJS {
|
|
6
|
+
// this namespace merge is here because these are specifically used
|
|
7
|
+
// as the type for process.stdin, process.stdout, and process.stderr.
|
|
8
|
+
// they can't live in tty.d.ts because we need to disambiguate the imported name.
|
|
9
|
+
interface ReadStream extends tty.ReadStream {}
|
|
10
|
+
interface WriteStream extends tty.WriteStream {}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export = process;
|
|
15
|
+
}
|