cloudstructs 0.6.37 → 0.6.39
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/assets/slack-app/provider.lambda/index.js +12 -12
- package/assets/slack-textract/detect.lambda/index.js +24 -24
- package/assets/ssl-server-test/analyze.lambda/index.js +12 -12
- 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/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 +1 -1
- 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 +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +5 -0
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +9 -1
- package/node_modules/@slack/logger/node_modules/@types/node/dgram.d.ts +5 -0
- package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +64 -0
- package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +13 -1
- package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +22 -0
- package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +1 -2
- package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +17 -4
- package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +6 -1
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -7
- package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +9 -0
- package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +554 -144
- package/node_modules/@slack/logger/node_modules/@types/node/timers.d.ts +12 -2
- package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +11 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/child_process.d.ts +5 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/crypto.d.ts +9 -1
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/dgram.d.ts +5 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/events.d.ts +64 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/fs/promises.d.ts +15 -2
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/globals.d.ts +22 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/http2.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/module.d.ts +17 -4
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/net.d.ts +6 -1
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/stream.d.ts +766 -728
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/test.d.ts +553 -143
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/timers.d.ts +12 -2
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/tls.d.ts +11 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/url.d.ts +14 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/util.d.ts +75 -11
- package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +14 -0
- package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +75 -11
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +5 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +9 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/dgram.d.ts +5 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +64 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +13 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +22 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +1 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +17 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +6 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -7
- package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +9 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +554 -144
- package/node_modules/@slack/web-api/node_modules/@types/node/timers.d.ts +12 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +11 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/child_process.d.ts +5 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/crypto.d.ts +9 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/dgram.d.ts +5 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/events.d.ts +64 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/fs/promises.d.ts +15 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/globals.d.ts +22 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/http2.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/module.d.ts +17 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/net.d.ts +6 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/stream.d.ts +766 -728
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/test.d.ts +553 -143
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/timers.d.ts +12 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/tls.d.ts +11 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/url.d.ts +14 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/util.d.ts +75 -11
- package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +14 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +75 -11
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +5 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +9 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +5 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +64 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +13 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +22 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +1 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +17 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +6 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +9 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +554 -144
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +12 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +11 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/child_process.d.ts +5 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/crypto.d.ts +9 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dgram.d.ts +5 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/events.d.ts +64 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/fs/promises.d.ts +15 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/globals.d.ts +22 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/http2.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/module.d.ts +17 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/net.d.ts +6 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream.d.ts +766 -728
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/test.d.ts +553 -143
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/timers.d.ts +12 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/tls.d.ts +11 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/url.d.ts +14 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/util.d.ts +75 -11
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +14 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +75 -11
- package/node_modules/@types/is-stream/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/buffer.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/child_process.d.ts +5 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/crypto.d.ts +9 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/dgram.d.ts +5 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/events.d.ts +64 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/fs/promises.d.ts +13 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/globals.d.ts +22 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/http2.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/index.d.ts +1 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/module.d.ts +17 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/net.d.ts +6 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/package.json +2 -7
- package/node_modules/@types/is-stream/node_modules/@types/node/perf_hooks.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/stream.d.ts +9 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/test.d.ts +554 -144
- package/node_modules/@types/is-stream/node_modules/@types/node/timers.d.ts +12 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/tls.d.ts +11 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/child_process.d.ts +5 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/crypto.d.ts +9 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/dgram.d.ts +5 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/events.d.ts +64 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/fs/promises.d.ts +15 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/globals.d.ts +22 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/http2.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/module.d.ts +17 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/net.d.ts +6 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/stream.d.ts +766 -728
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/test.d.ts +553 -143
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/timers.d.ts +12 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/tls.d.ts +11 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/url.d.ts +14 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/util.d.ts +75 -11
- package/node_modules/@types/is-stream/node_modules/@types/node/url.d.ts +14 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/util.d.ts +75 -11
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +5 -0
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +9 -1
- package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +5 -0
- package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +64 -0
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +13 -1
- package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +22 -0
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +1 -2
- package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +17 -4
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +6 -1
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -7
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +9 -0
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +554 -144
- package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +12 -2
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +11 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/child_process.d.ts +5 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/crypto.d.ts +9 -1
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dgram.d.ts +5 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/events.d.ts +64 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/fs/promises.d.ts +15 -2
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/globals.d.ts +22 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/http2.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/module.d.ts +17 -4
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/net.d.ts +6 -1
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream.d.ts +766 -728
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/test.d.ts +553 -143
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/timers.d.ts +12 -2
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/tls.d.ts +11 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/url.d.ts +14 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/util.d.ts +75 -11
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +14 -0
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +75 -11
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +5 -0
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +9 -1
- package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +5 -0
- package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +64 -0
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +13 -1
- package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +22 -0
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +1 -2
- package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +17 -4
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +6 -1
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -7
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +9 -0
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +554 -144
- package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +12 -2
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +11 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/child_process.d.ts +5 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/crypto.d.ts +9 -1
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dgram.d.ts +5 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/events.d.ts +64 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/fs/promises.d.ts +15 -2
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/globals.d.ts +22 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/http2.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/module.d.ts +17 -4
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/net.d.ts +6 -1
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream.d.ts +766 -728
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/test.d.ts +553 -143
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/timers.d.ts +12 -2
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/tls.d.ts +11 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/url.d.ts +14 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/util.d.ts +75 -11
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +14 -0
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +75 -11
- package/node_modules/keyv/README.md +2 -0
- package/node_modules/keyv/package.json +12 -13
- package/node_modules/keyv/src/index.d.ts +6 -10
- package/node_modules/keyv/src/index.js +1 -1
- package/package.json +23 -22
|
@@ -68,6 +68,11 @@ declare module 'timers' {
|
|
|
68
68
|
*/
|
|
69
69
|
hasRef(): boolean;
|
|
70
70
|
_onImmediate: Function; // to distinguish it from the Timeout class
|
|
71
|
+
/**
|
|
72
|
+
* Cancels the immediate. This is similar to calling `clearImmediate()`.
|
|
73
|
+
* @since v20.5.0
|
|
74
|
+
*/
|
|
75
|
+
[Symbol.dispose](): void;
|
|
71
76
|
}
|
|
72
77
|
/**
|
|
73
78
|
* 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
|
|
@@ -114,6 +119,11 @@ declare module 'timers' {
|
|
|
114
119
|
*/
|
|
115
120
|
refresh(): this;
|
|
116
121
|
[Symbol.toPrimitive](): number;
|
|
122
|
+
/**
|
|
123
|
+
* Cancels the timeout.
|
|
124
|
+
* @since v20.5.0
|
|
125
|
+
*/
|
|
126
|
+
[Symbol.dispose](): void;
|
|
117
127
|
}
|
|
118
128
|
}
|
|
119
129
|
/**
|
|
@@ -163,10 +173,10 @@ declare module 'timers' {
|
|
|
163
173
|
* @param args Optional arguments to pass when the `callback` is called.
|
|
164
174
|
* @return for use with {@link clearInterval}
|
|
165
175
|
*/
|
|
166
|
-
function setInterval<TArgs extends any[]>(callback: (...args: TArgs) => void, ms?: number, ...args: TArgs): NodeJS.
|
|
176
|
+
function setInterval<TArgs extends any[]>(callback: (...args: TArgs) => void, ms?: number, ...args: TArgs): NodeJS.Timeout;
|
|
167
177
|
// util.promisify no rest args compability
|
|
168
178
|
// tslint:disable-next-line void-return
|
|
169
|
-
function setInterval(callback: (args: void) => void, ms?: number): NodeJS.
|
|
179
|
+
function setInterval(callback: (args: void) => void, ms?: number): NodeJS.Timeout;
|
|
170
180
|
namespace setInterval {
|
|
171
181
|
const __promisify__: typeof setIntervalPromise;
|
|
172
182
|
}
|
|
@@ -728,6 +728,17 @@ declare module 'tls' {
|
|
|
728
728
|
}
|
|
729
729
|
type SecureVersion = 'TLSv1.3' | 'TLSv1.2' | 'TLSv1.1' | 'TLSv1';
|
|
730
730
|
interface SecureContextOptions {
|
|
731
|
+
/**
|
|
732
|
+
* If set, this will be called when a client opens a connection using the ALPN extension.
|
|
733
|
+
* One argument will be passed to the callback: an object containing `servername` and `protocols` fields,
|
|
734
|
+
* respectively containing the server name from the SNI extension (if any) and an array of
|
|
735
|
+
* ALPN protocol name strings. The callback must return either one of the strings listed in `protocols`,
|
|
736
|
+
* which will be returned to the client as the selected ALPN protocol, or `undefined`,
|
|
737
|
+
* to reject the connection with a fatal alert. If a string is returned that does not match one of
|
|
738
|
+
* the client's ALPN protocols, an error will be thrown.
|
|
739
|
+
* This option cannot be used with the `ALPNProtocols` option, and setting both options will throw an error.
|
|
740
|
+
*/
|
|
741
|
+
ALPNCallback?: ((arg: { servername: string; protocols: string[] }) => string | undefined) | undefined;
|
|
731
742
|
/**
|
|
732
743
|
* Optionally override the trusted CA certificates. Default is to trust
|
|
733
744
|
* the well-known CAs curated by Mozilla. Mozilla's CAs are completely
|
package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/child_process.d.ts
CHANGED
|
@@ -302,6 +302,11 @@ declare module 'child_process' {
|
|
|
302
302
|
* @since v0.1.90
|
|
303
303
|
*/
|
|
304
304
|
kill(signal?: NodeJS.Signals | number): boolean;
|
|
305
|
+
/**
|
|
306
|
+
* Calls {@link ChildProcess.kill} with `'SIGTERM'`.
|
|
307
|
+
* @since v20.5.0
|
|
308
|
+
*/
|
|
309
|
+
[Symbol.dispose](): void;
|
|
305
310
|
/**
|
|
306
311
|
* When an IPC channel has been established between the parent and child (
|
|
307
312
|
* i.e. when using {@link fork}), the `subprocess.send()` method can
|
|
@@ -1516,10 +1516,15 @@ declare module 'crypto' {
|
|
|
1516
1516
|
class DiffieHellman {
|
|
1517
1517
|
private constructor();
|
|
1518
1518
|
/**
|
|
1519
|
-
* Generates private and public Diffie-Hellman key values
|
|
1519
|
+
* Generates private and public Diffie-Hellman key values unless they have been
|
|
1520
|
+
* generated or computed already, and returns
|
|
1520
1521
|
* the public key in the specified `encoding`. This key should be
|
|
1521
1522
|
* transferred to the other party.
|
|
1522
1523
|
* If `encoding` is provided a string is returned; otherwise a `Buffer` is returned.
|
|
1524
|
+
*
|
|
1525
|
+
* This function is a thin wrapper around [`DH_generate_key()`](https://www.openssl.org/docs/man3.0/man3/DH_generate_key.html). In particular,
|
|
1526
|
+
* once a private key has been generated or set, calling this function only updates
|
|
1527
|
+
* the public key but does not generate a new private key.
|
|
1523
1528
|
* @since v0.5.0
|
|
1524
1529
|
* @param encoding The `encoding` of the return value.
|
|
1525
1530
|
*/
|
|
@@ -1591,6 +1596,9 @@ declare module 'crypto' {
|
|
|
1591
1596
|
* Sets the Diffie-Hellman private key. If the `encoding` argument is provided,`privateKey` is expected
|
|
1592
1597
|
* to be a string. If no `encoding` is provided, `privateKey` is expected
|
|
1593
1598
|
* to be a `Buffer`, `TypedArray`, or `DataView`.
|
|
1599
|
+
*
|
|
1600
|
+
* This function does not automatically compute the associated public key. Either `diffieHellman.setPublicKey()` or `diffieHellman.generateKeys()` can be
|
|
1601
|
+
* used to manually provide the public key or to automatically derive it.
|
|
1594
1602
|
* @since v0.5.0
|
|
1595
1603
|
* @param encoding The `encoding` of the `privateKey` string.
|
|
1596
1604
|
*/
|
|
@@ -538,6 +538,11 @@ declare module 'dgram' {
|
|
|
538
538
|
prependOnceListener(event: 'error', listener: (err: Error) => void): this;
|
|
539
539
|
prependOnceListener(event: 'listening', listener: () => void): this;
|
|
540
540
|
prependOnceListener(event: 'message', listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
|
|
541
|
+
/**
|
|
542
|
+
* Calls `socket.close()` and returns a promise that fulfills when the socket has closed.
|
|
543
|
+
* @since v20.5.0
|
|
544
|
+
*/
|
|
545
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
541
546
|
}
|
|
542
547
|
}
|
|
543
548
|
declare module 'node:dgram' {
|
|
@@ -294,6 +294,35 @@ declare module 'events' {
|
|
|
294
294
|
* @since v15.2.0, v14.17.0
|
|
295
295
|
*/
|
|
296
296
|
static getEventListeners(emitter: _DOMEventTarget | NodeJS.EventEmitter, name: string | symbol): Function[];
|
|
297
|
+
/**
|
|
298
|
+
* Returns the currently set max amount of listeners.
|
|
299
|
+
*
|
|
300
|
+
* For `EventEmitter`s this behaves exactly the same as calling `.getMaxListeners` on
|
|
301
|
+
* the emitter.
|
|
302
|
+
*
|
|
303
|
+
* For `EventTarget`s this is the only way to get the max event listeners for the
|
|
304
|
+
* event target. If the number of event handlers on a single EventTarget exceeds
|
|
305
|
+
* the max set, the EventTarget will print a warning.
|
|
306
|
+
*
|
|
307
|
+
* ```js
|
|
308
|
+
* import { getMaxListeners, setMaxListeners, EventEmitter } from 'node:events';
|
|
309
|
+
*
|
|
310
|
+
* {
|
|
311
|
+
* const ee = new EventEmitter();
|
|
312
|
+
* console.log(getMaxListeners(ee)); // 10
|
|
313
|
+
* setMaxListeners(11, ee);
|
|
314
|
+
* console.log(getMaxListeners(ee)); // 11
|
|
315
|
+
* }
|
|
316
|
+
* {
|
|
317
|
+
* const et = new EventTarget();
|
|
318
|
+
* console.log(getMaxListeners(et)); // 10
|
|
319
|
+
* setMaxListeners(11, et);
|
|
320
|
+
* console.log(getMaxListeners(et)); // 11
|
|
321
|
+
* }
|
|
322
|
+
* ```
|
|
323
|
+
* @since v19.9.0
|
|
324
|
+
*/
|
|
325
|
+
static getMaxListeners(emitter: _DOMEventTarget | NodeJS.EventEmitter): number;
|
|
297
326
|
/**
|
|
298
327
|
* ```js
|
|
299
328
|
* import { setMaxListeners, EventEmitter } from 'node:events';
|
|
@@ -309,6 +338,41 @@ declare module 'events' {
|
|
|
309
338
|
* objects.
|
|
310
339
|
*/
|
|
311
340
|
static setMaxListeners(n?: number, ...eventTargets: Array<_DOMEventTarget | NodeJS.EventEmitter>): void;
|
|
341
|
+
/**
|
|
342
|
+
* Listens once to the `abort` event on the provided `signal`.
|
|
343
|
+
*
|
|
344
|
+
* Listening to the `abort` event on abort signals is unsafe and may
|
|
345
|
+
* lead to resource leaks since another third party with the signal can
|
|
346
|
+
* call `e.stopImmediatePropagation()`. Unfortunately Node.js cannot change
|
|
347
|
+
* this since it would violate the web standard. Additionally, the original
|
|
348
|
+
* API makes it easy to forget to remove listeners.
|
|
349
|
+
*
|
|
350
|
+
* This API allows safely using `AbortSignal`s in Node.js APIs by solving these
|
|
351
|
+
* two issues by listening to the event such that `stopImmediatePropagation` does
|
|
352
|
+
* not prevent the listener from running.
|
|
353
|
+
*
|
|
354
|
+
* Returns a disposable so that it may be unsubscribed from more easily.
|
|
355
|
+
*
|
|
356
|
+
* ```js
|
|
357
|
+
* import { addAbortListener } from 'node:events';
|
|
358
|
+
*
|
|
359
|
+
* function example(signal) {
|
|
360
|
+
* let disposable;
|
|
361
|
+
* try {
|
|
362
|
+
* signal.addEventListener('abort', (e) => e.stopImmediatePropagation());
|
|
363
|
+
* disposable = addAbortListener(signal, (e) => {
|
|
364
|
+
* // Do something when signal is aborted.
|
|
365
|
+
* });
|
|
366
|
+
* } finally {
|
|
367
|
+
* disposable?.[Symbol.dispose]();
|
|
368
|
+
* }
|
|
369
|
+
* }
|
|
370
|
+
* ```
|
|
371
|
+
* @since v20.5.0
|
|
372
|
+
* @experimental
|
|
373
|
+
* @return that removes the `abort` listener.
|
|
374
|
+
*/
|
|
375
|
+
static addAbortListener(signal: AbortSignal, resource: (event: Event) => void): Disposable;
|
|
312
376
|
/**
|
|
313
377
|
* This symbol shall be used to install a listener for only monitoring `'error'`events. Listeners installed using this symbol are called before the regular`'error'` listeners are called.
|
|
314
378
|
*
|
package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/fs/promises.d.ts
CHANGED
|
@@ -82,6 +82,13 @@ declare module 'fs/promises' {
|
|
|
82
82
|
emitClose?: boolean | undefined;
|
|
83
83
|
start?: number | undefined;
|
|
84
84
|
}
|
|
85
|
+
interface ReadableWebStreamOptions {
|
|
86
|
+
/**
|
|
87
|
+
* Whether to open a normal or a `'bytes'` stream.
|
|
88
|
+
* @since v20.0.0
|
|
89
|
+
*/
|
|
90
|
+
type?: 'bytes' | undefined;
|
|
91
|
+
}
|
|
85
92
|
// TODO: Add `EventEmitter` close
|
|
86
93
|
interface FileHandle {
|
|
87
94
|
/**
|
|
@@ -240,7 +247,7 @@ declare module 'fs/promises' {
|
|
|
240
247
|
* @since v17.0.0
|
|
241
248
|
* @experimental
|
|
242
249
|
*/
|
|
243
|
-
readableWebStream(): ReadableStream;
|
|
250
|
+
readableWebStream(options?: ReadableWebStreamOptions): ReadableStream;
|
|
244
251
|
/**
|
|
245
252
|
* Asynchronously reads the entire contents of a file.
|
|
246
253
|
*
|
|
@@ -449,6 +456,11 @@ declare module 'fs/promises' {
|
|
|
449
456
|
* @return Fulfills with `undefined` upon success.
|
|
450
457
|
*/
|
|
451
458
|
close(): Promise<void>;
|
|
459
|
+
/**
|
|
460
|
+
* An alias for {@link FileHandle.close()}.
|
|
461
|
+
* @since v20.4.0
|
|
462
|
+
*/
|
|
463
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
452
464
|
}
|
|
453
465
|
const constants: typeof fsConstants;
|
|
454
466
|
/**
|
|
@@ -720,7 +732,8 @@ declare module 'fs/promises' {
|
|
|
720
732
|
* autodetect `target` type and use `'file'` or `'dir'`. If the `target` does not
|
|
721
733
|
* exist, `'file'` will be used. Windows junction points require the destination
|
|
722
734
|
* path to be absolute. When using `'junction'`, the `target` argument will
|
|
723
|
-
* automatically be normalized to absolute path.
|
|
735
|
+
* automatically be normalized to absolute path. Junction points on NTFS volumes
|
|
736
|
+
* can only point to directories.
|
|
724
737
|
* @since v10.0.0
|
|
725
738
|
* @param [type='null']
|
|
726
739
|
* @return Fulfills with `undefined` upon success.
|
|
@@ -84,6 +84,28 @@ declare var AbortSignal: typeof globalThis extends {onmessage: any; AbortSignal:
|
|
|
84
84
|
};
|
|
85
85
|
//#endregion borrowed
|
|
86
86
|
|
|
87
|
+
//#region Disposable
|
|
88
|
+
interface SymbolConstructor {
|
|
89
|
+
/**
|
|
90
|
+
* A method that is used to release resources held by an object. Called by the semantics of the `using` statement.
|
|
91
|
+
*/
|
|
92
|
+
readonly dispose: unique symbol;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* A method that is used to asynchronously release resources held by an object. Called by the semantics of the `await using` statement.
|
|
96
|
+
*/
|
|
97
|
+
readonly asyncDispose: unique symbol;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
interface Disposable {
|
|
101
|
+
[Symbol.dispose](): void;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
interface AsyncDisposable {
|
|
105
|
+
[Symbol.asyncDispose](): PromiseLike<void>;
|
|
106
|
+
}
|
|
107
|
+
//#endregion Disposable
|
|
108
|
+
|
|
87
109
|
//#region ArrayLike.at()
|
|
88
110
|
interface RelativeIndexable<T> {
|
|
89
111
|
/**
|
|
@@ -128,7 +128,7 @@ declare module 'http2' {
|
|
|
128
128
|
* value will be `undefined` after the `Http2Stream` instance is destroyed.
|
|
129
129
|
* @since v8.4.0
|
|
130
130
|
*/
|
|
131
|
-
readonly session: Http2Session;
|
|
131
|
+
readonly session: Http2Session | undefined;
|
|
132
132
|
/**
|
|
133
133
|
* Provides miscellaneous information about the current state of the`Http2Stream`.
|
|
134
134
|
*
|
|
@@ -73,11 +73,24 @@ declare module 'module' {
|
|
|
73
73
|
readonly payload: SourceMapPayload;
|
|
74
74
|
constructor(payload: SourceMapPayload);
|
|
75
75
|
/**
|
|
76
|
-
* Given a line
|
|
77
|
-
* an object representing the
|
|
78
|
-
*
|
|
76
|
+
* Given a line offset and column offset in the generated source
|
|
77
|
+
* file, returns an object representing the SourceMap range in the
|
|
78
|
+
* original file if found, or an empty object if not.
|
|
79
|
+
*
|
|
80
|
+
* The object returned contains the following keys:
|
|
81
|
+
*
|
|
82
|
+
* The returned value represents the raw range as it appears in the
|
|
83
|
+
* SourceMap, based on zero-indexed offsets, _not_ 1-indexed line and
|
|
84
|
+
* column numbers as they appear in Error messages and CallSite
|
|
85
|
+
* objects.
|
|
86
|
+
*
|
|
87
|
+
* To get the corresponding 1-indexed line and column numbers from a
|
|
88
|
+
* lineNumber and columnNumber as they are reported by Error stacks
|
|
89
|
+
* and CallSite objects, use `sourceMap.findOrigin(lineNumber, columnNumber)`
|
|
90
|
+
* @param lineOffset The zero-indexed line number offset in the generated source
|
|
91
|
+
* @param columnOffset The zero-indexed column number offset in the generated source
|
|
79
92
|
*/
|
|
80
|
-
findEntry(
|
|
93
|
+
findEntry(lineOffset: number, columnOffset: number): SourceMapping;
|
|
81
94
|
}
|
|
82
95
|
}
|
|
83
96
|
interface Module extends NodeModule {}
|
|
@@ -16,7 +16,7 @@ declare module 'net' {
|
|
|
16
16
|
import * as stream from 'node:stream';
|
|
17
17
|
import { Abortable, EventEmitter } from 'node:events';
|
|
18
18
|
import * as dns from 'node:dns';
|
|
19
|
-
type LookupFunction = (hostname: string, options: dns.
|
|
19
|
+
type LookupFunction = (hostname: string, options: dns.LookupAllOptions, callback: (err: NodeJS.ErrnoException | null, addresses: dns.LookupAddress[]) => void) => void;
|
|
20
20
|
interface AddressInfo {
|
|
21
21
|
address: string;
|
|
22
22
|
family: string;
|
|
@@ -639,6 +639,11 @@ declare module 'net' {
|
|
|
639
639
|
prependOnceListener(event: 'error', listener: (err: Error) => void): this;
|
|
640
640
|
prependOnceListener(event: 'listening', listener: () => void): this;
|
|
641
641
|
prependOnceListener(event: 'drop', listener: (data?: DropArgument) => void): this;
|
|
642
|
+
/**
|
|
643
|
+
* Calls {@link Server.close()} and returns a promise that fulfills when the server has closed.
|
|
644
|
+
* @since v20.5.0
|
|
645
|
+
*/
|
|
646
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
642
647
|
}
|
|
643
648
|
type IPVersion = 'ipv4' | 'ipv6';
|
|
644
649
|
/**
|