cloudstructs 0.9.31 → 0.9.33
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 +3 -3
- package/lib/codecommit-mirror/index.js +2 -2
- package/lib/dmarc/index.js +1 -1
- package/lib/ecs-service-roller/index.js +2 -2
- package/lib/email-receiver/receiver.js +1 -1
- package/lib/mjml-template/index.js +1 -1
- package/lib/saml-identity-provider/index.js +2 -2
- package/lib/slack-app/manifest.js +1 -1
- package/lib/slack-app/slack-app.js +2 -2
- package/lib/slack-events/index.js +1 -1
- package/lib/slack-textract/index.js +1 -1
- package/lib/ssl-server-test/index.js +1 -1
- package/lib/state-machine-cr-provider/index.js +4 -4
- package/lib/static-website/index.js +1 -1
- package/lib/toolkit-cleaner/index.js +1 -1
- package/lib/url-shortener/index.js +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +26 -16
- package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +3 -1
- package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +50 -5
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +4 -4
- package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +28 -0
- package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +63 -17
- package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +82 -0
- package/node_modules/@slack/logger/node_modules/@types/node/timers/promises.d.ts +24 -13
- package/node_modules/@slack/logger/node_modules/@types/node/timers.d.ts +159 -112
- package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +23 -10
- package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +1 -0
- package/node_modules/@slack/logger/node_modules/undici-types/dispatcher.d.ts +1 -0
- package/node_modules/@slack/logger/node_modules/undici-types/package.json +1 -1
- package/node_modules/@slack/logger/node_modules/undici-types/readable.d.ts +5 -0
- package/node_modules/@slack/logger/node_modules/undici-types/webidl.d.ts +6 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +26 -16
- package/node_modules/@slack/web-api/node_modules/@types/node/https.d.ts +3 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +50 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +4 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +28 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +63 -17
- package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +82 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/timers/promises.d.ts +24 -13
- package/node_modules/@slack/web-api/node_modules/@types/node/timers.d.ts +159 -112
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +23 -10
- package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +1 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/dispatcher.d.ts +1 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/package.json +1 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/readable.d.ts +5 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/webidl.d.ts +6 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +26 -16
- package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +3 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +50 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +28 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +63 -17
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +82 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +24 -13
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +159 -112
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +23 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/dispatcher.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/readable.d.ts +5 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/webidl.d.ts +6 -0
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +26 -16
- package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +3 -1
- package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +50 -5
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +28 -0
- package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +63 -17
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +82 -0
- package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +24 -13
- package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +159 -112
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +23 -10
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/undici-types/dispatcher.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/keyv/node_modules/undici-types/readable.d.ts +5 -0
- package/node_modules/@types/keyv/node_modules/undici-types/webidl.d.ts +6 -0
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +26 -16
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +3 -1
- package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +50 -5
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +28 -0
- package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +63 -17
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +82 -0
- package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +24 -13
- package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +159 -112
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +23 -10
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/undici-types/dispatcher.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/responselike/node_modules/undici-types/readable.d.ts +5 -0
- package/node_modules/@types/responselike/node_modules/undici-types/webidl.d.ts +6 -0
- package/package.json +18 -18
|
@@ -10,12 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
declare module "timers" {
|
|
12
12
|
import { Abortable } from "node:events";
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
setInterval as setIntervalPromise,
|
|
16
|
-
setTimeout as setTimeoutPromise,
|
|
17
|
-
} from "node:timers/promises";
|
|
18
|
-
interface TimerOptions extends Abortable {
|
|
13
|
+
import * as promises from "node:timers/promises";
|
|
14
|
+
export interface TimerOptions extends Abortable {
|
|
19
15
|
/**
|
|
20
16
|
* Set to `false` to indicate that the scheduled `Timeout`
|
|
21
17
|
* should not require the Node.js event loop to remain active.
|
|
@@ -23,38 +19,33 @@ declare module "timers" {
|
|
|
23
19
|
*/
|
|
24
20
|
ref?: boolean | undefined;
|
|
25
21
|
}
|
|
26
|
-
let setTimeout: typeof global.setTimeout;
|
|
27
|
-
let clearTimeout: typeof global.clearTimeout;
|
|
28
|
-
let setInterval: typeof global.setInterval;
|
|
29
|
-
let clearInterval: typeof global.clearInterval;
|
|
30
|
-
let setImmediate: typeof global.setImmediate;
|
|
31
|
-
let clearImmediate: typeof global.clearImmediate;
|
|
32
22
|
global {
|
|
33
23
|
namespace NodeJS {
|
|
34
|
-
// compatibility with older typings
|
|
35
|
-
interface Timer extends RefCounted {
|
|
36
|
-
hasRef(): boolean;
|
|
37
|
-
refresh(): this;
|
|
38
|
-
[Symbol.toPrimitive](): number;
|
|
39
|
-
}
|
|
40
24
|
/**
|
|
41
25
|
* This object is created internally and is returned from `setImmediate()`. It
|
|
42
26
|
* can be passed to `clearImmediate()` in order to cancel the scheduled
|
|
43
27
|
* actions.
|
|
44
28
|
*
|
|
45
29
|
* By default, when an immediate is scheduled, the Node.js event loop will continue
|
|
46
|
-
* running as long as the immediate is active. The `Immediate` object returned by
|
|
47
|
-
*
|
|
30
|
+
* running as long as the immediate is active. The `Immediate` object returned by
|
|
31
|
+
* `setImmediate()` exports both `immediate.ref()` and `immediate.unref()`
|
|
32
|
+
* functions that can be used to control this default behavior.
|
|
48
33
|
*/
|
|
49
|
-
|
|
34
|
+
interface Immediate extends RefCounted, Disposable {
|
|
35
|
+
/**
|
|
36
|
+
* If true, the `Immediate` object will keep the Node.js event loop active.
|
|
37
|
+
* @since v11.0.0
|
|
38
|
+
*/
|
|
39
|
+
hasRef(): boolean;
|
|
50
40
|
/**
|
|
51
|
-
* When called, requests that the Node.js event loop _not_ exit so long as the
|
|
41
|
+
* When called, requests that the Node.js event loop _not_ exit so long as the
|
|
42
|
+
* `Immediate` is active. Calling `immediate.ref()` multiple times will have no
|
|
52
43
|
* effect.
|
|
53
44
|
*
|
|
54
45
|
* By default, all `Immediate` objects are "ref'ed", making it normally unnecessary
|
|
55
46
|
* to call `immediate.ref()` unless `immediate.unref()` had been called previously.
|
|
56
47
|
* @since v9.7.0
|
|
57
|
-
* @
|
|
48
|
+
* @returns a reference to `immediate`
|
|
58
49
|
*/
|
|
59
50
|
ref(): this;
|
|
60
51
|
/**
|
|
@@ -63,53 +54,59 @@ declare module "timers" {
|
|
|
63
54
|
* running, the process may exit before the `Immediate` object's callback is
|
|
64
55
|
* invoked. Calling `immediate.unref()` multiple times will have no effect.
|
|
65
56
|
* @since v9.7.0
|
|
66
|
-
* @
|
|
57
|
+
* @returns a reference to `immediate`
|
|
67
58
|
*/
|
|
68
59
|
unref(): this;
|
|
69
|
-
/**
|
|
70
|
-
* If true, the `Immediate` object will keep the Node.js event loop active.
|
|
71
|
-
* @since v11.0.0
|
|
72
|
-
*/
|
|
73
|
-
hasRef(): boolean;
|
|
74
|
-
_onImmediate: Function; // to distinguish it from the Timeout class
|
|
75
60
|
/**
|
|
76
61
|
* Cancels the immediate. This is similar to calling `clearImmediate()`.
|
|
77
|
-
* @since v20.5.0
|
|
62
|
+
* @since v20.5.0, v18.18.0
|
|
63
|
+
* @experimental
|
|
78
64
|
*/
|
|
79
65
|
[Symbol.dispose](): void;
|
|
66
|
+
_onImmediate(...args: any[]): void;
|
|
67
|
+
}
|
|
68
|
+
// Legacy interface used in Node.js v9 and prior
|
|
69
|
+
// TODO: remove in a future major version bump
|
|
70
|
+
/** @deprecated Use `NodeJS.Timeout` instead. */
|
|
71
|
+
interface Timer extends RefCounted {
|
|
72
|
+
hasRef(): boolean;
|
|
73
|
+
refresh(): this;
|
|
74
|
+
[Symbol.toPrimitive](): number;
|
|
80
75
|
}
|
|
81
76
|
/**
|
|
82
|
-
* This object is created internally and is returned from `setTimeout()` and
|
|
83
|
-
*
|
|
77
|
+
* This object is created internally and is returned from `setTimeout()` and
|
|
78
|
+
* `setInterval()`. It can be passed to either `clearTimeout()` or
|
|
79
|
+
* `clearInterval()` in order to cancel the scheduled actions.
|
|
84
80
|
*
|
|
85
|
-
* By default, when a timer is scheduled using either `setTimeout()` or
|
|
81
|
+
* By default, when a timer is scheduled using either `setTimeout()` or
|
|
82
|
+
* `setInterval()`, the Node.js event loop will continue running as long as the
|
|
86
83
|
* timer is active. Each of the `Timeout` objects returned by these functions
|
|
87
84
|
* export both `timeout.ref()` and `timeout.unref()` functions that can be used to
|
|
88
85
|
* control this default behavior.
|
|
89
86
|
*/
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* 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.
|
|
93
|
-
*
|
|
94
|
-
* By default, all `Timeout` objects are "ref'ed", making it normally unnecessary
|
|
95
|
-
* to call `timeout.ref()` unless `timeout.unref()` had been called previously.
|
|
96
|
-
* @since v0.9.1
|
|
97
|
-
* @return a reference to `timeout`
|
|
98
|
-
*/
|
|
99
|
-
ref(): this;
|
|
87
|
+
interface Timeout extends RefCounted, Disposable, Timer {
|
|
100
88
|
/**
|
|
101
|
-
*
|
|
102
|
-
* to remain active. If there is no other activity keeping the event loop running,
|
|
103
|
-
* the process may exit before the `Timeout` object's callback is invoked. Calling `timeout.unref()` multiple times will have no effect.
|
|
89
|
+
* Cancels the timeout.
|
|
104
90
|
* @since v0.9.1
|
|
105
|
-
* @
|
|
91
|
+
* @legacy Use `clearTimeout()` instead.
|
|
92
|
+
* @returns a reference to `timeout`
|
|
106
93
|
*/
|
|
107
|
-
|
|
94
|
+
close(): this;
|
|
108
95
|
/**
|
|
109
96
|
* If true, the `Timeout` object will keep the Node.js event loop active.
|
|
110
97
|
* @since v11.0.0
|
|
111
98
|
*/
|
|
112
99
|
hasRef(): boolean;
|
|
100
|
+
/**
|
|
101
|
+
* When called, requests that the Node.js event loop _not_ exit so long as the
|
|
102
|
+
* `Timeout` is active. Calling `timeout.ref()` multiple times will have no effect.
|
|
103
|
+
*
|
|
104
|
+
* By default, all `Timeout` objects are "ref'ed", making it normally unnecessary
|
|
105
|
+
* to call `timeout.ref()` unless `timeout.unref()` had been called previously.
|
|
106
|
+
* @since v0.9.1
|
|
107
|
+
* @returns a reference to `timeout`
|
|
108
|
+
*/
|
|
109
|
+
ref(): this;
|
|
113
110
|
/**
|
|
114
111
|
* Sets the timer's start time to the current time, and reschedules the timer to
|
|
115
112
|
* call its callback at the previously specified duration adjusted to the current
|
|
@@ -119,121 +116,171 @@ declare module "timers" {
|
|
|
119
116
|
* Using this on a timer that has already called its callback will reactivate the
|
|
120
117
|
* timer.
|
|
121
118
|
* @since v10.2.0
|
|
122
|
-
* @
|
|
119
|
+
* @returns a reference to `timeout`
|
|
123
120
|
*/
|
|
124
121
|
refresh(): this;
|
|
122
|
+
/**
|
|
123
|
+
* When called, the active `Timeout` object will not require the Node.js event loop
|
|
124
|
+
* to remain active. If there is no other activity keeping the event loop running,
|
|
125
|
+
* the process may exit before the `Timeout` object's callback is invoked. Calling
|
|
126
|
+
* `timeout.unref()` multiple times will have no effect.
|
|
127
|
+
* @since v0.9.1
|
|
128
|
+
* @returns a reference to `timeout`
|
|
129
|
+
*/
|
|
130
|
+
unref(): this;
|
|
131
|
+
/**
|
|
132
|
+
* Coerce a `Timeout` to a primitive. The primitive can be used to
|
|
133
|
+
* clear the `Timeout`. The primitive can only be used in the
|
|
134
|
+
* same thread where the timeout was created. Therefore, to use it
|
|
135
|
+
* across `worker_threads` it must first be passed to the correct
|
|
136
|
+
* thread. This allows enhanced compatibility with browser
|
|
137
|
+
* `setTimeout()` and `setInterval()` implementations.
|
|
138
|
+
* @since v14.9.0, v12.19.0
|
|
139
|
+
*/
|
|
125
140
|
[Symbol.toPrimitive](): number;
|
|
126
141
|
/**
|
|
127
142
|
* Cancels the timeout.
|
|
128
|
-
* @since v20.5.0
|
|
143
|
+
* @since v20.5.0, v18.18.0
|
|
144
|
+
* @experimental
|
|
129
145
|
*/
|
|
130
146
|
[Symbol.dispose](): void;
|
|
147
|
+
_onTimeout(...args: any[]): void;
|
|
131
148
|
}
|
|
132
149
|
}
|
|
133
150
|
/**
|
|
134
|
-
* Schedules execution of
|
|
135
|
-
*
|
|
136
|
-
* The `callback` will likely not be invoked in precisely `delay` milliseconds.
|
|
137
|
-
* Node.js makes no guarantees about the exact timing of when callbacks will fire,
|
|
138
|
-
* nor of their ordering. The callback will be called as close as possible to the
|
|
139
|
-
* time specified.
|
|
151
|
+
* Schedules the "immediate" execution of the `callback` after I/O events'
|
|
152
|
+
* callbacks.
|
|
140
153
|
*
|
|
141
|
-
* When
|
|
154
|
+
* When multiple calls to `setImmediate()` are made, the `callback` functions are
|
|
155
|
+
* queued for execution in the order in which they are created. The entire callback
|
|
156
|
+
* queue is processed every event loop iteration. If an immediate timer is queued
|
|
157
|
+
* from inside an executing callback, that timer will not be triggered until the
|
|
158
|
+
* next event loop iteration.
|
|
142
159
|
*
|
|
143
160
|
* If `callback` is not a function, a `TypeError` will be thrown.
|
|
144
161
|
*
|
|
145
|
-
* This method has a custom variant for promises that is available using
|
|
146
|
-
*
|
|
147
|
-
* @
|
|
148
|
-
* @param
|
|
162
|
+
* This method has a custom variant for promises that is available using
|
|
163
|
+
* `timersPromises.setImmediate()`.
|
|
164
|
+
* @since v0.9.1
|
|
165
|
+
* @param callback The function to call at the end of this turn of
|
|
166
|
+
* the Node.js [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#setimmediate-vs-settimeout)
|
|
149
167
|
* @param args Optional arguments to pass when the `callback` is called.
|
|
150
|
-
* @
|
|
168
|
+
* @returns for use with `clearImmediate()`
|
|
151
169
|
*/
|
|
152
|
-
function
|
|
170
|
+
function setImmediate<TArgs extends any[]>(
|
|
153
171
|
callback: (...args: TArgs) => void,
|
|
154
|
-
ms?: number,
|
|
155
172
|
...args: TArgs
|
|
156
|
-
): NodeJS.
|
|
157
|
-
//
|
|
173
|
+
): NodeJS.Immediate;
|
|
174
|
+
// Allow a single void-accepting argument to be optional in arguments lists.
|
|
175
|
+
// Allows usage such as `new Promise(resolve => setTimeout(resolve, ms))` (#54258)
|
|
158
176
|
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
159
|
-
function
|
|
160
|
-
namespace
|
|
161
|
-
|
|
177
|
+
function setImmediate(callback: (_: void) => void): NodeJS.Immediate;
|
|
178
|
+
namespace setImmediate {
|
|
179
|
+
import __promisify__ = promises.setImmediate;
|
|
180
|
+
export { __promisify__ };
|
|
162
181
|
}
|
|
163
|
-
/**
|
|
164
|
-
* Cancels a `Timeout` object created by `setTimeout()`.
|
|
165
|
-
* @since v0.0.1
|
|
166
|
-
* @param timeout A `Timeout` object as returned by {@link setTimeout} or the `primitive` of the `Timeout` object as a string or a number.
|
|
167
|
-
*/
|
|
168
|
-
function clearTimeout(timeoutId: NodeJS.Timeout | string | number | undefined): void;
|
|
169
182
|
/**
|
|
170
183
|
* Schedules repeated execution of `callback` every `delay` milliseconds.
|
|
171
184
|
*
|
|
172
|
-
* When `delay` is larger than `2147483647` or less than `1`, the `delay`
|
|
173
|
-
* set to `1`. Non-integer delays are truncated to an integer.
|
|
185
|
+
* When `delay` is larger than `2147483647` or less than `1` or `NaN`, the `delay`
|
|
186
|
+
* will be set to `1`. Non-integer delays are truncated to an integer.
|
|
174
187
|
*
|
|
175
188
|
* If `callback` is not a function, a `TypeError` will be thrown.
|
|
176
189
|
*
|
|
177
|
-
* This method has a custom variant for promises that is available using
|
|
190
|
+
* This method has a custom variant for promises that is available using
|
|
191
|
+
* `timersPromises.setInterval()`.
|
|
178
192
|
* @since v0.0.1
|
|
179
193
|
* @param callback The function to call when the timer elapses.
|
|
180
|
-
* @param
|
|
194
|
+
* @param delay The number of milliseconds to wait before calling the
|
|
195
|
+
* `callback`. **Default:** `1`.
|
|
181
196
|
* @param args Optional arguments to pass when the `callback` is called.
|
|
182
|
-
* @
|
|
197
|
+
* @returns for use with `clearInterval()`
|
|
183
198
|
*/
|
|
184
199
|
function setInterval<TArgs extends any[]>(
|
|
185
200
|
callback: (...args: TArgs) => void,
|
|
186
|
-
|
|
201
|
+
delay?: number,
|
|
187
202
|
...args: TArgs
|
|
188
203
|
): NodeJS.Timeout;
|
|
189
|
-
//
|
|
204
|
+
// Allow a single void-accepting argument to be optional in arguments lists.
|
|
205
|
+
// Allows usage such as `new Promise(resolve => setTimeout(resolve, ms))` (#54258)
|
|
190
206
|
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
191
|
-
function setInterval(callback: (
|
|
192
|
-
namespace setInterval {
|
|
193
|
-
const __promisify__: typeof setIntervalPromise;
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* Cancels a `Timeout` object created by `setInterval()`.
|
|
197
|
-
* @since v0.0.1
|
|
198
|
-
* @param timeout A `Timeout` object as returned by {@link setInterval} or the `primitive` of the `Timeout` object as a string or a number.
|
|
199
|
-
*/
|
|
200
|
-
function clearInterval(intervalId: NodeJS.Timeout | string | number | undefined): void;
|
|
207
|
+
function setInterval(callback: (_: void) => void, delay?: number): NodeJS.Timeout;
|
|
201
208
|
/**
|
|
202
|
-
* Schedules
|
|
203
|
-
* callbacks.
|
|
209
|
+
* Schedules execution of a one-time `callback` after `delay` milliseconds.
|
|
204
210
|
*
|
|
205
|
-
*
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
*
|
|
211
|
+
* The `callback` will likely not be invoked in precisely `delay` milliseconds.
|
|
212
|
+
* Node.js makes no guarantees about the exact timing of when callbacks will fire,
|
|
213
|
+
* nor of their ordering. The callback will be called as close as possible to the
|
|
214
|
+
* time specified.
|
|
215
|
+
*
|
|
216
|
+
* When `delay` is larger than `2147483647` or less than `1` or `NaN`, the `delay`
|
|
217
|
+
* will be set to `1`. Non-integer delays are truncated to an integer.
|
|
210
218
|
*
|
|
211
219
|
* If `callback` is not a function, a `TypeError` will be thrown.
|
|
212
220
|
*
|
|
213
|
-
* This method has a custom variant for promises that is available using
|
|
214
|
-
*
|
|
215
|
-
* @
|
|
221
|
+
* This method has a custom variant for promises that is available using
|
|
222
|
+
* `timersPromises.setTimeout()`.
|
|
223
|
+
* @since v0.0.1
|
|
224
|
+
* @param callback The function to call when the timer elapses.
|
|
225
|
+
* @param delay The number of milliseconds to wait before calling the
|
|
226
|
+
* `callback`. **Default:** `1`.
|
|
216
227
|
* @param args Optional arguments to pass when the `callback` is called.
|
|
217
|
-
* @
|
|
228
|
+
* @returns for use with `clearTimeout()`
|
|
218
229
|
*/
|
|
219
|
-
function
|
|
230
|
+
function setTimeout<TArgs extends any[]>(
|
|
220
231
|
callback: (...args: TArgs) => void,
|
|
232
|
+
delay?: number,
|
|
221
233
|
...args: TArgs
|
|
222
|
-
): NodeJS.
|
|
223
|
-
//
|
|
234
|
+
): NodeJS.Timeout;
|
|
235
|
+
// Allow a single void-accepting argument to be optional in arguments lists.
|
|
236
|
+
// Allows usage such as `new Promise(resolve => setTimeout(resolve, ms))` (#54258)
|
|
224
237
|
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
225
|
-
function
|
|
226
|
-
namespace
|
|
227
|
-
|
|
238
|
+
function setTimeout(callback: (_: void) => void, delay?: number): NodeJS.Timeout;
|
|
239
|
+
namespace setTimeout {
|
|
240
|
+
import __promisify__ = promises.setTimeout;
|
|
241
|
+
export { __promisify__ };
|
|
228
242
|
}
|
|
229
243
|
/**
|
|
230
244
|
* Cancels an `Immediate` object created by `setImmediate()`.
|
|
231
245
|
* @since v0.9.1
|
|
232
|
-
* @param immediate An `Immediate` object as returned by
|
|
246
|
+
* @param immediate An `Immediate` object as returned by `setImmediate()`.
|
|
247
|
+
*/
|
|
248
|
+
function clearImmediate(immediate: NodeJS.Immediate | undefined): void;
|
|
249
|
+
/**
|
|
250
|
+
* Cancels a `Timeout` object created by `setInterval()`.
|
|
251
|
+
* @since v0.0.1
|
|
252
|
+
* @param timeout A `Timeout` object as returned by `setInterval()`
|
|
253
|
+
* or the primitive of the `Timeout` object as a string or a number.
|
|
254
|
+
*/
|
|
255
|
+
function clearInterval(timeout: NodeJS.Timeout | string | number | undefined): void;
|
|
256
|
+
/**
|
|
257
|
+
* Cancels a `Timeout` object created by `setTimeout()`.
|
|
258
|
+
* @since v0.0.1
|
|
259
|
+
* @param timeout A `Timeout` object as returned by `setTimeout()`
|
|
260
|
+
* or the primitive of the `Timeout` object as a string or a number.
|
|
261
|
+
*/
|
|
262
|
+
function clearTimeout(timeout: NodeJS.Timeout | string | number | undefined): void;
|
|
263
|
+
/**
|
|
264
|
+
* The `queueMicrotask()` method queues a microtask to invoke `callback`. If
|
|
265
|
+
* `callback` throws an exception, the `process` object `'uncaughtException'`
|
|
266
|
+
* event will be emitted.
|
|
267
|
+
*
|
|
268
|
+
* The microtask queue is managed by V8 and may be used in a similar manner to
|
|
269
|
+
* the `process.nextTick()` queue, which is managed by Node.js. The
|
|
270
|
+
* `process.nextTick()` queue is always processed before the microtask queue
|
|
271
|
+
* within each turn of the Node.js event loop.
|
|
272
|
+
* @since v11.0.0
|
|
273
|
+
* @param callback Function to be queued.
|
|
233
274
|
*/
|
|
234
|
-
function clearImmediate(immediateId: NodeJS.Immediate | undefined): void;
|
|
235
275
|
function queueMicrotask(callback: () => void): void;
|
|
236
276
|
}
|
|
277
|
+
import clearImmediate = globalThis.clearImmediate;
|
|
278
|
+
import clearInterval = globalThis.clearInterval;
|
|
279
|
+
import clearTimeout = globalThis.clearTimeout;
|
|
280
|
+
import setImmediate = globalThis.setImmediate;
|
|
281
|
+
import setInterval = globalThis.setInterval;
|
|
282
|
+
import setTimeout = globalThis.setTimeout;
|
|
283
|
+
export { clearImmediate, clearInterval, clearTimeout, promises, setImmediate, setInterval, setTimeout };
|
|
237
284
|
}
|
|
238
285
|
declare module "node:timers" {
|
|
239
286
|
export * from "timers";
|
|
@@ -118,6 +118,12 @@ declare module "util" {
|
|
|
118
118
|
* function for this call site.
|
|
119
119
|
*/
|
|
120
120
|
scriptName: string;
|
|
121
|
+
/**
|
|
122
|
+
* Returns the unique id of the script, as in Chrome DevTools protocol
|
|
123
|
+
* [`Runtime.ScriptId`](https://chromedevtools.github.io/devtools-protocol/1-3/Runtime/#type-ScriptId).
|
|
124
|
+
* @since v22.14.0
|
|
125
|
+
*/
|
|
126
|
+
scriptId: string;
|
|
121
127
|
/**
|
|
122
128
|
* Returns the number, 1-based, of the line for the associate function call.
|
|
123
129
|
*/
|
|
@@ -125,7 +131,7 @@ declare module "util" {
|
|
|
125
131
|
/**
|
|
126
132
|
* Returns the 1-based column offset on the line for the associated function call.
|
|
127
133
|
*/
|
|
128
|
-
|
|
134
|
+
columnNumber: number;
|
|
129
135
|
}
|
|
130
136
|
/**
|
|
131
137
|
* The `util.format()` method returns a formatted string using the first argument
|
|
@@ -1555,11 +1561,17 @@ declare module "util" {
|
|
|
1555
1561
|
* @return The parsed command line arguments:
|
|
1556
1562
|
*/
|
|
1557
1563
|
export function parseArgs<T extends ParseArgsConfig>(config?: T): ParsedResults<T>;
|
|
1558
|
-
|
|
1564
|
+
|
|
1565
|
+
/**
|
|
1566
|
+
* Type of argument used in {@link parseArgs}.
|
|
1567
|
+
*/
|
|
1568
|
+
export type ParseArgsOptionsType = "boolean" | "string";
|
|
1569
|
+
|
|
1570
|
+
export interface ParseArgsOptionDescriptor {
|
|
1559
1571
|
/**
|
|
1560
1572
|
* Type of argument.
|
|
1561
1573
|
*/
|
|
1562
|
-
type:
|
|
1574
|
+
type: ParseArgsOptionsType;
|
|
1563
1575
|
/**
|
|
1564
1576
|
* Whether this option can be provided multiple times.
|
|
1565
1577
|
* If `true`, all values will be collected in an array.
|
|
@@ -1572,15 +1584,16 @@ declare module "util" {
|
|
|
1572
1584
|
*/
|
|
1573
1585
|
short?: string | undefined;
|
|
1574
1586
|
/**
|
|
1575
|
-
* The default
|
|
1576
|
-
*
|
|
1577
|
-
*
|
|
1587
|
+
* The default value to
|
|
1588
|
+
* be used if (and only if) the option does not appear in the arguments to be
|
|
1589
|
+
* parsed. It must be of the same type as the `type` property. When `multiple`
|
|
1590
|
+
* is `true`, it must be an array.
|
|
1578
1591
|
* @since v18.11.0
|
|
1579
1592
|
*/
|
|
1580
1593
|
default?: string | boolean | string[] | boolean[] | undefined;
|
|
1581
1594
|
}
|
|
1582
|
-
interface ParseArgsOptionsConfig {
|
|
1583
|
-
[longOption: string]:
|
|
1595
|
+
export interface ParseArgsOptionsConfig {
|
|
1596
|
+
[longOption: string]: ParseArgsOptionDescriptor;
|
|
1584
1597
|
}
|
|
1585
1598
|
export interface ParseArgsConfig {
|
|
1586
1599
|
/**
|
|
@@ -1632,7 +1645,7 @@ declare module "util" {
|
|
|
1632
1645
|
: T extends true ? IfTrue
|
|
1633
1646
|
: IfFalse;
|
|
1634
1647
|
|
|
1635
|
-
type ExtractOptionValue<T extends ParseArgsConfig, O extends
|
|
1648
|
+
type ExtractOptionValue<T extends ParseArgsConfig, O extends ParseArgsOptionDescriptor> = IfDefaultsTrue<
|
|
1636
1649
|
T["strict"],
|
|
1637
1650
|
O["type"] extends "string" ? string : O["type"] extends "boolean" ? boolean : string | boolean,
|
|
1638
1651
|
string | boolean
|
|
@@ -1665,7 +1678,7 @@ declare module "util" {
|
|
|
1665
1678
|
|
|
1666
1679
|
type PreciseTokenForOptions<
|
|
1667
1680
|
K extends string,
|
|
1668
|
-
O extends
|
|
1681
|
+
O extends ParseArgsOptionDescriptor,
|
|
1669
1682
|
> = O["type"] extends "string" ? {
|
|
1670
1683
|
kind: "option";
|
|
1671
1684
|
index: number;
|
|
@@ -60,6 +60,7 @@ declare module "worker_threads" {
|
|
|
60
60
|
import { Readable, Writable } from "node:stream";
|
|
61
61
|
import { URL } from "node:url";
|
|
62
62
|
import { X509Certificate } from "node:crypto";
|
|
63
|
+
const isInternalThread: boolean;
|
|
63
64
|
const isMainThread: boolean;
|
|
64
65
|
const parentPort: null | MessagePort;
|
|
65
66
|
const resourceLimits: ResourceLimits;
|
|
@@ -244,6 +244,7 @@ declare namespace Dispatcher {
|
|
|
244
244
|
readonly bodyUsed: boolean;
|
|
245
245
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
246
246
|
blob(): Promise<Blob>;
|
|
247
|
+
bytes(): Promise<Uint8Array>;
|
|
247
248
|
formData(): Promise<never>;
|
|
248
249
|
json(): Promise<unknown>;
|
|
249
250
|
text(): Promise<string>;
|
|
@@ -25,6 +25,11 @@ declare class BodyReadable extends Readable {
|
|
|
25
25
|
*/
|
|
26
26
|
blob(): Promise<Blob>
|
|
27
27
|
|
|
28
|
+
/** Consumes and returns the body as an Uint8Array
|
|
29
|
+
* https://fetch.spec.whatwg.org/#dom-body-bytes
|
|
30
|
+
*/
|
|
31
|
+
bytes(): Promise<Uint8Array>
|
|
32
|
+
|
|
28
33
|
/** Consumes and returns the body as an ArrayBuffer
|
|
29
34
|
* https://fetch.spec.whatwg.org/#dom-body-arraybuffer
|
|
30
35
|
*/
|
|
@@ -67,6 +67,12 @@ interface WebidlUtil {
|
|
|
67
67
|
* Stringifies {@param V}
|
|
68
68
|
*/
|
|
69
69
|
Stringify (V: any): string
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Mark a value as uncloneable for Node.js.
|
|
73
|
+
* This is only effective in some newer Node.js versions.
|
|
74
|
+
*/
|
|
75
|
+
markAsUncloneable (V: any): void
|
|
70
76
|
}
|
|
71
77
|
|
|
72
78
|
interface WebidlConverters {
|
package/package.json
CHANGED
|
@@ -91,19 +91,19 @@
|
|
|
91
91
|
"organization": false
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
|
-
"@aws-sdk/client-cloudformation": "^3.
|
|
95
|
-
"@aws-sdk/client-dynamodb": "^3.
|
|
96
|
-
"@aws-sdk/client-ecr": "^3.
|
|
97
|
-
"@aws-sdk/client-ecs": "^3.
|
|
98
|
-
"@aws-sdk/client-eventbridge": "^3.
|
|
99
|
-
"@aws-sdk/client-iam": "^3.
|
|
100
|
-
"@aws-sdk/client-s3": "^3.
|
|
101
|
-
"@aws-sdk/client-secrets-manager": "^3.
|
|
102
|
-
"@aws-sdk/client-sfn": "^3.
|
|
103
|
-
"@aws-sdk/client-textract": "^3.
|
|
104
|
-
"@aws-sdk/lib-dynamodb": "^3.
|
|
94
|
+
"@aws-sdk/client-cloudformation": "^3.787.0",
|
|
95
|
+
"@aws-sdk/client-dynamodb": "^3.788.0",
|
|
96
|
+
"@aws-sdk/client-ecr": "^3.787.0",
|
|
97
|
+
"@aws-sdk/client-ecs": "^3.787.0",
|
|
98
|
+
"@aws-sdk/client-eventbridge": "^3.787.0",
|
|
99
|
+
"@aws-sdk/client-iam": "^3.787.0",
|
|
100
|
+
"@aws-sdk/client-s3": "^3.787.0",
|
|
101
|
+
"@aws-sdk/client-secrets-manager": "^3.787.0",
|
|
102
|
+
"@aws-sdk/client-sfn": "^3.787.0",
|
|
103
|
+
"@aws-sdk/client-textract": "^3.787.0",
|
|
104
|
+
"@aws-sdk/lib-dynamodb": "^3.789.0",
|
|
105
105
|
"@stylistic/eslint-plugin": "^2",
|
|
106
|
-
"@types/aws-lambda": "^8.10.
|
|
106
|
+
"@types/aws-lambda": "^8.10.149",
|
|
107
107
|
"@types/jest": "^29",
|
|
108
108
|
"@types/mjml": "^4.7.4",
|
|
109
109
|
"@types/node": "^18",
|
|
@@ -116,22 +116,22 @@
|
|
|
116
116
|
"aws-sdk-client-mock-jest": "^2.2.0",
|
|
117
117
|
"commit-and-tag-version": "^12",
|
|
118
118
|
"constructs": "10.0.5",
|
|
119
|
-
"esbuild": "^0.25.
|
|
119
|
+
"esbuild": "^0.25.2",
|
|
120
120
|
"eslint": "^9",
|
|
121
121
|
"eslint-import-resolver-typescript": "^3.10.0",
|
|
122
122
|
"eslint-plugin-import": "^2.31.0",
|
|
123
123
|
"jest": "^29",
|
|
124
124
|
"jest-junit": "^16",
|
|
125
125
|
"jsii": "5.x",
|
|
126
|
-
"jsii-diff": "^1.
|
|
126
|
+
"jsii-diff": "^1.111.0",
|
|
127
127
|
"jsii-docgen": "^10.5.0",
|
|
128
|
-
"jsii-pacmak": "^1.
|
|
128
|
+
"jsii-pacmak": "^1.111.0",
|
|
129
129
|
"jsii-rosetta": "5.x",
|
|
130
130
|
"nock": "^13.5.6",
|
|
131
|
-
"projen": "^0.91.
|
|
131
|
+
"projen": "^0.91.20",
|
|
132
132
|
"ts-jest": "^29",
|
|
133
133
|
"ts-node": "^10.9.2",
|
|
134
|
-
"typescript": "^5.8.
|
|
134
|
+
"typescript": "^5.8.3"
|
|
135
135
|
},
|
|
136
136
|
"peerDependencies": {
|
|
137
137
|
"aws-cdk-lib": "^2.133.0",
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"publishConfig": {
|
|
156
156
|
"access": "public"
|
|
157
157
|
},
|
|
158
|
-
"version": "0.9.
|
|
158
|
+
"version": "0.9.33",
|
|
159
159
|
"jest": {
|
|
160
160
|
"coverageProvider": "v8",
|
|
161
161
|
"testMatch": [
|