cdk-common 2.0.1302 → 2.0.1304

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.
Files changed (48) hide show
  1. package/.jsii +14 -2
  2. package/API.md +12 -0
  3. package/lib/main.js +1 -1
  4. package/lib/managed-policies.d.ts +3 -1
  5. package/lib/managed-policies.js +3 -1
  6. package/node_modules/@types/concat-stream/node_modules/@types/node/README.md +1 -1
  7. package/node_modules/@types/concat-stream/node_modules/@types/node/assert.d.ts +1 -1
  8. package/node_modules/@types/concat-stream/node_modules/@types/node/child_process.d.ts +15 -9
  9. package/node_modules/@types/concat-stream/node_modules/@types/node/cluster.d.ts +3 -4
  10. package/node_modules/@types/concat-stream/node_modules/@types/node/crypto.d.ts +35 -35
  11. package/node_modules/@types/concat-stream/node_modules/@types/node/dns.d.ts +1 -1
  12. package/node_modules/@types/concat-stream/node_modules/@types/node/events.d.ts +1 -1
  13. package/node_modules/@types/concat-stream/node_modules/@types/node/fs.d.ts +11 -11
  14. package/node_modules/@types/concat-stream/node_modules/@types/node/http.d.ts +3 -4
  15. package/node_modules/@types/concat-stream/node_modules/@types/node/http2.d.ts +4 -3
  16. package/node_modules/@types/concat-stream/node_modules/@types/node/https.d.ts +9 -12
  17. package/node_modules/@types/concat-stream/node_modules/@types/node/net.d.ts +5 -5
  18. package/node_modules/@types/concat-stream/node_modules/@types/node/os.d.ts +13 -3
  19. package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +2 -2
  20. package/node_modules/@types/concat-stream/node_modules/@types/node/perf_hooks.d.ts +6 -8
  21. package/node_modules/@types/concat-stream/node_modules/@types/node/process.d.ts +7 -19
  22. package/node_modules/@types/concat-stream/node_modules/@types/node/readline/promises.d.ts +1 -1
  23. package/node_modules/@types/concat-stream/node_modules/@types/node/stream.d.ts +29 -22
  24. package/node_modules/@types/concat-stream/node_modules/@types/node/tls.d.ts +2 -2
  25. package/node_modules/@types/concat-stream/node_modules/@types/node/v8.d.ts +2 -2
  26. package/node_modules/@types/concat-stream/node_modules/@types/node/vm.d.ts +18 -48
  27. package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
  28. package/node_modules/@types/form-data/node_modules/@types/node/assert.d.ts +1 -1
  29. package/node_modules/@types/form-data/node_modules/@types/node/child_process.d.ts +15 -9
  30. package/node_modules/@types/form-data/node_modules/@types/node/cluster.d.ts +3 -4
  31. package/node_modules/@types/form-data/node_modules/@types/node/crypto.d.ts +35 -35
  32. package/node_modules/@types/form-data/node_modules/@types/node/dns.d.ts +1 -1
  33. package/node_modules/@types/form-data/node_modules/@types/node/events.d.ts +1 -1
  34. package/node_modules/@types/form-data/node_modules/@types/node/fs.d.ts +11 -11
  35. package/node_modules/@types/form-data/node_modules/@types/node/http.d.ts +3 -4
  36. package/node_modules/@types/form-data/node_modules/@types/node/http2.d.ts +4 -3
  37. package/node_modules/@types/form-data/node_modules/@types/node/https.d.ts +9 -12
  38. package/node_modules/@types/form-data/node_modules/@types/node/net.d.ts +5 -5
  39. package/node_modules/@types/form-data/node_modules/@types/node/os.d.ts +13 -3
  40. package/node_modules/@types/form-data/node_modules/@types/node/package.json +2 -2
  41. package/node_modules/@types/form-data/node_modules/@types/node/perf_hooks.d.ts +6 -8
  42. package/node_modules/@types/form-data/node_modules/@types/node/process.d.ts +7 -19
  43. package/node_modules/@types/form-data/node_modules/@types/node/readline/promises.d.ts +1 -1
  44. package/node_modules/@types/form-data/node_modules/@types/node/stream.d.ts +29 -22
  45. package/node_modules/@types/form-data/node_modules/@types/node/tls.d.ts +2 -2
  46. package/node_modules/@types/form-data/node_modules/@types/node/v8.d.ts +2 -2
  47. package/node_modules/@types/form-data/node_modules/@types/node/vm.d.ts +18 -48
  48. package/package.json +2 -2
@@ -99,28 +99,22 @@ declare module "vm" {
99
99
  */
100
100
  breakOnSigint?: boolean | undefined;
101
101
  }
102
- interface RunningScriptInNewContextOptions extends RunningScriptOptions {
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 extends RunningScriptInNewContextOptions {
136
- /**
137
- * Provides an optional data with V8's code cache data for the supplied source.
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 | undefined;
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 | undefined;
397
- cachedData?: Buffer | undefined;
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?: string | undefined;
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
  */
package/package.json CHANGED
@@ -54,7 +54,7 @@
54
54
  "jsii-docgen": "^10.5.0",
55
55
  "jsii-pacmak": "^1.115.0",
56
56
  "jsii-rosetta": "5.7.x",
57
- "projen": "0.97.2",
57
+ "projen": "0.98.0",
58
58
  "ts-jest": "^27",
59
59
  "typescript": "^5"
60
60
  },
@@ -87,7 +87,7 @@
87
87
  "publishConfig": {
88
88
  "access": "public"
89
89
  },
90
- "version": "2.0.1302",
90
+ "version": "2.0.1304",
91
91
  "jest": {
92
92
  "coverageProvider": "v8",
93
93
  "testMatch": [