cdk-ecr-deployment 0.0.79 → 0.0.83
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/.gitattributes +20 -21
- package/.jsii +18 -13
- package/lambda/go.mod +1 -1
- package/lambda/go.sum +230 -66
- package/lib/index.js +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +8 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +6 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +11 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +11 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +88 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +55 -19
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +5 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +7 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +8 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +5 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +385 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +24 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +31 -0
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +8 -8
- package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +6 -0
- package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +11 -0
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +11 -0
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +88 -1
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +55 -19
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +5 -4
- package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +7 -0
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +8 -8
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +5 -1
- package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +385 -0
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +24 -1
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +31 -0
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +8 -8
- package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +6 -0
- package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +11 -0
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +11 -0
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +88 -1
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +55 -19
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +5 -4
- package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +7 -0
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +8 -8
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +5 -1
- package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +385 -0
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +24 -1
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +31 -0
- package/node_modules/got/dist/source/as-promise/parse-body.d.ts +1 -1
- package/node_modules/got/dist/source/as-promise/types.js +2 -0
- package/node_modules/got/dist/source/core/index.d.ts +1 -1
- package/node_modules/got/dist/source/core/index.js +9 -3
- package/node_modules/got/dist/source/types.d.ts +14 -12
- package/node_modules/got/package.json +2 -2
- package/node_modules/got/readme.md +11 -10
- package/node_modules/keyv/LICENSE +1 -1
- package/node_modules/keyv/README.md +12 -10
- package/node_modules/keyv/package.json +17 -12
- package/node_modules/keyv/src/index.js +14 -16
- package/package.json +38 -38
package/lib/index.js
CHANGED
|
@@ -68,7 +68,7 @@ class DockerImageName {
|
|
|
68
68
|
}
|
|
69
69
|
exports.DockerImageName = DockerImageName;
|
|
70
70
|
_a = JSII_RTTI_SYMBOL_1;
|
|
71
|
-
DockerImageName[_a] = { fqn: "cdk-ecr-deployment.DockerImageName", version: "0.0.
|
|
71
|
+
DockerImageName[_a] = { fqn: "cdk-ecr-deployment.DockerImageName", version: "0.0.83" };
|
|
72
72
|
/**
|
|
73
73
|
* @stability stable
|
|
74
74
|
*/
|
|
@@ -94,7 +94,7 @@ class S3ArchiveName {
|
|
|
94
94
|
}
|
|
95
95
|
exports.S3ArchiveName = S3ArchiveName;
|
|
96
96
|
_b = JSII_RTTI_SYMBOL_1;
|
|
97
|
-
S3ArchiveName[_b] = { fqn: "cdk-ecr-deployment.S3ArchiveName", version: "0.0.
|
|
97
|
+
S3ArchiveName[_b] = { fqn: "cdk-ecr-deployment.S3ArchiveName", version: "0.0.83" };
|
|
98
98
|
/**
|
|
99
99
|
* @stability stable
|
|
100
100
|
*/
|
|
@@ -177,5 +177,5 @@ class ECRDeployment extends core_1.Construct {
|
|
|
177
177
|
}
|
|
178
178
|
exports.ECRDeployment = ECRDeployment;
|
|
179
179
|
_c = JSII_RTTI_SYMBOL_1;
|
|
180
|
-
ECRDeployment[_c] = { fqn: "cdk-ecr-deployment.ECRDeployment", version: "0.0.
|
|
180
|
+
ECRDeployment[_c] = { fqn: "cdk-ecr-deployment.ECRDeployment", version: "0.0.83" };
|
|
181
181
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxxRUFBcUU7QUFDckUsc0NBQXNDO0FBR3RDLCtDQUErQztBQUMvQyw2QkFBNkI7QUFFN0Isd0NBQXdDO0FBQ3hDLDhDQUE4QztBQUM5QyxxQ0FBcUM7QUFHckMsOERBQThEO0FBQzlELHdDQUEwRTtBQWlDMUUsU0FBUyxPQUFPO0lBQ2QsSUFBSSxDQUFDLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxFQUFFLElBQUksT0FBTyxDQUFDLEdBQUcsQ0FBQyxrQkFBa0IsQ0FBQyxFQUFFO1FBQ3ZELElBQUk7WUFDRixPQUFPLENBQUMsR0FBRyxDQUFDLDRCQUE0QixDQUFDLENBQUM7WUFFMUMsTUFBTSxhQUFhLEdBQUcsSUFBSSxDQUFDLElBQUksQ0FBQyxTQUFTLEVBQUUsc0JBQXNCLENBQUMsQ0FBQztZQUNuRSxNQUFNLFlBQVksR0FBRy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gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgbWVtb3J5TGltaXQ/OiBudW1iZXI7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSByb2xlPzogaWFtLklSb2xlO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgdnBjPzogZWMyLklWcGM7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IHZwY1N1Ym5ldHM/OiBlYzIuU3VibmV0U2VsZWN0aW9uO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgZW52aXJvbm1lbnQ/OiB7IFtrZXk6IHN0cmluZ106IHN0cmluZyB9O1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIElJbWFnZU5hbWUge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSB1cmk6IHN0cmluZztcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIGNyZWRzPzogc3RyaW5nO1xufVxuXG5mdW5jdGlvbiBnZXRDb2RlKCk6IGxhbWJkYS5Bc3NldENvZGUge1xuICBpZiAoIShwcm9jZXNzLmVudi5DSSB8fCBwcm9jZXNzLmVudi5OT19QUkVCVUlMVF9MQU1CREEpKSB7XG4gICAgdHJ5IHtcbiAgICAgIGNvbnNvbGUubG9nKCdUcnkgdG8gZ2V0IHByZWJ1aWx0IGxhbWJkYScpO1xuXG4gICAgICBjb25zdCBpbnN0YWxsU2NyaXB0ID0gcGF0aC5qb2luKF9fZGlybmFtZSwgJy4uL2xhbWJkYS9pbnN0YWxsLmpzJyk7XG4gICAgICBjb25zdCBwcmVidWlsdFBhdGggPSBwYXRoLmpvaW4oX19kaXJuYW1lLCAnLi4vbGFtYmRhL291dCcpO1xuICAgICAgY2hpbGRfcHJvY2Vzcy5leGVjU3luYyhgJHtwcm9jZXNzLmFyZ3YwfSAke2luc3RhbGxTY3JpcHR9ICR7cHJlYnVpbHRQYXRofWApO1xuXG4gICAgICByZXR1cm4gbGFtYmRhLkNvZGUuZnJvbUFzc2V0KHByZWJ1aWx0UGF0aCk7XG4gICAgfSBjYXRjaCAoZXJyKSB7XG4gICAgICBjb25zb2xlLndhcm4oYENhbiBub3QgZ2V0IHByZWJ1aWx0IGxhbWJkYTogJHtlcnJ9YCk7XG4gICAgfVxuICB9XG5cbiAgY29uc29sZS5sb2coJ0J1aWxkIGxhbWJkYSBmcm9tIHNjcmF0Y2gnKTtcblxuICByZXR1cm4gbGFtYmRhLkNvZGUuZnJvbUFzc2V0KHBhdGguam9pbihfX2Rpcm5hbWUsICc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Y3VzdG9tIG1lbW9yeSBsaW1pdCwgZGVmaW5lIGFub3RoZXIgc2luZ2xldG9uIGhhbmRsZXJcbiAgICAvLyB3aXRoIHRoaXMgY29uZmlndXJhdGlvbi4gb3RoZXJ3aXNlLCBpdCB3b24ndCBiZSBwb3NzaWJsZSB0byB1c2UgbXVsdGlwbGVcbiAgICAvLyBjb25maWd1cmF0aW9ucyBzaW5jZSB3ZSBoYXZlIGEgc2luZ2xldG9uLlxuICAgIGlmIChtZW1vcnlMaW1pdCkge1xuICAgICAgaWYgKGNkay5Ub2tlbi5pc1VucmVzb2x2ZWQobWVtb3J5TGltaXQpKSB7XG4gICAgICAgIHRocm93IG5ldyBFcnJvcignQ2FuXFwndCB1c2UgdG9rZW5zIHdoZW4gc3BlY2lmeWluZyBcIm1lbW9yeUxpbWl0XCIgc2luY2Ugd2UgdXNlIGl0IHRvIGlkZW50aWZ5IHRoZSBzaW5nbGV0b24gY3VzdG9tIHJlc291cmNlIGhhbmRsZXInKTtcbiAgICAgIH1cblxuICAgICAgdXVpZCArPSBgLSR7bWVtb3J5TGltaXQudG9TdHJpbmcoKX1NaUJgO1xuICAgIH1cblxuICAgIHJldHVybiB1dWlkO1xuICB9XG59XG4iXX0=
|
|
@@ -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: Tue,
|
|
11
|
+
* Last updated: Tue, 30 Nov 2021 01:01:04 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), [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), [
|
|
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), [Surasak Chaisurin](https://github.com/Ryan-Willpower), [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).
|
|
@@ -789,6 +789,7 @@ declare module 'child_process' {
|
|
|
789
789
|
function spawn(command: string, args: ReadonlyArray<string>, options: SpawnOptions): ChildProcess;
|
|
790
790
|
interface ExecOptions extends CommonOptions {
|
|
791
791
|
shell?: string | undefined;
|
|
792
|
+
signal?: AbortSignal | undefined;
|
|
792
793
|
maxBuffer?: number | undefined;
|
|
793
794
|
killSignal?: NodeJS.Signals | number | undefined;
|
|
794
795
|
}
|
|
@@ -1175,7 +1175,7 @@ declare module 'crypto' {
|
|
|
1175
1175
|
* generateKeySync
|
|
1176
1176
|
* } = await import('crypto');
|
|
1177
1177
|
*
|
|
1178
|
-
* const key = generateKeySync('hmac', 64);
|
|
1178
|
+
* const key = generateKeySync('hmac', { length: 64 });
|
|
1179
1179
|
* console.log(key.export().toString('hex')); // e89..........41e
|
|
1180
1180
|
* ```
|
|
1181
1181
|
* @since v15.0.0
|
|
@@ -166,17 +166,17 @@ declare module 'dgram' {
|
|
|
166
166
|
* @since v0.1.99
|
|
167
167
|
* @param callback with no parameters. Called when binding is complete.
|
|
168
168
|
*/
|
|
169
|
-
bind(port?: number, address?: string, callback?: () => void):
|
|
170
|
-
bind(port?: number, callback?: () => void):
|
|
171
|
-
bind(callback?: () => void):
|
|
172
|
-
bind(options: BindOptions, callback?: () => void):
|
|
169
|
+
bind(port?: number, address?: string, callback?: () => void): this;
|
|
170
|
+
bind(port?: number, callback?: () => void): this;
|
|
171
|
+
bind(callback?: () => void): this;
|
|
172
|
+
bind(options: BindOptions, callback?: () => void): this;
|
|
173
173
|
/**
|
|
174
174
|
* Close the underlying socket and stop listening for data on it. If a callback is
|
|
175
175
|
* provided, it is added as a listener for the `'close'` event.
|
|
176
176
|
* @since v0.1.99
|
|
177
177
|
* @param callback Called when the socket has been closed.
|
|
178
178
|
*/
|
|
179
|
-
close(callback?: () => void):
|
|
179
|
+
close(callback?: () => void): this;
|
|
180
180
|
/**
|
|
181
181
|
* Associates the `dgram.Socket` to a remote address and port. Every
|
|
182
182
|
* message sent by this handle is automatically sent to that destination. Also,
|
|
@@ -414,7 +414,7 @@ declare module 'dgram' {
|
|
|
414
414
|
* This method throws `EBADF` if called on an unbound socket.
|
|
415
415
|
* @since v0.3.8
|
|
416
416
|
*/
|
|
417
|
-
setMulticastLoopback(flag: boolean):
|
|
417
|
+
setMulticastLoopback(flag: boolean): boolean;
|
|
418
418
|
/**
|
|
419
419
|
* Sets the `IP_MULTICAST_TTL` socket option. While TTL generally stands for
|
|
420
420
|
* "Time to Live", in this context it specifies the number of IP hops that a
|
|
@@ -427,7 +427,7 @@ declare module 'dgram' {
|
|
|
427
427
|
* This method throws `EBADF` if called on an unbound socket.
|
|
428
428
|
* @since v0.3.8
|
|
429
429
|
*/
|
|
430
|
-
setMulticastTTL(ttl: number):
|
|
430
|
+
setMulticastTTL(ttl: number): number;
|
|
431
431
|
/**
|
|
432
432
|
* Sets the `SO_RCVBUF` socket option. Sets the maximum socket receive buffer
|
|
433
433
|
* in bytes.
|
|
@@ -457,7 +457,7 @@ declare module 'dgram' {
|
|
|
457
457
|
* This method throws `EBADF` if called on an unbound socket.
|
|
458
458
|
* @since v0.1.101
|
|
459
459
|
*/
|
|
460
|
-
setTTL(ttl: number):
|
|
460
|
+
setTTL(ttl: number): number;
|
|
461
461
|
/**
|
|
462
462
|
* By default, binding a socket will cause it to block the Node.js process from
|
|
463
463
|
* exiting as long as the socket is open. The `socket.unref()` method can be used
|
package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ declare module 'diagnostics_channel' {
|
|
|
37
37
|
* // There are subscribers, prepare and publish message
|
|
38
38
|
* }
|
|
39
39
|
* ```
|
|
40
|
+
* @since v15.1.0, v14.17.0
|
|
40
41
|
* @param name The channel name
|
|
41
42
|
* @return If there are active subscribers
|
|
42
43
|
*/
|
|
@@ -51,6 +52,7 @@ declare module 'diagnostics_channel' {
|
|
|
51
52
|
*
|
|
52
53
|
* const channel = diagnostics_channel.channel('my-channel');
|
|
53
54
|
* ```
|
|
55
|
+
* @since v15.1.0, v14.17.0
|
|
54
56
|
* @param name The channel name
|
|
55
57
|
* @return The named channel object
|
|
56
58
|
*/
|
|
@@ -63,6 +65,7 @@ declare module 'diagnostics_channel' {
|
|
|
63
65
|
* lookups at publish time, enabling very fast publish speeds and allowing
|
|
64
66
|
* for heavy use while incurring very minimal cost. Channels are created with {@link channel}, constructing a channel directly
|
|
65
67
|
* with `new Channel(name)` is not supported.
|
|
68
|
+
* @since v15.1.0, v14.17.0
|
|
66
69
|
*/
|
|
67
70
|
class Channel {
|
|
68
71
|
readonly name: string;
|
|
@@ -82,6 +85,7 @@ declare module 'diagnostics_channel' {
|
|
|
82
85
|
* // There are subscribers, prepare and publish message
|
|
83
86
|
* }
|
|
84
87
|
* ```
|
|
88
|
+
* @since v15.1.0, v14.17.0
|
|
85
89
|
*/
|
|
86
90
|
readonly hasSubscribers: boolean;
|
|
87
91
|
private constructor(name: string);
|
|
@@ -99,6 +103,7 @@ declare module 'diagnostics_channel' {
|
|
|
99
103
|
* // Received data
|
|
100
104
|
* });
|
|
101
105
|
* ```
|
|
106
|
+
* @since v15.1.0, v14.17.0
|
|
102
107
|
* @param onMessage The handler to receive channel messages
|
|
103
108
|
*/
|
|
104
109
|
subscribe(onMessage: ChannelListener): void;
|
|
@@ -118,6 +123,7 @@ declare module 'diagnostics_channel' {
|
|
|
118
123
|
*
|
|
119
124
|
* channel.unsubscribe(onMessage);
|
|
120
125
|
* ```
|
|
126
|
+
* @since v15.1.0, v14.17.0
|
|
121
127
|
* @param onMessage The previous subscribed handler to remove
|
|
122
128
|
*/
|
|
123
129
|
unsubscribe(onMessage: ChannelListener): void;
|
|
@@ -331,6 +331,17 @@ declare module 'dns/promises' {
|
|
|
331
331
|
* @param servers array of `RFC 5952` formatted addresses
|
|
332
332
|
*/
|
|
333
333
|
function setServers(servers: ReadonlyArray<string>): void;
|
|
334
|
+
/**
|
|
335
|
+
* Set the default value of `verbatim` in {@link lookup}. The value could be:
|
|
336
|
+
* - `ipv4first`: sets default `verbatim` `false`.
|
|
337
|
+
* - `verbatim`: sets default `verbatim` `true`.
|
|
338
|
+
*
|
|
339
|
+
* The default is `ipv4first` and {@link setDefaultResultOrder} have higher priority than `--dns-result-order`.
|
|
340
|
+
* When using worker threads, {@link setDefaultResultOrder} from the main thread won't affect the default dns orders in workers.
|
|
341
|
+
* @since v14.18.0
|
|
342
|
+
* @param order must be 'ipv4first' or 'verbatim'.
|
|
343
|
+
*/
|
|
344
|
+
function setDefaultResultOrder(order: 'ipv4first' | 'verbatim'): void;
|
|
334
345
|
class Resolver {
|
|
335
346
|
constructor(options?: ResolverOptions);
|
|
336
347
|
cancel(): void;
|
|
@@ -526,6 +526,17 @@ declare module 'dns' {
|
|
|
526
526
|
* @since v0.11.3
|
|
527
527
|
*/
|
|
528
528
|
export function getServers(): string[];
|
|
529
|
+
/**
|
|
530
|
+
* Set the default value of `verbatim` in {@link lookup}. The value could be:
|
|
531
|
+
* - `ipv4first`: sets default `verbatim` `false`.
|
|
532
|
+
* - `verbatim`: sets default `verbatim` `true`.
|
|
533
|
+
*
|
|
534
|
+
* The default is `ipv4first` and {@link setDefaultResultOrder} have higher priority than `--dns-result-order`.
|
|
535
|
+
* When using worker threads, {@link setDefaultResultOrder} from the main thread won't affect the default dns orders in workers.
|
|
536
|
+
* @since v14.18.0
|
|
537
|
+
* @param order must be 'ipv4first' or 'verbatim'.
|
|
538
|
+
*/
|
|
539
|
+
export function setDefaultResultOrder(order: 'ipv4first' | 'verbatim'): void;
|
|
529
540
|
// Error codes
|
|
530
541
|
export const NODATA: string;
|
|
531
542
|
export const FORMERR: string;
|
|
@@ -31,6 +31,8 @@ declare module 'fs/promises' {
|
|
|
31
31
|
WatchOptions,
|
|
32
32
|
WatchEventType,
|
|
33
33
|
CopyOptions,
|
|
34
|
+
ReadStream,
|
|
35
|
+
WriteStream,
|
|
34
36
|
} from 'node:fs';
|
|
35
37
|
interface FileChangeInfo<T extends string | Buffer> {
|
|
36
38
|
eventType: WatchEventType;
|
|
@@ -59,6 +61,20 @@ declare module 'fs/promises' {
|
|
|
59
61
|
length?: number | null;
|
|
60
62
|
position?: number | null;
|
|
61
63
|
}
|
|
64
|
+
interface CreateReadStreamOptions {
|
|
65
|
+
encoding?: BufferEncoding | null | undefined;
|
|
66
|
+
autoClose?: boolean | undefined;
|
|
67
|
+
emitClose?: boolean | undefined;
|
|
68
|
+
start?: number | undefined;
|
|
69
|
+
end?: number | undefined;
|
|
70
|
+
highWaterMark?: number | undefined;
|
|
71
|
+
}
|
|
72
|
+
interface CreateWriteStreamOptions {
|
|
73
|
+
encoding?: BufferEncoding | null | undefined;
|
|
74
|
+
autoClose?: boolean | undefined;
|
|
75
|
+
emitClose?: boolean | undefined;
|
|
76
|
+
start?: number | undefined;
|
|
77
|
+
}
|
|
62
78
|
// TODO: Add `EventEmitter` close
|
|
63
79
|
interface FileHandle {
|
|
64
80
|
/**
|
|
@@ -90,6 +106,77 @@ declare module 'fs/promises' {
|
|
|
90
106
|
* @return Fulfills with `undefined` upon success.
|
|
91
107
|
*/
|
|
92
108
|
chmod(mode: Mode): Promise<void>;
|
|
109
|
+
/**
|
|
110
|
+
* Unlike the 16 kb default `highWaterMark` for a `stream.Readable`, the stream
|
|
111
|
+
* returned by this method has a default `highWaterMark` of 64 kb.
|
|
112
|
+
*
|
|
113
|
+
* `options` can include `start` and `end` values to read a range of bytes from
|
|
114
|
+
* the file instead of the entire file. Both `start` and `end` are inclusive and
|
|
115
|
+
* start counting at 0, allowed values are in the
|
|
116
|
+
* \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. If `start` is
|
|
117
|
+
* omitted or `undefined`, `filehandle.createReadStream()` reads sequentially from
|
|
118
|
+
* the current file position. The `encoding` can be any one of those accepted by `Buffer`.
|
|
119
|
+
*
|
|
120
|
+
* If the `FileHandle` points to a character device that only supports blocking
|
|
121
|
+
* reads (such as keyboard or sound card), read operations do not finish until data
|
|
122
|
+
* is available. This can prevent the process from exiting and the stream from
|
|
123
|
+
* closing naturally.
|
|
124
|
+
*
|
|
125
|
+
* By default, the stream will emit a `'close'` event after it has been
|
|
126
|
+
* destroyed. Set the `emitClose` option to `false` to change this behavior.
|
|
127
|
+
*
|
|
128
|
+
* ```js
|
|
129
|
+
* import { open } from 'fs/promises';
|
|
130
|
+
*
|
|
131
|
+
* const fd = await open('/dev/input/event0');
|
|
132
|
+
* // Create a stream from some character device.
|
|
133
|
+
* const stream = fd.createReadStream();
|
|
134
|
+
* setTimeout(() => {
|
|
135
|
+
* stream.close(); // This may not close the stream.
|
|
136
|
+
* // Artificially marking end-of-stream, as if the underlying resource had
|
|
137
|
+
* // indicated end-of-file by itself, allows the stream to close.
|
|
138
|
+
* // This does not cancel pending read operations, and if there is such an
|
|
139
|
+
* // operation, the process may still not be able to exit successfully
|
|
140
|
+
* // until it finishes.
|
|
141
|
+
* stream.push(null);
|
|
142
|
+
* stream.read(0);
|
|
143
|
+
* }, 100);
|
|
144
|
+
* ```
|
|
145
|
+
*
|
|
146
|
+
* If `autoClose` is false, then the file descriptor won't be closed, even if
|
|
147
|
+
* there's an error. It is the application's responsibility to close it and make
|
|
148
|
+
* sure there's no file descriptor leak. If `autoClose` is set to true (default
|
|
149
|
+
* behavior), on `'error'` or `'end'` the file descriptor will be closed
|
|
150
|
+
* automatically.
|
|
151
|
+
*
|
|
152
|
+
* An example to read the last 10 bytes of a file which is 100 bytes long:
|
|
153
|
+
*
|
|
154
|
+
* ```js
|
|
155
|
+
* import { open } from 'fs/promises';
|
|
156
|
+
*
|
|
157
|
+
* const fd = await open('sample.txt');
|
|
158
|
+
* fd.createReadStream({ start: 90, end: 99 });
|
|
159
|
+
* ```
|
|
160
|
+
* @since v16.11.0
|
|
161
|
+
*/
|
|
162
|
+
createReadStream(options?: CreateReadStreamOptions): ReadStream;
|
|
163
|
+
/**
|
|
164
|
+
* `options` may also include a `start` option to allow writing data at some
|
|
165
|
+
* position past the beginning of the file, allowed values are in the
|
|
166
|
+
* \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. Modifying a file rather than replacing
|
|
167
|
+
* it may require the `flags` `open` option to be set to `r+` rather than the
|
|
168
|
+
* default `r`. The `encoding` can be any one of those accepted by `Buffer`.
|
|
169
|
+
*
|
|
170
|
+
* If `autoClose` is set to true (default behavior) on `'error'` or `'finish'`the file descriptor will be closed automatically. If `autoClose` is false,
|
|
171
|
+
* then the file descriptor won't be closed, even if there's an error.
|
|
172
|
+
* It is the application's responsibility to close it and make sure there's no
|
|
173
|
+
* file descriptor leak.
|
|
174
|
+
*
|
|
175
|
+
* By default, the stream will emit a `'close'` event after it has been
|
|
176
|
+
* destroyed. Set the `emitClose` option to `false` to change this behavior.
|
|
177
|
+
* @since v16.11.0
|
|
178
|
+
*/
|
|
179
|
+
createWriteStream(options?: CreateWriteStreamOptions): WriteStream;
|
|
93
180
|
/**
|
|
94
181
|
* Forces all currently queued I/O operations associated with the file to the
|
|
95
182
|
* operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details.
|
|
@@ -928,7 +1015,7 @@ declare module 'fs/promises' {
|
|
|
928
1015
|
* @since v12.12.0
|
|
929
1016
|
* @return Fulfills with an {fs.Dir}.
|
|
930
1017
|
*/
|
|
931
|
-
function opendir(path:
|
|
1018
|
+
function opendir(path: PathLike, options?: OpenDirOptions): Promise<Dir>;
|
|
932
1019
|
/**
|
|
933
1020
|
* Returns an async iterator that watches for changes on `filename`, where `filename`is either a file or a directory.
|
|
934
1021
|
*
|
|
@@ -260,6 +260,29 @@ declare module 'fs' {
|
|
|
260
260
|
*/
|
|
261
261
|
readSync(): Dirent | null;
|
|
262
262
|
}
|
|
263
|
+
/**
|
|
264
|
+
* Class: fs.StatWatcher
|
|
265
|
+
* @since v14.3.0, v12.20.0
|
|
266
|
+
* Extends `EventEmitter`
|
|
267
|
+
* A successful call to {@link watchFile} method will return a new fs.StatWatcher object.
|
|
268
|
+
*/
|
|
269
|
+
export interface StatWatcher extends EventEmitter {
|
|
270
|
+
/**
|
|
271
|
+
* @since v14.3.0, v12.20.0
|
|
272
|
+
* When called, requests that the Node.js event loop not exit so long as the `fs.StatWatcher` is active.
|
|
273
|
+
* Calling `watcher.ref()` multiple times will have no effect.
|
|
274
|
+
* By default, all `fs.StatWatcher`` objects are "ref'ed", making it normally unnecessary to call `watcher.ref()`
|
|
275
|
+
* unless `watcher.unref()` had been called previously.
|
|
276
|
+
*/
|
|
277
|
+
ref(): this;
|
|
278
|
+
/**
|
|
279
|
+
* @since v14.3.0, v12.20.0
|
|
280
|
+
* When called, the active `fs.StatWatcher`` object will not require the Node.js event loop to remain active.
|
|
281
|
+
* If there is no other activity keeping the event loop running, the process may exit before the `fs.StatWatcher`` object's callback is invoked.
|
|
282
|
+
* `Calling watcher.unref()` multiple times will have no effect.
|
|
283
|
+
*/
|
|
284
|
+
unref(): this;
|
|
285
|
+
}
|
|
263
286
|
export interface FSWatcher extends EventEmitter {
|
|
264
287
|
/**
|
|
265
288
|
* Stop watching for changes on the given `fs.FSWatcher`. Once stopped, the `fs.FSWatcher` object is no longer usable.
|
|
@@ -297,7 +320,7 @@ declare module 'fs' {
|
|
|
297
320
|
* @since v0.1.93
|
|
298
321
|
*/
|
|
299
322
|
export class ReadStream extends stream.Readable {
|
|
300
|
-
close(): void;
|
|
323
|
+
close(callback?: (err?: NodeJS.ErrnoException | null) => void): void;
|
|
301
324
|
/**
|
|
302
325
|
* The number of bytes that have been read so far.
|
|
303
326
|
* @since v6.4.0
|
|
@@ -306,7 +329,7 @@ declare module 'fs' {
|
|
|
306
329
|
/**
|
|
307
330
|
* The path to the file the stream is reading from as specified in the first
|
|
308
331
|
* argument to `fs.createReadStream()`. If `path` is passed as a string, then`readStream.path` will be a string. If `path` is passed as a `Buffer`, then`readStream.path` will be a
|
|
309
|
-
* `Buffer`.
|
|
332
|
+
* `Buffer`. If `fd` is specified, then`readStream.path` will be `undefined`.
|
|
310
333
|
* @since v0.1.93
|
|
311
334
|
*/
|
|
312
335
|
path: string | Buffer;
|
|
@@ -385,7 +408,7 @@ declare module 'fs' {
|
|
|
385
408
|
* callback that will be executed once the `writeStream`is closed.
|
|
386
409
|
* @since v0.9.4
|
|
387
410
|
*/
|
|
388
|
-
close(): void;
|
|
411
|
+
close(callback?: (err?: NodeJS.ErrnoException | null) => void): void;
|
|
389
412
|
/**
|
|
390
413
|
* The number of bytes written so far. Does not include data that is still queued
|
|
391
414
|
* for writing.
|
|
@@ -768,6 +791,7 @@ declare module 'fs' {
|
|
|
768
791
|
* @deprecated Since v0.4.7
|
|
769
792
|
*/
|
|
770
793
|
export function lchmod(path: PathLike, mode: Mode, callback: NoParamCallback): void;
|
|
794
|
+
/** @deprecated */
|
|
771
795
|
export namespace lchmod {
|
|
772
796
|
/**
|
|
773
797
|
* Asynchronous lchmod(2) - Change permissions of a file. Does not dereference symbolic links.
|
|
@@ -2762,7 +2786,7 @@ declare module 'fs' {
|
|
|
2762
2786
|
* the numeric values in these objects are specified as `BigInt`s.
|
|
2763
2787
|
*
|
|
2764
2788
|
* To be notified when the file was modified, not just accessed, it is necessary
|
|
2765
|
-
* to compare `curr.
|
|
2789
|
+
* to compare `curr.mtimeMs` and `prev.mtimeMs`.
|
|
2766
2790
|
*
|
|
2767
2791
|
* When an `fs.watchFile` operation results in an `ENOENT` error, it
|
|
2768
2792
|
* will invoke the listener once, with all the fields zeroed (or, for dates, the
|
|
@@ -2783,21 +2807,34 @@ declare module 'fs' {
|
|
|
2783
2807
|
* * the file is renamed and then renamed a second time back to its original name
|
|
2784
2808
|
* @since v0.1.31
|
|
2785
2809
|
*/
|
|
2810
|
+
export interface WatchFileOptions {
|
|
2811
|
+
bigint?: boolean | undefined;
|
|
2812
|
+
persistent?: boolean | undefined;
|
|
2813
|
+
interval?: number | undefined;
|
|
2814
|
+
}
|
|
2786
2815
|
export function watchFile(
|
|
2787
2816
|
filename: PathLike,
|
|
2788
2817
|
options:
|
|
2789
|
-
| {
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
}
|
|
2818
|
+
| (WatchFileOptions & {
|
|
2819
|
+
bigint?: false | undefined;
|
|
2820
|
+
})
|
|
2793
2821
|
| undefined,
|
|
2794
2822
|
listener: (curr: Stats, prev: Stats) => void
|
|
2795
|
-
):
|
|
2823
|
+
): StatWatcher;
|
|
2824
|
+
export function watchFile(
|
|
2825
|
+
filename: PathLike,
|
|
2826
|
+
options:
|
|
2827
|
+
| (WatchFileOptions & {
|
|
2828
|
+
bigint: true;
|
|
2829
|
+
})
|
|
2830
|
+
| undefined,
|
|
2831
|
+
listener: (curr: BigIntStats, prev: BigIntStats) => void
|
|
2832
|
+
): StatWatcher;
|
|
2796
2833
|
/**
|
|
2797
2834
|
* Watch for changes on `filename`. The callback `listener` will be called each time the file is accessed.
|
|
2798
2835
|
* @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
|
|
2799
2836
|
*/
|
|
2800
|
-
export function watchFile(filename: PathLike, listener: (curr: Stats, prev: Stats) => void):
|
|
2837
|
+
export function watchFile(filename: PathLike, listener: (curr: Stats, prev: Stats) => void): StatWatcher;
|
|
2801
2838
|
/**
|
|
2802
2839
|
* Stop watching for changes on `filename`. If `listener` is specified, only that
|
|
2803
2840
|
* particular listener is removed. Otherwise, _all_ listeners are removed,
|
|
@@ -3000,6 +3037,7 @@ declare module 'fs' {
|
|
|
3000
3037
|
* @deprecated Since v1.0.0 - Use {@link stat} or {@link access} instead.
|
|
3001
3038
|
*/
|
|
3002
3039
|
export function exists(path: PathLike, callback: (exists: boolean) => void): void;
|
|
3040
|
+
/** @deprecated */
|
|
3003
3041
|
export namespace exists {
|
|
3004
3042
|
/**
|
|
3005
3043
|
* @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
|
|
@@ -3360,7 +3398,7 @@ declare module 'fs' {
|
|
|
3360
3398
|
end?: number | undefined;
|
|
3361
3399
|
}
|
|
3362
3400
|
/**
|
|
3363
|
-
* Unlike the 16 kb default `highWaterMark` for a
|
|
3401
|
+
* Unlike the 16 kb default `highWaterMark` for a `stream.Readable`, the stream
|
|
3364
3402
|
* returned by this method has a default `highWaterMark` of 64 kb.
|
|
3365
3403
|
*
|
|
3366
3404
|
* `options` can include `start` and `end` values to read a range of bytes from
|
|
@@ -3380,7 +3418,7 @@ declare module 'fs' {
|
|
|
3380
3418
|
* closing naturally.
|
|
3381
3419
|
*
|
|
3382
3420
|
* By default, the stream will emit a `'close'` event after it has been
|
|
3383
|
-
* destroyed
|
|
3421
|
+
* destroyed. Set the `emitClose` option to `false` to change this behavior.
|
|
3384
3422
|
*
|
|
3385
3423
|
* By providing the `fs` option, it is possible to override the corresponding `fs`implementations for `open`, `read`, and `close`. When providing the `fs` option,
|
|
3386
3424
|
* an override for `read` is required. If no `fd` is provided, an override for`open` is also required. If `autoClose` is `true`, an override for `close` is
|
|
@@ -3422,7 +3460,6 @@ declare module 'fs' {
|
|
|
3422
3460
|
*
|
|
3423
3461
|
* If `options` is a string, then it specifies the encoding.
|
|
3424
3462
|
* @since v0.1.31
|
|
3425
|
-
* @return See `Readable Stream`.
|
|
3426
3463
|
*/
|
|
3427
3464
|
export function createReadStream(path: PathLike, options?: BufferEncoding | ReadStreamOptions): ReadStream;
|
|
3428
3465
|
/**
|
|
@@ -3438,7 +3475,7 @@ declare module 'fs' {
|
|
|
3438
3475
|
* file descriptor leak.
|
|
3439
3476
|
*
|
|
3440
3477
|
* By default, the stream will emit a `'close'` event after it has been
|
|
3441
|
-
* destroyed
|
|
3478
|
+
* destroyed. Set the `emitClose` option to `false` to change this behavior.
|
|
3442
3479
|
*
|
|
3443
3480
|
* By providing the `fs` option it is possible to override the corresponding `fs`implementations for `open`, `write`, `writev` and `close`. Overriding `write()`without `writev()` can reduce
|
|
3444
3481
|
* performance as some optimizations (`_writev()`)
|
|
@@ -3451,7 +3488,6 @@ declare module 'fs' {
|
|
|
3451
3488
|
*
|
|
3452
3489
|
* If `options` is a string, then it specifies the encoding.
|
|
3453
3490
|
* @since v0.1.31
|
|
3454
|
-
* @return See `Writable Stream`.
|
|
3455
3491
|
*/
|
|
3456
3492
|
export function createWriteStream(path: PathLike, options?: BufferEncoding | StreamOptions): WriteStream;
|
|
3457
3493
|
/**
|
|
@@ -3649,7 +3685,7 @@ declare module 'fs' {
|
|
|
3649
3685
|
* directory and subsequent read operations.
|
|
3650
3686
|
* @since v12.12.0
|
|
3651
3687
|
*/
|
|
3652
|
-
export function opendirSync(path:
|
|
3688
|
+
export function opendirSync(path: PathLike, options?: OpenDirOptions): Dir;
|
|
3653
3689
|
/**
|
|
3654
3690
|
* Asynchronously open a directory. See the POSIX [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html) documentation for
|
|
3655
3691
|
* more details.
|
|
@@ -3661,10 +3697,10 @@ declare module 'fs' {
|
|
|
3661
3697
|
* directory and subsequent read operations.
|
|
3662
3698
|
* @since v12.12.0
|
|
3663
3699
|
*/
|
|
3664
|
-
export function opendir(path:
|
|
3665
|
-
export function opendir(path:
|
|
3700
|
+
export function opendir(path: PathLike, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
|
|
3701
|
+
export function opendir(path: PathLike, options: OpenDirOptions, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
|
|
3666
3702
|
export namespace opendir {
|
|
3667
|
-
function __promisify__(path:
|
|
3703
|
+
function __promisify__(path: PathLike, options?: OpenDirOptions): Promise<Dir>;
|
|
3668
3704
|
}
|
|
3669
3705
|
export interface BigIntStats extends StatsBase<bigint> {
|
|
3670
3706
|
atimeNs: bigint;
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
declare module 'http' {
|
|
43
43
|
import * as stream from 'node:stream';
|
|
44
44
|
import { URL } from 'node:url';
|
|
45
|
-
import { Socket, Server as NetServer } from 'node:net';
|
|
45
|
+
import { TcpSocketConnectOpts, Socket, Server as NetServer, LookupFunction } from 'node:net';
|
|
46
46
|
// incoming headers will never contain number
|
|
47
47
|
interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
|
|
48
48
|
accept?: string | undefined;
|
|
@@ -136,6 +136,7 @@ declare module 'http' {
|
|
|
136
136
|
setHost?: boolean | undefined;
|
|
137
137
|
// https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278
|
|
138
138
|
createConnection?: ((options: ClientRequestArgs, oncreate: (err: Error, socket: Socket) => void) => Socket) | undefined;
|
|
139
|
+
lookup?: LookupFunction | undefined;
|
|
139
140
|
}
|
|
140
141
|
interface ServerOptions {
|
|
141
142
|
IncomingMessage?: typeof IncomingMessage | undefined;
|
|
@@ -187,9 +188,9 @@ declare module 'http' {
|
|
|
187
188
|
* The maximum number of requests socket can handle
|
|
188
189
|
* before closing keep alive connection.
|
|
189
190
|
*
|
|
190
|
-
* A value of `
|
|
191
|
+
* A value of `0` will disable the limit.
|
|
191
192
|
*
|
|
192
|
-
* When limit is
|
|
193
|
+
* When the limit is reached it will set the `Connection` header value to `close`,
|
|
193
194
|
* but will not actually close the connection, subsequent requests sent
|
|
194
195
|
* after the limit is reached will get `503 Service Unavailable` as a response.
|
|
195
196
|
* @since v16.10.0
|
|
@@ -950,7 +951,7 @@ declare module 'http' {
|
|
|
950
951
|
*/
|
|
951
952
|
destroy(error?: Error): void;
|
|
952
953
|
}
|
|
953
|
-
interface AgentOptions {
|
|
954
|
+
interface AgentOptions extends Partial<TcpSocketConnectOpts> {
|
|
954
955
|
/**
|
|
955
956
|
* Keep sockets around in a pool to be used by other requests in the future. Default = false
|
|
956
957
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for non-npm package Node.js 16.
|
|
1
|
+
// Type definitions for non-npm package Node.js 16.11
|
|
2
2
|
// Project: https://nodejs.org/
|
|
3
3
|
// Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
|
|
4
4
|
// DefinitelyTyped <https://github.com/DefinitelyTyped>
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
// Nikita Galkin <https://github.com/galkin>
|
|
22
22
|
// Parambir Singh <https://github.com/parambirs>
|
|
23
23
|
// Sebastian Silbermann <https://github.com/eps1lon>
|
|
24
|
+
// Seth Westphal <https://github.com/westy92>
|
|
24
25
|
// Simon Schick <https://github.com/SimonSchick>
|
|
25
26
|
// Thomas den Hollander <https://github.com/ThomasdenH>
|
|
26
27
|
// Wilco Bakker <https://github.com/WilcoBakker>
|
|
@@ -30,7 +31,6 @@
|
|
|
30
31
|
// Thanik Bhongbhibhat <https://github.com/bhongy>
|
|
31
32
|
// Marcin Kopacz <https://github.com/chyzwar>
|
|
32
33
|
// Trivikram Kamat <https://github.com/trivikr>
|
|
33
|
-
// Minh Son Nguyen <https://github.com/nguymin4>
|
|
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>
|
|
@@ -1778,6 +1778,13 @@ declare module 'inspector' {
|
|
|
1778
1778
|
* @since v8.0.0
|
|
1779
1779
|
*/
|
|
1780
1780
|
connect(): void;
|
|
1781
|
+
/**
|
|
1782
|
+
* Connects a session to the main thread inspector back-end.
|
|
1783
|
+
* An exception will be thrown if this API was not called on a Worker
|
|
1784
|
+
* thread.
|
|
1785
|
+
* @since 12.11.0
|
|
1786
|
+
*/
|
|
1787
|
+
connectToMainThread(): void;
|
|
1781
1788
|
/**
|
|
1782
1789
|
* Immediately close the session. All pending message callbacks will be called
|
|
1783
1790
|
* with an error. `session.connect()` will need to be called to be able to send
|
|
@@ -255,12 +255,12 @@ declare module 'net' {
|
|
|
255
255
|
* connects on `'192.168.1.1'`, the value of `socket.localAddress` would be`'192.168.1.1'`.
|
|
256
256
|
* @since v0.9.6
|
|
257
257
|
*/
|
|
258
|
-
readonly localAddress
|
|
258
|
+
readonly localAddress?: string;
|
|
259
259
|
/**
|
|
260
260
|
* The numeric representation of the local port. For example, `80` or `21`.
|
|
261
261
|
* @since v0.9.6
|
|
262
262
|
*/
|
|
263
|
-
readonly localPort
|
|
263
|
+
readonly localPort?: number;
|
|
264
264
|
/**
|
|
265
265
|
* The string representation of the remote IP address. For example,`'74.125.127.100'` or `'2001:4860:a005::68'`. Value may be `undefined` if
|
|
266
266
|
* the socket is destroyed (for example, if the client disconnected).
|