cloudstructs 0.6.32 → 0.6.34
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 +3 -3
- package/lib/codecommit-mirror/index.js +2 -2
- package/lib/dmarc/index.js +1 -1
- package/lib/ecs-service-roller/index.js +2 -2
- package/lib/email-receiver/receiver.js +1 -1
- package/lib/saml-identity-provider/index.js +2 -2
- package/lib/slack-app/manifest.js +1 -1
- package/lib/slack-app/slack-app.js +2 -2
- package/lib/slack-events/index.js +1 -1
- package/lib/slack-textract/index.js +1 -1
- package/lib/ssl-server-test/index.js +1 -1
- package/lib/state-machine-cr-provider/index.js +1 -1
- package/lib/static-website/index.js +1 -1
- package/lib/toolkit-cleaner/index.js +1 -1
- package/lib/url-shortener/index.js +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +86 -75
- package/node_modules/@slack/logger/node_modules/@types/node/async_hooks.d.ts +66 -49
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +136 -97
- package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +81 -55
- package/node_modules/@slack/logger/node_modules/@types/node/cluster.d.ts +12 -12
- package/node_modules/@slack/logger/node_modules/@types/node/console.d.ts +5 -5
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +210 -221
- package/node_modules/@slack/logger/node_modules/@types/node/dgram.d.ts +15 -15
- package/node_modules/@slack/logger/node_modules/@types/node/diagnostics_channel.d.ts +25 -26
- package/node_modules/@slack/logger/node_modules/@types/node/dns/promises.d.ts +50 -6
- package/node_modules/@slack/logger/node_modules/@types/node/dns.d.ts +25 -16
- package/node_modules/@slack/logger/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +111 -65
- package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +80 -49
- package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +162 -91
- package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +3 -1
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +195 -129
- package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +42 -46
- package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +52 -153
- package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/inspector.d.ts +10 -3
- package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +5 -4
- package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +21 -18
- package/node_modules/@slack/logger/node_modules/@types/node/os.d.ts +22 -18
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/path.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +28 -15
- package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +43 -46
- 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 +5 -5
- package/node_modules/@slack/logger/node_modules/@types/node/readline/promises.d.ts +65 -63
- package/node_modules/@slack/logger/node_modules/@types/node/readline.d.ts +32 -159
- package/node_modules/@slack/logger/node_modules/@types/node/repl.d.ts +20 -20
- package/node_modules/@slack/logger/node_modules/@types/node/stream/consumers.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +839 -857
- package/node_modules/@slack/logger/node_modules/@types/node/string_decoder.d.ts +6 -6
- package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +498 -206
- package/node_modules/@slack/logger/node_modules/@types/node/timers/promises.d.ts +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/timers.d.ts +122 -8
- package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +34 -22
- package/node_modules/@slack/logger/node_modules/@types/node/trace_events.d.ts +20 -9
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/assert.d.ts +86 -75
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/async_hooks.d.ts +66 -49
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/buffer.d.ts +137 -99
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/child_process.d.ts +81 -55
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/cluster.d.ts +12 -12
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/console.d.ts +5 -5
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/crypto.d.ts +210 -221
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/dgram.d.ts +15 -15
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +25 -26
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/dns/promises.d.ts +50 -6
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/dns.d.ts +25 -16
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/domain.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/events.d.ts +111 -65
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/fs/promises.d.ts +96 -45
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/fs.d.ts +243 -72
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/globals.d.ts +20 -11
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/http.d.ts +202 -129
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/http2.d.ts +42 -46
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/https.d.ts +52 -153
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/inspector.d.ts +10 -3
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/module.d.ts +5 -4
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/net.d.ts +24 -21
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/os.d.ts +22 -18
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/path.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/perf_hooks.d.ts +28 -15
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/process.d.ts +43 -46
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/punycode.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/querystring.d.ts +5 -5
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/readline/promises.d.ts +65 -63
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/readline.d.ts +32 -159
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/repl.d.ts +20 -20
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/stream/consumers.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/stream.d.ts +93 -140
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/string_decoder.d.ts +6 -6
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/test.d.ts +498 -206
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/timers/promises.d.ts +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/timers.d.ts +125 -4
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/tls.d.ts +34 -22
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/trace_events.d.ts +20 -9
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/tty.d.ts +4 -5
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/url.d.ts +46 -42
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/util.d.ts +150 -109
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/v8.d.ts +204 -16
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/vm.d.ts +292 -42
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/wasi.d.ts +13 -19
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/worker_threads.d.ts +38 -34
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/zlib.d.ts +11 -11
- package/node_modules/@slack/logger/node_modules/@types/node/tty.d.ts +4 -5
- package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +46 -42
- package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +150 -109
- package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +204 -16
- package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +292 -42
- package/node_modules/@slack/logger/node_modules/@types/node/wasi.d.ts +13 -19
- package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +38 -34
- package/node_modules/@slack/logger/node_modules/@types/node/zlib.d.ts +11 -11
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +86 -75
- package/node_modules/@slack/web-api/node_modules/@types/node/async_hooks.d.ts +66 -49
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +136 -97
- package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +81 -55
- package/node_modules/@slack/web-api/node_modules/@types/node/cluster.d.ts +12 -12
- package/node_modules/@slack/web-api/node_modules/@types/node/console.d.ts +5 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +210 -221
- package/node_modules/@slack/web-api/node_modules/@types/node/dgram.d.ts +15 -15
- package/node_modules/@slack/web-api/node_modules/@types/node/diagnostics_channel.d.ts +25 -26
- package/node_modules/@slack/web-api/node_modules/@types/node/dns/promises.d.ts +50 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/dns.d.ts +25 -16
- package/node_modules/@slack/web-api/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +111 -65
- package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +80 -49
- package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +162 -91
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +3 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +195 -129
- package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +42 -46
- package/node_modules/@slack/web-api/node_modules/@types/node/https.d.ts +52 -153
- package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/inspector.d.ts +10 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +5 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +21 -18
- package/node_modules/@slack/web-api/node_modules/@types/node/os.d.ts +22 -18
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/path.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +28 -15
- package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +43 -46
- 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 +5 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/readline/promises.d.ts +65 -63
- package/node_modules/@slack/web-api/node_modules/@types/node/readline.d.ts +32 -159
- package/node_modules/@slack/web-api/node_modules/@types/node/repl.d.ts +20 -20
- package/node_modules/@slack/web-api/node_modules/@types/node/stream/consumers.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +839 -857
- package/node_modules/@slack/web-api/node_modules/@types/node/string_decoder.d.ts +6 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +498 -206
- package/node_modules/@slack/web-api/node_modules/@types/node/timers/promises.d.ts +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/timers.d.ts +122 -8
- package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +34 -22
- package/node_modules/@slack/web-api/node_modules/@types/node/trace_events.d.ts +20 -9
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/assert.d.ts +86 -75
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/async_hooks.d.ts +66 -49
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/buffer.d.ts +137 -99
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/child_process.d.ts +81 -55
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/cluster.d.ts +12 -12
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/console.d.ts +5 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/crypto.d.ts +210 -221
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/dgram.d.ts +15 -15
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +25 -26
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/dns/promises.d.ts +50 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/dns.d.ts +25 -16
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/domain.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/events.d.ts +111 -65
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/fs/promises.d.ts +96 -45
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/fs.d.ts +243 -72
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/globals.d.ts +20 -11
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/http.d.ts +202 -129
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/http2.d.ts +42 -46
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/https.d.ts +52 -153
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/inspector.d.ts +10 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/module.d.ts +5 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/net.d.ts +24 -21
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/os.d.ts +22 -18
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/path.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/perf_hooks.d.ts +28 -15
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/process.d.ts +43 -46
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/punycode.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/querystring.d.ts +5 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/readline/promises.d.ts +65 -63
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/readline.d.ts +32 -159
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/repl.d.ts +20 -20
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/stream/consumers.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/stream.d.ts +93 -140
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/string_decoder.d.ts +6 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/test.d.ts +498 -206
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/timers/promises.d.ts +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/timers.d.ts +125 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/tls.d.ts +34 -22
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/trace_events.d.ts +20 -9
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/tty.d.ts +4 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/url.d.ts +46 -42
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/util.d.ts +150 -109
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/v8.d.ts +204 -16
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/vm.d.ts +292 -42
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/wasi.d.ts +13 -19
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/worker_threads.d.ts +38 -34
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/zlib.d.ts +11 -11
- package/node_modules/@slack/web-api/node_modules/@types/node/tty.d.ts +4 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +46 -42
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +150 -109
- package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +204 -16
- package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +292 -42
- package/node_modules/@slack/web-api/node_modules/@types/node/wasi.d.ts +13 -19
- package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +38 -34
- package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +11 -11
- 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 +86 -75
- package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +66 -49
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +136 -97
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +81 -55
- package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +12 -12
- package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +210 -221
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +15 -15
- package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +25 -26
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +50 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +25 -16
- package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +111 -65
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +80 -49
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +162 -91
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +3 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +195 -129
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +42 -46
- package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +52 -153
- 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 +10 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +5 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +21 -18
- package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +22 -18
- 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 +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +28 -15
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +43 -46
- 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 +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline/promises.d.ts +65 -63
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +32 -159
- package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +20 -20
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/consumers.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +839 -857
- package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +6 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +498 -206
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +122 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +34 -22
- package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +20 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/assert.d.ts +86 -75
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/async_hooks.d.ts +66 -49
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/buffer.d.ts +137 -99
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/child_process.d.ts +81 -55
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/cluster.d.ts +12 -12
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/console.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/crypto.d.ts +210 -221
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dgram.d.ts +15 -15
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +25 -26
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dns/promises.d.ts +50 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dns.d.ts +25 -16
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/domain.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/events.d.ts +111 -65
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/fs/promises.d.ts +96 -45
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/fs.d.ts +243 -72
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/globals.d.ts +20 -11
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/http.d.ts +202 -129
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/http2.d.ts +42 -46
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/https.d.ts +52 -153
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/inspector.d.ts +10 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/module.d.ts +5 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/net.d.ts +24 -21
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/os.d.ts +22 -18
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/path.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/perf_hooks.d.ts +28 -15
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/process.d.ts +43 -46
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/punycode.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/querystring.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/readline/promises.d.ts +65 -63
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/readline.d.ts +32 -159
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/repl.d.ts +20 -20
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/consumers.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream.d.ts +93 -140
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/string_decoder.d.ts +6 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/test.d.ts +498 -206
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/timers/promises.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/timers.d.ts +125 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/tls.d.ts +34 -22
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/trace_events.d.ts +20 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/tty.d.ts +4 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/url.d.ts +46 -42
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/util.d.ts +150 -109
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/v8.d.ts +204 -16
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/vm.d.ts +292 -42
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/wasi.d.ts +13 -19
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/worker_threads.d.ts +38 -34
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/zlib.d.ts +11 -11
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +4 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +46 -42
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +150 -109
- package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +204 -16
- package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +292 -42
- package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +13 -19
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +38 -34
- package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +11 -11
- package/node_modules/@types/is-stream/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/assert.d.ts +86 -75
- package/node_modules/@types/is-stream/node_modules/@types/node/async_hooks.d.ts +66 -49
- package/node_modules/@types/is-stream/node_modules/@types/node/buffer.d.ts +136 -97
- package/node_modules/@types/is-stream/node_modules/@types/node/child_process.d.ts +81 -55
- package/node_modules/@types/is-stream/node_modules/@types/node/cluster.d.ts +12 -12
- package/node_modules/@types/is-stream/node_modules/@types/node/console.d.ts +5 -5
- package/node_modules/@types/is-stream/node_modules/@types/node/crypto.d.ts +210 -221
- package/node_modules/@types/is-stream/node_modules/@types/node/dgram.d.ts +15 -15
- package/node_modules/@types/is-stream/node_modules/@types/node/diagnostics_channel.d.ts +25 -26
- package/node_modules/@types/is-stream/node_modules/@types/node/dns/promises.d.ts +50 -6
- package/node_modules/@types/is-stream/node_modules/@types/node/dns.d.ts +25 -16
- package/node_modules/@types/is-stream/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/events.d.ts +111 -65
- package/node_modules/@types/is-stream/node_modules/@types/node/fs/promises.d.ts +80 -49
- package/node_modules/@types/is-stream/node_modules/@types/node/fs.d.ts +162 -91
- package/node_modules/@types/is-stream/node_modules/@types/node/globals.d.ts +3 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/http.d.ts +195 -129
- package/node_modules/@types/is-stream/node_modules/@types/node/http2.d.ts +42 -46
- package/node_modules/@types/is-stream/node_modules/@types/node/https.d.ts +52 -153
- package/node_modules/@types/is-stream/node_modules/@types/node/index.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/inspector.d.ts +10 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/module.d.ts +5 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/net.d.ts +21 -18
- package/node_modules/@types/is-stream/node_modules/@types/node/os.d.ts +22 -18
- package/node_modules/@types/is-stream/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/path.d.ts +4 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/perf_hooks.d.ts +28 -15
- package/node_modules/@types/is-stream/node_modules/@types/node/process.d.ts +43 -46
- package/node_modules/@types/is-stream/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/querystring.d.ts +5 -5
- package/node_modules/@types/is-stream/node_modules/@types/node/readline/promises.d.ts +65 -63
- package/node_modules/@types/is-stream/node_modules/@types/node/readline.d.ts +32 -159
- package/node_modules/@types/is-stream/node_modules/@types/node/repl.d.ts +20 -20
- package/node_modules/@types/is-stream/node_modules/@types/node/stream/consumers.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/stream.d.ts +839 -857
- package/node_modules/@types/is-stream/node_modules/@types/node/string_decoder.d.ts +6 -6
- package/node_modules/@types/is-stream/node_modules/@types/node/test.d.ts +498 -206
- package/node_modules/@types/is-stream/node_modules/@types/node/timers/promises.d.ts +3 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/timers.d.ts +122 -8
- package/node_modules/@types/is-stream/node_modules/@types/node/tls.d.ts +34 -22
- package/node_modules/@types/is-stream/node_modules/@types/node/trace_events.d.ts +20 -9
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/assert.d.ts +86 -75
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/async_hooks.d.ts +66 -49
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/buffer.d.ts +137 -99
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/child_process.d.ts +81 -55
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/cluster.d.ts +12 -12
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/console.d.ts +5 -5
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/crypto.d.ts +210 -221
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/dgram.d.ts +15 -15
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +25 -26
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/dns/promises.d.ts +50 -6
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/dns.d.ts +25 -16
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/domain.d.ts +4 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/events.d.ts +111 -65
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/fs/promises.d.ts +96 -45
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/fs.d.ts +243 -72
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/globals.d.ts +20 -11
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/http.d.ts +202 -129
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/http2.d.ts +42 -46
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/https.d.ts +52 -153
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/inspector.d.ts +10 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/module.d.ts +5 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/net.d.ts +24 -21
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/os.d.ts +22 -18
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/path.d.ts +4 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/perf_hooks.d.ts +28 -15
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/process.d.ts +43 -46
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/punycode.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/querystring.d.ts +5 -5
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/readline/promises.d.ts +65 -63
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/readline.d.ts +32 -159
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/repl.d.ts +20 -20
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/stream/consumers.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/stream.d.ts +93 -140
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/string_decoder.d.ts +6 -6
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/test.d.ts +498 -206
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/timers/promises.d.ts +3 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/timers.d.ts +125 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/tls.d.ts +34 -22
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/trace_events.d.ts +20 -9
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/tty.d.ts +4 -5
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/url.d.ts +46 -42
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/util.d.ts +150 -109
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/v8.d.ts +204 -16
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/vm.d.ts +292 -42
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/wasi.d.ts +13 -19
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/worker_threads.d.ts +38 -34
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/zlib.d.ts +11 -11
- package/node_modules/@types/is-stream/node_modules/@types/node/tty.d.ts +4 -5
- package/node_modules/@types/is-stream/node_modules/@types/node/url.d.ts +46 -42
- package/node_modules/@types/is-stream/node_modules/@types/node/util.d.ts +150 -109
- package/node_modules/@types/is-stream/node_modules/@types/node/v8.d.ts +204 -16
- package/node_modules/@types/is-stream/node_modules/@types/node/vm.d.ts +292 -42
- package/node_modules/@types/is-stream/node_modules/@types/node/wasi.d.ts +13 -19
- package/node_modules/@types/is-stream/node_modules/@types/node/worker_threads.d.ts +38 -34
- package/node_modules/@types/is-stream/node_modules/@types/node/zlib.d.ts +11 -11
- 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 +86 -75
- package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +66 -49
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +136 -97
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +81 -55
- package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +12 -12
- package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +210 -221
- package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +15 -15
- package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +25 -26
- package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +50 -6
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +25 -16
- package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +111 -65
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +80 -49
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +162 -91
- package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +3 -1
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +195 -129
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +42 -46
- package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +52 -153
- 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 +10 -3
- package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +5 -4
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +21 -18
- package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +22 -18
- 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 +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +28 -15
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +43 -46
- 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 +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/readline/promises.d.ts +65 -63
- package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +32 -159
- package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +20 -20
- package/node_modules/@types/keyv/node_modules/@types/node/stream/consumers.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +839 -857
- package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +6 -6
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +498 -206
- package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +122 -8
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +34 -22
- package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +20 -9
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/assert.d.ts +86 -75
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/async_hooks.d.ts +66 -49
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/buffer.d.ts +137 -99
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/child_process.d.ts +81 -55
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/cluster.d.ts +12 -12
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/console.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/crypto.d.ts +210 -221
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dgram.d.ts +15 -15
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +25 -26
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dns/promises.d.ts +50 -6
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dns.d.ts +25 -16
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/domain.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/events.d.ts +111 -65
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/fs/promises.d.ts +96 -45
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/fs.d.ts +243 -72
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/globals.d.ts +20 -11
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/http.d.ts +202 -129
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/http2.d.ts +42 -46
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/https.d.ts +52 -153
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/inspector.d.ts +10 -3
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/module.d.ts +5 -4
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/net.d.ts +24 -21
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/os.d.ts +22 -18
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/path.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/perf_hooks.d.ts +28 -15
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/process.d.ts +43 -46
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/punycode.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/querystring.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/readline/promises.d.ts +65 -63
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/readline.d.ts +32 -159
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/repl.d.ts +20 -20
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream/consumers.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream.d.ts +93 -140
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/string_decoder.d.ts +6 -6
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/test.d.ts +498 -206
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/timers/promises.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/timers.d.ts +125 -4
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/tls.d.ts +34 -22
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/trace_events.d.ts +20 -9
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/tty.d.ts +4 -5
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/url.d.ts +46 -42
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/util.d.ts +150 -109
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/v8.d.ts +204 -16
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/vm.d.ts +292 -42
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/wasi.d.ts +13 -19
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/worker_threads.d.ts +38 -34
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/zlib.d.ts +11 -11
- package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +4 -5
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +46 -42
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +150 -109
- package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +204 -16
- package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +292 -42
- package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +13 -19
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +38 -34
- package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +11 -11
- 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 +86 -75
- package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +66 -49
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +136 -97
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +81 -55
- package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +12 -12
- package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +210 -221
- package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +15 -15
- package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +25 -26
- package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +50 -6
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +25 -16
- package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +111 -65
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +80 -49
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +162 -91
- package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +3 -1
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +195 -129
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +42 -46
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +52 -153
- 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 +10 -3
- package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +5 -4
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +21 -18
- package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +22 -18
- 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 +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +28 -15
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +43 -46
- 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 +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/readline/promises.d.ts +65 -63
- package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +32 -159
- package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +20 -20
- package/node_modules/@types/responselike/node_modules/@types/node/stream/consumers.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +839 -857
- package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +6 -6
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +498 -206
- package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +122 -8
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +34 -22
- package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +20 -9
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/assert.d.ts +86 -75
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/async_hooks.d.ts +66 -49
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/buffer.d.ts +137 -99
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/child_process.d.ts +81 -55
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/cluster.d.ts +12 -12
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/console.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/crypto.d.ts +210 -221
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dgram.d.ts +15 -15
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +25 -26
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dns/promises.d.ts +50 -6
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dns.d.ts +25 -16
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/domain.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/events.d.ts +111 -65
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/fs/promises.d.ts +96 -45
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/fs.d.ts +243 -72
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/globals.d.ts +20 -11
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/http.d.ts +202 -129
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/http2.d.ts +42 -46
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/https.d.ts +52 -153
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/inspector.d.ts +10 -3
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/module.d.ts +5 -4
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/net.d.ts +24 -21
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/os.d.ts +22 -18
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/path.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/perf_hooks.d.ts +28 -15
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/process.d.ts +43 -46
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/punycode.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/querystring.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/readline/promises.d.ts +65 -63
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/readline.d.ts +32 -159
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/repl.d.ts +20 -20
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/consumers.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream.d.ts +93 -140
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/string_decoder.d.ts +6 -6
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/test.d.ts +498 -206
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/timers/promises.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/timers.d.ts +125 -4
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/tls.d.ts +34 -22
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/trace_events.d.ts +20 -9
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/tty.d.ts +4 -5
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/url.d.ts +46 -42
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/util.d.ts +150 -109
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/v8.d.ts +204 -16
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/vm.d.ts +292 -42
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/wasi.d.ts +13 -19
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/worker_threads.d.ts +38 -34
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/zlib.d.ts +11 -11
- package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +4 -5
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +46 -42
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +150 -109
- package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +204 -16
- package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +292 -42
- package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +13 -19
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +38 -34
- package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +11 -11
- package/package.json +20 -20
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The `fs` module enables interacting with the file system in a
|
|
2
|
+
* The `node:fs` module enables interacting with the file system in a
|
|
3
3
|
* way modeled on standard POSIX functions.
|
|
4
4
|
*
|
|
5
5
|
* To use the promise-based APIs:
|
|
6
6
|
*
|
|
7
7
|
* ```js
|
|
8
|
-
* import * as fs from 'fs/promises';
|
|
8
|
+
* import * as fs from 'node:fs/promises';
|
|
9
9
|
* ```
|
|
10
10
|
*
|
|
11
11
|
* To use the callback and sync APIs:
|
|
12
12
|
*
|
|
13
13
|
* ```js
|
|
14
|
-
* import * as fs from 'fs';
|
|
14
|
+
* import * as fs from 'node:fs';
|
|
15
15
|
* ```
|
|
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/v20.2.0/lib/fs.js)
|
|
20
20
|
*/
|
|
21
21
|
declare module 'fs' {
|
|
22
22
|
import * as stream from 'node:stream';
|
|
@@ -73,7 +73,7 @@ declare module 'fs' {
|
|
|
73
73
|
/**
|
|
74
74
|
* A `fs.Stats` object provides information about a file.
|
|
75
75
|
*
|
|
76
|
-
* Objects returned from {@link stat}, {@link lstat}
|
|
76
|
+
* Objects returned from {@link stat}, {@link lstat}, {@link fstat}, and
|
|
77
77
|
* their synchronous counterparts are of this type.
|
|
78
78
|
* If `bigint` in the `options` passed to those methods is true, the numeric values
|
|
79
79
|
* will be `bigint` instead of `number`, and the object will contain additional
|
|
@@ -131,7 +131,6 @@ declare module 'fs' {
|
|
|
131
131
|
* @since v0.1.21
|
|
132
132
|
*/
|
|
133
133
|
export class Stats {}
|
|
134
|
-
|
|
135
134
|
export interface StatsFsBase<T> {
|
|
136
135
|
/** Type of file system. */
|
|
137
136
|
type: T;
|
|
@@ -148,25 +147,46 @@ declare module 'fs' {
|
|
|
148
147
|
/** Free file nodes in file system. */
|
|
149
148
|
ffree: T;
|
|
150
149
|
}
|
|
151
|
-
|
|
152
150
|
export interface StatsFs extends StatsFsBase<number> {}
|
|
153
|
-
|
|
154
151
|
/**
|
|
155
|
-
* Provides information about a mounted file system
|
|
152
|
+
* Provides information about a mounted file system.
|
|
156
153
|
*
|
|
157
|
-
* Objects returned from {@link statfs} and
|
|
158
|
-
* If `bigint` in the `options` passed to those methods is true
|
|
159
|
-
* will be `bigint` instead of `number`.
|
|
160
|
-
*
|
|
154
|
+
* Objects returned from {@link statfs} and its synchronous counterpart are of
|
|
155
|
+
* this type. If `bigint` in the `options` passed to those methods is `true`, the
|
|
156
|
+
* numeric values will be `bigint` instead of `number`.
|
|
157
|
+
*
|
|
158
|
+
* ```console
|
|
159
|
+
* StatFs {
|
|
160
|
+
* type: 1397114950,
|
|
161
|
+
* bsize: 4096,
|
|
162
|
+
* blocks: 121938943,
|
|
163
|
+
* bfree: 61058895,
|
|
164
|
+
* bavail: 61058895,
|
|
165
|
+
* files: 999,
|
|
166
|
+
* ffree: 1000000
|
|
167
|
+
* }
|
|
168
|
+
* ```
|
|
169
|
+
*
|
|
170
|
+
* `bigint` version:
|
|
171
|
+
*
|
|
172
|
+
* ```console
|
|
173
|
+
* StatFs {
|
|
174
|
+
* type: 1397114950n,
|
|
175
|
+
* bsize: 4096n,
|
|
176
|
+
* blocks: 121938943n,
|
|
177
|
+
* bfree: 61058895n,
|
|
178
|
+
* bavail: 61058895n,
|
|
179
|
+
* files: 999n,
|
|
180
|
+
* ffree: 1000000n
|
|
181
|
+
* }
|
|
182
|
+
* ```
|
|
183
|
+
* @since v19.6.0, v18.15.0
|
|
161
184
|
*/
|
|
162
185
|
export class StatsFs {}
|
|
163
|
-
|
|
164
186
|
export interface BigIntStatsFs extends StatsFsBase<bigint> {}
|
|
165
|
-
|
|
166
187
|
export interface StatFsOptions {
|
|
167
188
|
bigint?: boolean | undefined;
|
|
168
189
|
}
|
|
169
|
-
|
|
170
190
|
/**
|
|
171
191
|
* A representation of a directory entry, which can be a file or a subdirectory
|
|
172
192
|
* within the directory, as returned by reading from an `fs.Dir`. The
|
|
@@ -220,6 +240,11 @@ declare module 'fs' {
|
|
|
220
240
|
* @since v10.10.0
|
|
221
241
|
*/
|
|
222
242
|
name: string;
|
|
243
|
+
/**
|
|
244
|
+
* The base path that this `fs.Dirent` object refers to.
|
|
245
|
+
* @since v20.1.0
|
|
246
|
+
*/
|
|
247
|
+
path: string;
|
|
223
248
|
}
|
|
224
249
|
/**
|
|
225
250
|
* A class representing a directory stream.
|
|
@@ -227,7 +252,7 @@ declare module 'fs' {
|
|
|
227
252
|
* Created by {@link opendir}, {@link opendirSync}, or `fsPromises.opendir()`.
|
|
228
253
|
*
|
|
229
254
|
* ```js
|
|
230
|
-
* import { opendir } from 'fs/promises';
|
|
255
|
+
* import { opendir } from 'node:fs/promises';
|
|
231
256
|
*
|
|
232
257
|
* try {
|
|
233
258
|
* const dir = await opendir('./');
|
|
@@ -530,7 +555,7 @@ declare module 'fs' {
|
|
|
530
555
|
* See also: [`rename(2)`](http://man7.org/linux/man-pages/man2/rename.2.html).
|
|
531
556
|
*
|
|
532
557
|
* ```js
|
|
533
|
-
* import { rename } from 'fs';
|
|
558
|
+
* import { rename } from 'node:fs';
|
|
534
559
|
*
|
|
535
560
|
* rename('oldFile.txt', 'newFile.txt', (err) => {
|
|
536
561
|
* if (err) throw err;
|
|
@@ -563,7 +588,7 @@ declare module 'fs' {
|
|
|
563
588
|
* first argument. In this case, `fs.ftruncate()` is called.
|
|
564
589
|
*
|
|
565
590
|
* ```js
|
|
566
|
-
* import { truncate } from 'fs';
|
|
591
|
+
* import { truncate } from 'node:fs';
|
|
567
592
|
* // Assuming that 'path/file.txt' is a regular file.
|
|
568
593
|
* truncate('path/file.txt', (err) => {
|
|
569
594
|
* if (err) throw err;
|
|
@@ -615,7 +640,7 @@ declare module 'fs' {
|
|
|
615
640
|
* file:
|
|
616
641
|
*
|
|
617
642
|
* ```js
|
|
618
|
-
* import { open, close, ftruncate } from 'fs';
|
|
643
|
+
* import { open, close, ftruncate } from 'node:fs';
|
|
619
644
|
*
|
|
620
645
|
* function closeFd(fd) {
|
|
621
646
|
* close(fd, (err) => {
|
|
@@ -772,7 +797,7 @@ declare module 'fs' {
|
|
|
772
797
|
* See the POSIX [`chmod(2)`](http://man7.org/linux/man-pages/man2/chmod.2.html) documentation for more detail.
|
|
773
798
|
*
|
|
774
799
|
* ```js
|
|
775
|
-
* import { chmod } from 'fs';
|
|
800
|
+
* import { chmod } from 'node:fs';
|
|
776
801
|
*
|
|
777
802
|
* chmod('my_file.txt', 0o775, (err) => {
|
|
778
803
|
* if (err) throw err;
|
|
@@ -854,7 +879,10 @@ declare module 'fs' {
|
|
|
854
879
|
*
|
|
855
880
|
* In case of an error, the `err.code` will be one of `Common System Errors`.
|
|
856
881
|
*
|
|
857
|
-
*
|
|
882
|
+
* {@link stat} follows symbolic links. Use {@link lstat} to look at the
|
|
883
|
+
* links themselves.
|
|
884
|
+
*
|
|
885
|
+
* Using `fs.stat()` to check for the existence of a file before calling`fs.open()`, `fs.readFile()`, or `fs.writeFile()` is not recommended.
|
|
858
886
|
* Instead, user code should open/read/write the file directly and handle the
|
|
859
887
|
* error raised if the file is not available.
|
|
860
888
|
*
|
|
@@ -871,7 +899,7 @@ declare module 'fs' {
|
|
|
871
899
|
* The next program will check for the stats of the given paths:
|
|
872
900
|
*
|
|
873
901
|
* ```js
|
|
874
|
-
* import { stat } from 'fs';
|
|
902
|
+
* import { stat } from 'node:fs';
|
|
875
903
|
*
|
|
876
904
|
* const pathsToCheck = ['./txtDir', './txtDir/file.txt'];
|
|
877
905
|
*
|
|
@@ -1118,10 +1146,12 @@ declare module 'fs' {
|
|
|
1118
1146
|
function __promisify__(path: PathLike, options?: StatOptions): Promise<Stats | BigIntStats>;
|
|
1119
1147
|
}
|
|
1120
1148
|
/**
|
|
1121
|
-
* Asynchronous statfs(2). Returns information about the mounted file system which
|
|
1122
|
-
*
|
|
1149
|
+
* Asynchronous [`statfs(2)`](http://man7.org/linux/man-pages/man2/statfs.2.html). Returns information about the mounted file system which
|
|
1150
|
+
* contains `path`. The callback gets two arguments `(err, stats)` where `stats`is an `fs.StatFs` object.
|
|
1151
|
+
*
|
|
1152
|
+
* In case of an error, the `err.code` will be one of `Common System Errors`.
|
|
1153
|
+
* @since v19.6.0, v18.15.0
|
|
1123
1154
|
* @param path A path to an existing file or directory on the file system to be queried.
|
|
1124
|
-
* @param callback
|
|
1125
1155
|
*/
|
|
1126
1156
|
export function statfs(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: StatsFs) => void): void;
|
|
1127
1157
|
export function statfs(
|
|
@@ -1160,12 +1190,13 @@ declare module 'fs' {
|
|
|
1160
1190
|
): Promise<BigIntStatsFs>;
|
|
1161
1191
|
function __promisify__(path: PathLike, options?: StatFsOptions): Promise<StatsFs | BigIntStatsFs>;
|
|
1162
1192
|
}
|
|
1163
|
-
|
|
1164
1193
|
/**
|
|
1165
|
-
* Synchronous statfs(2). Returns information about the mounted file system which
|
|
1166
|
-
*
|
|
1194
|
+
* Synchronous [`statfs(2)`](http://man7.org/linux/man-pages/man2/statfs.2.html). Returns information about the mounted file system which
|
|
1195
|
+
* contains `path`.
|
|
1196
|
+
*
|
|
1197
|
+
* In case of an error, the `err.code` will be one of `Common System Errors`.
|
|
1198
|
+
* @since v19.6.0, v18.15.0
|
|
1167
1199
|
* @param path A path to an existing file or directory on the file system to be queried.
|
|
1168
|
-
* @param callback
|
|
1169
1200
|
*/
|
|
1170
1201
|
export function statfsSync(
|
|
1171
1202
|
path: PathLike,
|
|
@@ -1179,7 +1210,6 @@ declare module 'fs' {
|
|
|
1179
1210
|
bigint: true;
|
|
1180
1211
|
}
|
|
1181
1212
|
): BigIntStatsFs;
|
|
1182
|
-
|
|
1183
1213
|
export function statfsSync(path: PathLike, options?: StatFsOptions): StatsFs | BigIntStatsFs;
|
|
1184
1214
|
/**
|
|
1185
1215
|
* Synchronous lstat(2) - Get file status. Does not dereference symbolic links.
|
|
@@ -1214,14 +1244,15 @@ declare module 'fs' {
|
|
|
1214
1244
|
*
|
|
1215
1245
|
* The `type` argument is only available on Windows and ignored on other platforms.
|
|
1216
1246
|
* It can be set to `'dir'`, `'file'`, or `'junction'`. If the `type` argument is
|
|
1217
|
-
* not
|
|
1218
|
-
* the `target` does not exist, `'file'` will be used. Windows junction points
|
|
1219
|
-
* require the destination path to be absolute. When using `'junction'`, the`target` argument will automatically be normalized to absolute path.
|
|
1247
|
+
* not a string, Node.js will autodetect `target` type and use `'file'` or `'dir'`.
|
|
1248
|
+
* If the `target` does not exist, `'file'` will be used. Windows junction points
|
|
1249
|
+
* require the destination path to be absolute. When using `'junction'`, the`target` argument will automatically be normalized to absolute path. Junction
|
|
1250
|
+
* points on NTFS volumes can only point to directories.
|
|
1220
1251
|
*
|
|
1221
|
-
* Relative targets are relative to the link
|
|
1252
|
+
* Relative targets are relative to the link's parent directory.
|
|
1222
1253
|
*
|
|
1223
1254
|
* ```js
|
|
1224
|
-
* import { symlink } from 'fs';
|
|
1255
|
+
* import { symlink } from 'node:fs';
|
|
1225
1256
|
*
|
|
1226
1257
|
* symlink('./mew', './mewtwo', callback);
|
|
1227
1258
|
* ```
|
|
@@ -1236,6 +1267,7 @@ declare module 'fs' {
|
|
|
1236
1267
|
* └── mewtwo -> ./mew
|
|
1237
1268
|
* ```
|
|
1238
1269
|
* @since v0.1.31
|
|
1270
|
+
* @param [type='null']
|
|
1239
1271
|
*/
|
|
1240
1272
|
export function symlink(target: PathLike, path: PathLike, type: symlink.Type | undefined | null, callback: NoParamCallback): void;
|
|
1241
1273
|
/**
|
|
@@ -1261,6 +1293,7 @@ declare module 'fs' {
|
|
|
1261
1293
|
* For detailed information, see the documentation of the asynchronous version of
|
|
1262
1294
|
* this API: {@link symlink}.
|
|
1263
1295
|
* @since v0.1.31
|
|
1296
|
+
* @param [type='null']
|
|
1264
1297
|
*/
|
|
1265
1298
|
export function symlinkSync(target: PathLike, path: PathLike, type?: symlink.Type | null): void;
|
|
1266
1299
|
/**
|
|
@@ -1338,7 +1371,7 @@ declare module 'fs' {
|
|
|
1338
1371
|
*/
|
|
1339
1372
|
export function readlinkSync(path: PathLike, options?: EncodingOption): string | Buffer;
|
|
1340
1373
|
/**
|
|
1341
|
-
* Asynchronously computes the canonical pathname by resolving `.`,
|
|
1374
|
+
* Asynchronously computes the canonical pathname by resolving `.`, `..`, and
|
|
1342
1375
|
* symbolic links.
|
|
1343
1376
|
*
|
|
1344
1377
|
* A canonical pathname is not necessarily unique. Hard links and bind mounts can
|
|
@@ -1452,7 +1485,7 @@ declare module 'fs' {
|
|
|
1452
1485
|
* possible exception are given to the completion callback.
|
|
1453
1486
|
*
|
|
1454
1487
|
* ```js
|
|
1455
|
-
* import { unlink } from 'fs';
|
|
1488
|
+
* import { unlink } from 'node:fs';
|
|
1456
1489
|
* // Assuming that 'path/file.txt' is a regular file.
|
|
1457
1490
|
* unlink('path/file.txt', (err) => {
|
|
1458
1491
|
* if (err) throw err;
|
|
@@ -1607,7 +1640,7 @@ declare module 'fs' {
|
|
|
1607
1640
|
* when `recursive` is false.
|
|
1608
1641
|
*
|
|
1609
1642
|
* ```js
|
|
1610
|
-
* import { mkdir } from 'fs';
|
|
1643
|
+
* import { mkdir } from 'node:fs';
|
|
1611
1644
|
*
|
|
1612
1645
|
* // Creates /tmp/a/apple, regardless of whether `/tmp` and /tmp/a exist.
|
|
1613
1646
|
* mkdir('/tmp/a/apple', { recursive: true }, (err) => {
|
|
@@ -1619,7 +1652,7 @@ declare module 'fs' {
|
|
|
1619
1652
|
* result in an error:
|
|
1620
1653
|
*
|
|
1621
1654
|
* ```js
|
|
1622
|
-
* import { mkdir } from 'fs';
|
|
1655
|
+
* import { mkdir } from 'node:fs';
|
|
1623
1656
|
*
|
|
1624
1657
|
* mkdir('/', { recursive: true }, (err) => {
|
|
1625
1658
|
* // => [Error: EPERM: operation not permitted, mkdir 'C:\']
|
|
@@ -1751,9 +1784,11 @@ declare module 'fs' {
|
|
|
1751
1784
|
* object with an `encoding` property specifying the character encoding to use.
|
|
1752
1785
|
*
|
|
1753
1786
|
* ```js
|
|
1754
|
-
* import { mkdtemp } from 'fs';
|
|
1787
|
+
* import { mkdtemp } from 'node:fs';
|
|
1788
|
+
* import { join } from 'node:path';
|
|
1789
|
+
* import { tmpdir } from 'node:os';
|
|
1755
1790
|
*
|
|
1756
|
-
* mkdtemp(
|
|
1791
|
+
* mkdtemp(join(tmpdir(), 'foo-'), (err, directory) => {
|
|
1757
1792
|
* if (err) throw err;
|
|
1758
1793
|
* console.log(directory);
|
|
1759
1794
|
* // Prints: /tmp/foo-itXde2 or C:\Users\...\AppData\Local\Temp\foo-itXde2
|
|
@@ -1763,11 +1798,11 @@ declare module 'fs' {
|
|
|
1763
1798
|
* The `fs.mkdtemp()` method will append the six randomly selected characters
|
|
1764
1799
|
* directly to the `prefix` string. For instance, given a directory `/tmp`, if the
|
|
1765
1800
|
* intention is to create a temporary directory _within_`/tmp`, the `prefix`must end with a trailing platform-specific path separator
|
|
1766
|
-
* (`require('path').sep`).
|
|
1801
|
+
* (`require('node:path').sep`).
|
|
1767
1802
|
*
|
|
1768
1803
|
* ```js
|
|
1769
|
-
* import { tmpdir } from 'os';
|
|
1770
|
-
* import { mkdtemp } from 'fs';
|
|
1804
|
+
* import { tmpdir } from 'node:os';
|
|
1805
|
+
* import { mkdtemp } from 'node:fs';
|
|
1771
1806
|
*
|
|
1772
1807
|
* // The parent directory for the new temporary directory
|
|
1773
1808
|
* const tmpDir = tmpdir();
|
|
@@ -1782,7 +1817,7 @@ declare module 'fs' {
|
|
|
1782
1817
|
* });
|
|
1783
1818
|
*
|
|
1784
1819
|
* // This method is *CORRECT*:
|
|
1785
|
-
* import { sep } from 'path';
|
|
1820
|
+
* import { sep } from 'node:path';
|
|
1786
1821
|
* mkdtemp(`${tmpDir}${sep}`, (err, directory) => {
|
|
1787
1822
|
* if (err) throw err;
|
|
1788
1823
|
* console.log(directory);
|
|
@@ -1881,6 +1916,7 @@ declare module 'fs' {
|
|
|
1881
1916
|
| {
|
|
1882
1917
|
encoding: BufferEncoding | null;
|
|
1883
1918
|
withFileTypes?: false | undefined;
|
|
1919
|
+
recursive?: boolean | undefined;
|
|
1884
1920
|
}
|
|
1885
1921
|
| BufferEncoding
|
|
1886
1922
|
| undefined
|
|
@@ -1898,6 +1934,7 @@ declare module 'fs' {
|
|
|
1898
1934
|
| {
|
|
1899
1935
|
encoding: 'buffer';
|
|
1900
1936
|
withFileTypes?: false | undefined;
|
|
1937
|
+
recursive?: boolean | undefined;
|
|
1901
1938
|
}
|
|
1902
1939
|
| 'buffer',
|
|
1903
1940
|
callback: (err: NodeJS.ErrnoException | null, files: Buffer[]) => void
|
|
@@ -1912,6 +1949,7 @@ declare module 'fs' {
|
|
|
1912
1949
|
options:
|
|
1913
1950
|
| (ObjectEncodingOptions & {
|
|
1914
1951
|
withFileTypes?: false | undefined;
|
|
1952
|
+
recursive?: boolean | undefined;
|
|
1915
1953
|
})
|
|
1916
1954
|
| BufferEncoding
|
|
1917
1955
|
| undefined
|
|
@@ -1932,6 +1970,7 @@ declare module 'fs' {
|
|
|
1932
1970
|
path: PathLike,
|
|
1933
1971
|
options: ObjectEncodingOptions & {
|
|
1934
1972
|
withFileTypes: true;
|
|
1973
|
+
recursive?: boolean | undefined;
|
|
1935
1974
|
},
|
|
1936
1975
|
callback: (err: NodeJS.ErrnoException | null, files: Dirent[]) => void
|
|
1937
1976
|
): void;
|
|
@@ -1947,6 +1986,7 @@ declare module 'fs' {
|
|
|
1947
1986
|
| {
|
|
1948
1987
|
encoding: BufferEncoding | null;
|
|
1949
1988
|
withFileTypes?: false | undefined;
|
|
1989
|
+
recursive?: boolean | undefined;
|
|
1950
1990
|
}
|
|
1951
1991
|
| BufferEncoding
|
|
1952
1992
|
| null
|
|
@@ -1963,6 +2003,7 @@ declare module 'fs' {
|
|
|
1963
2003
|
| {
|
|
1964
2004
|
encoding: 'buffer';
|
|
1965
2005
|
withFileTypes?: false | undefined;
|
|
2006
|
+
recursive?: boolean | undefined;
|
|
1966
2007
|
}
|
|
1967
2008
|
): Promise<Buffer[]>;
|
|
1968
2009
|
/**
|
|
@@ -1975,6 +2016,7 @@ declare module 'fs' {
|
|
|
1975
2016
|
options?:
|
|
1976
2017
|
| (ObjectEncodingOptions & {
|
|
1977
2018
|
withFileTypes?: false | undefined;
|
|
2019
|
+
recursive?: boolean | undefined;
|
|
1978
2020
|
})
|
|
1979
2021
|
| BufferEncoding
|
|
1980
2022
|
| null
|
|
@@ -1988,6 +2030,7 @@ declare module 'fs' {
|
|
|
1988
2030
|
path: PathLike,
|
|
1989
2031
|
options: ObjectEncodingOptions & {
|
|
1990
2032
|
withFileTypes: true;
|
|
2033
|
+
recursive?: boolean | undefined;
|
|
1991
2034
|
}
|
|
1992
2035
|
): Promise<Dirent[]>;
|
|
1993
2036
|
}
|
|
@@ -2010,6 +2053,7 @@ declare module 'fs' {
|
|
|
2010
2053
|
| {
|
|
2011
2054
|
encoding: BufferEncoding | null;
|
|
2012
2055
|
withFileTypes?: false | undefined;
|
|
2056
|
+
recursive?: boolean | undefined;
|
|
2013
2057
|
}
|
|
2014
2058
|
| BufferEncoding
|
|
2015
2059
|
| null
|
|
@@ -2025,6 +2069,7 @@ declare module 'fs' {
|
|
|
2025
2069
|
| {
|
|
2026
2070
|
encoding: 'buffer';
|
|
2027
2071
|
withFileTypes?: false | undefined;
|
|
2072
|
+
recursive?: boolean | undefined;
|
|
2028
2073
|
}
|
|
2029
2074
|
| 'buffer'
|
|
2030
2075
|
): Buffer[];
|
|
@@ -2038,6 +2083,7 @@ declare module 'fs' {
|
|
|
2038
2083
|
options?:
|
|
2039
2084
|
| (ObjectEncodingOptions & {
|
|
2040
2085
|
withFileTypes?: false | undefined;
|
|
2086
|
+
recursive?: boolean | undefined;
|
|
2041
2087
|
})
|
|
2042
2088
|
| BufferEncoding
|
|
2043
2089
|
| null
|
|
@@ -2051,6 +2097,7 @@ declare module 'fs' {
|
|
|
2051
2097
|
path: PathLike,
|
|
2052
2098
|
options: ObjectEncodingOptions & {
|
|
2053
2099
|
withFileTypes: true;
|
|
2100
|
+
recursive?: boolean | undefined;
|
|
2054
2101
|
}
|
|
2055
2102
|
): Dirent[];
|
|
2056
2103
|
/**
|
|
@@ -2110,7 +2157,6 @@ declare module 'fs' {
|
|
|
2110
2157
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
2111
2158
|
*/
|
|
2112
2159
|
export function open(path: PathLike, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
|
|
2113
|
-
|
|
2114
2160
|
export namespace open {
|
|
2115
2161
|
/**
|
|
2116
2162
|
* Asynchronous open(2) - open and possibly create a file.
|
|
@@ -2135,7 +2181,7 @@ declare module 'fs' {
|
|
|
2135
2181
|
* The `atime` and `mtime` arguments follow these rules:
|
|
2136
2182
|
*
|
|
2137
2183
|
* * Values can be either numbers representing Unix epoch time in seconds,`Date`s, or a numeric string like `'123456789.0'`.
|
|
2138
|
-
* * If the value can not be converted to a number, or is `NaN`, `Infinity
|
|
2184
|
+
* * If the value can not be converted to a number, or is `NaN`, `Infinity`, or`-Infinity`, an `Error` will be thrown.
|
|
2139
2185
|
* @since v0.4.2
|
|
2140
2186
|
*/
|
|
2141
2187
|
export function utimes(path: PathLike, atime: TimeLike, mtime: TimeLike, callback: NoParamCallback): void;
|
|
@@ -2221,6 +2267,9 @@ declare module 'fs' {
|
|
|
2221
2267
|
* The kernel ignores the position argument and always appends the data to
|
|
2222
2268
|
* the end of the file.
|
|
2223
2269
|
* @since v0.0.2
|
|
2270
|
+
* @param [offset=0]
|
|
2271
|
+
* @param [length=buffer.byteLength - offset]
|
|
2272
|
+
* @param [position='null']
|
|
2224
2273
|
*/
|
|
2225
2274
|
export function write<TBuffer extends NodeJS.ArrayBufferView>(
|
|
2226
2275
|
fd: number,
|
|
@@ -2325,6 +2374,9 @@ declare module 'fs' {
|
|
|
2325
2374
|
* For detailed information, see the documentation of the asynchronous version of
|
|
2326
2375
|
* this API: {@link write}.
|
|
2327
2376
|
* @since v0.1.21
|
|
2377
|
+
* @param [offset=0]
|
|
2378
|
+
* @param [length=buffer.byteLength - offset]
|
|
2379
|
+
* @param [position='null']
|
|
2328
2380
|
* @return The number of bytes written.
|
|
2329
2381
|
*/
|
|
2330
2382
|
export function writeSync(fd: number, buffer: NodeJS.ArrayBufferView, offset?: number | null, length?: number | null, position?: number | null): number;
|
|
@@ -2430,6 +2482,7 @@ declare module 'fs' {
|
|
|
2430
2482
|
* For detailed information, see the documentation of the asynchronous version of
|
|
2431
2483
|
* this API: {@link read}.
|
|
2432
2484
|
* @since v0.1.21
|
|
2485
|
+
* @param [position='null']
|
|
2433
2486
|
*/
|
|
2434
2487
|
export function readSync(fd: number, buffer: NodeJS.ArrayBufferView, offset: number, length: number, position: ReadPosition | null): number;
|
|
2435
2488
|
/**
|
|
@@ -2441,7 +2494,7 @@ declare module 'fs' {
|
|
|
2441
2494
|
* Asynchronously reads the entire contents of a file.
|
|
2442
2495
|
*
|
|
2443
2496
|
* ```js
|
|
2444
|
-
* import { readFile } from 'fs';
|
|
2497
|
+
* import { readFile } from 'node:fs';
|
|
2445
2498
|
*
|
|
2446
2499
|
* readFile('/etc/passwd', (err, data) => {
|
|
2447
2500
|
* if (err) throw err;
|
|
@@ -2457,7 +2510,7 @@ declare module 'fs' {
|
|
|
2457
2510
|
* If `options` is a string, then it specifies the encoding:
|
|
2458
2511
|
*
|
|
2459
2512
|
* ```js
|
|
2460
|
-
* import { readFile } from 'fs';
|
|
2513
|
+
* import { readFile } from 'node:fs';
|
|
2461
2514
|
*
|
|
2462
2515
|
* readFile('/etc/passwd', 'utf8', callback);
|
|
2463
2516
|
* ```
|
|
@@ -2467,7 +2520,7 @@ declare module 'fs' {
|
|
|
2467
2520
|
* will be returned.
|
|
2468
2521
|
*
|
|
2469
2522
|
* ```js
|
|
2470
|
-
* import { readFile } from 'fs';
|
|
2523
|
+
* import { readFile } from 'node:fs';
|
|
2471
2524
|
*
|
|
2472
2525
|
* // macOS, Linux, and Windows
|
|
2473
2526
|
* readFile('<directory>', (err, data) => {
|
|
@@ -2484,7 +2537,7 @@ declare module 'fs' {
|
|
|
2484
2537
|
* request is aborted the callback is called with an `AbortError`:
|
|
2485
2538
|
*
|
|
2486
2539
|
* ```js
|
|
2487
|
-
* import { readFile } from 'fs';
|
|
2540
|
+
* import { readFile } from 'node:fs';
|
|
2488
2541
|
*
|
|
2489
2542
|
* const controller = new AbortController();
|
|
2490
2543
|
* const signal = controller.signal;
|
|
@@ -2617,7 +2670,7 @@ declare module 'fs' {
|
|
|
2617
2670
|
* Similar to {@link readFile}, when the path is a directory, the behavior of`fs.readFileSync()` is platform-specific.
|
|
2618
2671
|
*
|
|
2619
2672
|
* ```js
|
|
2620
|
-
* import { readFileSync } from 'fs';
|
|
2673
|
+
* import { readFileSync } from 'node:fs';
|
|
2621
2674
|
*
|
|
2622
2675
|
* // macOS, Linux, and Windows
|
|
2623
2676
|
* readFileSync('<directory>');
|
|
@@ -2688,8 +2741,8 @@ declare module 'fs' {
|
|
|
2688
2741
|
* The `mode` option only affects the newly created file. See {@link open} for more details.
|
|
2689
2742
|
*
|
|
2690
2743
|
* ```js
|
|
2691
|
-
* import { writeFile } from 'fs';
|
|
2692
|
-
* import { Buffer } from 'buffer';
|
|
2744
|
+
* import { writeFile } from 'node:fs';
|
|
2745
|
+
* import { Buffer } from 'node:buffer';
|
|
2693
2746
|
*
|
|
2694
2747
|
* const data = new Uint8Array(Buffer.from('Hello Node.js'));
|
|
2695
2748
|
* writeFile('message.txt', data, (err) => {
|
|
@@ -2701,7 +2754,7 @@ declare module 'fs' {
|
|
|
2701
2754
|
* If `options` is a string, then it specifies the encoding:
|
|
2702
2755
|
*
|
|
2703
2756
|
* ```js
|
|
2704
|
-
* import { writeFile } from 'fs';
|
|
2757
|
+
* import { writeFile } from 'node:fs';
|
|
2705
2758
|
*
|
|
2706
2759
|
* writeFile('message.txt', 'Hello Node.js', 'utf8', callback);
|
|
2707
2760
|
* ```
|
|
@@ -2719,8 +2772,8 @@ declare module 'fs' {
|
|
|
2719
2772
|
* to be written.
|
|
2720
2773
|
*
|
|
2721
2774
|
* ```js
|
|
2722
|
-
* import { writeFile } from 'fs';
|
|
2723
|
-
* import { Buffer } from 'buffer';
|
|
2775
|
+
* import { writeFile } from 'node:fs';
|
|
2776
|
+
* import { Buffer } from 'node:buffer';
|
|
2724
2777
|
*
|
|
2725
2778
|
* const controller = new AbortController();
|
|
2726
2779
|
* const { signal } = controller;
|
|
@@ -2778,7 +2831,7 @@ declare module 'fs' {
|
|
|
2778
2831
|
* The `mode` option only affects the newly created file. See {@link open} for more details.
|
|
2779
2832
|
*
|
|
2780
2833
|
* ```js
|
|
2781
|
-
* import { appendFile } from 'fs';
|
|
2834
|
+
* import { appendFile } from 'node:fs';
|
|
2782
2835
|
*
|
|
2783
2836
|
* appendFile('message.txt', 'data to append', (err) => {
|
|
2784
2837
|
* if (err) throw err;
|
|
@@ -2789,7 +2842,7 @@ declare module 'fs' {
|
|
|
2789
2842
|
* If `options` is a string, then it specifies the encoding:
|
|
2790
2843
|
*
|
|
2791
2844
|
* ```js
|
|
2792
|
-
* import { appendFile } from 'fs';
|
|
2845
|
+
* import { appendFile } from 'node:fs';
|
|
2793
2846
|
*
|
|
2794
2847
|
* appendFile('message.txt', 'data to append', 'utf8', callback);
|
|
2795
2848
|
* ```
|
|
@@ -2799,7 +2852,7 @@ declare module 'fs' {
|
|
|
2799
2852
|
* not be closed automatically.
|
|
2800
2853
|
*
|
|
2801
2854
|
* ```js
|
|
2802
|
-
* import { open, close, appendFile } from 'fs';
|
|
2855
|
+
* import { open, close, appendFile } from 'node:fs';
|
|
2803
2856
|
*
|
|
2804
2857
|
* function closeFd(fd) {
|
|
2805
2858
|
* close(fd, (err) => {
|
|
@@ -2854,7 +2907,7 @@ declare module 'fs' {
|
|
|
2854
2907
|
* The `mode` option only affects the newly created file. See {@link open} for more details.
|
|
2855
2908
|
*
|
|
2856
2909
|
* ```js
|
|
2857
|
-
* import { appendFileSync } from 'fs';
|
|
2910
|
+
* import { appendFileSync } from 'node:fs';
|
|
2858
2911
|
*
|
|
2859
2912
|
* try {
|
|
2860
2913
|
* appendFileSync('message.txt', 'data to append');
|
|
@@ -2867,7 +2920,7 @@ declare module 'fs' {
|
|
|
2867
2920
|
* If `options` is a string, then it specifies the encoding:
|
|
2868
2921
|
*
|
|
2869
2922
|
* ```js
|
|
2870
|
-
* import { appendFileSync } from 'fs';
|
|
2923
|
+
* import { appendFileSync } from 'node:fs';
|
|
2871
2924
|
*
|
|
2872
2925
|
* appendFileSync('message.txt', 'data to append', 'utf8');
|
|
2873
2926
|
* ```
|
|
@@ -2877,7 +2930,7 @@ declare module 'fs' {
|
|
|
2877
2930
|
* not be closed automatically.
|
|
2878
2931
|
*
|
|
2879
2932
|
* ```js
|
|
2880
|
-
* import { openSync, closeSync, appendFileSync } from 'fs';
|
|
2933
|
+
* import { openSync, closeSync, appendFileSync } from 'node:fs';
|
|
2881
2934
|
*
|
|
2882
2935
|
* let fd;
|
|
2883
2936
|
*
|
|
@@ -2959,7 +3012,7 @@ declare module 'fs' {
|
|
|
2959
3012
|
* stat object:
|
|
2960
3013
|
*
|
|
2961
3014
|
* ```js
|
|
2962
|
-
* import { watchFile } from 'fs';
|
|
3015
|
+
* import { watchFile } from 'node:fs';
|
|
2963
3016
|
*
|
|
2964
3017
|
* watchFile('message.text', (curr, prev) => {
|
|
2965
3018
|
* console.log(`the current mtime is: ${curr.mtime}`);
|
|
@@ -2999,7 +3052,7 @@ declare module 'fs' {
|
|
|
2999
3052
|
bigint?: false | undefined;
|
|
3000
3053
|
})
|
|
3001
3054
|
| undefined,
|
|
3002
|
-
listener:
|
|
3055
|
+
listener: StatsListener
|
|
3003
3056
|
): StatWatcher;
|
|
3004
3057
|
export function watchFile(
|
|
3005
3058
|
filename: PathLike,
|
|
@@ -3008,13 +3061,13 @@ declare module 'fs' {
|
|
|
3008
3061
|
bigint: true;
|
|
3009
3062
|
})
|
|
3010
3063
|
| undefined,
|
|
3011
|
-
listener:
|
|
3064
|
+
listener: BigIntStatsListener
|
|
3012
3065
|
): StatWatcher;
|
|
3013
3066
|
/**
|
|
3014
3067
|
* Watch for changes on `filename`. The callback `listener` will be called each time the file is accessed.
|
|
3015
3068
|
* @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
|
|
3016
3069
|
*/
|
|
3017
|
-
export function watchFile(filename: PathLike, listener:
|
|
3070
|
+
export function watchFile(filename: PathLike, listener: StatsListener): StatWatcher;
|
|
3018
3071
|
/**
|
|
3019
3072
|
* Stop watching for changes on `filename`. If `listener` is specified, only that
|
|
3020
3073
|
* particular listener is removed. Otherwise, _all_ listeners are removed,
|
|
@@ -3027,7 +3080,8 @@ declare module 'fs' {
|
|
|
3027
3080
|
* @since v0.1.31
|
|
3028
3081
|
* @param listener Optional, a listener previously attached using `fs.watchFile()`
|
|
3029
3082
|
*/
|
|
3030
|
-
export function unwatchFile(filename: PathLike, listener?:
|
|
3083
|
+
export function unwatchFile(filename: PathLike, listener?: StatsListener): void;
|
|
3084
|
+
export function unwatchFile(filename: PathLike, listener?: BigIntStatsListener): void;
|
|
3031
3085
|
export interface WatchOptions extends Abortable {
|
|
3032
3086
|
encoding?: BufferEncoding | 'buffer' | undefined;
|
|
3033
3087
|
persistent?: boolean | undefined;
|
|
@@ -3035,6 +3089,8 @@ declare module 'fs' {
|
|
|
3035
3089
|
}
|
|
3036
3090
|
export type WatchEventType = 'rename' | 'change';
|
|
3037
3091
|
export type WatchListener<T> = (event: WatchEventType, filename: T) => void;
|
|
3092
|
+
export type StatsListener = (curr: Stats, prev: Stats) => void;
|
|
3093
|
+
export type BigIntStatsListener = (curr: BigIntStats, prev: BigIntStats) => void;
|
|
3038
3094
|
/**
|
|
3039
3095
|
* Watch for changes on `filename`, where `filename` is either a file or a
|
|
3040
3096
|
* directory.
|
|
@@ -3092,7 +3148,7 @@ declare module 'fs' {
|
|
|
3092
3148
|
* Then call the `callback` argument with either true or false:
|
|
3093
3149
|
*
|
|
3094
3150
|
* ```js
|
|
3095
|
-
* import { exists } from 'fs';
|
|
3151
|
+
* import { exists } from 'node:fs';
|
|
3096
3152
|
*
|
|
3097
3153
|
* exists('/etc/passwd', (e) => {
|
|
3098
3154
|
* console.log(e ? 'it exists' : 'no passwd!');
|
|
@@ -3104,7 +3160,7 @@ declare module 'fs' {
|
|
|
3104
3160
|
* has only one boolean parameter. This is one reason `fs.access()` is recommended
|
|
3105
3161
|
* instead of `fs.exists()`.
|
|
3106
3162
|
*
|
|
3107
|
-
* Using `fs.exists()` to check for the existence of a file before calling`fs.open()`, `fs.readFile()
|
|
3163
|
+
* Using `fs.exists()` to check for the existence of a file before calling`fs.open()`, `fs.readFile()`, or `fs.writeFile()` is not recommended. Doing
|
|
3108
3164
|
* so introduces a race condition, since other processes may change the file's
|
|
3109
3165
|
* state between the two calls. Instead, user code should open/read/write the
|
|
3110
3166
|
* file directly and handle the error raised if the file does not exist.
|
|
@@ -3112,7 +3168,7 @@ declare module 'fs' {
|
|
|
3112
3168
|
* **write (NOT RECOMMENDED)**
|
|
3113
3169
|
*
|
|
3114
3170
|
* ```js
|
|
3115
|
-
* import { exists, open, close } from 'fs';
|
|
3171
|
+
* import { exists, open, close } from 'node:fs';
|
|
3116
3172
|
*
|
|
3117
3173
|
* exists('myfile', (e) => {
|
|
3118
3174
|
* if (e) {
|
|
@@ -3136,7 +3192,7 @@ declare module 'fs' {
|
|
|
3136
3192
|
* **write (RECOMMENDED)**
|
|
3137
3193
|
*
|
|
3138
3194
|
* ```js
|
|
3139
|
-
* import { open, close } from 'fs';
|
|
3195
|
+
* import { open, close } from 'node:fs';
|
|
3140
3196
|
* open('myfile', 'wx', (err, fd) => {
|
|
3141
3197
|
* if (err) {
|
|
3142
3198
|
* if (err.code === 'EEXIST') {
|
|
@@ -3160,7 +3216,7 @@ declare module 'fs' {
|
|
|
3160
3216
|
* **read (NOT RECOMMENDED)**
|
|
3161
3217
|
*
|
|
3162
3218
|
* ```js
|
|
3163
|
-
* import { open, close, exists } from 'fs';
|
|
3219
|
+
* import { open, close, exists } from 'node:fs';
|
|
3164
3220
|
*
|
|
3165
3221
|
* exists('myfile', (e) => {
|
|
3166
3222
|
* if (e) {
|
|
@@ -3184,7 +3240,7 @@ declare module 'fs' {
|
|
|
3184
3240
|
* **read (RECOMMENDED)**
|
|
3185
3241
|
*
|
|
3186
3242
|
* ```js
|
|
3187
|
-
* import { open, close } from 'fs';
|
|
3243
|
+
* import { open, close } from 'node:fs';
|
|
3188
3244
|
*
|
|
3189
3245
|
* open('myfile', 'r', (err, fd) => {
|
|
3190
3246
|
* if (err) {
|
|
@@ -3210,7 +3266,7 @@ declare module 'fs' {
|
|
|
3210
3266
|
* file; the "recommended" examples are better because they use the file directly
|
|
3211
3267
|
* and handle the error, if any.
|
|
3212
3268
|
*
|
|
3213
|
-
* In general, check for the existence of a file only if the file won
|
|
3269
|
+
* In general, check for the existence of a file only if the file won't be
|
|
3214
3270
|
* used directly, for example when its existence is a signal from another
|
|
3215
3271
|
* process.
|
|
3216
3272
|
* @since v0.0.2
|
|
@@ -3235,7 +3291,7 @@ declare module 'fs' {
|
|
|
3235
3291
|
* Node.js callbacks. `fs.existsSync()` does not use a callback.
|
|
3236
3292
|
*
|
|
3237
3293
|
* ```js
|
|
3238
|
-
* import { existsSync } from 'fs';
|
|
3294
|
+
* import { existsSync } from 'node:fs';
|
|
3239
3295
|
*
|
|
3240
3296
|
* if (existsSync('/etc/passwd'))
|
|
3241
3297
|
* console.log('The path exists.');
|
|
@@ -3369,7 +3425,7 @@ declare module 'fs' {
|
|
|
3369
3425
|
* argument will be an `Error` object. The following examples check if`package.json` exists, and if it is readable or writable.
|
|
3370
3426
|
*
|
|
3371
3427
|
* ```js
|
|
3372
|
-
* import { access, constants } from 'fs';
|
|
3428
|
+
* import { access, constants } from 'node:fs';
|
|
3373
3429
|
*
|
|
3374
3430
|
* const file = 'package.json';
|
|
3375
3431
|
*
|
|
@@ -3394,7 +3450,7 @@ declare module 'fs' {
|
|
|
3394
3450
|
* });
|
|
3395
3451
|
* ```
|
|
3396
3452
|
*
|
|
3397
|
-
* Do not use `fs.access()` to check for the accessibility of a file before calling`fs.open()`, `fs.readFile()
|
|
3453
|
+
* Do not use `fs.access()` to check for the accessibility of a file before calling`fs.open()`, `fs.readFile()`, or `fs.writeFile()`. Doing
|
|
3398
3454
|
* so introduces a race condition, since other processes may change the file's
|
|
3399
3455
|
* state between the two calls. Instead, user code should open/read/write the
|
|
3400
3456
|
* file directly and handle the error raised if the file is not accessible.
|
|
@@ -3402,7 +3458,7 @@ declare module 'fs' {
|
|
|
3402
3458
|
* **write (NOT RECOMMENDED)**
|
|
3403
3459
|
*
|
|
3404
3460
|
* ```js
|
|
3405
|
-
* import { access, open, close } from 'fs';
|
|
3461
|
+
* import { access, open, close } from 'node:fs';
|
|
3406
3462
|
*
|
|
3407
3463
|
* access('myfile', (err) => {
|
|
3408
3464
|
* if (!err) {
|
|
@@ -3427,7 +3483,7 @@ declare module 'fs' {
|
|
|
3427
3483
|
* **write (RECOMMENDED)**
|
|
3428
3484
|
*
|
|
3429
3485
|
* ```js
|
|
3430
|
-
* import { open, close } from 'fs';
|
|
3486
|
+
* import { open, close } from 'node:fs';
|
|
3431
3487
|
*
|
|
3432
3488
|
* open('myfile', 'wx', (err, fd) => {
|
|
3433
3489
|
* if (err) {
|
|
@@ -3452,7 +3508,7 @@ declare module 'fs' {
|
|
|
3452
3508
|
* **read (NOT RECOMMENDED)**
|
|
3453
3509
|
*
|
|
3454
3510
|
* ```js
|
|
3455
|
-
* import { access, open, close } from 'fs';
|
|
3511
|
+
* import { access, open, close } from 'node:fs';
|
|
3456
3512
|
* access('myfile', (err) => {
|
|
3457
3513
|
* if (err) {
|
|
3458
3514
|
* if (err.code === 'ENOENT') {
|
|
@@ -3480,7 +3536,7 @@ declare module 'fs' {
|
|
|
3480
3536
|
* **read (RECOMMENDED)**
|
|
3481
3537
|
*
|
|
3482
3538
|
* ```js
|
|
3483
|
-
* import { open, close } from 'fs';
|
|
3539
|
+
* import { open, close } from 'node:fs';
|
|
3484
3540
|
*
|
|
3485
3541
|
* open('myfile', 'r', (err, fd) => {
|
|
3486
3542
|
* if (err) {
|
|
@@ -3542,7 +3598,7 @@ declare module 'fs' {
|
|
|
3542
3598
|
* the method will return `undefined`.
|
|
3543
3599
|
*
|
|
3544
3600
|
* ```js
|
|
3545
|
-
* import { accessSync, constants } from 'fs';
|
|
3601
|
+
* import { accessSync, constants } from 'node:fs';
|
|
3546
3602
|
*
|
|
3547
3603
|
* try {
|
|
3548
3604
|
* accessSync('etc/passwd', constants.R_OK | constants.W_OK);
|
|
@@ -3572,8 +3628,8 @@ declare module 'fs' {
|
|
|
3572
3628
|
end?: number | undefined;
|
|
3573
3629
|
}
|
|
3574
3630
|
/**
|
|
3575
|
-
* Unlike the 16
|
|
3576
|
-
* returned by this method has a default `highWaterMark` of 64
|
|
3631
|
+
* Unlike the 16 KiB default `highWaterMark` for a `stream.Readable`, the stream
|
|
3632
|
+
* returned by this method has a default `highWaterMark` of 64 KiB.
|
|
3577
3633
|
*
|
|
3578
3634
|
* `options` can include `start` and `end` values to read a range of bytes from
|
|
3579
3635
|
* the file instead of the entire file. Both `start` and `end` are inclusive and
|
|
@@ -3599,7 +3655,7 @@ declare module 'fs' {
|
|
|
3599
3655
|
* also required.
|
|
3600
3656
|
*
|
|
3601
3657
|
* ```js
|
|
3602
|
-
* import { createReadStream } from 'fs';
|
|
3658
|
+
* import { createReadStream } from 'node:fs';
|
|
3603
3659
|
*
|
|
3604
3660
|
* // Create a stream from some character device.
|
|
3605
3661
|
* const stream = createReadStream('/dev/input/event0');
|
|
@@ -3627,7 +3683,7 @@ declare module 'fs' {
|
|
|
3627
3683
|
* An example to read the last 10 bytes of a file which is 100 bytes long:
|
|
3628
3684
|
*
|
|
3629
3685
|
* ```js
|
|
3630
|
-
* import { createReadStream } from 'fs';
|
|
3686
|
+
* import { createReadStream } from 'node:fs';
|
|
3631
3687
|
*
|
|
3632
3688
|
* createReadStream('sample.txt', { start: 90, end: 99 });
|
|
3633
3689
|
* ```
|
|
@@ -3651,7 +3707,7 @@ declare module 'fs' {
|
|
|
3651
3707
|
* By default, the stream will emit a `'close'` event after it has been
|
|
3652
3708
|
* destroyed. Set the `emitClose` option to `false` to change this behavior.
|
|
3653
3709
|
*
|
|
3654
|
-
* By providing the `fs` option it is possible to override the corresponding `fs`implementations for `open`, `write`, `writev
|
|
3710
|
+
* 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
|
|
3655
3711
|
* performance as some optimizations (`_writev()`)
|
|
3656
3712
|
* will be disabled. When providing the `fs` option, overrides for at least one of`write` and `writev` are required. If no `fd` option is supplied, an override
|
|
3657
3713
|
* for `open` is also required. If `autoClose` is `true`, an override for `close`is also required.
|
|
@@ -3706,7 +3762,7 @@ declare module 'fs' {
|
|
|
3706
3762
|
* copy-on-write, then the operation will fail.
|
|
3707
3763
|
*
|
|
3708
3764
|
* ```js
|
|
3709
|
-
* import { copyFile, constants } from 'fs';
|
|
3765
|
+
* import { copyFile, constants } from 'node:fs';
|
|
3710
3766
|
*
|
|
3711
3767
|
* function callback(err) {
|
|
3712
3768
|
* if (err) throw err;
|
|
@@ -3749,7 +3805,7 @@ declare module 'fs' {
|
|
|
3749
3805
|
* copy-on-write, then the operation will fail.
|
|
3750
3806
|
*
|
|
3751
3807
|
* ```js
|
|
3752
|
-
* import { copyFileSync, constants } from 'fs';
|
|
3808
|
+
* import { copyFileSync, constants } from 'node:fs';
|
|
3753
3809
|
*
|
|
3754
3810
|
* // destination.txt will be created or overwritten by default.
|
|
3755
3811
|
* copyFileSync('source.txt', 'destination.txt');
|
|
@@ -3782,6 +3838,7 @@ declare module 'fs' {
|
|
|
3782
3838
|
* The kernel ignores the position argument and always appends the data to
|
|
3783
3839
|
* the end of the file.
|
|
3784
3840
|
* @since v12.9.0
|
|
3841
|
+
* @param [position='null']
|
|
3785
3842
|
*/
|
|
3786
3843
|
export function writev(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void): void;
|
|
3787
3844
|
export function writev(
|
|
@@ -3801,6 +3858,7 @@ declare module 'fs' {
|
|
|
3801
3858
|
* For detailed information, see the documentation of the asynchronous version of
|
|
3802
3859
|
* this API: {@link writev}.
|
|
3803
3860
|
* @since v12.9.0
|
|
3861
|
+
* @param [position='null']
|
|
3804
3862
|
* @return The number of bytes written.
|
|
3805
3863
|
*/
|
|
3806
3864
|
export function writevSync(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): number;
|
|
@@ -3817,6 +3875,7 @@ declare module 'fs' {
|
|
|
3817
3875
|
* If this method is invoked as its `util.promisify()` ed version, it returns
|
|
3818
3876
|
* a promise for an `Object` with `bytesRead` and `buffers` properties.
|
|
3819
3877
|
* @since v13.13.0, v12.17.0
|
|
3878
|
+
* @param [position='null']
|
|
3820
3879
|
*/
|
|
3821
3880
|
export function readv(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void): void;
|
|
3822
3881
|
export function readv(
|
|
@@ -3836,10 +3895,14 @@ declare module 'fs' {
|
|
|
3836
3895
|
* For detailed information, see the documentation of the asynchronous version of
|
|
3837
3896
|
* this API: {@link readv}.
|
|
3838
3897
|
* @since v13.13.0, v12.17.0
|
|
3898
|
+
* @param [position='null']
|
|
3839
3899
|
* @return The number of bytes read.
|
|
3840
3900
|
*/
|
|
3841
3901
|
export function readvSync(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): number;
|
|
3842
3902
|
export interface OpenDirOptions {
|
|
3903
|
+
/**
|
|
3904
|
+
* @default 'utf8'
|
|
3905
|
+
*/
|
|
3843
3906
|
encoding?: BufferEncoding | undefined;
|
|
3844
3907
|
/**
|
|
3845
3908
|
* Number of directory entries that are buffered
|
|
@@ -3848,6 +3911,10 @@ declare module 'fs' {
|
|
|
3848
3911
|
* @default 32
|
|
3849
3912
|
*/
|
|
3850
3913
|
bufferSize?: number | undefined;
|
|
3914
|
+
/**
|
|
3915
|
+
* @default false
|
|
3916
|
+
*/
|
|
3917
|
+
recursive?: boolean;
|
|
3851
3918
|
}
|
|
3852
3919
|
/**
|
|
3853
3920
|
* Synchronously open a directory. See [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html).
|
|
@@ -3910,6 +3977,10 @@ declare module 'fs' {
|
|
|
3910
3977
|
* @default true
|
|
3911
3978
|
*/
|
|
3912
3979
|
force?: boolean;
|
|
3980
|
+
/**
|
|
3981
|
+
* Modifiers for copy operation. See `mode` flag of {@link copyFileSync()}
|
|
3982
|
+
*/
|
|
3983
|
+
mode?: number;
|
|
3913
3984
|
/**
|
|
3914
3985
|
* When `true` timestamps from `src` will
|
|
3915
3986
|
* be preserved.
|