node-red-contrib-tak-registration 0.11.6 → 0.12.1
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/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/node/assert.d.ts +88 -44
- package/node_modules/@types/node/async_hooks.d.ts +17 -15
- package/node_modules/@types/node/buffer.d.ts +29 -110
- package/node_modules/@types/node/child_process.d.ts +38 -34
- package/node_modules/@types/node/cluster.d.ts +165 -19
- package/node_modules/@types/node/console.d.ts +64 -27
- package/node_modules/@types/node/crypto.d.ts +106 -142
- package/node_modules/@types/node/dgram.d.ts +14 -14
- package/node_modules/@types/node/diagnostics_channel.d.ts +12 -3
- package/node_modules/@types/node/dns/promises.d.ts +79 -28
- package/node_modules/@types/node/dns.d.ts +124 -69
- package/node_modules/@types/node/dom-events.d.ts +2 -0
- package/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@types/node/events.d.ts +115 -63
- package/node_modules/@types/node/fs/promises.d.ts +34 -12
- package/node_modules/@types/node/fs.d.ts +104 -40
- package/node_modules/@types/node/globals.d.ts +1 -0
- package/node_modules/@types/node/http.d.ts +69 -48
- package/node_modules/@types/node/http2.d.ts +83 -47
- package/node_modules/@types/node/https.d.ts +3 -3
- package/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@types/node/inspector.d.ts +5 -6
- package/node_modules/@types/node/module.d.ts +0 -14
- package/node_modules/@types/node/net.d.ts +58 -13
- package/node_modules/@types/node/os.d.ts +29 -12
- package/node_modules/@types/node/package.json +4 -16
- package/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/node/perf_hooks.d.ts +308 -48
- package/node_modules/@types/node/process.d.ts +241 -48
- package/node_modules/@types/node/punycode.d.ts +4 -4
- package/node_modules/@types/node/querystring.d.ts +18 -6
- package/node_modules/@types/node/readline/promises.d.ts +9 -9
- package/node_modules/@types/node/readline.d.ts +23 -22
- package/node_modules/@types/node/repl.d.ts +21 -21
- package/node_modules/@types/node/sea.d.ts +153 -0
- package/node_modules/@types/node/stream/web.d.ts +3 -2
- package/node_modules/@types/node/stream.d.ts +63 -57
- package/node_modules/@types/node/string_decoder.d.ts +3 -3
- package/node_modules/@types/node/test.d.ts +363 -98
- package/node_modules/@types/node/timers/promises.d.ts +10 -6
- package/node_modules/@types/node/timers.d.ts +5 -5
- package/node_modules/@types/node/tls.d.ts +39 -32
- package/node_modules/@types/node/trace_events.d.ts +40 -25
- package/node_modules/@types/node/tty.d.ts +8 -8
- package/node_modules/@types/node/url.d.ts +15 -7
- package/node_modules/@types/node/util.d.ts +131 -22
- package/node_modules/@types/node/v8.d.ts +51 -7
- package/node_modules/@types/node/vm.d.ts +43 -24
- package/node_modules/@types/node/wasi.d.ts +12 -10
- package/node_modules/@types/node/worker_threads.d.ts +19 -16
- package/node_modules/@types/node/zlib.d.ts +16 -3
- package/node_modules/adm-zip/README.md +2 -1
- package/node_modules/adm-zip/adm-zip.js +46 -45
- package/node_modules/adm-zip/headers/entryHeader.js +14 -12
- package/node_modules/adm-zip/headers/mainHeader.js +1 -1
- package/node_modules/adm-zip/methods/inflater.js +6 -3
- package/node_modules/adm-zip/methods/zipcrypto.js +6 -2
- package/node_modules/adm-zip/package.json +2 -2
- package/node_modules/adm-zip/util/errors.js +1 -0
- package/node_modules/adm-zip/zipEntry.js +64 -43
- package/node_modules/adm-zip/zipFile.js +35 -35
- package/node_modules/axios/CHANGELOG.md +868 -759
- package/node_modules/axios/README.md +65 -17
- package/node_modules/axios/dist/axios.js +1330 -583
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +1 -1
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +696 -316
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +696 -316
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +1 -1
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +607 -257
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +5 -2
- package/node_modules/axios/index.d.ts +5 -2
- package/node_modules/axios/lib/adapters/adapters.js +3 -1
- package/node_modules/axios/lib/adapters/fetch.js +227 -0
- package/node_modules/axios/lib/adapters/http.js +1 -1
- package/node_modules/axios/lib/adapters/xhr.js +31 -101
- package/node_modules/axios/lib/core/Axios.js +17 -11
- package/node_modules/axios/lib/core/AxiosHeaders.js +4 -0
- package/node_modules/axios/lib/core/mergeConfig.js +1 -1
- package/node_modules/axios/lib/defaults/index.js +7 -5
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/AxiosTransformStream.js +9 -8
- package/node_modules/axios/lib/helpers/composeSignals.js +46 -0
- package/node_modules/axios/lib/helpers/progressEventReducer.js +32 -0
- package/node_modules/axios/lib/helpers/resolveConfig.js +57 -0
- package/node_modules/axios/lib/helpers/throttle.js +5 -3
- package/node_modules/axios/lib/helpers/trackStream.js +55 -0
- package/node_modules/axios/lib/platform/common/utils.js +4 -1
- package/node_modules/axios/lib/utils.js +7 -2
- package/node_modules/axios/package.json +27 -26
- package/node_modules/fast-xml-parser/CHANGELOG.md +14 -0
- package/node_modules/fast-xml-parser/README.md +7 -14
- package/node_modules/fast-xml-parser/package.json +1 -1
- package/node_modules/fast-xml-parser/src/fxp.d.ts +4 -4
- package/node_modules/fast-xml-parser/src/v5/CharsSymbol.js +16 -0
- package/node_modules/fast-xml-parser/src/v5/EntitiesParser.js +107 -0
- package/node_modules/fast-xml-parser/src/v5/OptionsBuilder.js +64 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/BaseOutputBuilder.js +71 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsArrBuilder.js +103 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsMinArrBuilder.js +102 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsObjBuilder.js +156 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/ParserOptionsBuilder.js +96 -0
- package/node_modules/fast-xml-parser/src/v5/Report.js +0 -0
- package/node_modules/fast-xml-parser/src/v5/TagPath.js +81 -0
- package/node_modules/fast-xml-parser/src/v5/TagPathMatcher.js +15 -0
- package/node_modules/fast-xml-parser/src/v5/XMLParser.js +85 -0
- package/node_modules/fast-xml-parser/src/v5/Xml2JsParser.js +237 -0
- package/node_modules/fast-xml-parser/src/v5/XmlPartReader.js +212 -0
- package/node_modules/fast-xml-parser/src/v5/XmlSpecialTagsReader.js +118 -0
- package/node_modules/fast-xml-parser/src/v5/inputSource/BufferSource.js +118 -0
- package/node_modules/fast-xml-parser/src/v5/inputSource/StringSource.js +123 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/EntitiesParser.js +107 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/booleanParser.js +23 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/booleanParserExt.js +20 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/currency.js +31 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/join.js +14 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/number.js +16 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/trim.js +8 -0
- package/node_modules/fast-xml-parser/src/validator.js +2 -0
- package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +13 -4
- package/node_modules/follow-redirects/index.js +1 -1
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/hasown/CHANGELOG.md +12 -0
- package/node_modules/hasown/index.d.ts +2 -2
- package/node_modules/hasown/package.json +5 -2
- package/node_modules/hasown/tsconfig.json +3 -46
- package/node_modules/object-is/.eslintrc +1 -1
- package/node_modules/object-is/.nycrc +0 -4
- package/node_modules/object-is/CHANGELOG.md +25 -0
- package/node_modules/object-is/README.md +20 -20
- package/node_modules/object-is/package.json +23 -14
- package/node_modules/protobufjs/LICENSE +39 -39
- package/node_modules/protobufjs/README.md +727 -740
- package/node_modules/protobufjs/dist/light/protobuf.js +6264 -6264
- package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/light/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.js +1928 -1928
- package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.js +7978 -7961
- package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/ext/debug/README.md +4 -4
- package/node_modules/protobufjs/ext/debug/index.js +71 -71
- package/node_modules/protobufjs/ext/descriptor/README.md +72 -72
- package/node_modules/protobufjs/ext/descriptor/index.d.ts +191 -191
- package/node_modules/protobufjs/ext/descriptor/index.js +1052 -1052
- package/node_modules/protobufjs/ext/descriptor/test.js +54 -54
- package/node_modules/protobufjs/google/LICENSE +27 -27
- package/node_modules/protobufjs/google/README.md +1 -1
- package/node_modules/protobufjs/google/api/annotations.json +82 -82
- package/node_modules/protobufjs/google/api/annotations.proto +10 -10
- package/node_modules/protobufjs/google/api/http.json +85 -85
- package/node_modules/protobufjs/google/api/http.proto +30 -30
- package/node_modules/protobufjs/google/protobuf/api.json +117 -117
- package/node_modules/protobufjs/google/protobuf/api.proto +33 -33
- package/node_modules/protobufjs/google/protobuf/descriptor.json +738 -738
- package/node_modules/protobufjs/google/protobuf/descriptor.proto +286 -286
- package/node_modules/protobufjs/google/protobuf/source_context.json +19 -19
- package/node_modules/protobufjs/google/protobuf/source_context.proto +7 -7
- package/node_modules/protobufjs/google/protobuf/type.json +201 -201
- package/node_modules/protobufjs/google/protobuf/type.proto +89 -89
- package/node_modules/protobufjs/index.d.ts +2741 -2741
- package/node_modules/protobufjs/index.js +4 -4
- package/node_modules/protobufjs/light.d.ts +2 -2
- package/node_modules/protobufjs/light.js +3 -3
- package/node_modules/protobufjs/minimal.d.ts +2 -2
- package/node_modules/protobufjs/minimal.js +4 -4
- package/node_modules/protobufjs/package.json +111 -111
- package/node_modules/protobufjs/scripts/postinstall.js +32 -32
- package/node_modules/protobufjs/src/common.js +399 -399
- package/node_modules/protobufjs/src/converter.js +301 -301
- package/node_modules/protobufjs/src/decoder.js +129 -129
- package/node_modules/protobufjs/src/encoder.js +100 -100
- package/node_modules/protobufjs/src/enum.js +198 -198
- package/node_modules/protobufjs/src/field.js +377 -377
- package/node_modules/protobufjs/src/index-light.js +104 -104
- package/node_modules/protobufjs/src/index-minimal.js +36 -36
- package/node_modules/protobufjs/src/index.js +12 -12
- package/node_modules/protobufjs/src/mapfield.js +126 -126
- package/node_modules/protobufjs/src/message.js +138 -138
- package/node_modules/protobufjs/src/method.js +160 -160
- package/node_modules/protobufjs/src/namespace.js +433 -433
- package/node_modules/protobufjs/src/object.js +243 -243
- package/node_modules/protobufjs/src/oneof.js +203 -203
- package/node_modules/protobufjs/src/parse.js +889 -872
- package/node_modules/protobufjs/src/reader.js +416 -416
- package/node_modules/protobufjs/src/reader_buffer.js +51 -51
- package/node_modules/protobufjs/src/root.js +368 -368
- package/node_modules/protobufjs/src/roots.js +18 -18
- package/node_modules/protobufjs/src/rpc/service.js +142 -142
- package/node_modules/protobufjs/src/rpc.js +36 -36
- package/node_modules/protobufjs/src/service.js +167 -167
- package/node_modules/protobufjs/src/tokenize.js +416 -416
- package/node_modules/protobufjs/src/type.js +589 -589
- package/node_modules/protobufjs/src/types.js +196 -196
- package/node_modules/protobufjs/src/typescript.jsdoc +15 -15
- package/node_modules/protobufjs/src/util/longbits.js +200 -200
- package/node_modules/protobufjs/src/util/minimal.js +438 -438
- package/node_modules/protobufjs/src/util.js +212 -212
- package/node_modules/protobufjs/src/verifier.js +176 -176
- package/node_modules/protobufjs/src/wrappers.js +102 -102
- package/node_modules/protobufjs/src/writer.js +465 -465
- package/node_modules/protobufjs/src/writer_buffer.js +85 -85
- package/node_modules/protobufjs/tsconfig.json +7 -7
- package/node_modules/set-function-length/CHANGELOG.md +11 -0
- package/node_modules/set-function-length/env.d.ts +9 -6
- package/node_modules/set-function-length/env.js +1 -0
- package/node_modules/set-function-length/index.d.ts +6 -6
- package/node_modules/set-function-length/index.js +1 -3
- package/node_modules/set-function-length/package.json +11 -13
- package/node_modules/set-function-length/tsconfig.json +7 -57
- package/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/undici-types/balanced-pool.d.ts +11 -0
- package/node_modules/undici-types/client.d.ts +12 -1
- package/node_modules/undici-types/diagnostics-channel.d.ts +1 -2
- package/node_modules/undici-types/dispatcher.d.ts +17 -3
- package/node_modules/undici-types/eventsource.d.ts +61 -0
- package/node_modules/undici-types/fetch.d.ts +22 -23
- package/node_modules/undici-types/handlers.d.ts +10 -4
- package/node_modules/undici-types/index.d.ts +6 -1
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/pool.d.ts +11 -0
- package/node_modules/undici-types/proxy-agent.d.ts +0 -2
- package/node_modules/undici-types/readable.d.ts +2 -3
- package/node_modules/undici-types/retry-agent.d.ts +11 -0
- package/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/node_modules/undici-types/util.d.ts +31 -0
- package/node_modules/undici-types/webidl.d.ts +6 -1
- package/node_modules/undici-types/websocket.d.ts +22 -1
- package/node_modules/uuid/CHANGELOG.md +18 -0
- package/node_modules/uuid/README.md +134 -16
- package/node_modules/uuid/dist/commonjs-browser/index.js +40 -15
- package/node_modules/uuid/dist/commonjs-browser/max.js +7 -0
- package/node_modules/uuid/dist/commonjs-browser/md5.js +30 -53
- package/node_modules/uuid/dist/commonjs-browser/native.js +3 -4
- package/node_modules/uuid/dist/commonjs-browser/nil.js +1 -2
- package/node_modules/uuid/dist/commonjs-browser/parse.js +14 -15
- package/node_modules/uuid/dist/commonjs-browser/regex.js +1 -2
- package/node_modules/uuid/dist/commonjs-browser/rng.js +2 -4
- package/node_modules/uuid/dist/commonjs-browser/sha1.js +27 -49
- package/node_modules/uuid/dist/commonjs-browser/stringify.js +10 -16
- package/node_modules/uuid/dist/commonjs-browser/v1.js +73 -49
- package/node_modules/uuid/dist/commonjs-browser/v1ToV6.js +26 -0
- package/node_modules/uuid/dist/commonjs-browser/v3.js +3 -8
- package/node_modules/uuid/dist/commonjs-browser/v35.js +15 -32
- package/node_modules/uuid/dist/commonjs-browser/v4.js +7 -18
- package/node_modules/uuid/dist/commonjs-browser/v5.js +3 -8
- package/node_modules/uuid/dist/commonjs-browser/v6.js +42 -0
- package/node_modules/uuid/dist/commonjs-browser/v6ToV1.js +26 -0
- package/node_modules/uuid/dist/commonjs-browser/v7.js +152 -0
- package/node_modules/uuid/dist/commonjs-browser/validate.js +2 -7
- package/node_modules/uuid/dist/commonjs-browser/version.js +2 -8
- package/node_modules/uuid/dist/esm-browser/index.js +9 -4
- package/node_modules/uuid/dist/esm-browser/max.js +1 -0
- package/node_modules/uuid/dist/esm-browser/md5.js +29 -50
- package/node_modules/uuid/dist/esm-browser/native.js +1 -1
- package/node_modules/uuid/dist/esm-browser/parse.js +12 -10
- package/node_modules/uuid/dist/esm-browser/regex.js +1 -1
- package/node_modules/uuid/dist/esm-browser/rng.js +3 -4
- package/node_modules/uuid/dist/esm-browser/sha1.js +26 -46
- package/node_modules/uuid/dist/esm-browser/stringify.js +9 -11
- package/node_modules/uuid/dist/esm-browser/v1.js +74 -44
- package/node_modules/uuid/dist/esm-browser/v1ToV6.js +20 -0
- package/node_modules/uuid/dist/esm-browser/v3.js +1 -1
- package/node_modules/uuid/dist/esm-browser/v35.js +14 -25
- package/node_modules/uuid/dist/esm-browser/v4.js +5 -9
- package/node_modules/uuid/dist/esm-browser/v5.js +1 -1
- package/node_modules/uuid/dist/esm-browser/v6.js +36 -0
- package/node_modules/uuid/dist/esm-browser/v6ToV1.js +20 -0
- package/node_modules/uuid/dist/esm-browser/v7.js +146 -0
- package/node_modules/uuid/dist/esm-browser/validate.js +0 -2
- package/node_modules/uuid/dist/esm-browser/version.js +0 -3
- package/node_modules/uuid/dist/esm-node/index.js +9 -4
- package/node_modules/uuid/dist/esm-node/max.js +1 -0
- package/node_modules/uuid/dist/esm-node/md5.js +1 -4
- package/node_modules/uuid/dist/esm-node/native.js +1 -1
- package/node_modules/uuid/dist/esm-node/parse.js +11 -9
- package/node_modules/uuid/dist/esm-node/regex.js +1 -1
- package/node_modules/uuid/dist/esm-node/rng.js +1 -3
- package/node_modules/uuid/dist/esm-node/sha1.js +1 -4
- package/node_modules/uuid/dist/esm-node/stringify.js +7 -9
- package/node_modules/uuid/dist/esm-node/v1.js +66 -36
- package/node_modules/uuid/dist/esm-node/v1ToV6.js +20 -0
- package/node_modules/uuid/dist/esm-node/v35.js +8 -19
- package/node_modules/uuid/dist/esm-node/v4.js +4 -8
- package/node_modules/uuid/dist/esm-node/v6.js +32 -0
- package/node_modules/uuid/dist/esm-node/v6ToV1.js +20 -0
- package/node_modules/uuid/dist/esm-node/v7.js +146 -0
- package/node_modules/uuid/dist/esm-node/validate.js +0 -2
- package/node_modules/uuid/dist/esm-node/version.js +0 -3
- package/node_modules/uuid/dist/index.js +40 -15
- package/node_modules/uuid/dist/max.js +7 -0
- package/node_modules/uuid/dist/md5-browser.js +8 -31
- package/node_modules/uuid/dist/md5.js +4 -10
- package/node_modules/uuid/dist/native-browser.js +2 -3
- package/node_modules/uuid/dist/native.js +5 -9
- package/node_modules/uuid/dist/nil.js +1 -2
- package/node_modules/uuid/dist/parse.js +13 -14
- package/node_modules/uuid/dist/regex.js +1 -2
- package/node_modules/uuid/dist/rng-browser.js +1 -3
- package/node_modules/uuid/dist/rng.js +3 -10
- package/node_modules/uuid/dist/sha1-browser.js +1 -23
- package/node_modules/uuid/dist/sha1.js +4 -10
- package/node_modules/uuid/dist/stringify.js +8 -14
- package/node_modules/uuid/dist/uuid-bin.js +12 -22
- package/node_modules/uuid/dist/v1.js +66 -42
- package/node_modules/uuid/dist/v1ToV6.js +26 -0
- package/node_modules/uuid/dist/v3.js +2 -7
- package/node_modules/uuid/dist/v35.js +11 -28
- package/node_modules/uuid/dist/v4.js +6 -17
- package/node_modules/uuid/dist/v5.js +2 -7
- package/node_modules/uuid/dist/v6.js +38 -0
- package/node_modules/uuid/dist/v6ToV1.js +26 -0
- package/node_modules/uuid/dist/v7.js +152 -0
- package/node_modules/uuid/dist/validate.js +2 -7
- package/node_modules/uuid/dist/version.js +2 -8
- package/node_modules/uuid/package.json +41 -34
- package/node_modules/uuid/wrapper.mjs +5 -0
- package/package.json +6 -6
- package/tak-ingest.js +1 -1
- package/tak-registration.js +8 -1
- package/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
- package/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
- package/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
- package/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2363
- package/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
- package/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
- package/node_modules/@types/node/ts4.8/console.d.ts +0 -415
- package/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
- package/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4487
- package/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
- package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
- package/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
- package/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
- package/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
- package/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
- package/node_modules/@types/node/ts4.8/events.d.ts +0 -879
- package/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
- package/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
- package/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
- package/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
- package/node_modules/@types/node/ts4.8/https.d.ts +0 -550
- package/node_modules/@types/node/ts4.8/index.d.ts +0 -88
- package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
- package/node_modules/@types/node/ts4.8/module.d.ts +0 -315
- package/node_modules/@types/node/ts4.8/net.d.ts +0 -954
- package/node_modules/@types/node/ts4.8/os.d.ts +0 -478
- package/node_modules/@types/node/ts4.8/path.d.ts +0 -191
- package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
- package/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
- package/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
- package/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
- package/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
- package/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
- package/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
- package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
- package/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
- package/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
- package/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
- package/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
- package/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
- package/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
- package/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
- package/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
- package/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
- package/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
- package/node_modules/@types/node/ts4.8/url.d.ts +0 -944
- package/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
- package/node_modules/@types/node/ts4.8/v8.d.ts +0 -764
- package/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
- package/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
- package/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
- package/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
- package/node_modules/object-is/.eslintignore +0 -1
- package/node_modules/set-function-length/env.d.ts.map +0 -1
- package/node_modules/set-function-length/index.d.ts.map +0 -1
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*
|
|
17
17
|
* All file system operations have synchronous, callback, and promise-based
|
|
18
18
|
* forms, and are accessible using both CommonJS syntax and ES6 Modules (ESM).
|
|
19
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
19
|
+
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/fs.js)
|
|
20
20
|
*/
|
|
21
21
|
declare module "fs" {
|
|
22
22
|
import * as stream from "node:stream";
|
|
@@ -77,7 +77,7 @@ declare module "fs" {
|
|
|
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
|
|
80
|
-
* nanosecond-precision properties suffixed with `Ns`.
|
|
80
|
+
* nanosecond-precision properties suffixed with `Ns`. `Stat` objects are not to be created directly using the `new` keyword.
|
|
81
81
|
*
|
|
82
82
|
* ```console
|
|
83
83
|
* Stats {
|
|
@@ -130,7 +130,9 @@ declare module "fs" {
|
|
|
130
130
|
* ```
|
|
131
131
|
* @since v0.1.21
|
|
132
132
|
*/
|
|
133
|
-
export class Stats {
|
|
133
|
+
export class Stats {
|
|
134
|
+
private constructor();
|
|
135
|
+
}
|
|
134
136
|
export interface StatsFsBase<T> {
|
|
135
137
|
/** Type of file system. */
|
|
136
138
|
type: T;
|
|
@@ -242,7 +244,13 @@ declare module "fs" {
|
|
|
242
244
|
name: string;
|
|
243
245
|
/**
|
|
244
246
|
* The base path that this `fs.Dirent` object refers to.
|
|
247
|
+
* @since v20.12.0
|
|
248
|
+
*/
|
|
249
|
+
parentPath: string;
|
|
250
|
+
/**
|
|
251
|
+
* Alias for `dirent.parentPath`.
|
|
245
252
|
* @since v20.1.0
|
|
253
|
+
* @deprecated Since v20.12.0
|
|
246
254
|
*/
|
|
247
255
|
path: string;
|
|
248
256
|
}
|
|
@@ -296,7 +304,7 @@ declare module "fs" {
|
|
|
296
304
|
/**
|
|
297
305
|
* Asynchronously read the next directory entry via [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) as an `fs.Dirent`.
|
|
298
306
|
*
|
|
299
|
-
* A promise is returned that will be fulfilled with an `fs.Dirent`, or `null`if there are no more directory entries to read.
|
|
307
|
+
* A promise is returned that will be fulfilled with an `fs.Dirent`, or `null` if there are no more directory entries to read.
|
|
300
308
|
*
|
|
301
309
|
* Directory entries returned by this function are in no particular order as
|
|
302
310
|
* provided by the operating system's underlying directory mechanisms.
|
|
@@ -1439,7 +1447,7 @@ declare module "fs" {
|
|
|
1439
1447
|
* 2. The maximum number of symbolic links is platform-independent and generally
|
|
1440
1448
|
* (much) higher than what the native [`realpath(3)`](http://man7.org/linux/man-pages/man3/realpath.3.html) implementation supports.
|
|
1441
1449
|
*
|
|
1442
|
-
* The `callback` gets two arguments `(err, resolvedPath)`. May use `process.cwd`to resolve relative paths.
|
|
1450
|
+
* The `callback` gets two arguments `(err, resolvedPath)`. May use `process.cwd` to resolve relative paths.
|
|
1443
1451
|
*
|
|
1444
1452
|
* Only paths that can be converted to UTF8 strings are supported.
|
|
1445
1453
|
*
|
|
@@ -1683,7 +1691,7 @@ declare module "fs" {
|
|
|
1683
1691
|
retryDelay?: number | undefined;
|
|
1684
1692
|
}
|
|
1685
1693
|
/**
|
|
1686
|
-
* Asynchronously removes files and directories (modeled on the standard POSIX `rm`utility). No arguments other than a possible exception are given to the
|
|
1694
|
+
* Asynchronously removes files and directories (modeled on the standard POSIX `rm` utility). No arguments other than a possible exception are given to the
|
|
1687
1695
|
* completion callback.
|
|
1688
1696
|
* @since v14.14.0
|
|
1689
1697
|
*/
|
|
@@ -1696,7 +1704,7 @@ declare module "fs" {
|
|
|
1696
1704
|
function __promisify__(path: PathLike, options?: RmOptions): Promise<void>;
|
|
1697
1705
|
}
|
|
1698
1706
|
/**
|
|
1699
|
-
* Synchronously removes files and directories (modeled on the standard POSIX `rm`utility). Returns `undefined`.
|
|
1707
|
+
* Synchronously removes files and directories (modeled on the standard POSIX `rm` utility). Returns `undefined`.
|
|
1700
1708
|
* @since v14.14.0
|
|
1701
1709
|
*/
|
|
1702
1710
|
export function rmSync(path: PathLike, options?: RmOptions): void;
|
|
@@ -1721,7 +1729,7 @@ declare module "fs" {
|
|
|
1721
1729
|
* created (for instance, if it was previously created).
|
|
1722
1730
|
*
|
|
1723
1731
|
* The optional `options` argument can be an integer specifying `mode` (permission
|
|
1724
|
-
* and sticky bits), or an object with a `mode` property and a `recursive`property indicating whether parent directories should be created. Calling`fs.mkdir()` when `path` is a directory that
|
|
1732
|
+
* and sticky bits), or an object with a `mode` property and a `recursive` property indicating whether parent directories should be created. Calling `fs.mkdir()` when `path` is a directory that
|
|
1725
1733
|
* exists results in an error only
|
|
1726
1734
|
* when `recursive` is false. If `recursive` is false and the directory exists,
|
|
1727
1735
|
* an `EEXIST` error occurs.
|
|
@@ -1829,7 +1837,7 @@ declare module "fs" {
|
|
|
1829
1837
|
): Promise<string | undefined>;
|
|
1830
1838
|
}
|
|
1831
1839
|
/**
|
|
1832
|
-
* Synchronously creates a directory. Returns `undefined`, or if `recursive` is`true`, the first directory path created.
|
|
1840
|
+
* Synchronously creates a directory. Returns `undefined`, or if `recursive` is `true`, the first directory path created.
|
|
1833
1841
|
* This is the synchronous version of {@link mkdir}.
|
|
1834
1842
|
*
|
|
1835
1843
|
* See the POSIX [`mkdir(2)`](http://man7.org/linux/man-pages/man2/mkdir.2.html) documentation for more details.
|
|
@@ -1866,7 +1874,7 @@ declare module "fs" {
|
|
|
1866
1874
|
/**
|
|
1867
1875
|
* Creates a unique temporary directory.
|
|
1868
1876
|
*
|
|
1869
|
-
* Generates six random characters to be appended behind a required`prefix` to create a unique temporary directory. Due to platform
|
|
1877
|
+
* Generates six random characters to be appended behind a required `prefix` to create a unique temporary directory. Due to platform
|
|
1870
1878
|
* inconsistencies, avoid trailing `X` characters in `prefix`. Some platforms,
|
|
1871
1879
|
* notably the BSDs, can return more than six random characters, and replace
|
|
1872
1880
|
* trailing `X` characters in `prefix` with random characters.
|
|
@@ -2003,7 +2011,7 @@ declare module "fs" {
|
|
|
2003
2011
|
*/
|
|
2004
2012
|
export function mkdtempSync(prefix: string, options?: EncodingOption): string | Buffer;
|
|
2005
2013
|
/**
|
|
2006
|
-
* Reads the contents of a directory. The callback gets two arguments `(err, files)`where `files` is an array of the names of the files in the directory excluding`'.'` and `'..'`.
|
|
2014
|
+
* Reads the contents of a directory. The callback gets two arguments `(err, files)` where `files` is an array of the names of the files in the directory excluding `'.'` and `'..'`.
|
|
2007
2015
|
*
|
|
2008
2016
|
* See the POSIX [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) documentation for more details.
|
|
2009
2017
|
*
|
|
@@ -2297,8 +2305,8 @@ declare module "fs" {
|
|
|
2297
2305
|
*
|
|
2298
2306
|
* The `atime` and `mtime` arguments follow these rules:
|
|
2299
2307
|
*
|
|
2300
|
-
* * Values can be either numbers representing Unix epoch time in seconds
|
|
2301
|
-
* * If the value can not be converted to a number, or is `NaN`, `Infinity`, or`-Infinity`, an `Error` will be thrown.
|
|
2308
|
+
* * Values can be either numbers representing Unix epoch time in seconds, `Date`s, or a numeric string like `'123456789.0'`.
|
|
2309
|
+
* * If the value can not be converted to a number, or is `NaN`, `Infinity`, or `-Infinity`, an `Error` will be thrown.
|
|
2302
2310
|
* @since v0.4.2
|
|
2303
2311
|
*/
|
|
2304
2312
|
export function utimes(path: PathLike, atime: TimeLike, mtime: TimeLike, callback: NoParamCallback): void;
|
|
@@ -2371,7 +2379,7 @@ declare module "fs" {
|
|
|
2371
2379
|
* should be written. If `typeof position !== 'number'`, the data will be written
|
|
2372
2380
|
* at the current position. See [`pwrite(2)`](http://man7.org/linux/man-pages/man2/pwrite.2.html).
|
|
2373
2381
|
*
|
|
2374
|
-
* The callback will be given three arguments `(err, bytesWritten, buffer)` where`bytesWritten` specifies how many _bytes_ were written from `buffer`.
|
|
2382
|
+
* The callback will be given three arguments `(err, bytesWritten, buffer)` where `bytesWritten` specifies how many _bytes_ were written from `buffer`.
|
|
2375
2383
|
*
|
|
2376
2384
|
* If this method is invoked as its `util.promisify()` ed version, it returns
|
|
2377
2385
|
* a promise for an `Object` with `bytesWritten` and `buffer` properties.
|
|
@@ -2820,7 +2828,7 @@ declare module "fs" {
|
|
|
2820
2828
|
* If the `encoding` option is specified then this function returns a
|
|
2821
2829
|
* string. Otherwise it returns a buffer.
|
|
2822
2830
|
*
|
|
2823
|
-
* Similar to {@link readFile}, when the path is a directory, the behavior of`fs.readFileSync()` is platform-specific.
|
|
2831
|
+
* Similar to {@link readFile}, when the path is a directory, the behavior of `fs.readFileSync()` is platform-specific.
|
|
2824
2832
|
*
|
|
2825
2833
|
* ```js
|
|
2826
2834
|
* import { readFileSync } from 'node:fs';
|
|
@@ -2890,7 +2898,7 @@ declare module "fs" {
|
|
|
2890
2898
|
* When `file` is a filename, asynchronously writes data to the file, replacing the
|
|
2891
2899
|
* file if it already exists. `data` can be a string or a buffer.
|
|
2892
2900
|
*
|
|
2893
|
-
* When `file` is a file descriptor, the behavior is similar to calling`fs.write()` directly (which is recommended). See the notes below on using
|
|
2901
|
+
* When `file` is a file descriptor, the behavior is similar to calling `fs.write()` directly (which is recommended). See the notes below on using
|
|
2894
2902
|
* a file descriptor.
|
|
2895
2903
|
*
|
|
2896
2904
|
* The `encoding` option is ignored if `data` is a buffer.
|
|
@@ -3139,7 +3147,7 @@ declare module "fs" {
|
|
|
3139
3147
|
* Watch for changes on `filename`. The callback `listener` will be called each
|
|
3140
3148
|
* time the file is accessed.
|
|
3141
3149
|
*
|
|
3142
|
-
* The `options` argument may be omitted. If provided, it should be an object. The`options` object may contain a boolean named `persistent` that indicates
|
|
3150
|
+
* The `options` argument may be omitted. If provided, it should be an object. The `options` object may contain a boolean named `persistent` that indicates
|
|
3143
3151
|
* whether the process should continue to run as long as files are being watched.
|
|
3144
3152
|
* The `options` object may specify an `interval` property indicating how often the
|
|
3145
3153
|
* target should be polled in milliseconds.
|
|
@@ -3168,7 +3176,7 @@ declare module "fs" {
|
|
|
3168
3176
|
* again, with the latest stat objects. This is a change in functionality since
|
|
3169
3177
|
* v0.10.
|
|
3170
3178
|
*
|
|
3171
|
-
* Using {@link watch} is more efficient than `fs.watchFile` and`fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and`fs.unwatchFile` when possible.
|
|
3179
|
+
* Using {@link watch} is more efficient than `fs.watchFile` and `fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and `fs.unwatchFile` when possible.
|
|
3172
3180
|
*
|
|
3173
3181
|
* When a file being watched by `fs.watchFile()` disappears and reappears,
|
|
3174
3182
|
* then the contents of `previous` in the second callback event (the file's
|
|
@@ -3190,7 +3198,7 @@ declare module "fs" {
|
|
|
3190
3198
|
* Watch for changes on `filename`. The callback `listener` will be called each
|
|
3191
3199
|
* time the file is accessed.
|
|
3192
3200
|
*
|
|
3193
|
-
* The `options` argument may be omitted. If provided, it should be an object. The`options` object may contain a boolean named `persistent` that indicates
|
|
3201
|
+
* The `options` argument may be omitted. If provided, it should be an object. The `options` object may contain a boolean named `persistent` that indicates
|
|
3194
3202
|
* whether the process should continue to run as long as files are being watched.
|
|
3195
3203
|
* The `options` object may specify an `interval` property indicating how often the
|
|
3196
3204
|
* target should be polled in milliseconds.
|
|
@@ -3219,7 +3227,7 @@ declare module "fs" {
|
|
|
3219
3227
|
* again, with the latest stat objects. This is a change in functionality since
|
|
3220
3228
|
* v0.10.
|
|
3221
3229
|
*
|
|
3222
|
-
* Using {@link watch} is more efficient than `fs.watchFile` and`fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and`fs.unwatchFile` when possible.
|
|
3230
|
+
* Using {@link watch} is more efficient than `fs.watchFile` and `fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and `fs.unwatchFile` when possible.
|
|
3223
3231
|
*
|
|
3224
3232
|
* When a file being watched by `fs.watchFile()` disappears and reappears,
|
|
3225
3233
|
* then the contents of `previous` in the second callback event (the file's
|
|
@@ -3263,7 +3271,7 @@ declare module "fs" {
|
|
|
3263
3271
|
* Calling `fs.unwatchFile()` with a filename that is not being watched is a
|
|
3264
3272
|
* no-op, not an error.
|
|
3265
3273
|
*
|
|
3266
|
-
* Using {@link watch} is more efficient than `fs.watchFile()` and`fs.unwatchFile()`. `fs.watch()` should be used instead of `fs.watchFile()`and `fs.unwatchFile()` when possible.
|
|
3274
|
+
* Using {@link watch} is more efficient than `fs.watchFile()` and `fs.unwatchFile()`. `fs.watch()` should be used instead of `fs.watchFile()` and `fs.unwatchFile()` when possible.
|
|
3267
3275
|
* @since v0.1.31
|
|
3268
3276
|
* @param listener Optional, a listener previously attached using `fs.watchFile()`
|
|
3269
3277
|
*/
|
|
@@ -3291,7 +3299,7 @@ declare module "fs" {
|
|
|
3291
3299
|
* On most platforms, `'rename'` is emitted whenever a filename appears or
|
|
3292
3300
|
* disappears in the directory.
|
|
3293
3301
|
*
|
|
3294
|
-
* The listener callback is attached to the `'change'` event fired by `fs.FSWatcher`, but it is not the same thing as the `'change'` value of`eventType`.
|
|
3302
|
+
* The listener callback is attached to the `'change'` event fired by `fs.FSWatcher`, but it is not the same thing as the `'change'` value of `eventType`.
|
|
3295
3303
|
*
|
|
3296
3304
|
* If a `signal` is passed, aborting the corresponding AbortController will close
|
|
3297
3305
|
* the returned `fs.FSWatcher`.
|
|
@@ -3351,11 +3359,11 @@ declare module "fs" {
|
|
|
3351
3359
|
* ```
|
|
3352
3360
|
*
|
|
3353
3361
|
* **The parameters for this callback are not consistent with other Node.js**
|
|
3354
|
-
* **callbacks.** Normally, the first parameter to a Node.js callback is an `err`parameter, optionally followed by other parameters. The `fs.exists()` callback
|
|
3362
|
+
* **callbacks.** Normally, the first parameter to a Node.js callback is an `err` parameter, optionally followed by other parameters. The `fs.exists()` callback
|
|
3355
3363
|
* has only one boolean parameter. This is one reason `fs.access()` is recommended
|
|
3356
3364
|
* instead of `fs.exists()`.
|
|
3357
3365
|
*
|
|
3358
|
-
* Using `fs.exists()` to check for the existence of a file before calling`fs.open()`, `fs.readFile()`, or `fs.writeFile()` is not recommended. Doing
|
|
3366
|
+
* Using `fs.exists()` to check for the existence of a file before calling `fs.open()`, `fs.readFile()`, or `fs.writeFile()` is not recommended. Doing
|
|
3359
3367
|
* so introduces a race condition, since other processes may change the file's
|
|
3360
3368
|
* state between the two calls. Instead, user code should open/read/write the
|
|
3361
3369
|
* file directly and handle the error raised if the file does not exist.
|
|
@@ -3482,7 +3490,7 @@ declare module "fs" {
|
|
|
3482
3490
|
* For detailed information, see the documentation of the asynchronous version of
|
|
3483
3491
|
* this API: {@link exists}.
|
|
3484
3492
|
*
|
|
3485
|
-
* `fs.exists()` is deprecated, but `fs.existsSync()` is not. The `callback`parameter to `fs.exists()` accepts parameters that are inconsistent with other
|
|
3493
|
+
* `fs.exists()` is deprecated, but `fs.existsSync()` is not. The `callback` parameter to `fs.exists()` accepts parameters that are inconsistent with other
|
|
3486
3494
|
* Node.js callbacks. `fs.existsSync()` does not use a callback.
|
|
3487
3495
|
*
|
|
3488
3496
|
* ```js
|
|
@@ -3611,13 +3619,13 @@ declare module "fs" {
|
|
|
3611
3619
|
/**
|
|
3612
3620
|
* Tests a user's permissions for the file or directory specified by `path`.
|
|
3613
3621
|
* The `mode` argument is an optional integer that specifies the accessibility
|
|
3614
|
-
* checks to be performed. `mode` should be either the value `fs.constants.F_OK`or a mask consisting of the bitwise OR of any of `fs.constants.R_OK
|
|
3622
|
+
* checks to be performed. `mode` should be either the value `fs.constants.F_OK` or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`, `fs.constants.W_OK`, and `fs.constants.X_OK`
|
|
3615
3623
|
* (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for
|
|
3616
3624
|
* possible values of `mode`.
|
|
3617
3625
|
*
|
|
3618
3626
|
* The final argument, `callback`, is a callback function that is invoked with
|
|
3619
3627
|
* a possible error argument. If any of the accessibility checks fail, the error
|
|
3620
|
-
* argument will be an `Error` object. The following examples check if`package.json` exists, and if it is readable or writable.
|
|
3628
|
+
* argument will be an `Error` object. The following examples check if `package.json` exists, and if it is readable or writable.
|
|
3621
3629
|
*
|
|
3622
3630
|
* ```js
|
|
3623
3631
|
* import { access, constants } from 'node:fs';
|
|
@@ -3645,7 +3653,7 @@ declare module "fs" {
|
|
|
3645
3653
|
* });
|
|
3646
3654
|
* ```
|
|
3647
3655
|
*
|
|
3648
|
-
* Do not use `fs.access()` to check for the accessibility of a file before calling`fs.open()`, `fs.readFile()`, or `fs.writeFile()`. Doing
|
|
3656
|
+
* Do not use `fs.access()` to check for the accessibility of a file before calling `fs.open()`, `fs.readFile()`, or `fs.writeFile()`. Doing
|
|
3649
3657
|
* so introduces a race condition, since other processes may change the file's
|
|
3650
3658
|
* state between the two calls. Instead, user code should open/read/write the
|
|
3651
3659
|
* file directly and handle the error raised if the file is not accessible.
|
|
@@ -3785,7 +3793,7 @@ declare module "fs" {
|
|
|
3785
3793
|
/**
|
|
3786
3794
|
* Synchronously tests a user's permissions for the file or directory specified
|
|
3787
3795
|
* by `path`. The `mode` argument is an optional integer that specifies the
|
|
3788
|
-
* accessibility checks to be performed. `mode` should be either the value`fs.constants.F_OK` or a mask consisting of the bitwise OR of any of`fs.constants.R_OK`, `fs.constants.W_OK`, and
|
|
3796
|
+
* accessibility checks to be performed. `mode` should be either the value `fs.constants.F_OK` or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`, `fs.constants.W_OK`, and
|
|
3789
3797
|
* `fs.constants.X_OK` (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for
|
|
3790
3798
|
* possible values of `mode`.
|
|
3791
3799
|
*
|
|
@@ -3859,8 +3867,8 @@ declare module "fs" {
|
|
|
3859
3867
|
* By default, the stream will emit a `'close'` event after it has been
|
|
3860
3868
|
* destroyed. Set the `emitClose` option to `false` to change this behavior.
|
|
3861
3869
|
*
|
|
3862
|
-
* By providing the `fs` option, it is possible to override the corresponding `fs`implementations for `open`, `read`, and `close`. When providing the `fs` option,
|
|
3863
|
-
* an override for `read` is required. If no `fd` is provided, an override for`open` is also required. If `autoClose` is `true`, an override for `close` is
|
|
3870
|
+
* By providing the `fs` option, it is possible to override the corresponding `fs` implementations for `open`, `read`, and `close`. When providing the `fs` option,
|
|
3871
|
+
* an override for `read` is required. If no `fd` is provided, an override for `open` is also required. If `autoClose` is `true`, an override for `close` is
|
|
3864
3872
|
* also required.
|
|
3865
3873
|
*
|
|
3866
3874
|
* ```js
|
|
@@ -3908,7 +3916,7 @@ declare module "fs" {
|
|
|
3908
3916
|
* replacing it may require the `flags` option to be set to `r+` rather than the
|
|
3909
3917
|
* default `w`. The `encoding` can be any one of those accepted by `Buffer`.
|
|
3910
3918
|
*
|
|
3911
|
-
* If `autoClose` is set to true (default behavior) on `'error'` or `'finish'`the file descriptor will be closed automatically. If `autoClose` is false,
|
|
3919
|
+
* If `autoClose` is set to true (default behavior) on `'error'` or `'finish'` the file descriptor will be closed automatically. If `autoClose` is false,
|
|
3912
3920
|
* then the file descriptor won't be closed, even if there's an error.
|
|
3913
3921
|
* It is the application's responsibility to close it and make sure there's no
|
|
3914
3922
|
* file descriptor leak.
|
|
@@ -3916,12 +3924,12 @@ declare module "fs" {
|
|
|
3916
3924
|
* By default, the stream will emit a `'close'` event after it has been
|
|
3917
3925
|
* destroyed. Set the `emitClose` option to `false` to change this behavior.
|
|
3918
3926
|
*
|
|
3919
|
-
* 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
|
|
3927
|
+
* 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
|
|
3920
3928
|
* performance as some optimizations (`_writev()`)
|
|
3921
|
-
* 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
|
|
3922
|
-
* for `open` is also required. If `autoClose` is `true`, an override for `close`is also required.
|
|
3929
|
+
* 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
|
|
3930
|
+
* for `open` is also required. If `autoClose` is `true`, an override for `close` is also required.
|
|
3923
3931
|
*
|
|
3924
|
-
* Like `fs.ReadStream`, if `fd` is specified, `fs.WriteStream` will ignore the`path` argument and will use the specified file descriptor. This means that no`'open'` event will be
|
|
3932
|
+
* Like `fs.ReadStream`, if `fd` is specified, `fs.WriteStream` will ignore the `path` argument and will use the specified file descriptor. This means that no `'open'` event will be
|
|
3925
3933
|
* emitted. `fd` should be blocking; non-blocking `fd`s
|
|
3926
3934
|
* should be passed to `net.Socket`.
|
|
3927
3935
|
*
|
|
@@ -4030,15 +4038,15 @@ declare module "fs" {
|
|
|
4030
4038
|
*/
|
|
4031
4039
|
export function copyFileSync(src: PathLike, dest: PathLike, mode?: number): void;
|
|
4032
4040
|
/**
|
|
4033
|
-
* Write an array of `ArrayBufferView`s to the file specified by `fd` using`writev()`.
|
|
4041
|
+
* Write an array of `ArrayBufferView`s to the file specified by `fd` using `writev()`.
|
|
4034
4042
|
*
|
|
4035
4043
|
* `position` is the offset from the beginning of the file where this data
|
|
4036
4044
|
* should be written. If `typeof position !== 'number'`, the data will be written
|
|
4037
4045
|
* at the current position.
|
|
4038
4046
|
*
|
|
4039
|
-
* The callback will be given three arguments: `err`, `bytesWritten`, and`buffers`. `bytesWritten` is how many bytes were written from `buffers`.
|
|
4047
|
+
* The callback will be given three arguments: `err`, `bytesWritten`, and `buffers`. `bytesWritten` is how many bytes were written from `buffers`.
|
|
4040
4048
|
*
|
|
4041
|
-
* If this method is `util.promisify()` ed, it returns a promise for an`Object` with `bytesWritten` and `buffers` properties.
|
|
4049
|
+
* If this method is `util.promisify()` ed, it returns a promise for an `Object` with `bytesWritten` and `buffers` properties.
|
|
4042
4050
|
*
|
|
4043
4051
|
* It is unsafe to use `fs.writev()` multiple times on the same file without
|
|
4044
4052
|
* waiting for the callback. For this scenario, use {@link createWriteStream}.
|
|
@@ -4087,7 +4095,7 @@ declare module "fs" {
|
|
|
4087
4095
|
* should be read. If `typeof position !== 'number'`, the data will be read
|
|
4088
4096
|
* from the current position.
|
|
4089
4097
|
*
|
|
4090
|
-
* The callback will be given three arguments: `err`, `bytesRead`, and`buffers`. `bytesRead` is how many bytes were read from the file.
|
|
4098
|
+
* The callback will be given three arguments: `err`, `bytesRead`, and `buffers`. `bytesRead` is how many bytes were read from the file.
|
|
4091
4099
|
*
|
|
4092
4100
|
* If this method is invoked as its `util.promisify()` ed version, it returns
|
|
4093
4101
|
* a promise for an `Object` with `bytesRead` and `buffers` properties.
|
|
@@ -4305,6 +4313,62 @@ declare module "fs" {
|
|
|
4305
4313
|
* @param dest destination path to copy to.
|
|
4306
4314
|
*/
|
|
4307
4315
|
export function cpSync(source: string | URL, destination: string | URL, opts?: CopySyncOptions): void;
|
|
4316
|
+
|
|
4317
|
+
export interface GlobOptions {
|
|
4318
|
+
/**
|
|
4319
|
+
* Current working directory.
|
|
4320
|
+
* @default process.cwd()
|
|
4321
|
+
*/
|
|
4322
|
+
cwd?: string | undefined;
|
|
4323
|
+
/**
|
|
4324
|
+
* Function to filter out files/directories. Return true to exclude the item, false to include it.
|
|
4325
|
+
*/
|
|
4326
|
+
exclude?: ((fileName: string) => boolean) | undefined;
|
|
4327
|
+
/**
|
|
4328
|
+
* `true` if the glob should return paths as `Dirent`s, `false` otherwise.
|
|
4329
|
+
* @default false
|
|
4330
|
+
*/
|
|
4331
|
+
withFileTypes?: boolean | undefined;
|
|
4332
|
+
}
|
|
4333
|
+
export interface GlobOptionsWithFileTypes extends GlobOptions {
|
|
4334
|
+
withFileTypes: true;
|
|
4335
|
+
}
|
|
4336
|
+
export interface GlobOptionsWithoutFileTypes extends GlobOptions {
|
|
4337
|
+
withFileTypes?: false | undefined;
|
|
4338
|
+
}
|
|
4339
|
+
/**
|
|
4340
|
+
* Retrieves the files matching the specified pattern.
|
|
4341
|
+
*/
|
|
4342
|
+
export function glob(
|
|
4343
|
+
pattern: string | string[],
|
|
4344
|
+
callback: (err: NodeJS.ErrnoException | null, matches: string[]) => void,
|
|
4345
|
+
): void;
|
|
4346
|
+
/**
|
|
4347
|
+
* Retrieves the files matching the specified pattern.
|
|
4348
|
+
*/
|
|
4349
|
+
export function glob<Options extends GlobOptions>(
|
|
4350
|
+
pattern: string | string[],
|
|
4351
|
+
options: Options,
|
|
4352
|
+
callback: (
|
|
4353
|
+
err: NodeJS.ErrnoException | null,
|
|
4354
|
+
matches: Options extends GlobOptionsWithFileTypes ? Dirent[]
|
|
4355
|
+
: Options extends GlobOptionsWithoutFileTypes ? string[]
|
|
4356
|
+
: Dirent[] | string[],
|
|
4357
|
+
) => void,
|
|
4358
|
+
): void;
|
|
4359
|
+
/**
|
|
4360
|
+
* Retrieves the files matching the specified pattern.
|
|
4361
|
+
*/
|
|
4362
|
+
export function globSync(pattern: string | string[]): string[];
|
|
4363
|
+
/**
|
|
4364
|
+
* Retrieves the files matching the specified pattern.
|
|
4365
|
+
*/
|
|
4366
|
+
export function globSync<Options extends GlobOptions>(
|
|
4367
|
+
pattern: string | string[],
|
|
4368
|
+
options: Options,
|
|
4369
|
+
): Options extends GlobOptionsWithFileTypes ? Dirent[]
|
|
4370
|
+
: Options extends GlobOptionsWithoutFileTypes ? string[]
|
|
4371
|
+
: Dirent[] | string[];
|
|
4308
4372
|
}
|
|
4309
4373
|
declare module "node:fs" {
|
|
4310
4374
|
export * from "fs";
|