cdk-common 2.0.489 → 2.0.491

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 (54) hide show
  1. package/.jsii +15 -3
  2. package/API.md +10 -0
  3. package/lib/main.js +1 -1
  4. package/lib/managed-policies.d.ts +2 -0
  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 +15 -0
  8. package/node_modules/@types/concat-stream/node_modules/@types/node/async_hooks.d.ts +3 -11
  9. package/node_modules/@types/concat-stream/node_modules/@types/node/crypto.d.ts +1 -1
  10. package/node_modules/@types/concat-stream/node_modules/@types/node/dns/promises.d.ts +44 -0
  11. package/node_modules/@types/concat-stream/node_modules/@types/node/dns.d.ts +1 -0
  12. package/node_modules/@types/concat-stream/node_modules/@types/node/events.d.ts +49 -7
  13. package/node_modules/@types/concat-stream/node_modules/@types/node/fs.d.ts +43 -9
  14. package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +2 -2
  15. package/node_modules/@types/concat-stream/node_modules/@types/node/readline/promises.d.ts +59 -59
  16. package/node_modules/@types/concat-stream/node_modules/@types/node/readline.d.ts +17 -144
  17. package/node_modules/@types/concat-stream/node_modules/@types/node/repl.d.ts +11 -11
  18. package/node_modules/@types/concat-stream/node_modules/@types/node/timers.d.ts +120 -6
  19. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/assert.d.ts +15 -0
  20. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/async_hooks.d.ts +3 -11
  21. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/crypto.d.ts +1 -1
  22. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/dns/promises.d.ts +44 -0
  23. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/dns.d.ts +1 -0
  24. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/events.d.ts +49 -7
  25. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/fs.d.ts +43 -9
  26. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/readline/promises.d.ts +59 -59
  27. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/readline.d.ts +17 -144
  28. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/repl.d.ts +11 -11
  29. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/timers.d.ts +120 -6
  30. package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
  31. package/node_modules/@types/form-data/node_modules/@types/node/assert.d.ts +15 -0
  32. package/node_modules/@types/form-data/node_modules/@types/node/async_hooks.d.ts +3 -11
  33. package/node_modules/@types/form-data/node_modules/@types/node/crypto.d.ts +1 -1
  34. package/node_modules/@types/form-data/node_modules/@types/node/dns/promises.d.ts +44 -0
  35. package/node_modules/@types/form-data/node_modules/@types/node/dns.d.ts +1 -0
  36. package/node_modules/@types/form-data/node_modules/@types/node/events.d.ts +49 -7
  37. package/node_modules/@types/form-data/node_modules/@types/node/fs.d.ts +43 -9
  38. package/node_modules/@types/form-data/node_modules/@types/node/package.json +2 -2
  39. package/node_modules/@types/form-data/node_modules/@types/node/readline/promises.d.ts +59 -59
  40. package/node_modules/@types/form-data/node_modules/@types/node/readline.d.ts +17 -144
  41. package/node_modules/@types/form-data/node_modules/@types/node/repl.d.ts +11 -11
  42. package/node_modules/@types/form-data/node_modules/@types/node/timers.d.ts +120 -6
  43. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/assert.d.ts +15 -0
  44. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/async_hooks.d.ts +3 -11
  45. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/crypto.d.ts +1 -1
  46. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/dns/promises.d.ts +44 -0
  47. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/dns.d.ts +1 -0
  48. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/events.d.ts +49 -7
  49. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/fs.d.ts +43 -9
  50. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/readline/promises.d.ts +59 -59
  51. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/readline.d.ts +17 -144
  52. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/repl.d.ts +11 -11
  53. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/timers.d.ts +120 -6
  54. package/package.json +4 -4
@@ -33,7 +33,35 @@ declare module 'timers' {
33
33
  refresh(): this;
34
34
  [Symbol.toPrimitive](): number;
35
35
  }
