cdk-common 2.0.1302 → 2.0.1303
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 -2
- package/API.md +12 -0
- package/lib/main.js +1 -1
- package/lib/managed-policies.d.ts +3 -1
- package/lib/managed-policies.js +3 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/assert.d.ts +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/child_process.d.ts +15 -9
- package/node_modules/@types/concat-stream/node_modules/@types/node/cluster.d.ts +3 -4
- package/node_modules/@types/concat-stream/node_modules/@types/node/crypto.d.ts +35 -35
- package/node_modules/@types/concat-stream/node_modules/@types/node/dns.d.ts +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/events.d.ts +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/fs.d.ts +11 -11
- package/node_modules/@types/concat-stream/node_modules/@types/node/http.d.ts +3 -4
- package/node_modules/@types/concat-stream/node_modules/@types/node/http2.d.ts +4 -3
- package/node_modules/@types/concat-stream/node_modules/@types/node/https.d.ts +9 -12
- package/node_modules/@types/concat-stream/node_modules/@types/node/net.d.ts +5 -5
- package/node_modules/@types/concat-stream/node_modules/@types/node/os.d.ts +13 -3
- package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/perf_hooks.d.ts +6 -8
- package/node_modules/@types/concat-stream/node_modules/@types/node/process.d.ts +7 -19
- package/node_modules/@types/concat-stream/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/stream.d.ts +29 -22
- package/node_modules/@types/concat-stream/node_modules/@types/node/tls.d.ts +2 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/v8.d.ts +2 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/vm.d.ts +18 -48
- package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/assert.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/child_process.d.ts +15 -9
- package/node_modules/@types/form-data/node_modules/@types/node/cluster.d.ts +3 -4
- package/node_modules/@types/form-data/node_modules/@types/node/crypto.d.ts +35 -35
- package/node_modules/@types/form-data/node_modules/@types/node/dns.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/events.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/fs.d.ts +11 -11
- package/node_modules/@types/form-data/node_modules/@types/node/http.d.ts +3 -4
- package/node_modules/@types/form-data/node_modules/@types/node/http2.d.ts +4 -3
- package/node_modules/@types/form-data/node_modules/@types/node/https.d.ts +9 -12
- package/node_modules/@types/form-data/node_modules/@types/node/net.d.ts +5 -5
- package/node_modules/@types/form-data/node_modules/@types/node/os.d.ts +13 -3
- package/node_modules/@types/form-data/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/form-data/node_modules/@types/node/perf_hooks.d.ts +6 -8
- package/node_modules/@types/form-data/node_modules/@types/node/process.d.ts +7 -19
- package/node_modules/@types/form-data/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/stream.d.ts +29 -22
- package/node_modules/@types/form-data/node_modules/@types/node/tls.d.ts +2 -2
- package/node_modules/@types/form-data/node_modules/@types/node/v8.d.ts +2 -2
- package/node_modules/@types/form-data/node_modules/@types/node/vm.d.ts +18 -48
- package/package.json +1 -1
|
@@ -99,28 +99,22 @@ declare module "vm" {
|
|
|
99
99
|
*/
|
|
100
100
|
breakOnSigint?: boolean | undefined;
|
|
101
101
|
}
|
|
102
|
-
interface RunningScriptInNewContextOptions
|
|
102
|
+
interface RunningScriptInNewContextOptions
|
|
103
|
+
extends RunningScriptOptions, Pick<CreateContextOptions, "microtaskMode">
|
|
104
|
+
{
|
|
103
105
|
/**
|
|
104
106
|
* Human-readable name of the newly created context.
|
|
105
107
|
*/
|
|
106
|
-
contextName?: CreateContextOptions["name"];
|
|
108
|
+
contextName?: CreateContextOptions["name"] | undefined;
|
|
107
109
|
/**
|
|
108
110
|
* Origin corresponding to the newly created context for display purposes. The origin should be formatted like a URL,
|
|
109
111
|
* but with only the scheme, host, and port (if necessary), like the value of the `url.origin` property of a `URL` object.
|
|
110
112
|
* Most notably, this string should omit the trailing slash, as that denotes a path.
|
|
111
113
|
*/
|
|
112
|
-
contextOrigin?: CreateContextOptions["origin"];
|
|
113
|
-
contextCodeGeneration?: CreateContextOptions["codeGeneration"];
|
|
114
|
-
/**
|
|
115
|
-
* If set to `afterEvaluate`, microtasks will be run immediately after the script has run.
|
|
116
|
-
*/
|
|
117
|
-
microtaskMode?: CreateContextOptions["microtaskMode"];
|
|
114
|
+
contextOrigin?: CreateContextOptions["origin"] | undefined;
|
|
115
|
+
contextCodeGeneration?: CreateContextOptions["codeGeneration"] | undefined;
|
|
118
116
|
}
|
|
119
|
-
interface RunningCodeOptions extends RunningScriptOptions {
|
|
120
|
-
/**
|
|
121
|
-
* Provides an optional data with V8's code cache data for the supplied source.
|
|
122
|
-
*/
|
|
123
|
-
cachedData?: ScriptOptions["cachedData"] | undefined;
|
|
117
|
+
interface RunningCodeOptions extends RunningScriptOptions, Pick<ScriptOptions, "cachedData"> {
|
|
124
118
|
/**
|
|
125
119
|
* Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is
|
|
126
120
|
* part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see
|
|
@@ -132,11 +126,9 @@ declare module "vm" {
|
|
|
132
126
|
| typeof constants.USE_MAIN_CONTEXT_DEFAULT_LOADER
|
|
133
127
|
| undefined;
|
|
134
128
|
}
|
|
135
|
-
interface RunningCodeInNewContextOptions
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
*/
|
|
139
|
-
cachedData?: ScriptOptions["cachedData"] | undefined;
|
|
129
|
+
interface RunningCodeInNewContextOptions
|
|
130
|
+
extends RunningScriptInNewContextOptions, Pick<ScriptOptions, "cachedData">
|
|
131
|
+
{
|
|
140
132
|
/**
|
|
141
133
|
* Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is
|
|
142
134
|
* part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see
|
|
@@ -148,16 +140,7 @@ declare module "vm" {
|
|
|
148
140
|
| typeof constants.USE_MAIN_CONTEXT_DEFAULT_LOADER
|
|
149
141
|
| undefined;
|
|
150
142
|
}
|
|
151
|
-
interface CompileFunctionOptions extends BaseOptions {
|
|
152
|
-
/**
|
|
153
|
-
* Provides an optional data with V8's code cache data for the supplied source.
|
|
154
|
-
*/
|
|
155
|
-
cachedData?: ScriptOptions["cachedData"] | undefined;
|
|
156
|
-
/**
|
|
157
|
-
* Specifies whether to produce new cache data.
|
|
158
|
-
* @default false
|
|
159
|
-
*/
|
|
160
|
-
produceCachedData?: boolean | undefined;
|
|
143
|
+
interface CompileFunctionOptions extends BaseOptions, Pick<ScriptOptions, "cachedData" | "produceCachedData"> {
|
|
161
144
|
/**
|
|
162
145
|
* The sandbox/context in which the said function should be compiled in.
|
|
163
146
|
*/
|
|
@@ -386,15 +369,15 @@ declare module "vm" {
|
|
|
386
369
|
*/
|
|
387
370
|
createCachedData(): Buffer;
|
|
388
371
|
/** @deprecated in favor of `script.createCachedData()` */
|
|
389
|
-
cachedDataProduced?: boolean
|
|
372
|
+
cachedDataProduced?: boolean;
|
|
390
373
|
/**
|
|
391
374
|
* When `cachedData` is supplied to create the `vm.Script`, this value will be set
|
|
392
375
|
* to either `true` or `false` depending on acceptance of the data by V8.
|
|
393
376
|
* Otherwise the value is `undefined`.
|
|
394
377
|
* @since v5.7.0
|
|
395
378
|
*/
|
|
396
|
-
cachedDataRejected?: boolean
|
|
397
|
-
cachedData?: Buffer
|
|
379
|
+
cachedDataRejected?: boolean;
|
|
380
|
+
cachedData?: Buffer;
|
|
398
381
|
/**
|
|
399
382
|
* When the script is compiled from a source that contains a source map magic
|
|
400
383
|
* comment, this property will be set to the URL of the source map.
|
|
@@ -412,7 +395,7 @@ declare module "vm" {
|
|
|
412
395
|
* ```
|
|
413
396
|
* @since v19.1.0, v18.13.0
|
|
414
397
|
*/
|
|
415
|
-
sourceMapURL
|
|
398
|
+
sourceMapURL: string | undefined;
|
|
416
399
|
}
|
|
417
400
|
/**
|
|
418
401
|
* If the given `contextObject` is an object, the `vm.createContext()` method will
|
|
@@ -622,11 +605,7 @@ declare module "vm" {
|
|
|
622
605
|
code: string,
|
|
623
606
|
params?: readonly string[],
|
|
624
607
|
options?: CompileFunctionOptions,
|
|
625
|
-
): Function &
|
|
626
|
-
cachedData?: Script["cachedData"] | undefined;
|
|
627
|
-
cachedDataProduced?: Script["cachedDataProduced"] | undefined;
|
|
628
|
-
cachedDataRejected?: Script["cachedDataRejected"] | undefined;
|
|
629
|
-
};
|
|
608
|
+
): Function & Pick<Script, "cachedData" | "cachedDataProduced" | "cachedDataRejected">;
|
|
630
609
|
/**
|
|
631
610
|
* Measure the memory known to V8 and used by all contexts known to the
|
|
632
611
|
* current V8 isolate, or the main context.
|
|
@@ -683,10 +662,7 @@ declare module "vm" {
|
|
|
683
662
|
* @experimental
|
|
684
663
|
*/
|
|
685
664
|
function measureMemory(options?: MeasureMemoryOptions): Promise<MemoryMeasurement>;
|
|
686
|
-
interface ModuleEvaluateOptions {
|
|
687
|
-
timeout?: RunningScriptOptions["timeout"] | undefined;
|
|
688
|
-
breakOnSigint?: RunningScriptOptions["breakOnSigint"] | undefined;
|
|
689
|
-
}
|
|
665
|
+
interface ModuleEvaluateOptions extends Pick<RunningScriptOptions, "breakOnSigint" | "timeout"> {}
|
|
690
666
|
type ModuleLinker = (
|
|
691
667
|
specifier: string,
|
|
692
668
|
referencingModule: Module,
|
|
@@ -885,19 +861,13 @@ declare module "vm" {
|
|
|
885
861
|
*/
|
|
886
862
|
link(linker: ModuleLinker): Promise<void>;
|
|
887
863
|
}
|
|
888
|
-
interface SourceTextModuleOptions {
|
|
864
|
+
interface SourceTextModuleOptions extends Pick<ScriptOptions, "cachedData" | "columnOffset" | "lineOffset"> {
|
|
889
865
|
/**
|
|
890
866
|
* String used in stack traces.
|
|
891
867
|
* @default 'vm:module(i)' where i is a context-specific ascending index.
|
|
892
868
|
*/
|
|
893
869
|
identifier?: string | undefined;
|
|
894
|
-
/**
|
|
895
|
-
* Provides an optional data with V8's code cache data for the supplied source.
|
|
896
|
-
*/
|
|
897
|
-
cachedData?: ScriptOptions["cachedData"] | undefined;
|
|
898
870
|
context?: Context | undefined;
|
|
899
|
-
lineOffset?: BaseOptions["lineOffset"] | undefined;
|
|
900
|
-
columnOffset?: BaseOptions["columnOffset"] | undefined;
|
|
901
871
|
/**
|
|
902
872
|
* Called during evaluation of this module to initialize the `import.meta`.
|
|
903
873
|
*/
|