cloudstructs 0.4.0 → 0.4.4
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/codecommit-mirror/docker/mirror.sh +0 -0
- package/changelog.md +2 -0
- package/lib/codecommit-mirror/index.js +2 -2
- 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/state-machine-cr-provider/index.js +1 -1
- package/lib/static-website/index.js +1 -1
- package/lib/url-shortener/index.js +1 -1
- package/node_modules/@sindresorhus/is/dist/index.d.ts +4 -2
- package/node_modules/@sindresorhus/is/dist/index.js +3 -1
- package/node_modules/@sindresorhus/is/package.json +1 -1
- package/node_modules/@sindresorhus/is/readme.md +23 -0
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/async_hooks.d.ts +7 -3
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +9 -9
- package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/cluster.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/console.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/dgram.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/dns/promises.d.ts +12 -10
- package/node_modules/@slack/logger/node_modules/@types/node/dns.d.ts +17 -12
- package/node_modules/@slack/logger/node_modules/@types/node/domain.d.ts +1 -1
- 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 +5 -5
- package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +62 -11
- package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +31 -4
- package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +6 -6
- package/node_modules/@slack/logger/node_modules/@types/node/https.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/inspector.d.ts +4 -5
- package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +15 -14
- package/node_modules/@slack/logger/node_modules/@types/node/os.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -7
- package/node_modules/@slack/logger/node_modules/@types/node/path.d.ts +9 -1
- package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +6 -4
- package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/readline.d.ts +121 -14
- package/node_modules/@slack/logger/node_modules/@types/node/repl.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/stream/web.d.ts +3 -65
- package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +10 -10
- package/node_modules/@slack/logger/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +3 -2
- package/node_modules/@slack/logger/node_modules/@types/node/trace_events.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +58 -18
- package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/@types/node/zlib.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/async_hooks.d.ts +7 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +9 -9
- package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/cluster.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/console.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/dgram.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/dns/promises.d.ts +12 -10
- package/node_modules/@slack/web-api/node_modules/@types/node/dns.d.ts +17 -12
- package/node_modules/@slack/web-api/node_modules/@types/node/domain.d.ts +1 -1
- 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 +5 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +62 -11
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +31 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +6 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/https.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/inspector.d.ts +4 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +15 -14
- package/node_modules/@slack/web-api/node_modules/@types/node/os.d.ts +1 -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/path.d.ts +9 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +6 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/readline.d.ts +121 -14
- package/node_modules/@slack/web-api/node_modules/@types/node/repl.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/stream/web.d.ts +3 -65
- package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +10 -10
- package/node_modules/@slack/web-api/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +3 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/trace_events.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +58 -18
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +11 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +0 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +4 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +8 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +2 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +8 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +2 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/globals.d.ts +3 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/http.d.ts +11 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/http2.d.ts +3 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/index.d.ts +0 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/net.d.ts +4 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/package.json +2 -7
- package/node_modules/@types/is-stream/node_modules/@types/node/path.d.ts +8 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/perf_hooks.d.ts +2 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/stream.d.ts +8 -8
- package/node_modules/@types/is-stream/node_modules/@types/node/tls.d.ts +2 -1
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +11 -1
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +0 -1
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +4 -3
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -7
- package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +8 -0
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +2 -0
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +8 -8
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +2 -1
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +11 -1
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +0 -1
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +4 -3
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -7
- package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +8 -0
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +2 -0
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +8 -8
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +2 -1
- package/node_modules/follow-redirects/index.js +2 -2
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/keyv/.nyc_output/37411020-4142-4b08-b825-343ba2427bf7.json +1 -0
- package/node_modules/keyv/.nyc_output/cd79f2de-c8b8-4493-bc15-b2bde28efa4b.json +1 -0
- package/node_modules/keyv/.nyc_output/processinfo/37411020-4142-4b08-b825-343ba2427bf7.json +1 -0
- package/node_modules/keyv/.nyc_output/processinfo/cd79f2de-c8b8-4493-bc15-b2bde28efa4b.json +1 -0
- package/node_modules/keyv/.nyc_output/processinfo/index.json +1 -0
- package/node_modules/keyv/README.md +9 -8
- package/node_modules/keyv/package.json +5 -7
- package/node_modules/keyv/test/test.js +132 -0
- package/node_modules/keyv/test/testdb.sqlite +0 -0
- package/package.json +20 -16
- package/releasetag.txt +1 -0
- package/version.txt +1 -0
- package/node_modules/keyv/LICENSE +0 -21
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* ```js
|
|
6
6
|
* import url from 'url';
|
|
7
7
|
* ```
|
|
8
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
8
|
+
* @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/url.js)
|
|
9
9
|
*/
|
|
10
10
|
declare module 'url' {
|
|
11
11
|
import { Blob } from 'node:buffer';
|
|
@@ -72,27 +72,67 @@ declare module 'url' {
|
|
|
72
72
|
function parse(urlString: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery;
|
|
73
73
|
function parse(urlString: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url;
|
|
74
74
|
/**
|
|
75
|
-
* The
|
|
76
|
-
* These are not, however, customizable in any way. The `url.format(URL[, options])` method allows for basic
|
|
77
|
-
* customization of the output.
|
|
78
|
-
* Returns a customizable serialization of a URL `String` representation of a `WHATWG URL` object.
|
|
75
|
+
* The `url.format()` method returns a formatted URL string derived from`urlObject`.
|
|
79
76
|
*
|
|
80
77
|
* ```js
|
|
81
|
-
*
|
|
82
|
-
*
|
|
78
|
+
* const url = require('url');
|
|
79
|
+
* url.format({
|
|
80
|
+
* protocol: 'https',
|
|
81
|
+
* hostname: 'example.com',
|
|
82
|
+
* pathname: '/some/path',
|
|
83
|
+
* query: {
|
|
84
|
+
* page: 1,
|
|
85
|
+
* format: 'json'
|
|
86
|
+
* }
|
|
87
|
+
* });
|
|
83
88
|
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
89
|
+
* // => 'https://example.com/some/path?page=1&format=json'
|
|
90
|
+
* ```
|
|
86
91
|
*
|
|
87
|
-
*
|
|
88
|
-
* // Prints https://a:b@xn--g6w251d/?abc#foo
|
|
92
|
+
* If `urlObject` is not an object or a string, `url.format()` will throw a `TypeError`.
|
|
89
93
|
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
94
|
+
* The formatting process operates as follows:
|
|
95
|
+
*
|
|
96
|
+
* * A new empty string `result` is created.
|
|
97
|
+
* * If `urlObject.protocol` is a string, it is appended as-is to `result`.
|
|
98
|
+
* * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown.
|
|
99
|
+
* * For all string values of `urlObject.protocol` that _do not end_ with an ASCII
|
|
100
|
+
* colon (`:`) character, the literal string `:` will be appended to `result`.
|
|
101
|
+
* * If either of the following conditions is true, then the literal string `//`will be appended to `result`:
|
|
102
|
+
* * `urlObject.slashes` property is true;
|
|
103
|
+
* * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or`file`;
|
|
104
|
+
* * If the value of the `urlObject.auth` property is truthy, and either`urlObject.host` or `urlObject.hostname` are not `undefined`, the value of`urlObject.auth` will be coerced into a string
|
|
105
|
+
* and appended to `result`followed by the literal string `@`.
|
|
106
|
+
* * If the `urlObject.host` property is `undefined` then:
|
|
107
|
+
* * If the `urlObject.hostname` is a string, it is appended to `result`.
|
|
108
|
+
* * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string,
|
|
109
|
+
* an `Error` is thrown.
|
|
110
|
+
* * If the `urlObject.port` property value is truthy, and `urlObject.hostname`is not `undefined`:
|
|
111
|
+
* * The literal string `:` is appended to `result`, and
|
|
112
|
+
* * The value of `urlObject.port` is coerced to a string and appended to`result`.
|
|
113
|
+
* * Otherwise, if the `urlObject.host` property value is truthy, the value of`urlObject.host` is coerced to a string and appended to `result`.
|
|
114
|
+
* * If the `urlObject.pathname` property is a string that is not an empty string:
|
|
115
|
+
* * If the `urlObject.pathname`_does not start_ with an ASCII forward slash
|
|
116
|
+
* (`/`), then the literal string `'/'` is appended to `result`.
|
|
117
|
+
* * The value of `urlObject.pathname` is appended to `result`.
|
|
118
|
+
* * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown.
|
|
119
|
+
* * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result`followed by the output of calling the
|
|
120
|
+
* `querystring` module's `stringify()`method passing the value of `urlObject.query`.
|
|
121
|
+
* * Otherwise, if `urlObject.search` is a string:
|
|
122
|
+
* * If the value of `urlObject.search`_does not start_ with the ASCII question
|
|
123
|
+
* mark (`?`) character, the literal string `?` is appended to `result`.
|
|
124
|
+
* * The value of `urlObject.search` is appended to `result`.
|
|
125
|
+
* * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown.
|
|
126
|
+
* * If the `urlObject.hash` property is a string:
|
|
127
|
+
* * If the value of `urlObject.hash`_does not start_ with the ASCII hash (`#`)
|
|
128
|
+
* character, the literal string `#` is appended to `result`.
|
|
129
|
+
* * The value of `urlObject.hash` is appended to `result`.
|
|
130
|
+
* * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a
|
|
131
|
+
* string, an `Error` is thrown.
|
|
132
|
+
* * `result` is returned.
|
|
133
|
+
* @since v0.1.25
|
|
134
|
+
* @deprecated Legacy: Use the WHATWG URL API instead.
|
|
135
|
+
* @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.
|
|
96
136
|
*/
|
|
97
137
|
function format(urlObject: URL, options?: URLFormatOptions): string;
|
|
98
138
|
/**
|
|
@@ -301,7 +341,7 @@ declare module 'url' {
|
|
|
301
341
|
* }
|
|
302
342
|
*
|
|
303
343
|
* ```
|
|
304
|
-
* @since v15.7.0
|
|
344
|
+
* @since v15.7.0, v14.18.0
|
|
305
345
|
* @param url The `WHATWG URL` object to convert to an options object.
|
|
306
346
|
* @return Options object
|
|
307
347
|
*/
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* ```js
|
|
7
7
|
* const util = require('util');
|
|
8
8
|
* ```
|
|
9
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
9
|
+
* @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/util.js)
|
|
10
10
|
*/
|
|
11
11
|
declare module 'util' {
|
|
12
12
|
import * as types from 'node:util/types';
|
|
@@ -139,7 +139,7 @@ declare module 'util' {
|
|
|
139
139
|
* console.error(name); // ENOENT
|
|
140
140
|
* });
|
|
141
141
|
* ```
|
|
142
|
-
* @since v16.0.0
|
|
142
|
+
* @since v16.0.0, v14.17.0
|
|
143
143
|
*/
|
|
144
144
|
export function getSystemErrorMap(): Map<number, [string, string]>;
|
|
145
145
|
/**
|
|
@@ -159,7 +159,7 @@ declare module 'util' {
|
|
|
159
159
|
* Returns the `string` after replacing any surrogate code points
|
|
160
160
|
* (or equivalently, any unpaired surrogate code units) with the
|
|
161
161
|
* Unicode "replacement character" U+FFFD.
|
|
162
|
-
* @since v16.8.0
|
|
162
|
+
* @since v16.8.0, v14.18.0
|
|
163
163
|
*/
|
|
164
164
|
export function toUSVString(string: string): string;
|
|
165
165
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* ```js
|
|
5
5
|
* const v8 = require('v8');
|
|
6
6
|
* ```
|
|
7
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
7
|
+
* @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/v8.js)
|
|
8
8
|
*/
|
|
9
9
|
declare module 'v8' {
|
|
10
10
|
import { Readable } from 'node:stream';
|
|
@@ -362,14 +362,14 @@ declare module 'v8' {
|
|
|
362
362
|
*
|
|
363
363
|
* When the process is about to exit, one last coverage will still be written to
|
|
364
364
|
* disk unless {@link stopCoverage} is invoked before the process exits.
|
|
365
|
-
* @since v15.1.0, v12.22.0
|
|
365
|
+
* @since v15.1.0, v14.18.0, v12.22.0
|
|
366
366
|
*/
|
|
367
367
|
function takeCoverage(): void;
|
|
368
368
|
/**
|
|
369
369
|
* The `v8.stopCoverage()` method allows the user to stop the coverage collection
|
|
370
370
|
* started by `NODE_V8_COVERAGE`, so that V8 can release the execution count
|
|
371
371
|
* records and optimize code. This can be used in conjunction with {@link takeCoverage} if the user wants to collect the coverage on demand.
|
|
372
|
-
* @since v15.1.0, v12.22.0
|
|
372
|
+
* @since v15.1.0, v14.18.0, v12.22.0
|
|
373
373
|
*/
|
|
374
374
|
function stopCoverage(): void;
|
|
375
375
|
}
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
*
|
|
33
33
|
* console.log(x); // 1; y is not defined.
|
|
34
34
|
* ```
|
|
35
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
35
|
+
* @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/vm.js)
|
|
36
36
|
*/
|
|
37
37
|
declare module 'vm' {
|
|
38
38
|
interface Context extends NodeJS.Dict<any> {}
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
* The `--experimental-wasi-unstable-preview1` CLI argument is needed for this
|
|
69
69
|
* example to run.
|
|
70
70
|
* @experimental
|
|
71
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
71
|
+
* @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/wasi.js)
|
|
72
72
|
*/
|
|
73
73
|
declare module 'wasi' {
|
|
74
74
|
interface WASIOptions {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
*
|
|
50
50
|
* Worker threads inherit non-process-specific options by default. Refer to `Worker constructor options` to know how to customize worker thread options,
|
|
51
51
|
* specifically `argv` and `execArgv` options.
|
|
52
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
52
|
+
* @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/worker_threads.js)
|
|
53
53
|
*/
|
|
54
54
|
declare module 'worker_threads' {
|
|
55
55
|
import { Blob } from 'node:buffer';
|
|
@@ -384,7 +384,7 @@ declare module 'worker_threads' {
|
|
|
384
384
|
/**
|
|
385
385
|
* An object that can be used to query performance information from a worker
|
|
386
386
|
* instance. Similar to `perf_hooks.performance`.
|
|
387
|
-
* @since v15.1.0, v12.22.0
|
|
387
|
+
* @since v15.1.0, v14.17.0, v12.22.0
|
|
388
388
|
*/
|
|
389
389
|
readonly performance: WorkerPerformance;
|
|
390
390
|
/**
|
|
@@ -629,14 +629,14 @@ declare module 'worker_threads' {
|
|
|
629
629
|
* console.log(getEnvironmentData('Hello')); // Prints 'World!'.
|
|
630
630
|
* }
|
|
631
631
|
* ```
|
|
632
|
-
* @since v15.12.0
|
|
632
|
+
* @since v15.12.0, v14.18.0
|
|
633
633
|
* @experimental
|
|
634
634
|
* @param key Any arbitrary, cloneable JavaScript value that can be used as a {Map} key.
|
|
635
635
|
*/
|
|
636
636
|
function getEnvironmentData(key: Serializable): Serializable;
|
|
637
637
|
/**
|
|
638
638
|
* The `worker.setEnvironmentData()` API sets the content of`worker.getEnvironmentData()` in the current thread and all new `Worker`instances spawned from the current context.
|
|
639
|
-
* @since v15.12.0
|
|
639
|
+
* @since v15.12.0, v14.18.0
|
|
640
640
|
* @experimental
|
|
641
641
|
* @param key Any arbitrary, cloneable JavaScript value that can be used as a {Map} key.
|
|
642
642
|
* @param value Any arbitrary, cloneable JavaScript value that will be cloned and passed automatically to all new `Worker` instances. If `value` is passed as `undefined`, any previously set value
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
* });
|
|
89
89
|
* ```
|
|
90
90
|
* @since v0.5.8
|
|
91
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
91
|
+
* @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/zlib.js)
|
|
92
92
|
*/
|
|
93
93
|
declare module 'zlib' {
|
|
94
94
|
import * as stream from 'node:stream';
|
|
@@ -8,9 +8,9 @@ This package contains type definitions for Node.js (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Tue, 18 Jan 2022 18:31:37 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
|
-
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Seth Westphal](https://github.com/westy92), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [
|
|
16
|
+
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Seth Westphal](https://github.com/westy92), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), and [wafuwafu13](https://github.com/wafuwafu13).
|
|
@@ -205,9 +205,9 @@ declare namespace NodeJS {
|
|
|
205
205
|
writable: boolean;
|
|
206
206
|
write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
|
|
207
207
|
write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
|
|
208
|
-
end(cb?: () => void):
|
|
209
|
-
end(data: string | Uint8Array, cb?: () => void):
|
|
210
|
-
end(str: string, encoding?: BufferEncoding, cb?: () => void):
|
|
208
|
+
end(cb?: () => void): this;
|
|
209
|
+
end(data: string | Uint8Array, cb?: () => void): this;
|
|
210
|
+
end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
interface ReadWriteStream extends ReadableStream, WritableStream { }
|
|
@@ -621,6 +621,16 @@ declare module 'http' {
|
|
|
621
621
|
* @since v14.5.0, v12.19.0
|
|
622
622
|
*/
|
|
623
623
|
protocol: string;
|
|
624
|
+
/**
|
|
625
|
+
* Whether the request is send through a reused socket.
|
|
626
|
+
* @since v13.0.0, v12.16.0
|
|
627
|
+
*/
|
|
628
|
+
reusedSocket: boolean;
|
|
629
|
+
/**
|
|
630
|
+
* Limits maximum response headers count. If set to 0, no limit will be applied.
|
|
631
|
+
* @default 2000
|
|
632
|
+
*/
|
|
633
|
+
maxHeadersCount: number;
|
|
624
634
|
constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void);
|
|
625
635
|
/**
|
|
626
636
|
* The request method.
|
|
@@ -966,7 +976,7 @@ declare module 'http' {
|
|
|
966
976
|
* as an argument to any listeners on the event.
|
|
967
977
|
* @since v0.3.0
|
|
968
978
|
*/
|
|
969
|
-
destroy(error?: Error):
|
|
979
|
+
destroy(error?: Error): this;
|
|
970
980
|
}
|
|
971
981
|
interface AgentOptions extends Partial<TcpSocketConnectOpts> {
|
|
972
982
|
/**
|
|
@@ -1516,9 +1516,9 @@ declare module 'http2' {
|
|
|
1516
1516
|
* is finished.
|
|
1517
1517
|
* @since v8.4.0
|
|
1518
1518
|
*/
|
|
1519
|
-
end(callback?: () => void):
|
|
1520
|
-
end(data: string | Uint8Array, callback?: () => void):
|
|
1521
|
-
end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void):
|
|
1519
|
+
end(callback?: () => void): this;
|
|
1520
|
+
end(data: string | Uint8Array, callback?: () => void): this;
|
|
1521
|
+
end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void): this;
|
|
1522
1522
|
/**
|
|
1523
1523
|
* Reads out a header that has already been queued but not sent to the client.
|
|
1524
1524
|
* The name is case-insensitive.
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
// Junxiao Shi <https://github.com/yoursunny>
|
|
35
35
|
// Ilia Baryshnikov <https://github.com/qwelias>
|
|
36
36
|
// ExE Boss <https://github.com/ExE-Boss>
|
|
37
|
-
// Surasak Chaisurin <https://github.com/Ryan-Willpower>
|
|
38
37
|
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
|
|
39
38
|
// Anna Henningsen <https://github.com/addaleax>
|
|
40
39
|
// Victor Perin <https://github.com/victorperin>
|
|
@@ -27,6 +27,7 @@ declare module 'net' {
|
|
|
27
27
|
allowHalfOpen?: boolean | undefined;
|
|
28
28
|
readable?: boolean | undefined;
|
|
29
29
|
writable?: boolean | undefined;
|
|
30
|
+
signal?: AbortSignal;
|
|
30
31
|
}
|
|
31
32
|
interface OnReadOpts {
|
|
32
33
|
buffer: Uint8Array | (() => Uint8Array);
|
|
@@ -287,9 +288,9 @@ declare module 'net' {
|
|
|
287
288
|
* @param callback Optional callback for when the socket is finished.
|
|
288
289
|
* @return The socket itself.
|
|
289
290
|
*/
|
|
290
|
-
end(callback?: () => void):
|
|
291
|
-
end(buffer: Uint8Array | string, callback?: () => void):
|
|
292
|
-
end(str: Uint8Array | string, encoding?: BufferEncoding, callback?: () => void):
|
|
291
|
+
end(callback?: () => void): this;
|
|
292
|
+
end(buffer: Uint8Array | string, callback?: () => void): this;
|
|
293
|
+
end(str: Uint8Array | string, encoding?: BufferEncoding, callback?: () => void): this;
|
|
293
294
|
/**
|
|
294
295
|
* events.EventEmitter
|
|
295
296
|
* 1. close
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.10",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -175,11 +175,6 @@
|
|
|
175
175
|
"url": "https://github.com/ExE-Boss",
|
|
176
176
|
"githubUsername": "ExE-Boss"
|
|
177
177
|
},
|
|
178
|
-
{
|
|
179
|
-
"name": "Surasak Chaisurin",
|
|
180
|
-
"url": "https://github.com/Ryan-Willpower",
|
|
181
|
-
"githubUsername": "Ryan-Willpower"
|
|
182
|
-
},
|
|
183
178
|
{
|
|
184
179
|
"name": "Piotr Błażejewicz",
|
|
185
180
|
"url": "https://github.com/peterblazejewicz",
|
|
@@ -225,6 +220,6 @@
|
|
|
225
220
|
},
|
|
226
221
|
"scripts": {},
|
|
227
222
|
"dependencies": {},
|
|
228
|
-
"typesPublisherContentHash": "
|
|
223
|
+
"typesPublisherContentHash": "a2e243404f102a5fd5fbcaefab0a775ffcb1db4d09832612decbd69815f1890b",
|
|
229
224
|
"typeScriptVersion": "3.8"
|
|
230
225
|
}
|
|
@@ -170,3 +170,11 @@ declare module 'node:path' {
|
|
|
170
170
|
import path = require('path');
|
|
171
171
|
export = path;
|
|
172
172
|
}
|
|
173
|
+
declare module 'node:path/posix' {
|
|
174
|
+
import path = require('path/posix');
|
|
175
|
+
export = path;
|
|
176
|
+
}
|
|
177
|
+
declare module 'node:path/win32' {
|
|
178
|
+
import path = require('path/win32');
|
|
179
|
+
export = path;
|
|
180
|
+
}
|
|
@@ -408,7 +408,7 @@ declare module 'stream' {
|
|
|
408
408
|
* @since v8.0.0
|
|
409
409
|
* @param error Error which will be passed as payload in `'error'` event
|
|
410
410
|
*/
|
|
411
|
-
destroy(error?: Error):
|
|
411
|
+
destroy(error?: Error): this;
|
|
412
412
|
/**
|
|
413
413
|
* Event emitter
|
|
414
414
|
* The defined events on documents including:
|
|
@@ -639,9 +639,9 @@ declare module 'stream' {
|
|
|
639
639
|
* @param encoding The encoding if `chunk` is a string
|
|
640
640
|
* @param callback Callback for when the stream is finished.
|
|
641
641
|
*/
|
|
642
|
-
end(cb?: () => void):
|
|
643
|
-
end(chunk: any, cb?: () => void):
|
|
644
|
-
end(chunk: any, encoding: BufferEncoding, cb?: () => void):
|
|
642
|
+
end(cb?: () => void): this;
|
|
643
|
+
end(chunk: any, cb?: () => void): this;
|
|
644
|
+
end(chunk: any, encoding: BufferEncoding, cb?: () => void): this;
|
|
645
645
|
/**
|
|
646
646
|
* The `writable.cork()` method forces all written data to be buffered in memory.
|
|
647
647
|
* The buffered data will be flushed when either the {@link uncork} or {@link end} methods are called.
|
|
@@ -707,7 +707,7 @@ declare module 'stream' {
|
|
|
707
707
|
* @since v8.0.0
|
|
708
708
|
* @param error Optional, an error to emit with `'error'` event.
|
|
709
709
|
*/
|
|
710
|
-
destroy(error?: Error):
|
|
710
|
+
destroy(error?: Error): this;
|
|
711
711
|
/**
|
|
712
712
|
* Event emitter
|
|
713
713
|
* The defined events on documents including:
|
|
@@ -853,9 +853,9 @@ declare module 'stream' {
|
|
|
853
853
|
write(chunk: any, encoding?: BufferEncoding, cb?: (error: Error | null | undefined) => void): boolean;
|
|
854
854
|
write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean;
|
|
855
855
|
setDefaultEncoding(encoding: BufferEncoding): this;
|
|
856
|
-
end(cb?: () => void):
|
|
857
|
-
end(chunk: any, cb?: () => void):
|
|
858
|
-
end(chunk: any, encoding?: BufferEncoding, cb?: () => void):
|
|
856
|
+
end(cb?: () => void): this;
|
|
857
|
+
end(chunk: any, cb?: () => void): this;
|
|
858
|
+
end(chunk: any, encoding?: BufferEncoding, cb?: () => void): this;
|
|
859
859
|
cork(): void;
|
|
860
860
|
uncork(): void;
|
|
861
861
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
declare module 'tls' {
|
|
12
12
|
import { X509Certificate } from 'node:crypto';
|
|
13
13
|
import * as net from 'node:net';
|
|
14
|
+
import * as stream from 'stream';
|
|
14
15
|
const CLIENT_RENEG_LIMIT: number;
|
|
15
16
|
const CLIENT_RENEG_WINDOW: number;
|
|
16
17
|
interface Certificate {
|
|
@@ -516,7 +517,7 @@ declare module 'tls' {
|
|
|
516
517
|
host?: string | undefined;
|
|
517
518
|
port?: number | undefined;
|
|
518
519
|
path?: string | undefined; // Creates unix socket connection to path. If this option is specified, `host` and `port` are ignored.
|
|
519
|
-
socket?:
|
|
520
|
+
socket?: stream.Duplex | undefined; // Establish secure connection on a given socket rather than creating a new socket
|
|
520
521
|
checkServerIdentity?: typeof checkServerIdentity | undefined;
|
|
521
522
|
servername?: string | undefined; // SNI TLS Extension
|
|
522
523
|
session?: Buffer | undefined;
|
|
@@ -8,9 +8,9 @@ This package contains type definitions for Node.js (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Tue, 18 Jan 2022 18:31:37 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
|
-
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Seth Westphal](https://github.com/westy92), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [
|
|
16
|
+
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Seth Westphal](https://github.com/westy92), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), and [wafuwafu13](https://github.com/wafuwafu13).
|
|
@@ -205,9 +205,9 @@ declare namespace NodeJS {
|
|
|
205
205
|
writable: boolean;
|
|
206
206
|
write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
|
|
207
207
|
write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
|
|
208
|
-
end(cb?: () => void):
|
|
209
|
-
end(data: string | Uint8Array, cb?: () => void):
|
|
210
|
-
end(str: string, encoding?: BufferEncoding, cb?: () => void):
|
|
208
|
+
end(cb?: () => void): this;
|
|
209
|
+
end(data: string | Uint8Array, cb?: () => void): this;
|
|
210
|
+
end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
interface ReadWriteStream extends ReadableStream, WritableStream { }
|
|
@@ -621,6 +621,16 @@ declare module 'http' {
|
|
|
621
621
|
* @since v14.5.0, v12.19.0
|
|
622
622
|
*/
|
|
623
623
|
protocol: string;
|
|
624
|
+
/**
|
|
625
|
+
* Whether the request is send through a reused socket.
|
|
626
|
+
* @since v13.0.0, v12.16.0
|
|
627
|
+
*/
|
|
628
|
+
reusedSocket: boolean;
|
|
629
|
+
/**
|
|
630
|
+
* Limits maximum response headers count. If set to 0, no limit will be applied.
|
|
631
|
+
* @default 2000
|
|
632
|
+
*/
|
|
633
|
+
maxHeadersCount: number;
|
|
624
634
|
constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void);
|
|
625
635
|
/**
|
|
626
636
|
* The request method.
|
|
@@ -966,7 +976,7 @@ declare module 'http' {
|
|
|
966
976
|
* as an argument to any listeners on the event.
|
|
967
977
|
* @since v0.3.0
|
|
968
978
|
*/
|
|
969
|
-
destroy(error?: Error):
|
|
979
|
+
destroy(error?: Error): this;
|
|
970
980
|
}
|
|
971
981
|
interface AgentOptions extends Partial<TcpSocketConnectOpts> {
|
|
972
982
|
/**
|
|
@@ -1516,9 +1516,9 @@ declare module 'http2' {
|
|
|
1516
1516
|
* is finished.
|
|
1517
1517
|
* @since v8.4.0
|
|
1518
1518
|
*/
|
|
1519
|
-
end(callback?: () => void):
|
|
1520
|
-
end(data: string | Uint8Array, callback?: () => void):
|
|
1521
|
-
end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void):
|
|
1519
|
+
end(callback?: () => void): this;
|
|
1520
|
+
end(data: string | Uint8Array, callback?: () => void): this;
|
|
1521
|
+
end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void): this;
|
|
1522
1522
|
/**
|
|
1523
1523
|
* Reads out a header that has already been queued but not sent to the client.
|
|
1524
1524
|
* The name is case-insensitive.
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
// Junxiao Shi <https://github.com/yoursunny>
|
|
35
35
|
// Ilia Baryshnikov <https://github.com/qwelias>
|
|
36
36
|
// ExE Boss <https://github.com/ExE-Boss>
|
|
37
|
-
// Surasak Chaisurin <https://github.com/Ryan-Willpower>
|
|
38
37
|
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
|
|
39
38
|
// Anna Henningsen <https://github.com/addaleax>
|
|
40
39
|
// Victor Perin <https://github.com/victorperin>
|
|
@@ -27,6 +27,7 @@ declare module 'net' {
|
|
|
27
27
|
allowHalfOpen?: boolean | undefined;
|
|
28
28
|
readable?: boolean | undefined;
|
|
29
29
|
writable?: boolean | undefined;
|
|
30
|
+
signal?: AbortSignal;
|
|
30
31
|
}
|
|
31
32
|
interface OnReadOpts {
|
|
32
33
|
buffer: Uint8Array | (() => Uint8Array);
|
|
@@ -287,9 +288,9 @@ declare module 'net' {
|
|
|
287
288
|
* @param callback Optional callback for when the socket is finished.
|
|
288
289
|
* @return The socket itself.
|
|
289
290
|
*/
|
|
290
|
-
end(callback?: () => void):
|
|
291
|
-
end(buffer: Uint8Array | string, callback?: () => void):
|
|
292
|
-
end(str: Uint8Array | string, encoding?: BufferEncoding, callback?: () => void):
|
|
291
|
+
end(callback?: () => void): this;
|
|
292
|
+
end(buffer: Uint8Array | string, callback?: () => void): this;
|
|
293
|
+
end(str: Uint8Array | string, encoding?: BufferEncoding, callback?: () => void): this;
|
|
293
294
|
/**
|
|
294
295
|
* events.EventEmitter
|
|
295
296
|
* 1. close
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.10",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -175,11 +175,6 @@
|
|
|
175
175
|
"url": "https://github.com/ExE-Boss",
|
|
176
176
|
"githubUsername": "ExE-Boss"
|
|
177
177
|
},
|
|
178
|
-
{
|
|
179
|
-
"name": "Surasak Chaisurin",
|
|
180
|
-
"url": "https://github.com/Ryan-Willpower",
|
|
181
|
-
"githubUsername": "Ryan-Willpower"
|
|
182
|
-
},
|
|
183
178
|
{
|
|
184
179
|
"name": "Piotr Błażejewicz",
|
|
185
180
|
"url": "https://github.com/peterblazejewicz",
|
|
@@ -225,6 +220,6 @@
|
|
|
225
220
|
},
|
|
226
221
|
"scripts": {},
|
|
227
222
|
"dependencies": {},
|
|
228
|
-
"typesPublisherContentHash": "
|
|
223
|
+
"typesPublisherContentHash": "a2e243404f102a5fd5fbcaefab0a775ffcb1db4d09832612decbd69815f1890b",
|
|
229
224
|
"typeScriptVersion": "3.8"
|
|
230
225
|
}
|
|
@@ -170,3 +170,11 @@ declare module 'node:path' {
|
|
|
170
170
|
import path = require('path');
|
|
171
171
|
export = path;
|
|
172
172
|
}
|
|
173
|
+
declare module 'node:path/posix' {
|
|
174
|
+
import path = require('path/posix');
|
|
175
|
+
export = path;
|
|
176
|
+
}
|
|
177
|
+
declare module 'node:path/win32' {
|
|
178
|
+
import path = require('path/win32');
|
|
179
|
+
export = path;
|
|
180
|
+
}
|