cdk-common 2.0.269 → 2.0.271

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 (170) hide show
  1. package/.jsii +3 -3
  2. package/lib/main.js +1 -1
  3. package/node_modules/@aws-cdk/assert/package.json +8 -8
  4. package/node_modules/@aws-cdk/cfnspec/package.json +3 -3
  5. package/node_modules/@aws-cdk/cloudformation-diff/package.json +4 -4
  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/globals.d.ts +1 -0
  8. package/node_modules/@types/concat-stream/node_modules/@types/node/index.d.ts +1 -1
  9. package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +9 -2
  10. package/node_modules/@types/concat-stream/node_modules/@types/node/test.d.ts +127 -3
  11. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
  12. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/assert.d.ts +911 -0
  13. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/async_hooks.d.ts +501 -0
  14. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/buffer.d.ts +2238 -0
  15. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/child_process.d.ts +1369 -0
  16. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/cluster.d.ts +410 -0
  17. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/console.d.ts +412 -0
  18. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
  19. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/crypto.d.ts +3961 -0
  20. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
  21. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +153 -0
  22. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/dns/promises.d.ts +370 -0
  23. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/dns.d.ts +659 -0
  24. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
  25. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/events.d.ts +641 -0
  26. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/fs/promises.d.ts +1120 -0
  27. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/fs.d.ts +3872 -0
  28. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/globals.d.ts +294 -0
  29. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
  30. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/http.d.ts +1553 -0
  31. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/http2.d.ts +2106 -0
  32. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/https.d.ts +541 -0
  33. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/index.d.ts +87 -0
  34. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/inspector.d.ts +2741 -0
  35. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/module.d.ts +114 -0
  36. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/net.d.ts +838 -0
  37. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/os.d.ts +465 -0
  38. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/path.d.ts +191 -0
  39. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/perf_hooks.d.ts +610 -0
  40. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/process.d.ts +1482 -0
  41. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
  42. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
  43. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/readline/promises.d.ts +143 -0
  44. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/readline.d.ts +653 -0
  45. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
  46. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/stream/consumers.d.ts +24 -0
  47. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
  48. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/stream/web.d.ts +330 -0
  49. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/stream.d.ts +1339 -0
  50. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
  51. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/test.d.ts +190 -0
  52. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/timers/promises.d.ts +68 -0
  53. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/timers.d.ts +94 -0
  54. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/tls.d.ts +1028 -0
  55. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/trace_events.d.ts +171 -0
  56. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/tty.d.ts +206 -0
  57. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/url.d.ts +897 -0
  58. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/util.d.ts +1792 -0
  59. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/v8.d.ts +396 -0
  60. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/vm.d.ts +509 -0
  61. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/wasi.d.ts +158 -0
  62. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/worker_threads.d.ts +646 -0
  63. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
  64. package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
  65. package/node_modules/@types/form-data/node_modules/@types/node/globals.d.ts +1 -0
  66. package/node_modules/@types/form-data/node_modules/@types/node/index.d.ts +1 -1
  67. package/node_modules/@types/form-data/node_modules/@types/node/package.json +9 -2
  68. package/node_modules/@types/form-data/node_modules/@types/node/test.d.ts +127 -3
  69. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
  70. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/assert.d.ts +911 -0
  71. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/async_hooks.d.ts +501 -0
  72. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/buffer.d.ts +2238 -0
  73. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/child_process.d.ts +1369 -0
  74. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/cluster.d.ts +410 -0
  75. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/console.d.ts +412 -0
  76. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
  77. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/crypto.d.ts +3961 -0
  78. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
  79. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +153 -0
  80. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/dns/promises.d.ts +370 -0
  81. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/dns.d.ts +659 -0
  82. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
  83. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/events.d.ts +641 -0
  84. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/fs/promises.d.ts +1120 -0
  85. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/fs.d.ts +3872 -0
  86. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/globals.d.ts +294 -0
  87. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
  88. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/http.d.ts +1553 -0
  89. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/http2.d.ts +2106 -0
  90. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/https.d.ts +541 -0
  91. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/index.d.ts +87 -0
  92. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/inspector.d.ts +2741 -0
  93. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/module.d.ts +114 -0
  94. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/net.d.ts +838 -0
  95. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/os.d.ts +465 -0
  96. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/path.d.ts +191 -0
  97. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/perf_hooks.d.ts +610 -0
  98. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/process.d.ts +1482 -0
  99. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
  100. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
  101. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/readline/promises.d.ts +143 -0
  102. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/readline.d.ts +653 -0
  103. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
  104. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/stream/consumers.d.ts +24 -0
  105. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
  106. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/stream/web.d.ts +330 -0
  107. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/stream.d.ts +1339 -0
  108. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
  109. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/test.d.ts +190 -0
  110. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/timers/promises.d.ts +68 -0
  111. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/timers.d.ts +94 -0
  112. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/tls.d.ts +1028 -0
  113. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/trace_events.d.ts +171 -0
  114. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/tty.d.ts +206 -0
  115. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/url.d.ts +897 -0
  116. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/util.d.ts +1792 -0
  117. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/v8.d.ts +396 -0
  118. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/vm.d.ts +509 -0
  119. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/wasi.d.ts +158 -0
  120. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/worker_threads.d.ts +646 -0
  121. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
  122. package/node_modules/@types/node/README.md +1 -1
  123. package/node_modules/@types/node/globals.d.ts +1 -0
  124. package/node_modules/@types/node/index.d.ts +1 -1
  125. package/node_modules/@types/node/package.json +9 -2
  126. package/node_modules/@types/node/ts4.8/assert.d.ts +128 -0
  127. package/node_modules/@types/node/ts4.8/async_hooks.d.ts +229 -0
  128. package/node_modules/@types/node/ts4.8/buffer.d.ts +89 -0
  129. package/node_modules/@types/node/ts4.8/child_process.d.ts +514 -0
  130. package/node_modules/@types/node/ts4.8/cluster.d.ts +265 -0
  131. package/node_modules/@types/node/ts4.8/console.d.ts +142 -0
  132. package/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
  133. package/node_modules/@types/node/ts4.8/crypto.d.ts +1283 -0
  134. package/node_modules/@types/node/ts4.8/dgram.d.ts +144 -0
  135. package/node_modules/@types/node/ts4.8/dns.d.ts +387 -0
  136. package/node_modules/@types/node/ts4.8/domain.d.ts +27 -0
  137. package/node_modules/@types/node/ts4.8/events.d.ts +82 -0
  138. package/node_modules/@types/node/ts4.8/fs/promises.d.ts +572 -0
  139. package/node_modules/@types/node/ts4.8/fs.d.ts +2281 -0
  140. package/node_modules/@types/node/ts4.8/globals.d.ts +746 -0
  141. package/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
  142. package/node_modules/@types/node/ts4.8/http.d.ts +561 -0
  143. package/node_modules/@types/node/ts4.8/http2.d.ts +962 -0
  144. package/node_modules/@types/node/ts4.8/https.d.ts +271 -0
  145. package/node_modules/@types/node/ts4.8/index.d.ts +53 -0
  146. package/node_modules/@types/node/ts4.8/inspector.d.ts +3051 -0
  147. package/node_modules/@types/node/ts4.8/module.d.ts +56 -0
  148. package/node_modules/@types/node/ts4.8/net.d.ts +308 -0
  149. package/node_modules/@types/node/ts4.8/os.d.ts +242 -0
  150. package/node_modules/@types/node/ts4.8/path.d.ts +168 -0
  151. package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +274 -0
  152. package/node_modules/@types/node/ts4.8/process.d.ts +413 -0
  153. package/node_modules/@types/node/ts4.8/punycode.d.ts +78 -0
  154. package/node_modules/@types/node/ts4.8/querystring.d.ts +31 -0
  155. package/node_modules/@types/node/ts4.8/readline.d.ts +174 -0
  156. package/node_modules/@types/node/ts4.8/repl.d.ts +398 -0
  157. package/node_modules/@types/node/ts4.8/stream.d.ts +359 -0
  158. package/node_modules/@types/node/ts4.8/string_decoder.d.ts +10 -0
  159. package/node_modules/@types/node/ts4.8/timers.d.ts +19 -0
  160. package/node_modules/@types/node/ts4.8/tls.d.ts +784 -0
  161. package/node_modules/@types/node/ts4.8/trace_events.d.ts +64 -0
  162. package/node_modules/@types/node/ts4.8/tty.d.ts +69 -0
  163. package/node_modules/@types/node/ts4.8/url.d.ts +149 -0
  164. package/node_modules/@types/node/ts4.8/util.d.ts +216 -0
  165. package/node_modules/@types/node/ts4.8/v8.d.ts +190 -0
  166. package/node_modules/@types/node/ts4.8/vm.d.ts +155 -0
  167. package/node_modules/@types/node/ts4.8/wasi.d.ts +89 -0
  168. package/node_modules/@types/node/ts4.8/worker_threads.d.ts +241 -0
  169. package/node_modules/@types/node/ts4.8/zlib.d.ts +364 -0
  170. package/package.json +3 -3