36
- interface Immediate extends RefCounted {
36
+ /**
37
+ * This object is created internally and is returned from `setImmediate()`. It
38
+ * can be passed to `clearImmediate()` in order to cancel the scheduled
39
+ * actions.
40
+ *
41
+ * By default, when an immediate is scheduled, the Node.js event loop will continue
42
+ * running as long as the immediate is active. The `Immediate` object returned by `setImmediate()` exports both `immediate.ref()` and `immediate.unref()`functions that can be used to
43
+ * control this default behavior.
44
+ */
45
+ class Immediate implements RefCounted {
46
+ /**
47
+ * When called, requests that the Node.js event loop _not_ exit so long as the`Immediate` is active. Calling `immediate.ref()` multiple times will have no
48
+ * effect.
49
+ *
50
+ * By default, all `Immediate` objects are "ref'ed", making it normally unnecessary
51
+ * to call `immediate.ref()` unless `immediate.unref()` had been called previously.
52
+ * @since v9.7.0
53
+ * @return a reference to `immediate`
54
+ */
55
+ ref(): this;
56
+ /**
57
+ * When called, the active `Immediate` object will not require the Node.js event
58
+ * loop to remain active. If there is no other activity keeping the event loop
59
+ * running, the process may exit before the `Immediate` object's callback is
60
+ * invoked. Calling `immediate.unref()` multiple times will have no effect.
61
+ * @since v9.7.0
62
+ * @return a reference to `immediate`
63
+ */
64
+ unref(): this;
37
65
  /**
38
66
  * If true, the `Immediate` object will keep the Node.js event loop active.
39
67
  * @since v11.0.0
@@ -41,7 +69,33 @@ declare module 'timers' {
41
69
  hasRef(): boolean;
42
70
  _onImmediate: Function; // to distinguish it from the Timeout class
43
71
  }
44
- interface Timeout extends Timer {
72
+ /**
73
+ * This object is created internally and is returned from `setTimeout()` and `setInterval()`. It can be passed to either `clearTimeout()` or `clearInterval()` in order to cancel the
74
+ * scheduled actions.
75
+ *
76
+ * By default, when a timer is scheduled using either `setTimeout()` or `setInterval()`, the Node.js event loop will continue running as long as the
77
+ * timer is active. Each of the `Timeout` objects returned by these functions
78
+ * export both `timeout.ref()` and `timeout.unref()` functions that can be used to
79
+ * control this default behavior.
80
+ */
81
+ class Timeout implements Timer {
82
+ /**
83
+ * When called, requests that the Node.js event loop _not_ exit so long as the`Timeout` is active. Calling `timeout.ref()` multiple times will have no effect.
84
+ *
85
+ * By default, all `Timeout` objects are "ref'ed", making it normally unnecessary
86
+ * to call `timeout.ref()` unless `timeout.unref()` had been called previously.
87
+ * @since v0.9.1
88
+ * @return a reference to `timeout`
89
+ */
90
+ ref(): this;
91
+ /**
92
+ * When called, the active `Timeout` object will not require the Node.js event loop
93
+ * to remain active. If there is no other activity keeping the event loop running,
94
+ * the process may exit before the `Timeout` object's callback is invoked. Calling`timeout.unref()` multiple times will have no effect.
95
+ * @since v0.9.1
96
+ * @return a reference to `timeout`
97
+ */
98
+ unref(): this;
45
99
  /**
46
100
  * If true, the `Timeout` object will keep the Node.js event loop active.
47
101
  * @since v11.0.0
@@ -63,11 +117,23 @@ declare module 'timers' {
63
117
  }
64
118
  }
65
119
  /**
66
- * Schedules execution of a one-time `callback` after `delay` milliseconds. The `callback` will likely not be invoked in precisely `delay` milliseconds.
67
- * Node.js makes no guarantees about the exact timing of when callbacks will fire, nor of their ordering. The callback will be called as close as possible to the time specified.
68
- * When `delay` is larger than `2147483647` or less than `1`, the `delay` will be set to `1`. Non-integer delays are truncated to an integer.
69
- * If `callback` is not a function, a [TypeError](https://nodejs.org/api/errors.html#class-typeerror) will be thrown.
120
+ * Schedules execution of a one-time `callback` after `delay` milliseconds.
121
+ *
122
+ * The `callback` will likely not be invoked in precisely `delay` milliseconds.
123
+ * Node.js makes no guarantees about the exact timing of when callbacks will fire,
124
+ * nor of their ordering. The callback will be called as close as possible to the
125
+ * time specified.
126
+ *
127
+ * When `delay` is larger than `2147483647` or less than `1`, the `delay`will be set to `1`. Non-integer delays are truncated to an integer.
128
+ *
129
+ * If `callback` is not a function, a `TypeError` will be thrown.
130
+ *
131
+ * This method has a custom variant for promises that is available using `timersPromises.setTimeout()`.
70
132
  * @since v0.0.1
133
+ * @param callback The function to call when the timer elapses.
134
+ * @param [delay=1] The number of milliseconds to wait before calling the `callback`.
135
+ * @param args Optional arguments to pass when the `callback` is called.
136
+ * @return for use with {@link clearTimeout}
71
137
  */
72
138
  function setTimeout<TArgs extends any[]>(callback: (...args: TArgs) => void, ms?: number, ...args: TArgs): NodeJS.Timeout;
73
139
  // util.promisify no rest args compability
@@ -76,7 +142,27 @@ declare module 'timers' {
76
142
  namespace setTimeout {
77
143
  const __promisify__: typeof setTimeoutPromise;
78
144
  }
145
+ /**
146
+ * Cancels a `Timeout` object created by `setTimeout()`.
147
+ * @since v0.0.1
148
+ * @param timeout A `Timeout` object as returned by {@link setTimeout} or the `primitive` of the `Timeout` object as a string or a number.
149
+ */
79
150
  function clearTimeout(timeoutId: NodeJS.Timeout | string | number | undefined): void;
151
+ /**
152
+ * Schedules repeated execution of `callback` every `delay` milliseconds.
153
+ *
154
+ * When `delay` is larger than `2147483647` or less than `1`, the `delay` will be
155
+ * set to `1`. Non-integer delays are truncated to an integer.
156
+ *
157
+ * If `callback` is not a function, a `TypeError` will be thrown.
158
+ *
159
+ * This method has a custom variant for promises that is available using `timersPromises.setInterval()`.
160
+ * @since v0.0.1
161
+ * @param callback The function to call when the timer elapses.
162
+ * @param [delay=1] The number of milliseconds to wait before calling the `callback`.
163
+ * @param args Optional arguments to pass when the `callback` is called.
164
+ * @return for use with {@link clearInterval}
165
+ */
80
166
  function setInterval<TArgs extends any[]>(callback: (...args: TArgs) => void, ms?: number, ...args: TArgs): NodeJS.Timer;
81
167
  // util.promisify no rest args compability
82
168
  // tslint:disable-next-line void-return
@@ -84,7 +170,30 @@ declare module 'timers' {
84
170
  namespace setInterval {
85
171
  const __promisify__: typeof setIntervalPromise;
86
172
  }
173
+ /**
174
+ * Cancels a `Timeout` object created by `setInterval()`.
175
+ * @since v0.0.1
176
+ * @param timeout A `Timeout` object as returned by {@link setInterval} or the `primitive` of the `Timeout` object as a string or a number.
177
+ */
87
178
  function clearInterval(intervalId: NodeJS.Timeout | string | number | undefined): void;
179
+ /**
180
+ * Schedules the "immediate" execution of the `callback` after I/O events'
181
+ * callbacks.
182
+ *
183
+ * When multiple calls to `setImmediate()` are made, the `callback` functions are
184
+ * queued for execution in the order in which they are created. The entire callback
185
+ * queue is processed every event loop iteration. If an immediate timer is queued
186
+ * from inside an executing callback, that timer will not be triggered until the
187
+ * next event loop iteration.
188
+ *
189
+ * If `callback` is not a function, a `TypeError` will be thrown.
190
+ *
191
+ * This method has a custom variant for promises that is available using `timersPromises.setImmediate()`.
192
+ * @since v0.9.1
193
+ * @param callback The function to call at the end of this turn of the Node.js `Event Loop`
194
+ * @param args Optional arguments to pass when the `callback` is called.
195
+ * @return for use with {@link clearImmediate}
196
+ */
88
197
  function setImmediate<TArgs extends any[]>(callback: (...args: TArgs) => void, ...args: TArgs): NodeJS.Immediate;
89
198
  // util.promisify no rest args compability
90
199
  // tslint:disable-next-line void-return
@@ -92,6 +201,11 @@ declare module 'timers' {
92
201
  namespace setImmediate {
93
202
  const __promisify__: typeof setImmediatePromise;
94
203
  }
204
+ /**
205
+ * Cancels an `Immediate` object created by `setImmediate()`.
206
+ * @since v0.9.1
207
+ * @param immediate An `Immediate` object as returned by {@link setImmediate}.
208
+ */
95
209
  function clearImmediate(immediateId: NodeJS.Immediate | undefined): void;
96
210
  function queueMicrotask(callback: () => void): void;
97
211
  }
package/package.json CHANGED
@@ -50,11 +50,11 @@
50
50
  "jest": "^27",
51
51
  "jest-junit": "^15",
52
52
  "jsii": "1.x",
53
- "jsii-diff": "^1.80.0",
53
+ "jsii-diff": "^1.81.0",
54
54
  "jsii-docgen": "^3.8.31",
55
- "jsii-pacmak": "^1.80.0",
55
+ "jsii-pacmak": "^1.81.0",
56
56
  "npm-check-updates": "^16",
57
- "projen": "0.71.48",
57
+ "projen": "0.71.52",
58
58
  "standard-version": "^9",
59
59
  "ts-jest": "^27",
60
60
  "typescript": "^4.9"
@@ -86,7 +86,7 @@
86
86
  ],
87
87
  "main": "lib/index.js",
88
88
  "license": "Apache-2.0",
89
- "version": "2.0.489",
89
+ "version": "2.0.491",
90
90
  "jest": {
91
91
  "testMatch": [
92
92
  "<rootDir>/src/**/__tests__/**/*.ts?(x)",