cloudstructs 0.9.37 → 0.9.38
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 +26 -26
- package/assets/slack-textract/detect.lambda/index.js +140 -122
- package/assets/ssl-server-test/analyze.lambda/index.js +26 -26
- 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 +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/@babel/runtime/helpers/esm/regeneratorDefine.js +7 -9
- package/node_modules/@babel/runtime/helpers/regeneratorDefine.js +7 -9
- package/node_modules/@babel/runtime/package.json +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 +3 -0
- package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +25 -121
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +17 -1
- package/node_modules/@slack/logger/node_modules/@types/node/dns/promises.d.ts +11 -10
- package/node_modules/@slack/logger/node_modules/@types/node/dns.d.ts +18 -19
- package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +26 -29
- package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +26 -32
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +4 -19
- package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +13 -11
- package/node_modules/@slack/logger/node_modules/@types/node/inspector.d.ts +219 -6
- package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +24 -0
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +4 -89
- package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +14 -0
- package/node_modules/@slack/logger/node_modules/@types/node/repl.d.ts +11 -1
- package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +0 -1
- package/node_modules/@slack/logger/node_modules/@types/node/stream/web.d.ts +4 -0
- package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +17 -6
- package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +120 -1
- package/node_modules/@slack/logger/node_modules/@types/node/timers.d.ts +0 -2
- package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +12 -1
- package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +6 -2
- package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +12 -0
- package/node_modules/@slack/logger/node_modules/@types/node/zlib.d.ts +8 -2
- package/node_modules/@slack/logger/node_modules/undici-types/agent.d.ts +4 -0
- package/node_modules/@slack/logger/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/@slack/logger/node_modules/undici-types/client.d.ts +6 -3
- package/node_modules/@slack/logger/node_modules/undici-types/mock-agent.d.ts +3 -0
- package/node_modules/@slack/logger/node_modules/undici-types/package.json +1 -1
- package/node_modules/@slack/logger/node_modules/undici-types/pool.d.ts +2 -0
- package/node_modules/@slack/logger/node_modules/undici-types/proxy-agent.d.ts +1 -0
- package/node_modules/@slack/types/dist/block-kit/blocks.d.ts +5 -1
- package/node_modules/@slack/types/dist/block-kit/blocks.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/events/index.d.ts +3 -3
- package/node_modules/@slack/types/dist/events/index.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/events/index.js +1 -1
- package/node_modules/@slack/types/dist/events/index.js.map +1 -1
- package/node_modules/@slack/types/dist/events/message.d.ts +1 -0
- package/node_modules/@slack/types/dist/events/message.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/events/team.d.ts +2 -2
- package/node_modules/@slack/types/dist/events/team.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/index.d.ts +5 -5
- package/node_modules/@slack/types/dist/index.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/index.js +5 -5
- package/node_modules/@slack/types/dist/index.js.map +1 -1
- package/node_modules/@slack/types/package.json +16 -8
- 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 +3 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +25 -121
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +17 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/dns/promises.d.ts +11 -10
- package/node_modules/@slack/web-api/node_modules/@types/node/dns.d.ts +18 -19
- package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +26 -29
- package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +26 -32
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +4 -19
- package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +13 -11
- package/node_modules/@slack/web-api/node_modules/@types/node/inspector.d.ts +219 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +24 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +4 -89
- package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +14 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/repl.d.ts +11 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +0 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/stream/web.d.ts +4 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +17 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +120 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/timers.d.ts +0 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +12 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +6 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +12 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +8 -2
- package/node_modules/@slack/web-api/node_modules/undici-types/agent.d.ts +4 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/client.d.ts +6 -3
- package/node_modules/@slack/web-api/node_modules/undici-types/mock-agent.d.ts +3 -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/pool.d.ts +2 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/proxy-agent.d.ts +1 -0
- 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 +3 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +25 -121
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +17 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +11 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +18 -19
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +26 -29
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +26 -32
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +4 -19
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +13 -11
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +219 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +24 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +4 -89
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +14 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +11 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +0 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +4 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +17 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +120 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +0 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +12 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +6 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +12 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +8 -2
- package/node_modules/@types/cacheable-request/node_modules/undici-types/agent.d.ts +4 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/client.d.ts +6 -3
- package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-agent.d.ts +3 -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/pool.d.ts +2 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/proxy-agent.d.ts +1 -0
- 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 +3 -0
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +25 -121
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +17 -1
- package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +11 -10
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +18 -19
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +26 -29
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +26 -32
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +4 -19
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +13 -11
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +219 -6
- package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +24 -0
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +4 -89
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +14 -0
- package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +11 -1
- package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +0 -1
- package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +4 -0
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +17 -6
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +120 -1
- package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +0 -2
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +12 -1
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +6 -2
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +12 -0
- package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +8 -2
- package/node_modules/@types/keyv/node_modules/undici-types/agent.d.ts +4 -0
- package/node_modules/@types/keyv/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/@types/keyv/node_modules/undici-types/client.d.ts +6 -3
- package/node_modules/@types/keyv/node_modules/undici-types/mock-agent.d.ts +3 -0
- package/node_modules/@types/keyv/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/keyv/node_modules/undici-types/pool.d.ts +2 -0
- package/node_modules/@types/keyv/node_modules/undici-types/proxy-agent.d.ts +1 -0
- 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 +3 -0
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +25 -121
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +17 -1
- package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +11 -10
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +18 -19
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +26 -29
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +26 -32
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +4 -19
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +13 -11
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +219 -6
- package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +24 -0
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +4 -89
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +14 -0
- package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +11 -1
- package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +0 -1
- package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +4 -0
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +17 -6
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +120 -1
- package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +0 -2
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +12 -1
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +6 -2
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +12 -0
- package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +8 -2
- package/node_modules/@types/responselike/node_modules/undici-types/agent.d.ts +4 -0
- package/node_modules/@types/responselike/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/@types/responselike/node_modules/undici-types/client.d.ts +6 -3
- package/node_modules/@types/responselike/node_modules/undici-types/mock-agent.d.ts +3 -0
- package/node_modules/@types/responselike/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/responselike/node_modules/undici-types/pool.d.ts +2 -0
- package/node_modules/@types/responselike/node_modules/undici-types/proxy-agent.d.ts +1 -0
- package/node_modules/axios/CHANGELOG.md +17 -0
- package/node_modules/axios/README.md +1 -4
- package/node_modules/axios/dist/axios.js +39 -5
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +46 -9
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +46 -9
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +46 -9
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +13 -2
- package/node_modules/axios/lib/core/Axios.js +2 -2
- package/node_modules/axios/lib/core/mergeConfig.js +1 -1
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/throttle.js +1 -1
- package/node_modules/axios/lib/helpers/toURLEncodedForm.js +4 -3
- package/node_modules/axios/lib/utils.js +36 -0
- package/node_modules/axios/package.json +5 -5
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/form-data/CHANGELOG.md +601 -0
- package/node_modules/form-data/{README.md.bak → README.md} +4 -4
- package/node_modules/form-data/lib/form_data.js +2 -6
- package/node_modules/form-data/package.json +22 -6
- package/package.json +18 -18
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.1/compatibility/disposable.d.ts +0 -12
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.1/index.d.ts +0 -98
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.1/compatibility/disposable.d.ts +0 -12
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.1/index.d.ts +0 -98
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.1/compatibility/disposable.d.ts +0 -12
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.1/index.d.ts +0 -98
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.1/compatibility/disposable.d.ts +0 -12
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.1/index.d.ts +0 -98
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.1/compatibility/disposable.d.ts +0 -12
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.1/index.d.ts +0 -98
- package/node_modules/form-data/Readme.md +0 -355
|
@@ -322,6 +322,18 @@ declare module "fs" {
|
|
|
322
322
|
* @since v12.12.0
|
|
323
323
|
*/
|
|
324
324
|
readSync(): Dirent | null;
|
|
325
|
+
/**
|
|
326
|
+
* Calls `dir.close()` if the directory handle is open, and returns a promise that
|
|
327
|
+
* fulfills when disposal is complete.
|
|
328
|
+
* @since v24.1.0
|
|
329
|
+
*/
|
|
330
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
331
|
+
/**
|
|
332
|
+
* Calls `dir.closeSync()` if the directory handle is open, and returns
|
|
333
|
+
* `undefined`.
|
|
334
|
+
* @since v24.1.0
|
|
335
|
+
*/
|
|
336
|
+
[Symbol.dispose](): void;
|
|
325
337
|
}
|
|
326
338
|
/**
|
|
327
339
|
* Class: fs.StatWatcher
|
|
@@ -3321,6 +3333,12 @@ declare module "fs" {
|
|
|
3321
3333
|
persistent?: boolean | undefined;
|
|
3322
3334
|
recursive?: boolean | undefined;
|
|
3323
3335
|
}
|
|
3336
|
+
export interface WatchOptionsWithBufferEncoding extends WatchOptions {
|
|
3337
|
+
encoding: "buffer";
|
|
3338
|
+
}
|
|
3339
|
+
export interface WatchOptionsWithStringEncoding extends WatchOptions {
|
|
3340
|
+
encoding?: BufferEncoding | undefined;
|
|
3341
|
+
}
|
|
3324
3342
|
export type WatchEventType = "rename" | "change";
|
|
3325
3343
|
export type WatchListener<T> = (event: WatchEventType, filename: T | null) => void;
|
|
3326
3344
|
export type StatsListener = (curr: Stats, prev: Stats) => void;
|
|
@@ -3347,44 +3365,20 @@ declare module "fs" {
|
|
|
3347
3365
|
*/
|
|
3348
3366
|
export function watch(
|
|
3349
3367
|
filename: PathLike,
|
|
3350
|
-
options
|
|
3351
|
-
|
|
3352
|
-
encoding: "buffer";
|
|
3353
|
-
})
|
|
3354
|
-
| "buffer",
|
|
3355
|
-
listener?: WatchListener<Buffer>,
|
|
3368
|
+
options?: WatchOptionsWithStringEncoding | BufferEncoding | null,
|
|
3369
|
+
listener?: WatchListener<string>,
|
|
3356
3370
|
): FSWatcher;
|
|
3357
|
-
/**
|
|
3358
|
-
* Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
|
|
3359
|
-
* @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
|
|
3360
|
-
* @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options.
|
|
3361
|
-
* If `encoding` is not supplied, the default of `'utf8'` is used.
|
|
3362
|
-
* If `persistent` is not supplied, the default of `true` is used.
|
|
3363
|
-
* If `recursive` is not supplied, the default of `false` is used.
|
|
3364
|
-
*/
|
|
3365
3371
|
export function watch(
|
|
3366
3372
|
filename: PathLike,
|
|
3367
|
-
options
|
|
3368
|
-
listener
|
|
3373
|
+
options: WatchOptionsWithBufferEncoding | "buffer",
|
|
3374
|
+
listener: WatchListener<Buffer>,
|
|
3369
3375
|
): FSWatcher;
|
|
3370
|
-
/**
|
|
3371
|
-
* Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
|
|
3372
|
-
* @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
|
|
3373
|
-
* @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options.
|
|
3374
|
-
* If `encoding` is not supplied, the default of `'utf8'` is used.
|
|
3375
|
-
* If `persistent` is not supplied, the default of `true` is used.
|
|
3376
|
-
* If `recursive` is not supplied, the default of `false` is used.
|
|
3377
|
-
*/
|
|
3378
3376
|
export function watch(
|
|
3379
3377
|
filename: PathLike,
|
|
3380
|
-
options: WatchOptions |
|
|
3381
|
-
listener
|
|
3378
|
+
options: WatchOptions | BufferEncoding | "buffer" | null,
|
|
3379
|
+
listener: WatchListener<string | Buffer>,
|
|
3382
3380
|
): FSWatcher;
|
|
3383
|
-
|
|
3384
|
-
* Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
|
|
3385
|
-
* @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
|
|
3386
|
-
*/
|
|
3387
|
-
export function watch(filename: PathLike, listener?: WatchListener<string>): FSWatcher;
|
|
3381
|
+
export function watch(filename: PathLike, listener: WatchListener<string>): FSWatcher;
|
|
3388
3382
|
/**
|
|
3389
3383
|
* Test whether or not the given path exists by checking with the file system.
|
|
3390
3384
|
* Then call the `callback` argument with either true or false:
|
|
@@ -4354,7 +4348,7 @@ declare module "fs" {
|
|
|
4354
4348
|
* Current working directory.
|
|
4355
4349
|
* @default process.cwd()
|
|
4356
4350
|
*/
|
|
4357
|
-
cwd?: string | undefined;
|
|
4351
|
+
cwd?: string | URL | undefined;
|
|
4358
4352
|
/**
|
|
4359
4353
|
* `true` if the glob should return paths as `Dirent`s, `false` otherwise.
|
|
4360
4354
|
* @default false
|
|
@@ -44,7 +44,7 @@ declare module "http" {
|
|
|
44
44
|
import { URL } from "node:url";
|
|
45
45
|
import { LookupOptions } from "node:dns";
|
|
46
46
|
import { EventEmitter } from "node:events";
|
|
47
|
-
import { LookupFunction,
|
|
47
|
+
import { LookupFunction, Server as NetServer, Socket, TcpSocketConnectOpts } from "node:net";
|
|
48
48
|
// incoming headers will never contain number
|
|
49
49
|
interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
|
|
50
50
|
accept?: string | undefined;
|
|
@@ -911,7 +911,7 @@ declare module "http" {
|
|
|
911
911
|
* the request body should be sent.
|
|
912
912
|
* @since v10.0.0
|
|
913
913
|
*/
|
|
914
|
-
writeProcessing(): void;
|
|
914
|
+
writeProcessing(callback?: () => void): void;
|
|
915
915
|
}
|
|
916
916
|
interface InformationEvent {
|
|
917
917
|
statusCode: number;
|
|
@@ -1451,21 +1451,6 @@ declare module "http" {
|
|
|
1451
1451
|
*/
|
|
1452
1452
|
scheduling?: "fifo" | "lifo" | undefined;
|
|
1453
1453
|
}
|
|
1454
|
-
interface AgentGetNameOptions {
|
|
1455
|
-
/**
|
|
1456
|
-
* A domain name or IP address of the server to issue the request to
|
|
1457
|
-
*/
|
|
1458
|
-
host?: string | undefined;
|
|
1459
|
-
/**
|
|
1460
|
-
* Port of remote server
|
|
1461
|
-
*/
|
|
1462
|
-
port?: number | undefined;
|
|
1463
|
-
/**
|
|
1464
|
-
* Local interface to bind for network connections when issuing the request
|
|
1465
|
-
*/
|
|
1466
|
-
localAddress?: string | undefined;
|
|
1467
|
-
family?: 4 | 6 | undefined;
|
|
1468
|
-
}
|
|
1469
1454
|
/**
|
|
1470
1455
|
* An `Agent` is responsible for managing connection persistence
|
|
1471
1456
|
* and reuse for HTTP clients. It maintains a queue of pending requests
|
|
@@ -1604,7 +1589,7 @@ declare module "http" {
|
|
|
1604
1589
|
* @param callback Callback function that receives the created socket
|
|
1605
1590
|
*/
|
|
1606
1591
|
createConnection(
|
|
1607
|
-
options:
|
|
1592
|
+
options: ClientRequestArgs,
|
|
1608
1593
|
callback?: (err: Error | null, stream: stream.Duplex) => void,
|
|
1609
1594
|
): stream.Duplex;
|
|
1610
1595
|
/**
|
|
@@ -1646,7 +1631,7 @@ declare module "http" {
|
|
|
1646
1631
|
* @since v0.11.4
|
|
1647
1632
|
* @param options A set of options providing information for name generation
|
|
1648
1633
|
*/
|
|
1649
|
-
getName(options?:
|
|
1634
|
+
getName(options?: ClientRequestArgs): string;
|
|
1650
1635
|
}
|
|
1651
1636
|
const METHODS: string[];
|
|
1652
1637
|
const STATUS_CODES: {
|
|
@@ -32,18 +32,14 @@ declare module "http2" {
|
|
|
32
32
|
":scheme"?: string | undefined;
|
|
33
33
|
}
|
|
34
34
|
// Http2Stream
|
|
35
|
-
export interface StreamPriorityOptions {
|
|
36
|
-
exclusive?: boolean | undefined;
|
|
37
|
-
parent?: number | undefined;
|
|
38
|
-
weight?: number | undefined;
|
|
39
|
-
silent?: boolean | undefined;
|
|
40
|
-
}
|
|
41
35
|
export interface StreamState {
|
|
42
36
|
localWindowSize?: number | undefined;
|
|
43
37
|
state?: number | undefined;
|
|
44
38
|
localClose?: number | undefined;
|
|
45
39
|
remoteClose?: number | undefined;
|
|
40
|
+
/** @deprecated */
|
|
46
41
|
sumDependencyWeight?: number | undefined;
|
|
42
|
+
/** @deprecated */
|
|
47
43
|
weight?: number | undefined;
|
|
48
44
|
}
|
|
49
45
|
export interface ServerStreamResponseOptions {
|
|
@@ -151,10 +147,9 @@ declare module "http2" {
|
|
|
151
147
|
*/
|
|
152
148
|
close(code?: number, callback?: () => void): void;
|
|
153
149
|
/**
|
|
154
|
-
*
|
|
155
|
-
* @since v8.4.0
|
|
150
|
+
* @deprecated Priority signaling is no longer supported in Node.js.
|
|
156
151
|
*/
|
|
157
|
-
priority(options:
|
|
152
|
+
priority(options: unknown): void;
|
|
158
153
|
/**
|
|
159
154
|
* ```js
|
|
160
155
|
* import http2 from 'node:http2';
|
|
@@ -395,7 +390,7 @@ declare module "http2" {
|
|
|
395
390
|
): void;
|
|
396
391
|
pushStream(
|
|
397
392
|
headers: OutgoingHttpHeaders,
|
|
398
|
-
options?:
|
|
393
|
+
options?: Pick<ClientSessionRequestOptions, "exclusive" | "parent">,
|
|
399
394
|
callback?: (err: Error | null, pushStream: ServerHttp2Stream, headers: OutgoingHttpHeaders) => void,
|
|
400
395
|
): void;
|
|
401
396
|
/**
|
|
@@ -629,7 +624,6 @@ declare module "http2" {
|
|
|
629
624
|
endStream?: boolean | undefined;
|
|
630
625
|
exclusive?: boolean | undefined;
|
|
631
626
|
parent?: number | undefined;
|
|
632
|
-
weight?: number | undefined;
|
|
633
627
|
waitForTrailers?: boolean | undefined;
|
|
634
628
|
signal?: AbortSignal | undefined;
|
|
635
629
|
}
|
|
@@ -1294,6 +1288,14 @@ declare module "http2" {
|
|
|
1294
1288
|
* @default 100000
|
|
1295
1289
|
*/
|
|
1296
1290
|
unknownProtocolTimeout?: number | undefined;
|
|
1291
|
+
/**
|
|
1292
|
+
* If `true`, it turns on strict leading
|
|
1293
|
+
* and trailing whitespace validation for HTTP/2 header field names and values
|
|
1294
|
+
* as per [RFC-9113](https://www.rfc-editor.org/rfc/rfc9113.html#section-8.2.1).
|
|
1295
|
+
* @since v24.2.0
|
|
1296
|
+
* @default true
|
|
1297
|
+
*/
|
|
1298
|
+
strictFieldWhitespaceValidation?: boolean | undefined;
|
|
1297
1299
|
}
|
|
1298
1300
|
export interface ClientSessionOptions extends SessionOptions {
|
|
1299
1301
|
/**
|