cloudstructs 0.9.19 → 0.9.20
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-textract/detect.lambda/index.js +21 -10
- 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/superPropGet.js +4 -4
- package/node_modules/@babel/runtime/helpers/esm/superPropSet.js +2 -2
- package/node_modules/@babel/runtime/helpers/superPropGet.js +4 -4
- package/node_modules/@babel/runtime/helpers/superPropSet.js +2 -2
- package/node_modules/@babel/runtime/package.json +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/node_modules/@slack/logger/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/node_modules/@slack/logger/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
- package/node_modules/@slack/logger/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +10 -9
- package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +15 -4
- package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +17 -48
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +37 -0
- package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +8 -10
- package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +91 -0
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +4 -3
- package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +24 -0
- package/node_modules/@slack/logger/node_modules/@types/node/readline.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/stream/promises.d.ts +8 -1
- package/node_modules/@slack/logger/node_modules/@types/node/stream/web.d.ts +5 -2
- package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +17 -5
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/index.d.ts +8 -10
- package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +7 -4
- package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +15 -10
- package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +81 -27
- package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +1 -1
- package/node_modules/@slack/web-api/dist/WebClient.d.ts +36 -4
- package/node_modules/@slack/web-api/dist/WebClient.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/WebClient.js +23 -10
- package/node_modules/@slack/web-api/dist/WebClient.js.map +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +10 -9
- package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +15 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +17 -48
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +37 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +8 -10
- package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +91 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +4 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +24 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/readline.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/stream/promises.d.ts +8 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/stream/web.d.ts +5 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +17 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/index.d.ts +8 -10
- package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +7 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +15 -10
- package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +81 -27
- package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +1 -1
- package/node_modules/@slack/web-api/package.json +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +10 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +15 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +17 -48
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +37 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +8 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +91 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +4 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +24 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/promises.d.ts +8 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +5 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +17 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/index.d.ts +8 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +7 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +15 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +81 -27
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/node_modules/@types/keyv/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/node_modules/@types/keyv/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
- package/node_modules/@types/keyv/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +10 -9
- package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +15 -4
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +17 -48
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +37 -0
- package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +8 -10
- package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +91 -0
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +4 -3
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +24 -0
- package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/stream/promises.d.ts +8 -1
- package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +5 -2
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +17 -5
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/index.d.ts +8 -10
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +7 -4
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +15 -10
- package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +81 -27
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/node_modules/@types/responselike/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/node_modules/@types/responselike/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
- package/node_modules/@types/responselike/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +10 -9
- package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +15 -4
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +17 -48
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +37 -0
- package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +8 -10
- package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +91 -0
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +4 -3
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +24 -0
- package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/stream/promises.d.ts +8 -1
- package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +5 -2
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +17 -5
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/index.d.ts +8 -10
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +7 -4
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +15 -10
- package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +81 -27
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +1 -1
- package/node_modules/form-data/Readme.md +4 -4
- package/node_modules/form-data/lib/form_data.js +1 -1
- package/node_modules/form-data/package.json +9 -6
- package/node_modules/parse5/dist/cjs/common/doctype.d.ts +0 -1
- package/node_modules/parse5/dist/cjs/common/doctype.js +2 -4
- package/node_modules/parse5/dist/cjs/common/error-codes.d.ts +0 -1
- package/node_modules/parse5/dist/cjs/common/error-codes.js +1 -2
- package/node_modules/parse5/dist/cjs/common/foreign-content.d.ts +0 -1
- package/node_modules/parse5/dist/cjs/common/foreign-content.js +7 -9
- package/node_modules/parse5/dist/cjs/common/html.d.ts +32 -31
- package/node_modules/parse5/dist/cjs/common/html.js +41 -42
- package/node_modules/parse5/dist/cjs/common/token.d.ts +0 -1
- package/node_modules/parse5/dist/cjs/common/token.js +3 -4
- package/node_modules/parse5/dist/cjs/common/unicode.d.ts +1 -8
- package/node_modules/parse5/dist/cjs/common/unicode.js +7 -14
- package/node_modules/parse5/dist/cjs/index.d.ts +15 -4
- package/node_modules/parse5/dist/cjs/index.js +3 -6
- package/node_modules/parse5/dist/cjs/parser/formatting-element-list.d.ts +0 -1
- package/node_modules/parse5/dist/cjs/parser/formatting-element-list.js +1 -2
- package/node_modules/parse5/dist/cjs/parser/index.d.ts +72 -8
- package/node_modules/parse5/dist/cjs/parser/index.js +81 -9
- package/node_modules/parse5/dist/cjs/parser/open-element-stack.d.ts +2 -2
- package/node_modules/parse5/dist/cjs/parser/open-element-stack.js +95 -87
- package/node_modules/parse5/dist/cjs/serializer/index.d.ts +1 -2
- package/node_modules/parse5/dist/cjs/serializer/index.js +8 -9
- package/node_modules/parse5/dist/cjs/tokenizer/index.d.ts +130 -131
- package/node_modules/parse5/dist/cjs/tokenizer/index.js +87 -281
- package/node_modules/parse5/dist/cjs/tokenizer/preprocessor.d.ts +3 -4
- package/node_modules/parse5/dist/cjs/tokenizer/preprocessor.js +8 -7
- package/node_modules/parse5/dist/cjs/tree-adapters/default.d.ts +0 -1
- package/node_modules/parse5/dist/cjs/tree-adapters/default.js +9 -10
- package/node_modules/parse5/dist/cjs/tree-adapters/interface.d.ts +7 -2
- package/node_modules/parse5/dist/cjs/tree-adapters/interface.js +0 -1
- package/node_modules/parse5/dist/common/doctype.d.ts +0 -1
- package/node_modules/parse5/dist/common/doctype.js +0 -1
- package/node_modules/parse5/dist/common/error-codes.d.ts +0 -1
- package/node_modules/parse5/dist/common/error-codes.js +1 -2
- package/node_modules/parse5/dist/common/foreign-content.d.ts +0 -1
- package/node_modules/parse5/dist/common/foreign-content.js +0 -2
- package/node_modules/parse5/dist/common/html.d.ts +32 -31
- package/node_modules/parse5/dist/common/html.js +38 -38
- package/node_modules/parse5/dist/common/token.d.ts +0 -1
- package/node_modules/parse5/dist/common/token.js +1 -2
- package/node_modules/parse5/dist/common/unicode.d.ts +1 -8
- package/node_modules/parse5/dist/common/unicode.js +1 -8
- package/node_modules/parse5/dist/index.d.ts +15 -4
- package/node_modules/parse5/dist/index.js +0 -3
- package/node_modules/parse5/dist/parser/formatting-element-list.d.ts +0 -1
- package/node_modules/parse5/dist/parser/formatting-element-list.js +1 -2
- package/node_modules/parse5/dist/parser/index.d.ts +72 -8
- package/node_modules/parse5/dist/parser/index.js +82 -10
- package/node_modules/parse5/dist/parser/open-element-stack.d.ts +2 -2
- package/node_modules/parse5/dist/parser/open-element-stack.js +96 -88
- package/node_modules/parse5/dist/serializer/index.d.ts +1 -2
- package/node_modules/parse5/dist/serializer/index.js +6 -6
- package/node_modules/parse5/dist/tokenizer/index.d.ts +130 -131
- package/node_modules/parse5/dist/tokenizer/index.js +88 -282
- package/node_modules/parse5/dist/tokenizer/preprocessor.d.ts +3 -4
- package/node_modules/parse5/dist/tokenizer/preprocessor.js +8 -7
- package/node_modules/parse5/dist/tree-adapters/default.d.ts +0 -1
- package/node_modules/parse5/dist/tree-adapters/default.js +9 -10
- package/node_modules/parse5/dist/tree-adapters/interface.d.ts +7 -2
- package/node_modules/parse5/dist/tree-adapters/interface.js +0 -1
- package/node_modules/parse5/package.json +4 -4
- package/node_modules/parse5-htmlparser2-tree-adapter/dist/cjs/index.d.ts +1 -2
- package/node_modules/parse5-htmlparser2-tree-adapter/dist/cjs/index.js +11 -12
- package/node_modules/parse5-htmlparser2-tree-adapter/dist/index.d.ts +1 -2
- package/node_modules/parse5-htmlparser2-tree-adapter/dist/index.js +9 -10
- package/node_modules/parse5-htmlparser2-tree-adapter/package.json +7 -6
- package/package.json +16 -16
- package/node_modules/@slack/logger/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/@types/keyv/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/@types/responselike/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/form-data/README.md.bak +0 -358
|
@@ -141,6 +141,7 @@ declare module "http" {
|
|
|
141
141
|
"content-range"?: string | undefined;
|
|
142
142
|
"content-security-policy"?: string | undefined;
|
|
143
143
|
"content-security-policy-report-only"?: string | undefined;
|
|
144
|
+
"content-type"?: string | undefined;
|
|
144
145
|
cookie?: string | string[] | undefined;
|
|
145
146
|
dav?: string | string[] | undefined;
|
|
146
147
|
dnt?: string | undefined;
|
|
@@ -588,6 +589,42 @@ declare module "http" {
|
|
|
588
589
|
* @param value Header value
|
|
589
590
|
*/
|
|
590
591
|
setHeader(name: string, value: number | string | readonly string[]): this;
|
|
592
|
+
/**
|
|
593
|
+
* Sets multiple header values for implicit headers. headers must be an instance of
|
|
594
|
+
* `Headers` or `Map`, if a header already exists in the to-be-sent headers, its
|
|
595
|
+
* value will be replaced.
|
|
596
|
+
*
|
|
597
|
+
* ```js
|
|
598
|
+
* const headers = new Headers({ foo: 'bar' });
|
|
599
|
+
* outgoingMessage.setHeaders(headers);
|
|
600
|
+
* ```
|
|
601
|
+
*
|
|
602
|
+
* or
|
|
603
|
+
*
|
|
604
|
+
* ```js
|
|
605
|
+
* const headers = new Map([['foo', 'bar']]);
|
|
606
|
+
* outgoingMessage.setHeaders(headers);
|
|
607
|
+
* ```
|
|
608
|
+
*
|
|
609
|
+
* When headers have been set with `outgoingMessage.setHeaders()`, they will be
|
|
610
|
+
* merged with any headers passed to `response.writeHead()`, with the headers passed
|
|
611
|
+
* to `response.writeHead()` given precedence.
|
|
612
|
+
*
|
|
613
|
+
* ```js
|
|
614
|
+
* // Returns content-type = text/plain
|
|
615
|
+
* const server = http.createServer((req, res) => {
|
|
616
|
+
* const headers = new Headers({ 'Content-Type': 'text/html' });
|
|
617
|
+
* res.setHeaders(headers);
|
|
618
|
+
* res.writeHead(200, { 'Content-Type': 'text/plain' });
|
|
619
|
+
* res.end('ok');
|
|
620
|
+
* });
|
|
621
|
+
* ```
|
|
622
|
+
*
|
|
623
|
+
* @since v19.6.0, v18.15.0
|
|
624
|
+
* @param name Header name
|
|
625
|
+
* @param value Header value
|
|
626
|
+
*/
|
|
627
|
+
setHeaders(headers: Headers | Map<string, number | string | readonly string[]>): this;
|
|
591
628
|
/**
|
|
592
629
|
* Append a single header value to the header object.
|
|
593
630
|
*
|
|
@@ -22,22 +22,22 @@
|
|
|
22
22
|
* IN THE SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
// NOTE: These definitions support
|
|
25
|
+
// NOTE: These definitions support Node.js and TypeScript 5.7+.
|
|
26
26
|
|
|
27
|
-
// Reference required
|
|
27
|
+
// Reference required TypeScript libs:
|
|
28
28
|
/// <reference lib="es2020" />
|
|
29
|
-
/// <reference lib="esnext.asynciterable" />
|
|
30
|
-
/// <reference lib="esnext.intl" />
|
|
31
|
-
/// <reference lib="esnext.bigint" />
|
|
32
29
|
|
|
33
|
-
//
|
|
30
|
+
// TypeScript backwards-compatibility definitions:
|
|
31
|
+
/// <reference path="compatibility/index.d.ts" />
|
|
32
|
+
|
|
33
|
+
// Definitions specific to TypeScript 5.7+:
|
|
34
34
|
/// <reference path="globals.typedarray.d.ts" />
|
|
35
35
|
/// <reference path="buffer.buffer.d.ts" />
|
|
36
36
|
|
|
37
|
-
//
|
|
37
|
+
// Definitions for Node.js modules that are not specific to any version of TypeScript:
|
|
38
|
+
/// <reference path="globals.d.ts" />
|
|
38
39
|
/// <reference path="assert.d.ts" />
|
|
39
40
|
/// <reference path="assert/strict.d.ts" />
|
|
40
|
-
/// <reference path="globals.d.ts" />
|
|
41
41
|
/// <reference path="async_hooks.d.ts" />
|
|
42
42
|
/// <reference path="buffer.d.ts" />
|
|
43
43
|
/// <reference path="child_process.d.ts" />
|
|
@@ -90,5 +90,3 @@
|
|
|
90
90
|
/// <reference path="wasi.d.ts" />
|
|
91
91
|
/// <reference path="worker_threads.d.ts" />
|
|
92
92
|
/// <reference path="zlib.d.ts" />
|
|
93
|
-
|
|
94
|
-
/// <reference path="globals.global.d.ts" />
|
|
@@ -238,12 +238,66 @@ declare module "module" {
|
|
|
238
238
|
context: LoadHookContext,
|
|
239
239
|
nextLoad: (url: string, context?: LoadHookContext) => LoadFnOutput | Promise<LoadFnOutput>,
|
|
240
240
|
) => LoadFnOutput | Promise<LoadFnOutput>;
|
|
241
|
+
namespace constants {
|
|
242
|
+
/**
|
|
243
|
+
* The following constants are returned as the `status` field in the object returned by
|
|
244
|
+
* {@link enableCompileCache} to indicate the result of the attempt to enable the
|
|
245
|
+
* [module compile cache](https://nodejs.org/docs/latest-v22.x/api/module.html#module-compile-cache).
|
|
246
|
+
* @since v22.8.0
|
|
247
|
+
*/
|
|
248
|
+
namespace compileCacheStatus {
|
|
249
|
+
/**
|
|
250
|
+
* Node.js has enabled the compile cache successfully. The directory used to store the
|
|
251
|
+
* compile cache will be returned in the `directory` field in the
|
|
252
|
+
* returned object.
|
|
253
|
+
*/
|
|
254
|
+
const ENABLED: number;
|
|
255
|
+
/**
|
|
256
|
+
* The compile cache has already been enabled before, either by a previous call to
|
|
257
|
+
* {@link enableCompileCache}, or by the `NODE_COMPILE_CACHE=dir`
|
|
258
|
+
* environment variable. The directory used to store the
|
|
259
|
+
* compile cache will be returned in the `directory` field in the
|
|
260
|
+
* returned object.
|
|
261
|
+
*/
|
|
262
|
+
const ALREADY_ENABLED: number;
|
|
263
|
+
/**
|
|
264
|
+
* Node.js fails to enable the compile cache. This can be caused by the lack of
|
|
265
|
+
* permission to use the specified directory, or various kinds of file system errors.
|
|
266
|
+
* The detail of the failure will be returned in the `message` field in the
|
|
267
|
+
* returned object.
|
|
268
|
+
*/
|
|
269
|
+
const FAILED: number;
|
|
270
|
+
/**
|
|
271
|
+
* Node.js cannot enable the compile cache because the environment variable
|
|
272
|
+
* `NODE_DISABLE_COMPILE_CACHE=1` has been set.
|
|
273
|
+
*/
|
|
274
|
+
const DISABLED: number;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
241
277
|
}
|
|
242
278
|
interface RegisterOptions<Data> {
|
|
243
279
|
parentURL: string | URL;
|
|
244
280
|
data?: Data | undefined;
|
|
245
281
|
transferList?: any[] | undefined;
|
|
246
282
|
}
|
|
283
|
+
interface EnableCompileCacheResult {
|
|
284
|
+
/**
|
|
285
|
+
* One of the {@link constants.compileCacheStatus}
|
|
286
|
+
*/
|
|
287
|
+
status: number;
|
|
288
|
+
/**
|
|
289
|
+
* If Node.js cannot enable the compile cache, this contains
|
|
290
|
+
* the error message. Only set if `status` is `module.constants.compileCacheStatus.FAILED`.
|
|
291
|
+
*/
|
|
292
|
+
message?: string;
|
|
293
|
+
/**
|
|
294
|
+
* If the compile cache is enabled, this contains the directory
|
|
295
|
+
* where the compile cache is stored. Only set if `status` is
|
|
296
|
+
* `module.constants.compileCacheStatus.ENABLED` or
|
|
297
|
+
* `module.constants.compileCacheStatus.ALREADY_ENABLED`.
|
|
298
|
+
*/
|
|
299
|
+
directory?: string;
|
|
300
|
+
}
|
|
247
301
|
interface Module extends NodeModule {}
|
|
248
302
|
class Module {
|
|
249
303
|
static runMain(): void;
|
|
@@ -258,6 +312,43 @@ declare module "module" {
|
|
|
258
312
|
options?: RegisterOptions<Data>,
|
|
259
313
|
): void;
|
|
260
314
|
static register<Data = any>(specifier: string | URL, options?: RegisterOptions<Data>): void;
|
|
315
|
+
/**
|
|
316
|
+
* Enable [module compile cache](https://nodejs.org/docs/latest-v22.x/api/module.html#module-compile-cache)
|
|
317
|
+
* in the current Node.js instance.
|
|
318
|
+
*
|
|
319
|
+
* If `cacheDir` is not specified, Node.js will either use the directory specified by the
|
|
320
|
+
* `NODE_COMPILE_CACHE=dir` environment variable if it's set, or use
|
|
321
|
+
* `path.join(os.tmpdir(), 'node-compile-cache')` otherwise. For general use cases, it's
|
|
322
|
+
* recommended to call `module.enableCompileCache()` without specifying the `cacheDir`,
|
|
323
|
+
* so that the directory can be overridden by the `NODE_COMPILE_CACHE` environment
|
|
324
|
+
* variable when necessary.
|
|
325
|
+
*
|
|
326
|
+
* Since compile cache is supposed to be a quiet optimization that is not required for the
|
|
327
|
+
* application to be functional, this method is designed to not throw any exception when the
|
|
328
|
+
* compile cache cannot be enabled. Instead, it will return an object containing an error
|
|
329
|
+
* message in the `message` field to aid debugging.
|
|
330
|
+
* If compile cache is enabled successfully, the `directory` field in the returned object
|
|
331
|
+
* contains the path to the directory where the compile cache is stored. The `status`
|
|
332
|
+
* field in the returned object would be one of the `module.constants.compileCacheStatus`
|
|
333
|
+
* values to indicate the result of the attempt to enable the
|
|
334
|
+
* [module compile cache](https://nodejs.org/docs/latest-v22.x/api/module.html#module-compile-cache).
|
|
335
|
+
*
|
|
336
|
+
* This method only affects the current Node.js instance. To enable it in child worker threads,
|
|
337
|
+
* either call this method in child worker threads too, or set the
|
|
338
|
+
* `process.env.NODE_COMPILE_CACHE` value to compile cache directory so the behavior can
|
|
339
|
+
* be inherited into the child workers. The directory can be obtained either from the
|
|
340
|
+
* `directory` field returned by this method, or with {@link getCompileCacheDir}.
|
|
341
|
+
* @since v22.8.0
|
|
342
|
+
* @param cacheDir Optional path to specify the directory where the compile cache
|
|
343
|
+
* will be stored/retrieved.
|
|
344
|
+
*/
|
|
345
|
+
static enableCompileCache(cacheDir?: string): EnableCompileCacheResult;
|
|
346
|
+
/**
|
|
347
|
+
* @since v22.8.0
|
|
348
|
+
* @return Path to the [module compile cache](https://nodejs.org/docs/latest-v22.x/api/module.html#module-compile-cache)
|
|
349
|
+
* directory if it is enabled, or `undefined` otherwise.
|
|
350
|
+
*/
|
|
351
|
+
static getCompileCacheDir(): string | undefined;
|
|
261
352
|
constructor(id: string, parent?: Module);
|
|
262
353
|
}
|
|
263
354
|
global {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.8.6",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -217,8 +217,9 @@
|
|
|
217
217
|
},
|
|
218
218
|
"scripts": {},
|
|
219
219
|
"dependencies": {
|
|
220
|
-
"undici-types": "~6.19.
|
|
220
|
+
"undici-types": "~6.19.8"
|
|
221
221
|
},
|
|
222
|
-
"
|
|
222
|
+
"peerDependencies": {},
|
|
223
|
+
"typesPublisherContentHash": "b5e95f7873a1811a61b3409c809ee30655d0268d76d767dbe9efc27cb421459f",
|
|
223
224
|
"typeScriptVersion": "4.8"
|
|
224
225
|
}
|
|
@@ -116,6 +116,20 @@ declare module "perf_hooks" {
|
|
|
116
116
|
class PerformanceMeasure extends PerformanceEntry {
|
|
117
117
|
readonly entryType: "measure";
|
|
118
118
|
}
|
|
119
|
+
interface UVMetrics {
|
|
120
|
+
/**
|
|
121
|
+
* Number of event loop iterations.
|
|
122
|
+
*/
|
|
123
|
+
readonly loopCount: number;
|
|
124
|
+
/**
|
|
125
|
+
* Number of events that have been processed by the event handler.
|
|
126
|
+
*/
|
|
127
|
+
readonly events: number;
|
|
128
|
+
/**
|
|
129
|
+
* Number of events that were waiting to be processed when the event provider was called.
|
|
130
|
+
*/
|
|
131
|
+
readonly eventsWaiting: number;
|
|
132
|
+
}
|
|
119
133
|
/**
|
|
120
134
|
* _This property is an extension by Node.js. It is not available in Web browsers._
|
|
121
135
|
*
|
|
@@ -166,6 +180,16 @@ declare module "perf_hooks" {
|
|
|
166
180
|
* @since v8.5.0
|
|
167
181
|
*/
|
|
168
182
|
readonly nodeStart: number;
|
|
183
|
+
/**
|
|
184
|
+
* This is a wrapper to the `uv_metrics_info` function.
|
|
185
|
+
* It returns the current set of event loop metrics.
|
|
186
|
+
*
|
|
187
|
+
* It is recommended to use this property inside a function whose execution was
|
|
188
|
+
* scheduled using `setImmediate` to avoid collecting metrics before finishing all
|
|
189
|
+
* operations scheduled during the current loop iteration.
|
|
190
|
+
* @since v22.8.0, v20.18.0
|
|
191
|
+
*/
|
|
192
|
+
readonly uvMetricsInfo: UVMetrics;
|
|
169
193
|
/**
|
|
170
194
|
* The high resolution millisecond timestamp at which the V8 platform was
|
|
171
195
|
* initialized.
|
|
@@ -304,7 +304,7 @@ declare module "readline" {
|
|
|
304
304
|
prependOnceListener(event: "SIGINT", listener: () => void): this;
|
|
305
305
|
prependOnceListener(event: "SIGTSTP", listener: () => void): this;
|
|
306
306
|
prependOnceListener(event: "history", listener: (history: string[]) => void): this;
|
|
307
|
-
[Symbol.asyncIterator]():
|
|
307
|
+
[Symbol.asyncIterator](): NodeJS.AsyncIterator<string>;
|
|
308
308
|
}
|
|
309
309
|
export type ReadLine = Interface; // type forwarded for backwards compatibility
|
|
310
310
|
export type Completer = (line: string) => CompleterResult;
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
declare module "stream/promises" {
|
|
2
2
|
import {
|
|
3
|
-
FinishedOptions,
|
|
3
|
+
FinishedOptions as _FinishedOptions,
|
|
4
4
|
PipelineDestination,
|
|
5
5
|
PipelineOptions,
|
|
6
6
|
PipelinePromise,
|
|
7
7
|
PipelineSource,
|
|
8
8
|
PipelineTransform,
|
|
9
9
|
} from "node:stream";
|
|
10
|
+
interface FinishedOptions extends _FinishedOptions {
|
|
11
|
+
/**
|
|
12
|
+
* If true, removes the listeners registered by this function before the promise is fulfilled.
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
cleanup?: boolean | undefined;
|
|
16
|
+
}
|
|
10
17
|
function finished(
|
|
11
18
|
stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream,
|
|
12
19
|
options?: FinishedOptions,
|
|
@@ -166,6 +166,9 @@ declare module "stream/web" {
|
|
|
166
166
|
interface ReadableStreamErrorCallback {
|
|
167
167
|
(reason: any): void | PromiseLike<void>;
|
|
168
168
|
}
|
|
169
|
+
interface ReadableStreamAsyncIterator<T> extends NodeJS.AsyncIterator<T, NodeJS.BuiltinIteratorReturn, unknown> {
|
|
170
|
+
[Symbol.asyncIterator](): ReadableStreamAsyncIterator<T>;
|
|
171
|
+
}
|
|
169
172
|
/** This Streams API interface represents a readable stream of byte data. */
|
|
170
173
|
interface ReadableStream<R = any> {
|
|
171
174
|
readonly locked: boolean;
|
|
@@ -176,8 +179,8 @@ declare module "stream/web" {
|
|
|
176
179
|
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
|
|
177
180
|
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
|
|
178
181
|
tee(): [ReadableStream<R>, ReadableStream<R>];
|
|
179
|
-
values(options?: { preventCancel?: boolean }):
|
|
180
|
-
[Symbol.asyncIterator]():
|
|
182
|
+
values(options?: { preventCancel?: boolean }): ReadableStreamAsyncIterator<R>;
|
|
183
|
+
[Symbol.asyncIterator](): ReadableStreamAsyncIterator<R>;
|
|
181
184
|
}
|
|
182
185
|
const ReadableStream: {
|
|
183
186
|
prototype: ReadableStream;
|
|
@@ -422,7 +422,7 @@ declare module "stream" {
|
|
|
422
422
|
* or exiting a `for await...of` iteration using a `break`, `return`, or `throw` will not destroy the stream.
|
|
423
423
|
* **Default: `true`**.
|
|
424
424
|
*/
|
|
425
|
-
iterator(options?: { destroyOnReturn?: boolean }):
|
|
425
|
+
iterator(options?: { destroyOnReturn?: boolean }): NodeJS.AsyncIterator<any>;
|
|
426
426
|
/**
|
|
427
427
|
* This method allows mapping over the stream. The *fn* function will be called for every chunk in the stream.
|
|
428
428
|
* If the *fn* function returns a promise - that promise will be `await`ed before being passed to the result stream.
|
|
@@ -651,7 +651,7 @@ declare module "stream" {
|
|
|
651
651
|
removeListener(event: "readable", listener: () => void): this;
|
|
652
652
|
removeListener(event: "resume", listener: () => void): this;
|
|
653
653
|
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
654
|
-
[Symbol.asyncIterator]():
|
|
654
|
+
[Symbol.asyncIterator](): NodeJS.AsyncIterator<any>;
|
|
655
655
|
/**
|
|
656
656
|
* Calls `readable.destroy()` with an `AbortError` and returns a promise that fulfills when the stream is finished.
|
|
657
657
|
* @since v20.4.0
|
|
@@ -340,11 +340,22 @@ declare module "node:test" {
|
|
|
340
340
|
globPatterns?: readonly string[] | undefined;
|
|
341
341
|
/**
|
|
342
342
|
* Sets inspector port of test child process.
|
|
343
|
-
*
|
|
344
|
-
*
|
|
343
|
+
* This can be a number, or a function that takes no arguments and returns a
|
|
344
|
+
* number. If a nullish value is provided, each process gets its own port,
|
|
345
|
+
* incremented from the primary's `process.debugPort`. This option is ignored
|
|
346
|
+
* if the `isolation` option is set to `'none'` as no child processes are
|
|
347
|
+
* spawned.
|
|
345
348
|
* @default undefined
|
|
346
349
|
*/
|
|
347
350
|
inspectPort?: number | (() => number) | undefined;
|
|
351
|
+
/**
|
|
352
|
+
* Configures the type of test isolation. If set to
|
|
353
|
+
* `'process'`, each test file is run in a separate child process. If set to
|
|
354
|
+
* `'none'`, all test files run in the current process.
|
|
355
|
+
* @default 'process'
|
|
356
|
+
* @since v22.8.0
|
|
357
|
+
*/
|
|
358
|
+
isolation?: "process" | "none" | undefined;
|
|
348
359
|
/**
|
|
349
360
|
* If truthy, the test context will only run tests that have the `only` option set
|
|
350
361
|
*/
|
|
@@ -1635,9 +1646,10 @@ declare module "node:test" {
|
|
|
1635
1646
|
* This function is used to set a custom resolver for the location of the snapshot file used for snapshot testing.
|
|
1636
1647
|
* By default, the snapshot filename is the same as the entry point filename with `.snapshot` appended.
|
|
1637
1648
|
* @since v22.3.0
|
|
1638
|
-
* @param fn A function
|
|
1639
|
-
* The function receives the path of the test file as its only argument.
|
|
1640
|
-
*
|
|
1649
|
+
* @param fn A function used to compute the location of the snapshot file.
|
|
1650
|
+
* The function receives the path of the test file as its only argument. If the
|
|
1651
|
+
* test is not associated with a file (for example in the REPL), the input is
|
|
1652
|
+
* undefined. `fn()` must return a string specifying the location of the snapshot file.
|
|
1641
1653
|
*/
|
|
1642
1654
|
function setResolveSnapshotPath(fn: (path: string | undefined) => string): void;
|
|
1643
1655
|
}
|
|
@@ -22,22 +22,22 @@
|
|
|
22
22
|
* IN THE SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
// NOTE: These definitions support
|
|
25
|
+
// NOTE: These definitions support Node.js and TypeScript 4.9 through 5.6.
|
|
26
26
|
|
|
27
|
-
// Reference required
|
|
27
|
+
// Reference required TypeScript libs:
|
|
28
28
|
/// <reference lib="es2020" />
|
|
29
|
-
/// <reference lib="esnext.asynciterable" />
|
|
30
|
-
/// <reference lib="esnext.intl" />
|
|
31
|
-
/// <reference lib="esnext.bigint" />
|
|
32
29
|
|
|
33
|
-
//
|
|
30
|
+
// TypeScript backwards-compatibility definitions:
|
|
31
|
+
/// <reference path="../compatibility/index.d.ts" />
|
|
32
|
+
|
|
33
|
+
// Definitions specific to TypeScript 4.9 through 5.6:
|
|
34
34
|
/// <reference path="./globals.typedarray.d.ts" />
|
|
35
35
|
/// <reference path="./buffer.buffer.d.ts" />
|
|
36
36
|
|
|
37
|
-
//
|
|
37
|
+
// Definitions for Node.js modules that are not specific to any version of TypeScript:
|
|
38
|
+
/// <reference path="../globals.d.ts" />
|
|
38
39
|
/// <reference path="../assert.d.ts" />
|
|
39
40
|
/// <reference path="../assert/strict.d.ts" />
|
|
40
|
-
/// <reference path="../globals.d.ts" />
|
|
41
41
|
/// <reference path="../async_hooks.d.ts" />
|
|
42
42
|
/// <reference path="../buffer.d.ts" />
|
|
43
43
|
/// <reference path="../child_process.d.ts" />
|
|
@@ -90,5 +90,3 @@
|
|
|
90
90
|
/// <reference path="../wasi.d.ts" />
|
|
91
91
|
/// <reference path="../worker_threads.d.ts" />
|
|
92
92
|
/// <reference path="../zlib.d.ts" />
|
|
93
|
-
|
|
94
|
-
/// <reference path="../globals.global.d.ts" />
|
|
@@ -757,6 +757,9 @@ declare module "url" {
|
|
|
757
757
|
*/
|
|
758
758
|
toJSON(): string;
|
|
759
759
|
}
|
|
760
|
+
interface URLSearchParamsIterator<T> extends NodeJS.Iterator<T, NodeJS.BuiltinIteratorReturn, unknown> {
|
|
761
|
+
[Symbol.iterator](): URLSearchParamsIterator<T>;
|
|
762
|
+
}
|
|
760
763
|
/**
|
|
761
764
|
* The `URLSearchParams` API provides read and write access to the query of a `URL`. The `URLSearchParams` class can also be used standalone with one of the
|
|
762
765
|
* four following constructors.
|
|
@@ -827,7 +830,7 @@ declare module "url" {
|
|
|
827
830
|
*
|
|
828
831
|
* Alias for `urlSearchParams[@@iterator]()`.
|
|
829
832
|
*/
|
|
830
|
-
entries():
|
|
833
|
+
entries(): URLSearchParamsIterator<[string, string]>;
|
|
831
834
|
/**
|
|
832
835
|
* Iterates over each name-value pair in the query and invokes the given function.
|
|
833
836
|
*
|
|
@@ -881,7 +884,7 @@ declare module "url" {
|
|
|
881
884
|
* // foo
|
|
882
885
|
* ```
|
|
883
886
|
*/
|
|
884
|
-
keys():
|
|
887
|
+
keys(): URLSearchParamsIterator<string>;
|
|
885
888
|
/**
|
|
886
889
|
* Sets the value in the `URLSearchParams` object associated with `name` to `value`. If there are any pre-existing name-value pairs whose names are `name`,
|
|
887
890
|
* set the first such pair's value to `value` and remove all others. If not,
|
|
@@ -931,8 +934,8 @@ declare module "url" {
|
|
|
931
934
|
/**
|
|
932
935
|
* Returns an ES6 `Iterator` over the values of each name-value pair.
|
|
933
936
|
*/
|
|
934
|
-
values():
|
|
935
|
-
[Symbol.iterator]():
|
|
937
|
+
values(): URLSearchParamsIterator<string>;
|
|
938
|
+
[Symbol.iterator](): URLSearchParamsIterator<[string, string]>;
|
|
936
939
|
}
|
|
937
940
|
import { URL as _URL, URLSearchParams as _URLSearchParams } from "url";
|
|
938
941
|
global {
|
|
@@ -1517,18 +1517,23 @@ declare module "util" {
|
|
|
1517
1517
|
string | boolean
|
|
1518
1518
|
>;
|
|
1519
1519
|
|
|
1520
|
+
type ApplyOptionalModifiers<O extends ParseArgsOptionsConfig, V extends Record<keyof O, unknown>> = (
|
|
1521
|
+
& { -readonly [LongOption in keyof O]?: V[LongOption] }
|
|
1522
|
+
& { [LongOption in keyof O as O[LongOption]["default"] extends {} ? LongOption : never]: V[LongOption] }
|
|
1523
|
+
) extends infer P ? { [K in keyof P]: P[K] } : never; // resolve intersection to object
|
|
1524
|
+
|
|
1520
1525
|
type ParsedValues<T extends ParseArgsConfig> =
|
|
1521
1526
|
& IfDefaultsTrue<T["strict"], unknown, { [longOption: string]: undefined | string | boolean }>
|
|
1522
|
-
& (T["options"] extends ParseArgsOptionsConfig ?
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
| IfDefaultsFalse<
|
|
1527
|
+
& (T["options"] extends ParseArgsOptionsConfig ? ApplyOptionalModifiers<
|
|
1528
|
+
T["options"],
|
|
1529
|
+
{
|
|
1530
|
+
[LongOption in keyof T["options"]]: IfDefaultsFalse<
|
|
1527
1531
|
T["options"][LongOption]["multiple"],
|
|
1528
1532
|
Array<ExtractOptionValue<T, T["options"][LongOption]>>,
|
|
1529
1533
|
ExtractOptionValue<T, T["options"][LongOption]>
|
|
1530
1534
|
>;
|
|
1531
|
-
|
|
1535
|
+
}
|
|
1536
|
+
>
|
|
1532
1537
|
: {});
|
|
1533
1538
|
|
|
1534
1539
|
type ParsedPositionals<T extends ParseArgsConfig> = IfDefaultsTrue<
|
|
@@ -1720,7 +1725,7 @@ declare module "util" {
|
|
|
1720
1725
|
* Each item of the iterator is a JavaScript `Array`. The first item of the array
|
|
1721
1726
|
* is the `name`, the second item of the array is the `value`.
|
|
1722
1727
|
*/
|
|
1723
|
-
entries():
|
|
1728
|
+
entries(): NodeJS.Iterator<[name: string, value: string]>;
|
|
1724
1729
|
/**
|
|
1725
1730
|
* Returns the value of the first name-value pair whose name is `name`. If there
|
|
1726
1731
|
* are no such pairs, `null` is returned.
|
|
@@ -1746,7 +1751,7 @@ declare module "util" {
|
|
|
1746
1751
|
* // bar
|
|
1747
1752
|
* ```
|
|
1748
1753
|
*/
|
|
1749
|
-
keys():
|
|
1754
|
+
keys(): NodeJS.Iterator<string>;
|
|
1750
1755
|
/**
|
|
1751
1756
|
* Sets the value in the `MIMEParams` object associated with `name` to `value`. If there are any pre-existing name-value pairs whose names are `name`,
|
|
1752
1757
|
* set the first such pair's value to `value`.
|
|
@@ -1765,11 +1770,11 @@ declare module "util" {
|
|
|
1765
1770
|
/**
|
|
1766
1771
|
* Returns an iterator over the values of each name-value pair.
|
|
1767
1772
|
*/
|
|
1768
|
-
values():
|
|
1773
|
+
values(): NodeJS.Iterator<string>;
|
|
1769
1774
|
/**
|
|
1770
1775
|
* Returns an iterator over each of the name-value pairs in the parameters.
|
|
1771
1776
|
*/
|
|
1772
|
-
[Symbol.iterator]:
|
|
1777
|
+
[Symbol.iterator](): NodeJS.Iterator<[name: string, value: string]>;
|
|
1773
1778
|
}
|
|
1774
1779
|
}
|
|
1775
1780
|
declare module "util/types" {
|