cloudstructs 0.6.27 → 0.6.29
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 +14 -14
- package/assets/slack-app/provider.lambda/index.js +8 -8
- package/assets/slack-events/events.lambda/index.js +12 -14
- package/assets/slack-textract/detect.lambda/index.js +4 -4
- package/assets/toolkit-cleaner/clean-images.lambda/index.js +7 -8
- package/assets/toolkit-cleaner/clean-objects.lambda/index.js +7 -8
- package/assets/toolkit-cleaner/extract-template-hashes.lambda/index.js +4 -4
- package/assets/toolkit-cleaner/get-stack-names.lambda/index.js +8 -4
- package/assets/url-shortener/redirect.edge-lambda/index.js +5 -6
- package/assets/url-shortener/shortener.lambda/index.js +11 -9
- package/lib/codecommit-mirror/index.js +2 -2
- package/lib/ecs-service-roller/index.js +9 -8
- package/lib/email-receiver/receiver.js +1 -1
- package/lib/email-receiver/s3-function.js +2 -2
- package/lib/email-receiver/whitelist-function.js +2 -2
- package/lib/saml-identity-provider/index.js +3 -3
- package/lib/slack-app/manifest.js +1 -1
- package/lib/slack-app/provider-function.js +2 -2
- package/lib/slack-app/provider.lambda.js +10 -9
- package/lib/slack-app/slack-app.js +2 -2
- package/lib/slack-events/events-function.js +2 -2
- package/lib/slack-events/events.lambda.js +7 -9
- package/lib/slack-events/index.js +1 -1
- package/lib/slack-textract/detect-function.js +2 -2
- package/lib/slack-textract/detect.lambda.js +5 -5
- package/lib/slack-textract/index.js +1 -1
- package/lib/ssl-server-test/analyze-function.js +2 -2
- package/lib/ssl-server-test/extract-grade-function.js +2 -2
- package/lib/ssl-server-test/index.js +1 -1
- package/lib/state-machine-cr-provider/index.js +4 -4
- package/lib/state-machine-cr-provider/runtime/index.js +5 -5
- package/lib/static-website/index.js +1 -1
- package/lib/static-website/origin-request-function.js +2 -2
- package/lib/toolkit-cleaner/clean-images-function.js +2 -2
- package/lib/toolkit-cleaner/clean-images.lambda.js +7 -7
- package/lib/toolkit-cleaner/clean-objects-function.js +2 -2
- package/lib/toolkit-cleaner/clean-objects.lambda.js +7 -7
- package/lib/toolkit-cleaner/extract-template-hashes-function.js +2 -2
- package/lib/toolkit-cleaner/extract-template-hashes.lambda.js +5 -5
- package/lib/toolkit-cleaner/get-stack-names-function.js +2 -2
- package/lib/toolkit-cleaner/get-stack-names.lambda.js +9 -5
- package/lib/toolkit-cleaner/index.js +1 -1
- package/lib/url-shortener/index.js +1 -1
- package/lib/url-shortener/redirect-function.js +2 -2
- package/lib/url-shortener/redirect.edge-lambda.js +5 -5
- package/lib/url-shortener/shortener-function.js +2 -2
- package/lib/url-shortener/shortener.lambda.js +11 -8
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +3 -2
- package/node_modules/@slack/logger/node_modules/@types/node/diagnostics_channel.d.ts +39 -0
- package/node_modules/@slack/logger/node_modules/@types/node/dns.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +1 -0
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +7 -0
- package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +0 -1
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +6 -0
- package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +99 -0
- package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +99 -31
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +40 -1
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/dns.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/http2.d.ts +0 -1
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/process.d.ts +6 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/stream.d.ts +99 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/test.d.ts +99 -31
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/v8.d.ts +51 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/vm.d.ts +146 -11
- package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +51 -0
- package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +146 -11
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +3 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/diagnostics_channel.d.ts +39 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/dns.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +1 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +7 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +0 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +6 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +99 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +99 -31
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +40 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/dns.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/http2.d.ts +0 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/process.d.ts +6 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/stream.d.ts +99 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/test.d.ts +99 -31
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/v8.d.ts +51 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/vm.d.ts +146 -11
- package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +51 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +146 -11
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +3 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +39 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +7 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +0 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +6 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +99 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +99 -31
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +40 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dns.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/http2.d.ts +0 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/process.d.ts +6 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream.d.ts +99 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/test.d.ts +99 -31
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/v8.d.ts +51 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/vm.d.ts +146 -11
- package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +51 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +146 -11
- package/node_modules/@types/is-stream/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/crypto.d.ts +3 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/diagnostics_channel.d.ts +39 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/dns.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/globals.d.ts +1 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/http.d.ts +7 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/http2.d.ts +0 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/process.d.ts +6 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/stream.d.ts +99 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/test.d.ts +99 -31
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +40 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/dns.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/http2.d.ts +0 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/process.d.ts +6 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/stream.d.ts +99 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/test.d.ts +99 -31
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/v8.d.ts +51 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/vm.d.ts +146 -11
- package/node_modules/@types/is-stream/node_modules/@types/node/v8.d.ts +51 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/vm.d.ts +146 -11
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +3 -2
- package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +39 -0
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +7 -0
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +0 -1
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +6 -0
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +99 -0
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +99 -31
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +40 -1
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dns.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/http2.d.ts +0 -1
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/process.d.ts +6 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream.d.ts +99 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/test.d.ts +99 -31
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/v8.d.ts +51 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/vm.d.ts +146 -11
- package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +51 -0
- package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +146 -11
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +3 -2
- package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +39 -0
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +7 -0
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +0 -1
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +6 -0
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +99 -0
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +99 -31
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +40 -1
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dns.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/http2.d.ts +0 -1
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/process.d.ts +6 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream.d.ts +99 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/test.d.ts +99 -31
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/v8.d.ts +51 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/vm.d.ts +146 -11
- package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +51 -0
- package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +146 -11
- package/package.json +21 -10
|
@@ -56,11 +56,17 @@ declare module 'vm' {
|
|
|
56
56
|
columnOffset?: number | undefined;
|
|
57
57
|
}
|
|
58
58
|
interface ScriptOptions extends BaseOptions {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
/**
|
|
60
|
+
* V8's code cache data for the supplied source.
|
|
61
|
+
*/
|
|
62
|
+
cachedData?: Buffer | NodeJS.ArrayBufferView | undefined;
|
|
62
63
|
/** @deprecated in favor of `script.createCachedData()` */
|
|
63
64
|
produceCachedData?: boolean | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Called during evaluation of this module when `import()` is called.
|
|
67
|
+
* If this option is not specified, calls to `import()` will reject with `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING`.
|
|
68
|
+
*/
|
|
69
|
+
importModuleDynamically?: ((specifier: string, script: Script, importAssertions: Object) => Module) | undefined;
|
|
64
70
|
}
|
|
65
71
|
interface RunningScriptOptions extends BaseOptions {
|
|
66
72
|
/**
|
|
@@ -80,10 +86,31 @@ declare module 'vm' {
|
|
|
80
86
|
* Default: `false`.
|
|
81
87
|
*/
|
|
82
88
|
breakOnSigint?: boolean | undefined;
|
|
89
|
+
}
|
|
90
|
+
interface RunningScriptInNewContextOptions extends RunningScriptOptions {
|
|
91
|
+
/**
|
|
92
|
+
* Human-readable name of the newly created context.
|
|
93
|
+
*/
|
|
94
|
+
contextName?: CreateContextOptions['name'];
|
|
95
|
+
/**
|
|
96
|
+
* Origin corresponding to the newly created context for display purposes. The origin should be formatted like a URL,
|
|
97
|
+
* but with only the scheme, host, and port (if necessary), like the value of the `url.origin` property of a `URL` object.
|
|
98
|
+
* Most notably, this string should omit the trailing slash, as that denotes a path.
|
|
99
|
+
*/
|
|
100
|
+
contextOrigin?: CreateContextOptions['origin'];
|
|
101
|
+
contextCodeGeneration?: CreateContextOptions['codeGeneration'];
|
|
83
102
|
/**
|
|
84
103
|
* If set to `afterEvaluate`, microtasks will be run immediately after the script has run.
|
|
85
104
|
*/
|
|
86
|
-
microtaskMode?: '
|
|
105
|
+
microtaskMode?: CreateContextOptions['microtaskMode'];
|
|
106
|
+
}
|
|
107
|
+
interface RunningCodeOptions extends RunningScriptOptions {
|
|
108
|
+
cachedData?: ScriptOptions['cachedData'];
|
|
109
|
+
importModuleDynamically?: ScriptOptions['importModuleDynamically'];
|
|
110
|
+
}
|
|
111
|
+
interface RunningCodeInNewContextOptions extends RunningScriptInNewContextOptions {
|
|
112
|
+
cachedData?: ScriptOptions['cachedData'];
|
|
113
|
+
importModuleDynamically?: ScriptOptions['importModuleDynamically'];
|
|
87
114
|
}
|
|
88
115
|
interface CompileFunctionOptions extends BaseOptions {
|
|
89
116
|
/**
|
|
@@ -144,7 +171,10 @@ declare module 'vm' {
|
|
|
144
171
|
* @default 'summary'
|
|
145
172
|
*/
|
|
146
173
|
mode?: MeasureMemoryMode | undefined;
|
|
147
|
-
|
|
174
|
+
/**
|
|
175
|
+
* @default 'default'
|
|
176
|
+
*/
|
|
177
|
+
execution?: 'default' | 'eager' | undefined;
|
|
148
178
|
}
|
|
149
179
|
interface MemoryMeasurement {
|
|
150
180
|
total: {
|
|
@@ -158,7 +188,7 @@ declare module 'vm' {
|
|
|
158
188
|
* @since v0.3.1
|
|
159
189
|
*/
|
|
160
190
|
class Script {
|
|
161
|
-
constructor(code: string, options?: ScriptOptions);
|
|
191
|
+
constructor(code: string, options?: ScriptOptions | string);
|
|
162
192
|
/**
|
|
163
193
|
* Runs the compiled code contained by the `vm.Script` object within the given`contextifiedObject` and returns the result. Running code does not have access
|
|
164
194
|
* to local scope.
|
|
@@ -220,7 +250,7 @@ declare module 'vm' {
|
|
|
220
250
|
* @param contextObject An object that will be `contextified`. If `undefined`, a new object will be created.
|
|
221
251
|
* @return the result of the very last statement executed in the script.
|
|
222
252
|
*/
|
|
223
|
-
runInNewContext(contextObject?: Context, options?:
|
|
253
|
+
runInNewContext(contextObject?: Context, options?: RunningScriptInNewContextOptions): any;
|
|
224
254
|
/**
|
|
225
255
|
* Runs the compiled code contained by the `vm.Script` within the context of the
|
|
226
256
|
* current `global` object. Running code does not have access to local scope, but _does_ have access to the current `global` object.
|
|
@@ -273,6 +303,10 @@ declare module 'vm' {
|
|
|
273
303
|
cachedDataProduced?: boolean | undefined;
|
|
274
304
|
cachedDataRejected?: boolean | undefined;
|
|
275
305
|
cachedData?: Buffer | undefined;
|
|
306
|
+
/**
|
|
307
|
+
* When the script is compiled from a source that contains a source map magic comment, this property will be set to the URL of the source map.
|
|
308
|
+
*/
|
|
309
|
+
sourceMapURL?: string | undefined;
|
|
276
310
|
}
|
|
277
311
|
/**
|
|
278
312
|
* If given a `contextObject`, the `vm.createContext()` method will `prepare
|
|
@@ -345,7 +379,7 @@ declare module 'vm' {
|
|
|
345
379
|
* @param contextifiedObject The `contextified` object that will be used as the `global` when the `code` is compiled and run.
|
|
346
380
|
* @return the result of the very last statement executed in the script.
|
|
347
381
|
*/
|
|
348
|
-
function runInContext(code: string, contextifiedObject: Context, options?:
|
|
382
|
+
function runInContext(code: string, contextifiedObject: Context, options?: RunningCodeOptions | string): any;
|
|
349
383
|
/**
|
|
350
384
|
* The `vm.runInNewContext()` first contextifies the given `contextObject` (or
|
|
351
385
|
* creates a new `contextObject` if passed as `undefined`), compiles the `code`,
|
|
@@ -374,7 +408,7 @@ declare module 'vm' {
|
|
|
374
408
|
* @param contextObject An object that will be `contextified`. If `undefined`, a new object will be created.
|
|
375
409
|
* @return the result of the very last statement executed in the script.
|
|
376
410
|
*/
|
|
377
|
-
function runInNewContext(code: string, contextObject?: Context, options?:
|
|
411
|
+
function runInNewContext(code: string, contextObject?: Context, options?: RunningCodeInNewContextOptions | string): any;
|
|
378
412
|
/**
|
|
379
413
|
* `vm.runInThisContext()` compiles `code`, runs it within the context of the
|
|
380
414
|
* current `global` and returns the result. Running code does not have access to
|
|
@@ -437,7 +471,7 @@ declare module 'vm' {
|
|
|
437
471
|
* @param code The JavaScript code to compile and run.
|
|
438
472
|
* @return the result of the very last statement executed in the script.
|
|
439
473
|
*/
|
|
440
|
-
function runInThisContext(code: string, options?:
|
|
474
|
+
function runInThisContext(code: string, options?: RunningCodeOptions | string): any;
|
|
441
475
|
/**
|
|
442
476
|
* Compiles the given code into the provided context (if no context is
|
|
443
477
|
* supplied, the current context is used), and returns it wrapped inside a
|
|
@@ -446,7 +480,11 @@ declare module 'vm' {
|
|
|
446
480
|
* @param code The body of the function to compile.
|
|
447
481
|
* @param params An array of strings containing all parameters for the function.
|
|
448
482
|
*/
|
|
449
|
-
function compileFunction(code: string, params?: ReadonlyArray<string>, options?: CompileFunctionOptions): Function
|
|
483
|
+
function compileFunction(code: string, params?: ReadonlyArray<string>, options?: CompileFunctionOptions): Function & {
|
|
484
|
+
cachedData?: Script['cachedData'] | undefined;
|
|
485
|
+
cachedDataProduced?: Script['cachedDataProduced'] | undefined;
|
|
486
|
+
cachedDataRejected?: Script['cachedDataRejected'] | undefined;
|
|
487
|
+
};
|
|
450
488
|
/**
|
|
451
489
|
* Measure the memory known to V8 and used by all contexts known to the
|
|
452
490
|
* current V8 isolate, or the main context.
|
|
@@ -503,6 +541,103 @@ declare module 'vm' {
|
|
|
503
541
|
* @experimental
|
|
504
542
|
*/
|
|
505
543
|
function measureMemory(options?: MeasureMemoryOptions): Promise<MemoryMeasurement>;
|
|
544
|
+
|
|
545
|
+
interface ModuleEvaluateOptions {
|
|
546
|
+
timeout?: RunningScriptOptions['timeout'] | undefined;
|
|
547
|
+
breakOnSigint?: RunningScriptOptions['breakOnSigint'] | undefined;
|
|
548
|
+
}
|
|
549
|
+
type ModuleLinker = (specifier: string, referencingModule: Module, extra: { assert: Object }) => Module | Promise<Module>;
|
|
550
|
+
type ModuleStatus = 'unlinked' | 'linking' | 'linked' | 'evaluating' | 'evaluated' | 'errored';
|
|
551
|
+
class Module {
|
|
552
|
+
/**
|
|
553
|
+
* The specifiers of all dependencies of this module.
|
|
554
|
+
*/
|
|
555
|
+
dependencySpecifiers: readonly string[];
|
|
556
|
+
/**
|
|
557
|
+
* If the `module.status` is `'errored'`, this property contains the exception thrown by the module during evaluation.
|
|
558
|
+
* If the status is anything else, accessing this property will result in a thrown exception.
|
|
559
|
+
*/
|
|
560
|
+
error: any;
|
|
561
|
+
/**
|
|
562
|
+
* The identifier of the current module, as set in the constructor.
|
|
563
|
+
*/
|
|
564
|
+
identifier: string;
|
|
565
|
+
context: Context;
|
|
566
|
+
/**
|
|
567
|
+
* The namespace object of the module. This is only available after linking (`module.link()`) has completed.
|
|
568
|
+
*/
|
|
569
|
+
namespace: Object;
|
|
570
|
+
/**
|
|
571
|
+
* The current status of the module.
|
|
572
|
+
*/
|
|
573
|
+
status: ModuleStatus;
|
|
574
|
+
/**
|
|
575
|
+
* Evaluate the module.
|
|
576
|
+
*
|
|
577
|
+
* This must be called after the module has been linked; otherwise it will reject
|
|
578
|
+
* It could be called also when the module has already been evaluated, in which case it will either do nothing
|
|
579
|
+
* if the initial evaluation ended in success (`module.status` is `'evaluated'`) or it will re-throw the exception
|
|
580
|
+
* that the initial evaluation resulted in (`module.status` is `'errored'`).
|
|
581
|
+
*
|
|
582
|
+
* This method cannot be called while the module is being evaluated (`module.status` is `'evaluating'`).
|
|
583
|
+
*/
|
|
584
|
+
evaluate(options?: ModuleEvaluateOptions): Promise<void>;
|
|
585
|
+
/**
|
|
586
|
+
* Link module dependencies. This method must be called before evaluation, and can only be called once per module.
|
|
587
|
+
*/
|
|
588
|
+
link(linker: ModuleLinker): Promise<void>;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
interface SourceTextModuleOptions {
|
|
592
|
+
/**
|
|
593
|
+
* String used in stack traces.
|
|
594
|
+
* @default 'vm:module(i)' where i is a context-specific ascending index.
|
|
595
|
+
*/
|
|
596
|
+
identifier?: string | undefined;
|
|
597
|
+
cachedData?: ScriptOptions['cachedData'] | undefined;
|
|
598
|
+
context?: Context | undefined;
|
|
599
|
+
lineOffset?: BaseOptions['lineOffset'] | undefined;
|
|
600
|
+
columnOffset?: BaseOptions['columnOffset'] | undefined;
|
|
601
|
+
/**
|
|
602
|
+
* Called during evaluation of this module to initialize the `import.meta`.
|
|
603
|
+
*/
|
|
604
|
+
initializeImportMeta?: ((meta: ImportMeta, module: SourceTextModule) => void) | undefined;
|
|
605
|
+
importModuleDynamically?: ScriptOptions['importModuleDynamically'] | undefined;
|
|
606
|
+
}
|
|
607
|
+
class SourceTextModule extends Module {
|
|
608
|
+
/**
|
|
609
|
+
* Creates a new `SourceTextModule` instance.
|
|
610
|
+
* @param code JavaScript Module code to parse
|
|
611
|
+
*/
|
|
612
|
+
constructor(code: string, options?: SourceTextModuleOptions);
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
interface SyntheticModuleOptions {
|
|
616
|
+
/**
|
|
617
|
+
* String used in stack traces.
|
|
618
|
+
* @default 'vm:module(i)' where i is a context-specific ascending index.
|
|
619
|
+
*/
|
|
620
|
+
identifier?: string | undefined;
|
|
621
|
+
/**
|
|
622
|
+
* The contextified object as returned by the `vm.createContext()` method, to compile and evaluate this module in.
|
|
623
|
+
*/
|
|
624
|
+
context?: Context | undefined;
|
|
625
|
+
}
|
|
626
|
+
class SyntheticModule extends Module {
|
|
627
|
+
/**
|
|
628
|
+
* Creates a new `SyntheticModule` instance.
|
|
629
|
+
* @param exportNames Array of names that will be exported from the module.
|
|
630
|
+
* @param evaluateCallback Called when the module is evaluated.
|
|
631
|
+
*/
|
|
632
|
+
constructor(exportNames: string[], evaluateCallback: (this: SyntheticModule) => void, options?: SyntheticModuleOptions);
|
|
633
|
+
/**
|
|
634
|
+
* This method is used after the module is linked to set the values of exports.
|
|
635
|
+
* If it is called before the module is linked, an `ERR_VM_MODULE_STATUS` error will be thrown.
|
|
636
|
+
* @param name
|
|
637
|
+
* @param value
|
|
638
|
+
*/
|
|
639
|
+
setExport(name: string, value: any): void;
|
|
640
|
+
}
|
|
506
641
|
}
|
|
507
642
|
declare module 'node:vm' {
|
|
508
643
|
export * from 'vm';
|
|
@@ -8,7 +8,7 @@ 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: Tue,
|
|
11
|
+
* Last updated: Tue, 28 Mar 2023 21:33:10 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
|
@@ -3129,12 +3129,13 @@ declare module 'crypto' {
|
|
|
3129
3129
|
*/
|
|
3130
3130
|
disableEntropyCache?: boolean | undefined;
|
|
3131
3131
|
}
|
|
3132
|
+
type UUID = `${string}-${string}-${string}-${string}-${string}`;
|
|
3132
3133
|
/**
|
|
3133
3134
|
* Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a
|
|
3134
3135
|
* cryptographic pseudorandom number generator.
|
|
3135
3136
|
* @since v15.6.0, v14.17.0
|
|
3136
3137
|
*/
|
|
3137
|
-
function randomUUID(options?: RandomUUIDOptions):
|
|
3138
|
+
function randomUUID(options?: RandomUUIDOptions): UUID;
|
|
3138
3139
|
interface X509CheckOptions {
|
|
3139
3140
|
/**
|
|
3140
3141
|
* @default 'always'
|
|
@@ -3646,7 +3647,7 @@ declare module 'crypto' {
|
|
|
3646
3647
|
* The UUID is generated using a cryptographic pseudorandom number generator.
|
|
3647
3648
|
* @since v16.7.0
|
|
3648
3649
|
*/
|
|
3649
|
-
randomUUID():
|
|
3650
|
+
randomUUID(): UUID;
|
|
3650
3651
|
CryptoKey: CryptoKeyConstructor;
|
|
3651
3652
|
}
|
|
3652
3653
|
// This constructor throws ILLEGAL_CONSTRUCTOR so it should not be newable.
|
|
@@ -58,6 +58,45 @@ declare module 'diagnostics_channel' {
|
|
|
58
58
|
*/
|
|
59
59
|
function channel(name: string | symbol): Channel;
|
|
60
60
|
type ChannelListener = (message: unknown, name: string | symbol) => void;
|
|
61
|
+
/**
|
|
62
|
+
* Register a message handler to subscribe to this channel. This message handler will be run synchronously
|
|
63
|
+
* whenever a message is published to the channel. Any errors thrown in the message handler will
|
|
64
|
+
* trigger an 'uncaughtException'.
|
|
65
|
+
*
|
|
66
|
+
* ```js
|
|
67
|
+
* import diagnostics_channel from 'diagnostics_channel';
|
|
68
|
+
*
|
|
69
|
+
* diagnostics_channel.subscribe('my-channel', (message, name) => {
|
|
70
|
+
* // Received data
|
|
71
|
+
* });
|
|
72
|
+
* ```
|
|
73
|
+
*
|
|
74
|
+
* @since v18.7.0, v16.17.0
|
|
75
|
+
* @param name The channel name
|
|
76
|
+
* @param onMessage The handler to receive channel messages
|
|
77
|
+
*/
|
|
78
|
+
function subscribe(name: string | symbol, onMessage: ChannelListener): void;
|
|
79
|
+
/**
|
|
80
|
+
* Remove a message handler previously registered to this channel with diagnostics_channel.subscribe(name, onMessage).
|
|
81
|
+
*
|
|
82
|
+
* ```js
|
|
83
|
+
* import diagnostics_channel from 'diagnostics_channel';
|
|
84
|
+
*
|
|
85
|
+
* function onMessage(message, name) {
|
|
86
|
+
* // Received data
|
|
87
|
+
* }
|
|
88
|
+
*
|
|
89
|
+
* diagnostics_channel.subscribe('my-channel', onMessage);
|
|
90
|
+
*
|
|
91
|
+
* diagnostics_channel.unsubscribe('my-channel', onMessage);
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
94
|
+
* @since v18.7.0, v16.17.0
|
|
95
|
+
* @param name The channel name
|
|
96
|
+
* @param onMessage The previous subscribed handler to remove
|
|
97
|
+
* @returns `true` if the handler was found, `false` otherwise
|
|
98
|
+
*/
|
|
99
|
+
function unsubscribe(name: string | symbol, onMessage: ChannelListener): boolean;
|
|
61
100
|
/**
|
|
62
101
|
* The class `Channel` represents an individual named channel within the data
|
|
63
102
|
* pipeline. It is use to track subscribers and to publish messages when there
|
|
@@ -62,6 +62,7 @@ interface AbortSignal extends EventTarget {
|
|
|
62
62
|
* Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
|
|
63
63
|
*/
|
|
64
64
|
readonly aborted: boolean;
|
|
65
|
+
readonly reason: any;
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
declare var AbortController: typeof globalThis extends {onmessage: any; AbortController: infer T}
|
|
@@ -144,6 +144,7 @@ declare module 'http' {
|
|
|
144
144
|
socketPath?: string | undefined;
|
|
145
145
|
timeout?: number | undefined;
|
|
146
146
|
uniqueHeaders?: Array<string | string[]> | undefined;
|
|
147
|
+
joinDuplicateHeaders?: boolean;
|
|
147
148
|
}
|
|
148
149
|
interface ServerOptions<
|
|
149
150
|
Request extends typeof IncomingMessage = typeof IncomingMessage,
|
|
@@ -164,6 +165,12 @@ declare module 'http' {
|
|
|
164
165
|
* @since v18.0.0
|
|
165
166
|
*/
|
|
166
167
|
requestTimeout?: number | undefined;
|
|
168
|
+
/**
|
|
169
|
+
* It joins the field line values of multiple headers in a request with `, ` instead of discarding the duplicates.
|
|
170
|
+
* @default false
|
|
171
|
+
* @since v18.14.0
|
|
172
|
+
*/
|
|
173
|
+
joinDuplicateHeaders?: boolean;
|
|
167
174
|
/**
|
|
168
175
|
* The number of milliseconds of inactivity a server needs to wait for additional incoming data,
|
|
169
176
|
* after it has finished writing the last response, before a socket will be destroyed.
|
|
@@ -1053,7 +1053,6 @@ declare module 'http2' {
|
|
|
1053
1053
|
*/
|
|
1054
1054
|
unknownProtocolTimeout?: number | undefined;
|
|
1055
1055
|
selectPadding?(frameLen: number, maxFrameLen: number): number;
|
|
1056
|
-
createConnection?(authority: url.URL, option: SessionOptions): stream.Duplex;
|
|
1057
1056
|
}
|
|
1058
1057
|
export interface ClientSessionOptions extends SessionOptions {
|
|
1059
1058
|
maxReservedRemoteStreams?: number | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.15.
|
|
3
|
+
"version": "18.15.11",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -232,6 +232,6 @@
|
|
|
232
232
|
},
|
|
233
233
|
"scripts": {},
|
|
234
234
|
"dependencies": {},
|
|
235
|
-
"typesPublisherContentHash": "
|
|
236
|
-
"typeScriptVersion": "4.
|
|
235
|
+
"typesPublisherContentHash": "0b569b41848800d78adc39868da768013835b59322022dd1bb40be639e885045",
|
|
236
|
+
"typeScriptVersion": "4.3"
|
|
237
237
|
}
|
|
@@ -1089,6 +1089,12 @@ declare module 'process' {
|
|
|
1089
1089
|
*/
|
|
1090
1090
|
mainModule?: Module | undefined;
|
|
1091
1091
|
memoryUsage: MemoryUsageFn;
|
|
1092
|
+
/**
|
|
1093
|
+
* Gets the amount of memory available to the process (in bytes) based on
|
|
1094
|
+
* limits imposed by the OS. If there is no such constraint, or the constraint
|
|
1095
|
+
* is unknown, `undefined` is returned.
|
|
1096
|
+
*/
|
|
1097
|
+
constrainedMemory(): number | undefined;
|
|
1092
1098
|
/**
|
|
1093
1099
|
* The `process.cpuUsage()` method returns the user and system CPU time usage of
|
|
1094
1100
|
* the current process, in an object with properties `user` and `system`, whose
|
|
@@ -912,6 +912,105 @@ declare module 'stream' {
|
|
|
912
912
|
end(chunk: any, encoding?: BufferEncoding, cb?: () => void): this;
|
|
913
913
|
cork(): void;
|
|
914
914
|
uncork(): void;
|
|
915
|
+
/**
|
|
916
|
+
* Event emitter
|
|
917
|
+
* The defined events on documents including:
|
|
918
|
+
* 1. close
|
|
919
|
+
* 2. data
|
|
920
|
+
* 3. drain
|
|
921
|
+
* 4. end
|
|
922
|
+
* 5. error
|
|
923
|
+
* 6. finish
|
|
924
|
+
* 7. pause
|
|
925
|
+
* 8. pipe
|
|
926
|
+
* 9. readable
|
|
927
|
+
* 10. resume
|
|
928
|
+
* 11. unpipe
|
|
929
|
+
*/
|
|
930
|
+
addListener(event: 'close', listener: () => void): this;
|
|
931
|
+
addListener(event: 'data', listener: (chunk: any) => void): this;
|
|
932
|
+
addListener(event: 'drain', listener: () => void): this;
|
|
933
|
+
addListener(event: 'end', listener: () => void): this;
|
|
934
|
+
addListener(event: 'error', listener: (err: Error) => void): this;
|
|
935
|
+
addListener(event: 'finish', listener: () => void): this;
|
|
936
|
+
addListener(event: 'pause', listener: () => void): this;
|
|
937
|
+
addListener(event: 'pipe', listener: (src: Readable) => void): this;
|
|
938
|
+
addListener(event: 'readable', listener: () => void): this;
|
|
939
|
+
addListener(event: 'resume', listener: () => void): this;
|
|
940
|
+
addListener(event: 'unpipe', listener: (src: Readable) => void): this;
|
|
941
|
+
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
942
|
+
emit(event: 'close'): boolean;
|
|
943
|
+
emit(event: 'data', chunk: any): boolean;
|
|
944
|
+
emit(event: 'drain'): boolean;
|
|
945
|
+
emit(event: 'end'): boolean;
|
|
946
|
+
emit(event: 'error', err: Error): boolean;
|
|
947
|
+
emit(event: 'finish'): boolean;
|
|
948
|
+
emit(event: 'pause'): boolean;
|
|
949
|
+
emit(event: 'pipe', src: Readable): boolean;
|
|
950
|
+
emit(event: 'readable'): boolean;
|
|
951
|
+
emit(event: 'resume'): boolean;
|
|
952
|
+
emit(event: 'unpipe', src: Readable): boolean;
|
|
953
|
+
emit(event: string | symbol, ...args: any[]): boolean;
|
|
954
|
+
on(event: 'close', listener: () => void): this;
|
|
955
|
+
on(event: 'data', listener: (chunk: any) => void): this;
|
|
956
|
+
on(event: 'drain', listener: () => void): this;
|
|
957
|
+
on(event: 'end', listener: () => void): this;
|
|
958
|
+
on(event: 'error', listener: (err: Error) => void): this;
|
|
959
|
+
on(event: 'finish', listener: () => void): this;
|
|
960
|
+
on(event: 'pause', listener: () => void): this;
|
|
961
|
+
on(event: 'pipe', listener: (src: Readable) => void): this;
|
|
962
|
+
on(event: 'readable', listener: () => void): this;
|
|
963
|
+
on(event: 'resume', listener: () => void): this;
|
|
964
|
+
on(event: 'unpipe', listener: (src: Readable) => void): this;
|
|
965
|
+
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
966
|
+
once(event: 'close', listener: () => void): this;
|
|
967
|
+
once(event: 'data', listener: (chunk: any) => void): this;
|
|
968
|
+
once(event: 'drain', listener: () => void): this;
|
|
969
|
+
once(event: 'end', listener: () => void): this;
|
|
970
|
+
once(event: 'error', listener: (err: Error) => void): this;
|
|
971
|
+
once(event: 'finish', listener: () => void): this;
|
|
972
|
+
once(event: 'pause', listener: () => void): this;
|
|
973
|
+
once(event: 'pipe', listener: (src: Readable) => void): this;
|
|
974
|
+
once(event: 'readable', listener: () => void): this;
|
|
975
|
+
once(event: 'resume', listener: () => void): this;
|
|
976
|
+
once(event: 'unpipe', listener: (src: Readable) => void): this;
|
|
977
|
+
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
978
|
+
prependListener(event: 'close', listener: () => void): this;
|
|
979
|
+
prependListener(event: 'data', listener: (chunk: any) => void): this;
|
|
980
|
+
prependListener(event: 'drain', listener: () => void): this;
|
|
981
|
+
prependListener(event: 'end', listener: () => void): this;
|
|
982
|
+
prependListener(event: 'error', listener: (err: Error) => void): this;
|
|
983
|
+
prependListener(event: 'finish', listener: () => void): this;
|
|
984
|
+
prependListener(event: 'pause', listener: () => void): this;
|
|
985
|
+
prependListener(event: 'pipe', listener: (src: Readable) => void): this;
|
|
986
|
+
prependListener(event: 'readable', listener: () => void): this;
|
|
987
|
+
prependListener(event: 'resume', listener: () => void): this;
|
|
988
|
+
prependListener(event: 'unpipe', listener: (src: Readable) => void): this;
|
|
989
|
+
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
990
|
+
prependOnceListener(event: 'close', listener: () => void): this;
|
|
991
|
+
prependOnceListener(event: 'data', listener: (chunk: any) => void): this;
|
|
992
|
+
prependOnceListener(event: 'drain', listener: () => void): this;
|
|
993
|
+
prependOnceListener(event: 'end', listener: () => void): this;
|
|
994
|
+
prependOnceListener(event: 'error', listener: (err: Error) => void): this;
|
|
995
|
+
prependOnceListener(event: 'finish', listener: () => void): this;
|
|
996
|
+
prependOnceListener(event: 'pause', listener: () => void): this;
|
|
997
|
+
prependOnceListener(event: 'pipe', listener: (src: Readable) => void): this;
|
|
998
|
+
prependOnceListener(event: 'readable', listener: () => void): this;
|
|
999
|
+
prependOnceListener(event: 'resume', listener: () => void): this;
|
|
1000
|
+
prependOnceListener(event: 'unpipe', listener: (src: Readable) => void): this;
|
|
1001
|
+
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1002
|
+
removeListener(event: 'close', listener: () => void): this;
|
|
1003
|
+
removeListener(event: 'data', listener: (chunk: any) => void): this;
|
|
1004
|
+
removeListener(event: 'drain', listener: () => void): this;
|
|
1005
|
+
removeListener(event: 'end', listener: () => void): this;
|
|
1006
|
+
removeListener(event: 'error', listener: (err: Error) => void): this;
|
|
1007
|
+
removeListener(event: 'finish', listener: () => void): this;
|
|
1008
|
+
removeListener(event: 'pause', listener: () => void): this;
|
|
1009
|
+
removeListener(event: 'pipe', listener: (src: Readable) => void): this;
|
|
1010
|
+
removeListener(event: 'readable', listener: () => void): this;
|
|
1011
|
+
removeListener(event: 'resume', listener: () => void): this;
|
|
1012
|
+
removeListener(event: 'unpipe', listener: (src: Readable) => void): this;
|
|
1013
|
+
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
915
1014
|
}
|
|
916
1015
|
type TransformCallback = (error?: Error | null, data?: any) => void;
|
|
917
1016
|
interface TransformOptions extends DuplexOptions {
|