@@ -3,6 +3,14 @@
3
3
  * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/test.js)
4
4
  */
5
5
  declare module 'node:test' {
6
+ /**
7
+ * Programmatically start the test runner.
8
+ * @since v18.9.0
9
+ * @param options Configuration options for running tests.
10
+ * @returns A {@link TapStream} that emits events about the test execution.
11
+ */
12
+ function run(options?: RunOptions): TapStream;
13
+
6
14
  /**
7
15
  * The `test()` function is the value imported from the test module. Each invocation of this
8
16
  * function results in the creation of a test point in the TAP output.
@@ -86,6 +94,122 @@ declare module 'node:test' {
86
94
  */
87
95
  type ItFn = (done: (result?: any) => void) => any;
88
96
 
97
+ interface RunOptions {
98
+ /**
99
+ * @default false
100
+ */
101
+ concurrency?: number | boolean;
102
+
103
+ /**
104
+ * An array containing the list of files to run. If unspecified, the test runner execution model will be used.
105
+ */
106
+ files?: readonly string[];
107
+
108
+ /**
109
+ * Allows aborting an in-progress test.
110
+ * @default undefined
111
+ */
112
+ signal?: AbortSignal;
113
+
114
+ /**
115
+ * A number of milliseconds the test will fail after. If unspecified, subtests inherit this
116
+ * value from their parent.
117
+ * @default Infinity
118
+ */
119
+ timeout?: number;
120
+ }
121
+
122
+ /**
123
+ * A successful call of the run() method will return a new TapStream object, streaming a TAP output.
124
+ * TapStream will emit events in the order of the tests' definitions.
125
+ * @since v18.9.0
126
+ */
127
+ interface TapStream extends NodeJS.ReadableStream {
128
+ addListener(event: 'test:diagnostic', listener: (message: string) => void): this;
129
+ addListener(event: 'test:fail', listener: (data: TestFail) => void): this;
130
+ addListener(event: 'test:pass', listener: (data: TestPass) => void): this;
131
+ addListener(event: string, listener: (...args: any[]) => void): this;
132
+ emit(event: 'test:diagnostic', message: string): boolean;
133
+ emit(event: 'test:fail', data: TestFail): boolean;
134
+ emit(event: 'test:pass', data: TestPass): boolean;
135
+ emit(event: string | symbol, ...args: any[]): boolean;
136
+ on(event: 'test:diagnostic', listener: (message: string) => void): this;
137
+ on(event: 'test:fail', listener: (data: TestFail) => void): this;
138
+ on(event: 'test:pass', listener: (data: TestPass) => void): this;
139
+ on(event: string, listener: (...args: any[]) => void): this;
140
+ once(event: 'test:diagnostic', listener: (message: string) => void): this;
141
+ once(event: 'test:fail', listener: (data: TestFail) => void): this;
142
+ once(event: 'test:pass', listener: (data: TestPass) => void): this;
143
+ once(event: string, listener: (...args: any[]) => void): this;
144
+ prependListener(event: 'test:diagnostic', listener: (message: string) => void): this;
145
+ prependListener(event: 'test:fail', listener: (data: TestFail) => void): this;
146
+ prependListener(event: 'test:pass', listener: (data: TestPass) => void): this;
147
+ prependListener(event: string, listener: (...args: any[]) => void): this;
148
+ prependOnceListener(event: 'test:diagnostic', listener: (message: string) => void): this;
149
+ prependOnceListener(event: 'test:fail', listener: (data: TestFail) => void): this;
150
+ prependOnceListener(event: 'test:pass', listener: (data: TestPass) => void): this;
151
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
152
+ }
153
+
154
+ interface TestFail {
155
+ /**
156
+ * The test duration.
157
+ */
158
+ duration: number;
159
+
160
+ /**
161
+ * The failure casing test to fail.
162
+ */
163
+ error: Error;
164
+
165
+ /**
166
+ * The test name.
167
+ */
168
+ name: string;
169
+
170
+ /**
171
+ * The ordinal number of the test.
172
+ */
173
+ testNumber: number;
174
+
175
+ /**
176
+ * Present if `context.todo` is called.
177
+ */
178
+ todo?: string;
179
+
180
+ /**
181
+ * Present if `context.skip` is called.
182
+ */
183
+ skip?: string;
184
+ }
185
+
186
+ interface TestPass {
187
+ /**
188
+ * The test duration.
189
+ */
190
+ duration: number;
191
+
192
+ /**
193
+ * The test name.
194
+ */
195
+ name: string;
196
+
197
+ /**
198
+ * The ordinal number of the test.
199
+ */
200
+ testNumber: number;
201
+
202
+ /**
203
+ * Present if `context.todo` is called.
204
+ */
205
+ todo?: string;
206
+
207
+ /**
208
+ * Present if `context.skip` is called.
209
+ */
210
+ skip?: string;
211
+ }
212
+
89
213
  /**
90
214
  * An instance of `TestContext` is passed to each test function in order to interact with the
91
215
  * test runner. However, the `TestContext` constructor is not exposed as part of the API.
@@ -159,7 +283,7 @@ declare module 'node:test' {
159
283
 
160
284
  /**
161
285
  * Allows aborting an in-progress test.
162
- * @since 8.7.0
286
+ * @since v18.8.0
163
287
  */
164
288
  signal?: AbortSignal;
165
289
 
@@ -174,7 +298,7 @@ declare module 'node:test' {
174
298
  * A number of milliseconds the test will fail after. If unspecified, subtests inherit this
175
299
  * value from their parent.
176
300
  * @default Infinity
177
- * @since 8.7.0
301
+ * @since v18.7.0
178
302
  */
179
303
  timeout?: number;
180
304
 
@@ -186,5 +310,5 @@ declare module 'node:test' {
186
310
  todo?: boolean | string;
187
311
  }
188
312
 
189
- export { test as default, test, describe, it };
313
+ export { test as default, run, test, describe, it };
190
314
  }
@@ -0,0 +1,8 @@
1
+ declare module 'assert/strict' {
2
+ import { strict } from 'node:assert';
3
+ export = strict;
4
+ }
5
+ declare module 'node:assert/strict' {
6
+ import { strict } from 'node:assert';
7
+ export = strict;
8
+ }