cdk-ecr-deployment 1.0.1 → 1.0.2
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 +1 -0
- package/.jsii +5 -4
- package/lib/index.js +3 -3
- 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 +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +7 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +9 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +12 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +17 -12
- package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +1 -1
- 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 +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +62 -11
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +20 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +4 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +11 -11
- package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +121 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +3 -65
- 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/string_decoder.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +58 -18
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.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 +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +7 -3
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +9 -9
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +12 -10
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +17 -12
- package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +1 -1
- 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 +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +62 -11
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +20 -3
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +4 -5
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +11 -11
- package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +121 -14
- package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +3 -65
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +58 -18
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/zlib.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 +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +7 -3
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +9 -9
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +12 -10
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +17 -12
- package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +1 -1
- 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 +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +62 -11
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +20 -3
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +4 -5
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +11 -11
- package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +121 -14
- package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +3 -65
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +58 -18
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +1 -1
- package/package.json +3 -3
package/.gitattributes
CHANGED
package/.jsii
CHANGED
|
@@ -668,7 +668,7 @@
|
|
|
668
668
|
"stability": "stable"
|
|
669
669
|
},
|
|
670
670
|
"homepage": "https://github.com/cdklabs/cdk-ecr-deployment",
|
|
671
|
-
"jsiiVersion": "1.
|
|
671
|
+
"jsiiVersion": "1.49.0 (build e322d87)",
|
|
672
672
|
"keywords": [
|
|
673
673
|
"cdk"
|
|
674
674
|
],
|
|
@@ -678,7 +678,8 @@
|
|
|
678
678
|
"pacmak": {
|
|
679
679
|
"hasDefaultInterfaces": true
|
|
680
680
|
}
|
|
681
|
-
}
|
|
681
|
+
},
|
|
682
|
+
"tscRootDir": "src"
|
|
682
683
|
},
|
|
683
684
|
"name": "cdk-ecr-deployment",
|
|
684
685
|
"readme": {
|
|
@@ -1096,6 +1097,6 @@
|
|
|
1096
1097
|
"symbolId": "src/index:S3ArchiveName"
|
|
1097
1098
|
}
|
|
1098
1099
|
},
|
|
1099
|
-
"version": "1.0.
|
|
1100
|
-
"fingerprint": "
|
|
1100
|
+
"version": "1.0.2",
|
|
1101
|
+
"fingerprint": "NcpoLF6T2oSvCxtP0DFAoKq6kBqHdTQ6+QosIejbpXo="
|
|
1101
1102
|
}
|
package/lib/index.js
CHANGED
|
@@ -50,7 +50,7 @@ class DockerImageName {
|
|
|
50
50
|
}
|
|
51
51
|
exports.DockerImageName = DockerImageName;
|
|
52
52
|
_a = JSII_RTTI_SYMBOL_1;
|
|
53
|
-
DockerImageName[_a] = { fqn: "cdk-ecr-deployment.DockerImageName", version: "1.0.
|
|
53
|
+
DockerImageName[_a] = { fqn: "cdk-ecr-deployment.DockerImageName", version: "1.0.2" };
|
|
54
54
|
/**
|
|
55
55
|
* @stability stable
|
|
56
56
|
*/
|
|
@@ -76,7 +76,7 @@ class S3ArchiveName {
|
|
|
76
76
|
}
|
|
77
77
|
exports.S3ArchiveName = S3ArchiveName;
|
|
78
78
|
_b = JSII_RTTI_SYMBOL_1;
|
|
79
|
-
S3ArchiveName[_b] = { fqn: "cdk-ecr-deployment.S3ArchiveName", version: "1.0.
|
|
79
|
+
S3ArchiveName[_b] = { fqn: "cdk-ecr-deployment.S3ArchiveName", version: "1.0.2" };
|
|
80
80
|
/**
|
|
81
81
|
* @stability stable
|
|
82
82
|
*/
|
|
@@ -159,5 +159,5 @@ class ECRDeployment extends core_1.Construct {
|
|
|
159
159
|
}
|
|
160
160
|
exports.ECRDeployment = ECRDeployment;
|
|
161
161
|
_c = JSII_RTTI_SYMBOL_1;
|
|
162
|
-
ECRDeployment[_c] = { fqn: "cdk-ecr-deployment.ECRDeployment", version: "1.0.
|
|
162
|
+
ECRDeployment[_c] = { fqn: "cdk-ecr-deployment.ECRDeployment", version: "1.0.2" };
|
|
163
163
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxxRUFBcUU7QUFDckUsc0NBQXNDO0FBR3RDLCtDQUErQztBQUMvQyw2QkFBNkI7QUFFN0Isd0NBQXdDO0FBQ3hDLDhDQUE4QztBQUM5QyxxQ0FBcUM7QUFHckMsOERBQThEO0FBQzlELHdDQUEyRDtBQWlDM0QsU0FBUyxPQUFPO0lBQ2QsSUFBSSxDQUFDLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxFQUFFLElBQUksT0FBTyxDQ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GZyb20gJ2NoaWxkX3Byb2Nlc3MnO1xuaW1wb3J0ICogYXMgcGF0aCBmcm9tICdwYXRoJztcbmltcG9ydCAqIGFzIGVjMiBmcm9tICdAYXdzLWNkay9hd3MtZWMyJztcbmltcG9ydCAqIGFzIGlhbSBmcm9tICdAYXdzLWNkay9hd3MtaWFtJztcbmltcG9ydCAqIGFzIGxhbWJkYSBmcm9tICdAYXdzLWNkay9hd3MtbGFtYmRhJztcbmltcG9ydCAqIGFzIGNkayBmcm9tICdAYXdzLWNkay9jb3JlJztcbmltcG9ydCB7IENvbnN0cnVjdCB9IGZyb20gJ2NvbnN0cnVjdHMnO1xuXG4vLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgbm8tZHVwbGljYXRlLWltcG9ydHMsIGltcG9ydC9vcmRlclxuaW1wb3J0IHsgQ29uc3RydWN0IGFzIENvcmVDb25zdHJ1Y3QgfSBmcm9tICdAYXdzLWNkay9jb3JlJztcblxuZXhwb3J0IGludGVyZmFjZSBFQ1JEZXBsb3ltZW50UHJvcHMge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IHNyYzogSUltYWdlTmFtZTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgZGVzdDogSUltYWdlTmFtZTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgbWVtb3J5TGltaXQ/OiBudW1iZXI7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSByb2xlPzogaWFtLklSb2xlO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgdnBjPzogZWMyLklWcGM7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IHZwY1N1Ym5ldHM/OiBlYzIuU3VibmV0U2VsZWN0aW9uO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgZW52aXJvbm1lbnQ/OiB7IFtrZXk6IHN0cmluZ106IHN0cmluZyB9O1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIElJbWFnZU5hbWUge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSB1cmk6IHN0cmluZztcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIGNyZWRzPzogc3RyaW5nO1xufVxuXG5mdW5jdGlvbiBnZXRDb2RlKCk6IGx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mMDk2ZjUzNjY2JztcblxuICAgIC8vIGlmIHVzZXIgc3BlY2lmeSBhIGN1c3RvbSBtZW1vcnkgbGltaXQsIGRlZmluZSBhbm90aGVyIHNpbmdsZXRvbiBoYW5kbGVyXG4gICAgLy8gd2l0aCB0aGlzIGNvbmZpZ3VyYXRpb24uIG90aGVyd2lzZSwgaXQgd29uJ3QgYmUgcG9zc2libGUgdG8gdXNlIG11bHRpcGxlXG4gICAgLy8gY29uZmlndXJhdGlvbnMgc2luY2Ugd2UgaGF2ZSBhIHNpbmdsZXRvbi5cbiAgICBpZiAobWVtb3J5TGltaXQpIHtcbiAgICAgIGlmIChjZGsuVG9rZW4uaXNVbnJlc29sdmVkKG1lbW9yeUxpbWl0KSkge1xuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ0NhblxcJ3QgdXNlIHRva2VucyB3aGVuIHNwZWNpZnlpbmcgXCJtZW1vcnlMaW1pdFwiIHNpbmNlIHdlIHVzZSBpdCB0byBpZGVudGlmeSB0aGUgc2luZ2xldG9uIGN1c3RvbSByZXNvdXJjZSBoYW5kbGVyJyk7XG4gICAgICB9XG5cbiAgICAgIHV1aWQgKz0gYC0ke21lbW9yeUxpbWl0LnRvU3RyaW5nKCl9TWlCYDtcbiAgICB9XG5cbiAgICByZXR1cm4gdXVpZDtcbiAgfVxufVxuIl19
|
|
@@ -8,7 +8,7 @@ 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: Wed, 15 Dec 2021 21:31:06 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
|
14
14
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The `assert` module provides a set of assertion functions for verifying
|
|
3
3
|
* invariants.
|
|
4
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
4
|
+
* @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/assert.js)
|
|
5
5
|
*/
|
|
6
6
|
declare module 'assert' {
|
|
7
7
|
/**
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* import async_hooks from 'async_hooks';
|
|
7
7
|
* ```
|
|
8
8
|
* @experimental
|
|
9
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
9
|
+
* @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/async_hooks.js)
|
|
10
10
|
*/
|
|
11
11
|
declare module 'async_hooks' {
|
|
12
12
|
/**
|
|
@@ -395,8 +395,9 @@ declare module 'async_hooks' {
|
|
|
395
395
|
getStore(): T | undefined;
|
|
396
396
|
/**
|
|
397
397
|
* Runs a function synchronously within a context and returns its
|
|
398
|
-
* return value. The store is not accessible outside of the callback function
|
|
399
|
-
*
|
|
398
|
+
* return value. The store is not accessible outside of the callback function.
|
|
399
|
+
* The store is accessible to any asynchronous operations created within the
|
|
400
|
+
* callback.
|
|
400
401
|
*
|
|
401
402
|
* The optional `args` are passed to the callback function.
|
|
402
403
|
*
|
|
@@ -410,6 +411,9 @@ declare module 'async_hooks' {
|
|
|
410
411
|
* try {
|
|
411
412
|
* asyncLocalStorage.run(store, () => {
|
|
412
413
|
* asyncLocalStorage.getStore(); // Returns the store object
|
|
414
|
+
* setTimeout(() => {
|
|
415
|
+
* asyncLocalStorage.getStore(); // Returns the store object
|
|
416
|
+
* }, 200);
|
|
413
417
|
* throw new Error();
|
|
414
418
|
* });
|
|
415
419
|
* } catch (e) {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
* // Creates a Buffer containing the Latin-1 bytes [0x74, 0xe9, 0x73, 0x74].
|
|
42
42
|
* const buf7 = Buffer.from('tést', 'latin1');
|
|
43
43
|
* ```
|
|
44
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
44
|
+
* @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/buffer.js)
|
|
45
45
|
*/
|
|
46
46
|
declare module 'buffer' {
|
|
47
47
|
import { BinaryLike } from 'node:crypto';
|
|
@@ -113,18 +113,18 @@ declare module 'buffer' {
|
|
|
113
113
|
/**
|
|
114
114
|
* A [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) encapsulates immutable, raw data that can be safely shared across
|
|
115
115
|
* multiple worker threads.
|
|
116
|
-
* @since v15.7.0
|
|
116
|
+
* @since v15.7.0, v14.18.0
|
|
117
117
|
* @experimental
|
|
118
118
|
*/
|
|
119
119
|
export class Blob {
|
|
120
120
|
/**
|
|
121
121
|
* The total size of the `Blob` in bytes.
|
|
122
|
-
* @since v15.7.0
|
|
122
|
+
* @since v15.7.0, v14.18.0
|
|
123
123
|
*/
|
|
124
124
|
readonly size: number;
|
|
125
125
|
/**
|
|
126
126
|
* The content-type of the `Blob`.
|
|
127
|
-
* @since v15.7.0
|
|
127
|
+
* @since v15.7.0, v14.18.0
|
|
128
128
|
*/
|
|
129
129
|
readonly type: string;
|
|
130
130
|
/**
|
|
@@ -139,13 +139,13 @@ declare module 'buffer' {
|
|
|
139
139
|
/**
|
|
140
140
|
* Returns a promise that fulfills with an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) containing a copy of
|
|
141
141
|
* the `Blob` data.
|
|
142
|
-
* @since v15.7.0
|
|
142
|
+
* @since v15.7.0, v14.18.0
|
|
143
143
|
*/
|
|
144
144
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
145
145
|
/**
|
|
146
146
|
* Creates and returns a new `Blob` containing a subset of this `Blob` objects
|
|
147
147
|
* data. The original `Blob` is not altered.
|
|
148
|
-
* @since v15.7.0
|
|
148
|
+
* @since v15.7.0, v14.18.0
|
|
149
149
|
* @param start The starting index.
|
|
150
150
|
* @param end The ending index.
|
|
151
151
|
* @param type The content-type for the new `Blob`
|
|
@@ -154,7 +154,7 @@ declare module 'buffer' {
|
|
|
154
154
|
/**
|
|
155
155
|
* Returns a promise that fulfills with the contents of the `Blob` decoded as a
|
|
156
156
|
* UTF-8 string.
|
|
157
|
-
* @since v15.7.0
|
|
157
|
+
* @since v15.7.0, v14.18.0
|
|
158
158
|
*/
|
|
159
159
|
text(): Promise<string>;
|
|
160
160
|
/**
|
|
@@ -2114,7 +2114,7 @@ declare module 'buffer' {
|
|
|
2114
2114
|
* **binary data and predate the introduction of typed arrays in JavaScript.**
|
|
2115
2115
|
* **For code running using Node.js APIs, converting between base64-encoded strings**
|
|
2116
2116
|
* **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
|
|
2117
|
-
* @since v15.13.0
|
|
2117
|
+
* @since v15.13.0, v14.17.0
|
|
2118
2118
|
* @deprecated Use `Buffer.from(data, 'base64')` instead.
|
|
2119
2119
|
* @param data The Base64-encoded input string.
|
|
2120
2120
|
*/
|
|
@@ -2130,7 +2130,7 @@ declare module 'buffer' {
|
|
|
2130
2130
|
* **binary data and predate the introduction of typed arrays in JavaScript.**
|
|
2131
2131
|
* **For code running using Node.js APIs, converting between base64-encoded strings**
|
|
2132
2132
|
* **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
|
|
2133
|
-
* @since v15.13.0
|
|
2133
|
+
* @since v15.13.0, v14.17.0
|
|
2134
2134
|
* @deprecated Use `buf.toString('base64')` instead.
|
|
2135
2135
|
* @param data An ASCII (Latin1) string.
|
|
2136
2136
|
*/
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
* For certain use cases, such as automating shell scripts, the `synchronous counterparts` may be more convenient. In many cases, however,
|
|
61
61
|
* the synchronous methods can have significant impact on performance due to
|
|
62
62
|
* stalling the event loop while spawned processes complete.
|
|
63
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
63
|
+
* @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/child_process.js)
|
|
64
64
|
*/
|
|
65
65
|
declare module 'child_process' {
|
|
66
66
|
import { ObjectEncodingOptions } from 'node:fs';
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
* ```
|
|
50
50
|
*
|
|
51
51
|
* On Windows, it is not yet possible to set up a named pipe server in a worker.
|
|
52
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
52
|
+
* @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/cluster.js)
|
|
53
53
|
*/
|
|
54
54
|
declare module 'cluster' {
|
|
55
55
|
import * as child from 'node:child_process';
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
* myConsole.warn(`Danger ${name}! Danger!`);
|
|
54
54
|
* // Prints: Danger Will Robinson! Danger!, to err
|
|
55
55
|
* ```
|
|
56
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
56
|
+
* @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/console.js)
|
|
57
57
|
*/
|
|
58
58
|
declare module 'console' {
|
|
59
59
|
import console = require('node:console');
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* // Prints:
|
|
14
14
|
* // c0fa1bc00531bd78ef38c628449c5102aeabd49b5dc3a2a516ea6ea959d6658e
|
|
15
15
|
* ```
|
|
16
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
16
|
+
* @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/crypto.js)
|
|
17
17
|
*/
|
|
18
18
|
declare module 'crypto' {
|
|
19
19
|
import * as stream from 'node:stream';
|
|
@@ -3030,7 +3030,7 @@ declare module 'crypto' {
|
|
|
3030
3030
|
/**
|
|
3031
3031
|
* Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a
|
|
3032
3032
|
* cryptographic pseudorandom number generator.
|
|
3033
|
-
* @since v15.6.0
|
|
3033
|
+
* @since v15.6.0, v14.17.0
|
|
3034
3034
|
*/
|
|
3035
3035
|
function randomUUID(options?: RandomUUIDOptions): string;
|
|
3036
3036
|
interface X509CheckOptions {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* server.bind(41234);
|
|
24
24
|
* // Prints: server listening 0.0.0.0:41234
|
|
25
25
|
* ```
|
|
26
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
26
|
+
* @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/dgram.js)
|
|
27
27
|
*/
|
|
28
28
|
declare module 'dgram' {
|
|
29
29
|
import { AddressInfo } from 'node:net';
|
|
@@ -260,7 +260,7 @@ declare module 'dgram' {
|
|
|
260
260
|
*
|
|
261
261
|
* The `address` argument is a string. If the value of `address` is a host name,
|
|
262
262
|
* DNS will be used to resolve the address of the host. If `address` is not
|
|
263
|
-
* provided or otherwise
|
|
263
|
+
* provided or otherwise nullish, `'127.0.0.1'` (for `udp4` sockets) or `'::1'`(for `udp6` sockets) will be used by default.
|
|
264
264
|
*
|
|
265
265
|
* If the socket has not been previously bound with a call to `bind`, the socket
|
|
266
266
|
* is assigned a random port number and is bound to the "all interfaces" address
|
package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* should generally include the module name to avoid collisions with data from
|
|
21
21
|
* other modules.
|
|
22
22
|
* @experimental
|
|
23
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
23
|
+
* @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/diagnostics_channel.js)
|
|
24
24
|
*/
|
|
25
25
|
declare module 'diagnostics_channel' {
|
|
26
26
|
/**
|
|
@@ -119,7 +119,7 @@ declare module 'dns/promises' {
|
|
|
119
119
|
*
|
|
120
120
|
* <omitted>
|
|
121
121
|
*
|
|
122
|
-
* On error, the `Promise` is rejected with an `Error` object, where `err.code`is one of the
|
|
122
|
+
* On error, the `Promise` is rejected with an `Error` object, where `err.code`is one of the DNS error codes.
|
|
123
123
|
* @since v10.6.0
|
|
124
124
|
* @param hostname Host name to resolve.
|
|
125
125
|
* @param [rrtype='A'] Resource record type.
|
|
@@ -189,7 +189,7 @@ declare module 'dns/promises' {
|
|
|
189
189
|
* Uses the DNS protocol to resolve `CAA` records for the `hostname`. On success,
|
|
190
190
|
* the `Promise` is resolved with an array of objects containing available
|
|
191
191
|
* certification authority authorization records available for the `hostname`(e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'},{critical: 128, issue: 'pki.example.com'}]`).
|
|
192
|
-
* @since v15.0.0
|
|
192
|
+
* @since v15.0.0, v14.17.0
|
|
193
193
|
*/
|
|
194
194
|
function resolveCaa(hostname: string): Promise<CaaRecord[]>;
|
|
195
195
|
/**
|
|
@@ -300,7 +300,7 @@ declare module 'dns/promises' {
|
|
|
300
300
|
* Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an
|
|
301
301
|
* array of host names.
|
|
302
302
|
*
|
|
303
|
-
* On error, the `Promise` is rejected with an `Error` object, where `err.code`is one of the
|
|
303
|
+
* On error, the `Promise` is rejected with an `Error` object, where `err.code`is one of the DNS error codes.
|
|
304
304
|
* @since v10.6.0
|
|
305
305
|
*/
|
|
306
306
|
function reverse(ip: string): Promise<string[]>;
|
|
@@ -332,14 +332,16 @@ declare module 'dns/promises' {
|
|
|
332
332
|
*/
|
|
333
333
|
function setServers(servers: ReadonlyArray<string>): void;
|
|
334
334
|
/**
|
|
335
|
-
* Set the default value of `verbatim` in
|
|
336
|
-
* - `ipv4first`: sets default `verbatim` `false`.
|
|
337
|
-
* - `verbatim`: sets default `verbatim` `true`.
|
|
335
|
+
* Set the default value of `verbatim` in `dns.lookup()` and `dnsPromises.lookup()`. The value could be:
|
|
338
336
|
*
|
|
339
|
-
*
|
|
340
|
-
*
|
|
341
|
-
*
|
|
342
|
-
*
|
|
337
|
+
* * `ipv4first`: sets default `verbatim` `false`.
|
|
338
|
+
* * `verbatim`: sets default `verbatim` `true`.
|
|
339
|
+
*
|
|
340
|
+
* The default is `ipv4first` and `dnsPromises.setDefaultResultOrder()` have
|
|
341
|
+
* higher priority than `--dns-result-order`. When using `worker threads`,`dnsPromises.setDefaultResultOrder()` from the main thread won't affect the
|
|
342
|
+
* default dns orders in workers.
|
|
343
|
+
* @since v16.4.0, v14.18.0
|
|
344
|
+
* @param order must be `'ipv4first'` or `'verbatim'`.
|
|
343
345
|
*/
|
|
344
346
|
function setDefaultResultOrder(order: 'ipv4first' | 'verbatim'): void;
|
|
345
347
|
class Resolver {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
* ```
|
|
43
43
|
*
|
|
44
44
|
* See the `Implementation considerations section` for more information.
|
|
45
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
45
|
+
* @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/dns.js)
|
|
46
46
|
*/
|
|
47
47
|
declare module 'dns' {
|
|
48
48
|
import * as dnsPromises from 'node:dns/promises';
|
|
@@ -58,6 +58,9 @@ declare module 'dns' {
|
|
|
58
58
|
family?: number | undefined;
|
|
59
59
|
hints?: number | undefined;
|
|
60
60
|
all?: boolean | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* @default true
|
|
63
|
+
*/
|
|
61
64
|
verbatim?: boolean | undefined;
|
|
62
65
|
}
|
|
63
66
|
export interface LookupOneOptions extends LookupOptions {
|
|
@@ -241,7 +244,7 @@ declare module 'dns' {
|
|
|
241
244
|
*
|
|
242
245
|
* <omitted>
|
|
243
246
|
*
|
|
244
|
-
* On error, `err` is an `Error` object, where `err.code` is one of
|
|
247
|
+
* On error, `err` is an `Error` object, where `err.code` is one of theDNS error codes.
|
|
245
248
|
* @since v0.1.27
|
|
246
249
|
* @param hostname Host name to resolve.
|
|
247
250
|
* @param [rrtype='A'] Resource record type.
|
|
@@ -314,7 +317,7 @@ declare module 'dns' {
|
|
|
314
317
|
* Uses the DNS protocol to resolve `CAA` records for the `hostname`. The`addresses` argument passed to the `callback` function
|
|
315
318
|
* will contain an array of certification authority authorization records
|
|
316
319
|
* available for the `hostname` (e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'}, {critical: 128, issue: 'pki.example.com'}]`).
|
|
317
|
-
* @since v15.0.0
|
|
320
|
+
* @since v15.0.0, v14.17.0
|
|
318
321
|
*/
|
|
319
322
|
export function resolveCaa(hostname: string, callback: (err: NodeJS.ErrnoException | null, records: CaaRecord[]) => void): void;
|
|
320
323
|
export namespace resolveCaa {
|
|
@@ -527,14 +530,16 @@ declare module 'dns' {
|
|
|
527
530
|
*/
|
|
528
531
|
export function getServers(): string[];
|
|
529
532
|
/**
|
|
530
|
-
* Set the default value of `verbatim` in {@link lookup}. The value could be:
|
|
531
|
-
*
|
|
532
|
-
*
|
|
533
|
-
*
|
|
534
|
-
*
|
|
535
|
-
*
|
|
536
|
-
* @
|
|
537
|
-
*
|
|
533
|
+
* Set the default value of `verbatim` in {@link lookup} and `dnsPromises.lookup()`. The value could be:
|
|
534
|
+
*
|
|
535
|
+
* * `ipv4first`: sets default `verbatim` `false`.
|
|
536
|
+
* * `verbatim`: sets default `verbatim` `true`.
|
|
537
|
+
*
|
|
538
|
+
* The default is `ipv4first` and {@link setDefaultResultOrder} have higher
|
|
539
|
+
* priority than `--dns-result-order`. When using `worker threads`,{@link setDefaultResultOrder} from the main thread won't affect the default
|
|
540
|
+
* dns orders in workers.
|
|
541
|
+
* @since v16.4.0, v14.18.0
|
|
542
|
+
* @param order must be `'ipv4first'` or `'verbatim'`.
|
|
538
543
|
*/
|
|
539
544
|
export function setDefaultResultOrder(order: 'ipv4first' | 'verbatim'): void;
|
|
540
545
|
// Error codes
|
|
@@ -640,7 +645,7 @@ declare module 'dns' {
|
|
|
640
645
|
* The resolver will use the v4 local address when making requests to IPv4 DNS
|
|
641
646
|
* servers, and the v6 local address when making requests to IPv6 DNS servers.
|
|
642
647
|
* The `rrtype` of resolution requests has no impact on the local address used.
|
|
643
|
-
* @since v15.1.0
|
|
648
|
+
* @since v15.1.0, v14.17.0
|
|
644
649
|
* @param [ipv4='0.0.0.0'] A string representation of an IPv4 address.
|
|
645
650
|
* @param [ipv6='::0'] A string representation of an IPv6 address.
|
|
646
651
|
*/
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* will be notified, rather than losing the context of the error in the`process.on('uncaughtException')` handler, or causing the program to
|
|
12
12
|
* exit immediately with an error code.
|
|
13
13
|
* @deprecated Since v1.4.2 - Deprecated
|
|
14
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
14
|
+
* @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/domain.js)
|
|
15
15
|
*/
|
|
16
16
|
declare module 'domain' {
|
|
17
17
|
import EventEmitter = require('node:events');
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
* });
|
|
33
33
|
* myEmitter.emit('event');
|
|
34
34
|
* ```
|
|
35
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
35
|
+
* @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/events.js)
|
|
36
36
|
*/
|
|
37
37
|
declare module 'events' {
|
|
38
38
|
interface EventEmitterOptions {
|
|
@@ -257,7 +257,7 @@ declare module 'events' {
|
|
|
257
257
|
* getEventListeners(et, 'foo'); // [listener]
|
|
258
258
|
* }
|
|
259
259
|
* ```
|
|
260
|
-
* @since v15.2.0
|
|
260
|
+
* @since v15.2.0, v14.17.0
|
|
261
261
|
*/
|
|
262
262
|
static getEventListeners(emitter: DOMEventTarget | NodeJS.EventEmitter, name: string | symbol): Function[];
|
|
263
263
|
/**
|
|
@@ -42,11 +42,11 @@ declare module 'fs/promises' {
|
|
|
42
42
|
mode?: Mode | undefined;
|
|
43
43
|
flag?: OpenMode | undefined;
|
|
44
44
|
}
|
|
45
|
-
interface FileReadResult<T extends ArrayBufferView> {
|
|
45
|
+
interface FileReadResult<T extends NodeJS.ArrayBufferView> {
|
|
46
46
|
bytesRead: number;
|
|
47
47
|
buffer: T;
|
|
48
48
|
}
|
|
49
|
-
interface FileReadOptions<T extends ArrayBufferView = Buffer> {
|
|
49
|
+
interface FileReadOptions<T extends NodeJS.ArrayBufferView = Buffer> {
|
|
50
50
|
/**
|
|
51
51
|
* @default `Buffer.alloc(0xffff)`
|
|
52
52
|
*/
|
|
@@ -207,8 +207,8 @@ declare module 'fs/promises' {
|
|
|
207
207
|
* integer, the current file position will remain unchanged.
|
|
208
208
|
* @return Fulfills upon success with an object with two properties:
|
|
209
209
|
*/
|
|
210
|
-
read<T extends ArrayBufferView>(buffer: T, offset?: number | null, length?: number | null, position?: number | null): Promise<FileReadResult<T>>;
|
|
211
|
-
read<T extends ArrayBufferView = Buffer>(options?: FileReadOptions<T>): Promise<FileReadResult<T>>;
|
|
210
|
+
read<T extends NodeJS.ArrayBufferView>(buffer: T, offset?: number | null, length?: number | null, position?: number | null): Promise<FileReadResult<T>>;
|
|
211
|
+
read<T extends NodeJS.ArrayBufferView = Buffer>(options?: FileReadOptions<T>): Promise<FileReadResult<T>>;
|
|
212
212
|
/**
|
|
213
213
|
* Asynchronously reads the entire contents of a file.
|
|
214
214
|
*
|
|
@@ -1043,7 +1043,7 @@ declare module 'fs/promises' {
|
|
|
1043
1043
|
* disappears in the directory.
|
|
1044
1044
|
*
|
|
1045
1045
|
* All the `caveats` for `fs.watch()` also apply to `fsPromises.watch()`.
|
|
1046
|
-
* @since v15.9.0
|
|
1046
|
+
* @since v15.9.0, v14.18.0
|
|
1047
1047
|
* @return of objects with the properties:
|
|
1048
1048
|
*/
|
|
1049
1049
|
function watch(
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*
|
|
17
17
|
* All file system operations have synchronous, callback, and promise-based
|
|
18
18
|
* forms, and are accessible using both CommonJS syntax and ES6 Modules (ESM).
|
|
19
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
19
|
+
* @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/fs.js)
|
|
20
20
|
*/
|
|
21
21
|
declare module 'fs' {
|
|
22
22
|
import * as stream from 'node:stream';
|
|
@@ -268,18 +268,22 @@ declare module 'fs' {
|
|
|
268
268
|
*/
|
|
269
269
|
export interface StatWatcher extends EventEmitter {
|
|
270
270
|
/**
|
|
271
|
+
* When called, requests that the Node.js event loop _not_ exit so long as the `fs.StatWatcher` is active. Calling `watcher.ref()` multiple times will have
|
|
272
|
+
* no effect.
|
|
273
|
+
*
|
|
274
|
+
* By default, all `fs.StatWatcher` objects are "ref'ed", making it normally
|
|
275
|
+
* unnecessary to call `watcher.ref()` unless `watcher.unref()` had been
|
|
276
|
+
* called previously.
|
|
271
277
|
* @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
278
|
*/
|
|
277
279
|
ref(): this;
|
|
278
280
|
/**
|
|
281
|
+
* When called, the active `fs.StatWatcher` object will not require the Node.js
|
|
282
|
+
* event loop to remain active. If there is no other activity keeping the
|
|
283
|
+
* event loop running, the process may exit before the `fs.StatWatcher` object's
|
|
284
|
+
* callback is invoked. Calling `watcher.unref()` multiple times will have
|
|
285
|
+
* no effect.
|
|
279
286
|
* @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
287
|
*/
|
|
284
288
|
unref(): this;
|
|
285
289
|
}
|
|
@@ -1014,8 +1018,10 @@ declare module 'fs' {
|
|
|
1014
1018
|
function __promisify__(fd: number, options?: StatOptions): Promise<Stats | BigIntStats>;
|
|
1015
1019
|
}
|
|
1016
1020
|
/**
|
|
1017
|
-
*
|
|
1018
|
-
*
|
|
1021
|
+
* Retrieves the `fs.Stats` for the file descriptor.
|
|
1022
|
+
*
|
|
1023
|
+
* See the POSIX [`fstat(2)`](http://man7.org/linux/man-pages/man2/fstat.2.html) documentation for more detail.
|
|
1024
|
+
* @since v0.1.95
|
|
1019
1025
|
*/
|
|
1020
1026
|
export function fstatSync(
|
|
1021
1027
|
fd: number,
|
|
@@ -1030,7 +1036,6 @@ declare module 'fs' {
|
|
|
1030
1036
|
}
|
|
1031
1037
|
): BigIntStats;
|
|
1032
1038
|
export function fstatSync(fd: number, options?: StatOptions): Stats | BigIntStats;
|
|
1033
|
-
|
|
1034
1039
|
/**
|
|
1035
1040
|
* Retrieves the `fs.Stats` for the symbolic link referred to by the path.
|
|
1036
1041
|
* The callback gets two arguments `(err, stats)` where `stats` is a `fs.Stats` object. `lstat()` is identical to `stat()`, except that if `path` is a symbolic
|
|
@@ -2812,6 +2817,52 @@ declare module 'fs' {
|
|
|
2812
2817
|
persistent?: boolean | undefined;
|
|
2813
2818
|
interval?: number | undefined;
|
|
2814
2819
|
}
|
|
2820
|
+
/**
|
|
2821
|
+
* Watch for changes on `filename`. The callback `listener` will be called each
|
|
2822
|
+
* time the file is accessed.
|
|
2823
|
+
*
|
|
2824
|
+
* The `options` argument may be omitted. If provided, it should be an object. The`options` object may contain a boolean named `persistent` that indicates
|
|
2825
|
+
* whether the process should continue to run as long as files are being watched.
|
|
2826
|
+
* The `options` object may specify an `interval` property indicating how often the
|
|
2827
|
+
* target should be polled in milliseconds.
|
|
2828
|
+
*
|
|
2829
|
+
* The `listener` gets two arguments the current stat object and the previous
|
|
2830
|
+
* stat object:
|
|
2831
|
+
*
|
|
2832
|
+
* ```js
|
|
2833
|
+
* import { watchFile } from 'fs';
|
|
2834
|
+
*
|
|
2835
|
+
* watchFile('message.text', (curr, prev) => {
|
|
2836
|
+
* console.log(`the current mtime is: ${curr.mtime}`);
|
|
2837
|
+
* console.log(`the previous mtime was: ${prev.mtime}`);
|
|
2838
|
+
* });
|
|
2839
|
+
* ```
|
|
2840
|
+
*
|
|
2841
|
+
* These stat objects are instances of `fs.Stat`. If the `bigint` option is `true`,
|
|
2842
|
+
* the numeric values in these objects are specified as `BigInt`s.
|
|
2843
|
+
*
|
|
2844
|
+
* To be notified when the file was modified, not just accessed, it is necessary
|
|
2845
|
+
* to compare `curr.mtimeMs` and `prev.mtimeMs`.
|
|
2846
|
+
*
|
|
2847
|
+
* When an `fs.watchFile` operation results in an `ENOENT` error, it
|
|
2848
|
+
* will invoke the listener once, with all the fields zeroed (or, for dates, the
|
|
2849
|
+
* Unix Epoch). If the file is created later on, the listener will be called
|
|
2850
|
+
* again, with the latest stat objects. This is a change in functionality since
|
|
2851
|
+
* v0.10.
|
|
2852
|
+
*
|
|
2853
|
+
* Using {@link watch} is more efficient than `fs.watchFile` and`fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and`fs.unwatchFile` when possible.
|
|
2854
|
+
*
|
|
2855
|
+
* When a file being watched by `fs.watchFile()` disappears and reappears,
|
|
2856
|
+
* then the contents of `previous` in the second callback event (the file's
|
|
2857
|
+
* reappearance) will be the same as the contents of `previous` in the first
|
|
2858
|
+
* callback event (its disappearance).
|
|
2859
|
+
*
|
|
2860
|
+
* This happens when:
|
|
2861
|
+
*
|
|
2862
|
+
* * the file is deleted, followed by a restore
|
|
2863
|
+
* * the file is renamed and then renamed a second time back to its original name
|
|
2864
|
+
* @since v0.1.31
|
|
2865
|
+
*/
|
|
2815
2866
|
export function watchFile(
|
|
2816
2867
|
filename: PathLike,
|
|
2817
2868
|
options:
|