node-red-contrib-tak-registration 0.15.0 → 0.16.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 +8 -6
- package/node_modules/@types/node/async_hooks.d.ts +26 -6
- package/node_modules/@types/node/buffer.d.ts +7 -3
- package/node_modules/@types/node/child_process.d.ts +28 -124
- package/node_modules/@types/node/cluster.d.ts +15 -15
- package/node_modules/@types/node/console.d.ts +17 -17
- package/node_modules/@types/node/crypto.d.ts +95 -38
- package/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@types/node/diagnostics_channel.d.ts +18 -13
- package/node_modules/@types/node/dns/promises.d.ts +36 -9
- package/node_modules/@types/node/dns.d.ts +89 -36
- package/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@types/node/events.d.ts +1 -2
- package/node_modules/@types/node/fs/promises.d.ts +67 -40
- package/node_modules/@types/node/fs.d.ts +88 -52
- package/node_modules/@types/node/globals.d.ts +148 -351
- package/node_modules/@types/node/globals.typedarray.d.ts +1 -0
- package/node_modules/@types/node/http.d.ts +73 -7
- package/node_modules/@types/node/http2.d.ts +88 -15
- package/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/node/index.d.ts +13 -6
- package/node_modules/@types/node/inspector.d.ts +222 -13
- package/node_modules/@types/node/module.d.ts +153 -31
- package/node_modules/@types/node/net.d.ts +3 -6
- package/node_modules/@types/node/os.d.ts +8 -7
- package/node_modules/@types/node/package.json +14 -84
- package/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/node/perf_hooks.d.ts +24 -10
- package/node_modules/@types/node/process.d.ts +21 -11
- package/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/node/readline/promises.d.ts +0 -1
- package/node_modules/@types/node/readline.d.ts +13 -13
- package/node_modules/@types/node/repl.d.ts +25 -17
- package/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/node/sqlite.d.ts +209 -3
- package/node_modules/@types/node/stream/web.d.ts +8 -0
- package/node_modules/@types/node/stream.d.ts +30 -24
- package/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@types/node/test.d.ts +2029 -1975
- package/node_modules/@types/node/timers/promises.d.ts +1 -1
- package/node_modules/@types/node/timers.d.ts +1 -3
- package/node_modules/@types/node/tls.d.ts +2 -48
- package/node_modules/@types/node/trace_events.d.ts +6 -6
- package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +15 -6
- package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +101 -0
- package/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@types/node/url.d.ts +73 -20
- package/node_modules/@types/node/util.d.ts +23 -298
- package/node_modules/@types/node/v8.d.ts +62 -32
- package/node_modules/@types/node/vm.d.ts +132 -24
- package/node_modules/@types/node/wasi.d.ts +22 -1
- package/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/node_modules/@types/node/web-globals/events.d.ts +94 -0
- package/node_modules/@types/node/web-globals/fetch.d.ts +50 -0
- package/node_modules/@types/node/web-globals/navigator.d.ts +22 -0
- package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/node_modules/@types/node/worker_threads.d.ts +85 -26
- package/node_modules/@types/node/zlib.d.ts +13 -9
- package/node_modules/axios/CHANGELOG.md +99 -0
- package/node_modules/axios/README.md +105 -28
- package/node_modules/axios/dist/axios.js +395 -292
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +333 -219
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +333 -219
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +424 -219
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +26 -8
- package/node_modules/axios/index.d.ts +14 -5
- package/node_modules/axios/lib/adapters/adapters.js +6 -4
- package/node_modules/axios/lib/adapters/fetch.js +221 -162
- package/node_modules/axios/lib/adapters/http.js +18 -0
- package/node_modules/axios/lib/adapters/xhr.js +11 -8
- package/node_modules/axios/lib/core/Axios.js +2 -4
- package/node_modules/axios/lib/core/AxiosError.js +10 -3
- package/node_modules/axios/lib/core/dispatchRequest.js +1 -1
- package/node_modules/axios/lib/core/mergeConfig.js +1 -1
- package/node_modules/axios/lib/defaults/index.js +1 -1
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/buildURL.js +1 -3
- package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +73 -0
- package/node_modules/axios/lib/helpers/resolveConfig.js +13 -9
- package/node_modules/axios/lib/helpers/throttle.js +1 -1
- package/node_modules/axios/lib/helpers/toFormData.js +4 -0
- package/node_modules/axios/lib/helpers/toURLEncodedForm.js +4 -3
- package/node_modules/axios/lib/utils.js +40 -2
- package/node_modules/axios/package.json +30 -15
- package/node_modules/bignumber.js/CHANGELOG.md +6 -1
- package/node_modules/bignumber.js/README.md +5 -4
- package/node_modules/bignumber.js/bignumber.js +2 -2
- package/node_modules/bignumber.js/bignumber.mjs +2 -2
- package/node_modules/bignumber.js/package.json +1 -1
- package/node_modules/fast-xml-parser/CHANGELOG.md +7 -0
- package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -1
- package/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -1
- package/node_modules/fast-xml-parser/package.json +1 -2
- package/node_modules/fast-xml-parser/src/cli/cli.js +4 -0
- package/node_modules/fast-xml-parser/src/fxp.d.ts +5 -5
- package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +3 -3
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/form-data/CHANGELOG.md +601 -0
- package/node_modules/form-data/{Readme.md → README.md} +34 -37
- package/node_modules/form-data/lib/browser.js +3 -1
- package/node_modules/form-data/lib/form_data.js +126 -135
- package/node_modules/form-data/lib/populate.js +5 -5
- package/node_modules/form-data/package.json +24 -16
- package/node_modules/protobufjs/dist/light/protobuf.js +8 -7
- package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.js +2 -2
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/protobuf.js +8 -7
- 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/descriptor/index.js +179 -69
- package/node_modules/protobufjs/google/protobuf/descriptor.json +660 -17
- package/node_modules/protobufjs/google/protobuf/descriptor.proto +255 -6
- package/node_modules/protobufjs/package.json +1 -1
- package/node_modules/protobufjs/src/namespace.js +3 -1
- package/node_modules/protobufjs/src/root.js +3 -4
- package/node_modules/undici-types/agent.d.ts +11 -7
- package/node_modules/undici-types/api.d.ts +24 -24
- package/node_modules/undici-types/balanced-pool.d.ts +11 -11
- package/node_modules/undici-types/cache-interceptor.d.ts +172 -0
- package/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/undici-types/client.d.ts +18 -16
- package/node_modules/undici-types/cookies.d.ts +2 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +19 -10
- package/node_modules/undici-types/dispatcher.d.ts +119 -93
- package/node_modules/undici-types/env-http-proxy-agent.d.ts +4 -3
- package/node_modules/undici-types/errors.d.ts +69 -47
- package/node_modules/undici-types/eventsource.d.ts +3 -3
- package/node_modules/undici-types/fetch.d.ts +18 -16
- package/node_modules/undici-types/formdata.d.ts +7 -7
- package/node_modules/undici-types/global-dispatcher.d.ts +4 -4
- package/node_modules/undici-types/global-origin.d.ts +5 -5
- package/node_modules/undici-types/h2c-client.d.ts +75 -0
- package/node_modules/undici-types/handlers.d.ts +8 -8
- package/node_modules/undici-types/header.d.ts +157 -1
- package/node_modules/undici-types/index.d.ts +51 -47
- package/node_modules/undici-types/interceptors.d.ts +25 -8
- package/node_modules/undici-types/mock-agent.d.ts +36 -18
- package/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/node_modules/undici-types/mock-client.d.ts +6 -4
- package/node_modules/undici-types/mock-errors.d.ts +3 -3
- package/node_modules/undici-types/mock-interceptor.d.ts +21 -19
- package/node_modules/undici-types/mock-pool.d.ts +6 -4
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/patch.d.ts +0 -4
- package/node_modules/undici-types/pool-stats.d.ts +8 -8
- package/node_modules/undici-types/pool.d.ts +14 -12
- package/node_modules/undici-types/proxy-agent.d.ts +5 -4
- package/node_modules/undici-types/readable.d.ts +18 -15
- package/node_modules/undici-types/retry-agent.d.ts +1 -1
- package/node_modules/undici-types/retry-handler.d.ts +19 -10
- package/node_modules/undici-types/util.d.ts +3 -3
- package/node_modules/undici-types/utility.d.ts +7 -0
- package/node_modules/undici-types/webidl.d.ts +50 -8
- package/node_modules/undici-types/websocket.d.ts +36 -2
- package/node_modules/uuid/README.md +8 -19
- package/node_modules/uuid/dist/{esm-browser/uuid-bin.js → uuid-bin.js} +1 -1
- package/node_modules/uuid/dist/{esm-browser/v4.js → v4.js} +7 -4
- package/node_modules/uuid/{dist/esm → dist-node}/md5.js +1 -1
- package/node_modules/uuid/dist-node/native.js +2 -0
- package/node_modules/uuid/{dist/esm → dist-node}/rng.js +1 -1
- package/node_modules/uuid/{dist/esm → dist-node}/sha1.js +1 -1
- package/node_modules/uuid/{dist/esm → dist-node}/uuid-bin.js +1 -1
- package/node_modules/uuid/{dist/esm → dist-node}/v4.js +7 -4
- package/node_modules/uuid/package.json +28 -41
- package/package.json +6 -6
- package/tak-registration.bak +557 -0
- package/tak-registration.js +14 -12
- package/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
- package/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
- package/node_modules/@types/node/dom-events.d.ts +0 -124
- package/node_modules/undici-types/file.d.ts +0 -39
- package/node_modules/undici-types/filereader.d.ts +0 -54
- package/node_modules/uuid/dist/cjs/index.d.ts +0 -15
- package/node_modules/uuid/dist/cjs/index.js +0 -31
- package/node_modules/uuid/dist/cjs/max.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/max.js +0 -3
- package/node_modules/uuid/dist/cjs/md5.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/md5.js +0 -13
- package/node_modules/uuid/dist/cjs/native.d.ts +0 -6
- package/node_modules/uuid/dist/cjs/native.js +0 -4
- package/node_modules/uuid/dist/cjs/nil.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/nil.js +0 -3
- package/node_modules/uuid/dist/cjs/package.json +0 -1
- package/node_modules/uuid/dist/cjs/parse.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/parse.js +0 -11
- package/node_modules/uuid/dist/cjs/regex.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/regex.js +0 -3
- package/node_modules/uuid/dist/cjs/rng.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/rng.js +0 -13
- package/node_modules/uuid/dist/cjs/sha1.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/sha1.js +0 -13
- package/node_modules/uuid/dist/cjs/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/cjs/stringify.js +0 -39
- package/node_modules/uuid/dist/cjs/types.d.ts +0 -21
- package/node_modules/uuid/dist/cjs/types.js +0 -2
- package/node_modules/uuid/dist/cjs/uuid-bin.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/uuid-bin.js +0 -72
- package/node_modules/uuid/dist/cjs/v1.d.ts +0 -11
- package/node_modules/uuid/dist/cjs/v1.js +0 -87
- package/node_modules/uuid/dist/cjs/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/v1ToV6.js +0 -13
- package/node_modules/uuid/dist/cjs/v3.d.ts +0 -9
- package/node_modules/uuid/dist/cjs/v3.js +0 -14
- package/node_modules/uuid/dist/cjs/v35.d.ts +0 -7
- package/node_modules/uuid/dist/cjs/v35.js +0 -41
- package/node_modules/uuid/dist/cjs/v4.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/v4.js +0 -29
- package/node_modules/uuid/dist/cjs/v5.d.ts +0 -9
- package/node_modules/uuid/dist/cjs/v5.js +0 -14
- package/node_modules/uuid/dist/cjs/v6.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/v6.js +0 -19
- package/node_modules/uuid/dist/cjs/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/v6ToV1.js +0 -13
- package/node_modules/uuid/dist/cjs/v7.d.ts +0 -9
- package/node_modules/uuid/dist/cjs/v7.js +0 -69
- package/node_modules/uuid/dist/cjs/validate.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/validate.js +0 -7
- package/node_modules/uuid/dist/cjs/version.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/version.js +0 -10
- package/node_modules/uuid/dist/cjs-browser/index.js +0 -31
- package/node_modules/uuid/dist/cjs-browser/max.js +0 -3
- package/node_modules/uuid/dist/cjs-browser/md5.js +0 -137
- package/node_modules/uuid/dist/cjs-browser/native.js +0 -4
- package/node_modules/uuid/dist/cjs-browser/nil.js +0 -3
- package/node_modules/uuid/dist/cjs-browser/package.json +0 -1
- package/node_modules/uuid/dist/cjs-browser/parse.js +0 -11
- package/node_modules/uuid/dist/cjs-browser/regex.js +0 -3
- package/node_modules/uuid/dist/cjs-browser/rng.js +0 -14
- package/node_modules/uuid/dist/cjs-browser/sha1.js +0 -72
- package/node_modules/uuid/dist/cjs-browser/stringify.js +0 -39
- package/node_modules/uuid/dist/cjs-browser/types.js +0 -2
- package/node_modules/uuid/dist/cjs-browser/uuid-bin.js +0 -72
- package/node_modules/uuid/dist/cjs-browser/v1.js +0 -87
- package/node_modules/uuid/dist/cjs-browser/v1ToV6.js +0 -13
- package/node_modules/uuid/dist/cjs-browser/v3.js +0 -14
- package/node_modules/uuid/dist/cjs-browser/v35.js +0 -41
- package/node_modules/uuid/dist/cjs-browser/v4.js +0 -29
- package/node_modules/uuid/dist/cjs-browser/v5.js +0 -14
- package/node_modules/uuid/dist/cjs-browser/v6.js +0 -19
- package/node_modules/uuid/dist/cjs-browser/v6ToV1.js +0 -13
- package/node_modules/uuid/dist/cjs-browser/v7.js +0 -69
- package/node_modules/uuid/dist/cjs-browser/validate.js +0 -7
- package/node_modules/uuid/dist/cjs-browser/version.js +0 -10
- package/node_modules/uuid/dist/esm/index.d.ts +0 -15
- package/node_modules/uuid/dist/esm/max.d.ts +0 -2
- package/node_modules/uuid/dist/esm/md5.d.ts +0 -4
- package/node_modules/uuid/dist/esm/native.d.ts +0 -6
- package/node_modules/uuid/dist/esm/native.js +0 -2
- package/node_modules/uuid/dist/esm/nil.d.ts +0 -2
- package/node_modules/uuid/dist/esm/parse.d.ts +0 -2
- package/node_modules/uuid/dist/esm/regex.d.ts +0 -2
- package/node_modules/uuid/dist/esm/rng.d.ts +0 -1
- package/node_modules/uuid/dist/esm/sha1.d.ts +0 -4
- package/node_modules/uuid/dist/esm/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/esm/types.d.ts +0 -21
- package/node_modules/uuid/dist/esm/uuid-bin.d.ts +0 -1
- package/node_modules/uuid/dist/esm/v1.d.ts +0 -11
- package/node_modules/uuid/dist/esm/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/esm/v3.d.ts +0 -9
- package/node_modules/uuid/dist/esm/v35.d.ts +0 -7
- package/node_modules/uuid/dist/esm/v4.d.ts +0 -4
- package/node_modules/uuid/dist/esm/v5.d.ts +0 -9
- package/node_modules/uuid/dist/esm/v6.d.ts +0 -4
- package/node_modules/uuid/dist/esm/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/esm/v7.d.ts +0 -9
- package/node_modules/uuid/dist/esm/validate.d.ts +0 -2
- package/node_modules/uuid/dist/esm/version.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/index.d.ts +0 -15
- package/node_modules/uuid/dist/esm-browser/max.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/md5.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/native.d.ts +0 -4
- package/node_modules/uuid/dist/esm-browser/nil.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/parse.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/regex.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/rng.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/sha1.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/esm-browser/types.d.ts +0 -21
- package/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/v1.d.ts +0 -11
- package/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/v3.d.ts +0 -9
- package/node_modules/uuid/dist/esm-browser/v35.d.ts +0 -7
- package/node_modules/uuid/dist/esm-browser/v4.d.ts +0 -4
- package/node_modules/uuid/dist/esm-browser/v5.d.ts +0 -9
- package/node_modules/uuid/dist/esm-browser/v6.d.ts +0 -4
- package/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/v7.d.ts +0 -9
- package/node_modules/uuid/dist/esm-browser/validate.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/version.d.ts +0 -2
- /package/node_modules/uuid/dist/{cjs-browser/index.d.ts → index.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/index.js → index.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/max.d.ts → max.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/max.js → max.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/md5.d.ts → md5.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm-browser/md5.js → md5.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/native.d.ts → native.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm-browser/native.js → native.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/nil.d.ts → nil.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/nil.js → nil.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/parse.d.ts → parse.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/parse.js → parse.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/regex.d.ts → regex.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/regex.js → regex.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/rng.d.ts → rng.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm-browser/rng.js → rng.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/sha1.d.ts → sha1.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm-browser/sha1.js → sha1.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/stringify.d.ts → stringify.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/stringify.js → stringify.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/types.d.ts → types.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/types.js → types.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/uuid-bin.d.ts → uuid-bin.d.ts} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v1.d.ts → v1.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v1.js → v1.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v1ToV6.d.ts → v1ToV6.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v1ToV6.js → v1ToV6.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v3.d.ts → v3.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v3.js → v3.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v35.d.ts → v35.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v35.js → v35.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v4.d.ts → v4.d.ts} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v5.d.ts → v5.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v5.js → v5.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v6.d.ts → v6.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v6.js → v6.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v6ToV1.d.ts → v6ToV1.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v6ToV1.js → v6ToV1.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v7.d.ts → v7.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v7.js → v7.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/validate.d.ts → validate.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/validate.js → validate.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/version.d.ts → version.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/version.js → version.js} +0 -0
- /package/node_modules/uuid/{dist/esm → dist-node}/bin/uuid +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/index.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/max.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/nil.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/parse.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/regex.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/stringify.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/types.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v1.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v1ToV6.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v3.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v35.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v5.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v6.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v6ToV1.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v7.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/validate.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/version.js +0 -0
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* ```js
|
|
7
7
|
* import util from 'node:util';
|
|
8
8
|
* ```
|
|
9
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
9
|
+
* @see [source](https://github.com/nodejs/node/blob/v24.x/lib/util.js)
|
|
10
10
|
*/
|
|
11
11
|
declare module "util" {
|
|
12
12
|
import * as types from "node:util/types";
|
|
@@ -367,19 +367,6 @@ declare module "util" {
|
|
|
367
367
|
* @since v22.12.0
|
|
368
368
|
*/
|
|
369
369
|
export function getSystemErrorMessage(err: number): string;
|
|
370
|
-
/**
|
|
371
|
-
* The `util.log()` method prints the given `string` to `stdout` with an included
|
|
372
|
-
* timestamp.
|
|
373
|
-
*
|
|
374
|
-
* ```js
|
|
375
|
-
* import util from 'node:util';
|
|
376
|
-
*
|
|
377
|
-
* util.log('Timestamped message.');
|
|
378
|
-
* ```
|
|
379
|
-
* @since v0.3.0
|
|
380
|
-
* @deprecated Since v6.0.0 - Use a third party module instead.
|
|
381
|
-
*/
|
|
382
|
-
export function log(string: string): void;
|
|
383
370
|
/**
|
|
384
371
|
* Returns the `string` after replacing any surrogate code points
|
|
385
372
|
* (or equivalently, any unpaired surrogate code units) with the
|
|
@@ -433,7 +420,6 @@ declare module "util" {
|
|
|
433
420
|
* });
|
|
434
421
|
* ```
|
|
435
422
|
* @since v19.7.0
|
|
436
|
-
* @experimental
|
|
437
423
|
* @param resource Any non-null object tied to the abortable operation and held weakly.
|
|
438
424
|
* If `resource` is garbage collected before the `signal` aborts, the promise remains pending,
|
|
439
425
|
* allowing Node.js to stop tracking it.
|
|
@@ -445,8 +431,8 @@ declare module "util" {
|
|
|
445
431
|
* intended for debugging. The output of `util.inspect` may change at any time
|
|
446
432
|
* and should not be depended upon programmatically. Additional `options` may be
|
|
447
433
|
* passed that alter the result.
|
|
448
|
-
* `util.inspect()` will use the constructor's name and/or
|
|
449
|
-
* an identifiable tag for an inspected value.
|
|
434
|
+
* `util.inspect()` will use the constructor's name and/or `Symbol.toStringTag`
|
|
435
|
+
* property to make an identifiable tag for an inspected value.
|
|
450
436
|
*
|
|
451
437
|
* ```js
|
|
452
438
|
* class Foo {
|
|
@@ -651,71 +637,6 @@ declare module "util" {
|
|
|
651
637
|
* @deprecated Since v4.0.0 - Use `isArray` instead.
|
|
652
638
|
*/
|
|
653
639
|
export function isArray(object: unknown): object is unknown[];
|
|
654
|
-
/**
|
|
655
|
-
* Returns `true` if the given `object` is a `RegExp`. Otherwise, returns `false`.
|
|
656
|
-
*
|
|
657
|
-
* ```js
|
|
658
|
-
* import util from 'node:util';
|
|
659
|
-
*
|
|
660
|
-
* util.isRegExp(/some regexp/);
|
|
661
|
-
* // Returns: true
|
|
662
|
-
* util.isRegExp(new RegExp('another regexp'));
|
|
663
|
-
* // Returns: true
|
|
664
|
-
* util.isRegExp({});
|
|
665
|
-
* // Returns: false
|
|
666
|
-
* ```
|
|
667
|
-
* @since v0.6.0
|
|
668
|
-
* @deprecated Since v4.0.0 - Deprecated
|
|
669
|
-
*/
|
|
670
|
-
export function isRegExp(object: unknown): object is RegExp;
|
|
671
|
-
/**
|
|
672
|
-
* Returns `true` if the given `object` is a `Date`. Otherwise, returns `false`.
|
|
673
|
-
*
|
|
674
|
-
* ```js
|
|
675
|
-
* import util from 'node:util';
|
|
676
|
-
*
|
|
677
|
-
* util.isDate(new Date());
|
|
678
|
-
* // Returns: true
|
|
679
|
-
* util.isDate(Date());
|
|
680
|
-
* // false (without 'new' returns a String)
|
|
681
|
-
* util.isDate({});
|
|
682
|
-
* // Returns: false
|
|
683
|
-
* ```
|
|
684
|
-
* @since v0.6.0
|
|
685
|
-
* @deprecated Since v4.0.0 - Use {@link types.isDate} instead.
|
|
686
|
-
*/
|
|
687
|
-
export function isDate(object: unknown): object is Date;
|
|
688
|
-
/**
|
|
689
|
-
* Returns `true` if the given `object` is an `Error`. Otherwise, returns `false`.
|
|
690
|
-
*
|
|
691
|
-
* ```js
|
|
692
|
-
* import util from 'node:util';
|
|
693
|
-
*
|
|
694
|
-
* util.isError(new Error());
|
|
695
|
-
* // Returns: true
|
|
696
|
-
* util.isError(new TypeError());
|
|
697
|
-
* // Returns: true
|
|
698
|
-
* util.isError({ name: 'Error', message: 'an error occurred' });
|
|
699
|
-
* // Returns: false
|
|
700
|
-
* ```
|
|
701
|
-
*
|
|
702
|
-
* This method relies on `Object.prototype.toString()` behavior. It is
|
|
703
|
-
* possible to obtain an incorrect result when the `object` argument manipulates `@@toStringTag`.
|
|
704
|
-
*
|
|
705
|
-
* ```js
|
|
706
|
-
* import util from 'node:util';
|
|
707
|
-
* const obj = { name: 'Error', message: 'an error occurred' };
|
|
708
|
-
*
|
|
709
|
-
* util.isError(obj);
|
|
710
|
-
* // Returns: false
|
|
711
|
-
* obj[Symbol.toStringTag] = 'Error';
|
|
712
|
-
* util.isError(obj);
|
|
713
|
-
* // Returns: true
|
|
714
|
-
* ```
|
|
715
|
-
* @since v0.6.0
|
|
716
|
-
* @deprecated Since v4.0.0 - Use {@link types.isNativeError} instead.
|
|
717
|
-
*/
|
|
718
|
-
export function isError(object: unknown): object is Error;
|
|
719
640
|
/**
|
|
720
641
|
* Usage of `util.inherits()` is discouraged. Please use the ES6 `class` and
|
|
721
642
|
* `extends` keywords to get language level inheritance support. Also note
|
|
@@ -866,217 +787,6 @@ declare module "util" {
|
|
|
866
787
|
*/
|
|
867
788
|
export function debuglog(section: string, callback?: (fn: DebugLoggerFunction) => void): DebugLogger;
|
|
868
789
|
export { debuglog as debug };
|
|
869
|
-
/**
|
|
870
|
-
* Returns `true` if the given `object` is a `Boolean`. Otherwise, returns `false`.
|
|
871
|
-
*
|
|
872
|
-
* ```js
|
|
873
|
-
* import util from 'node:util';
|
|
874
|
-
*
|
|
875
|
-
* util.isBoolean(1);
|
|
876
|
-
* // Returns: false
|
|
877
|
-
* util.isBoolean(0);
|
|
878
|
-
* // Returns: false
|
|
879
|
-
* util.isBoolean(false);
|
|
880
|
-
* // Returns: true
|
|
881
|
-
* ```
|
|
882
|
-
* @since v0.11.5
|
|
883
|
-
* @deprecated Since v4.0.0 - Use `typeof value === 'boolean'` instead.
|
|
884
|
-
*/
|
|
885
|
-
export function isBoolean(object: unknown): object is boolean;
|
|
886
|
-
/**
|
|
887
|
-
* Returns `true` if the given `object` is a `Buffer`. Otherwise, returns `false`.
|
|
888
|
-
*
|
|
889
|
-
* ```js
|
|
890
|
-
* import util from 'node:util';
|
|
891
|
-
*
|
|
892
|
-
* util.isBuffer({ length: 0 });
|
|
893
|
-
* // Returns: false
|
|
894
|
-
* util.isBuffer([]);
|
|
895
|
-
* // Returns: false
|
|
896
|
-
* util.isBuffer(Buffer.from('hello world'));
|
|
897
|
-
* // Returns: true
|
|
898
|
-
* ```
|
|
899
|
-
* @since v0.11.5
|
|
900
|
-
* @deprecated Since v4.0.0 - Use `isBuffer` instead.
|
|
901
|
-
*/
|
|
902
|
-
export function isBuffer(object: unknown): object is Buffer;
|
|
903
|
-
/**
|
|
904
|
-
* Returns `true` if the given `object` is a `Function`. Otherwise, returns `false`.
|
|
905
|
-
*
|
|
906
|
-
* ```js
|
|
907
|
-
* import util from 'node:util';
|
|
908
|
-
*
|
|
909
|
-
* function Foo() {}
|
|
910
|
-
* const Bar = () => {};
|
|
911
|
-
*
|
|
912
|
-
* util.isFunction({});
|
|
913
|
-
* // Returns: false
|
|
914
|
-
* util.isFunction(Foo);
|
|
915
|
-
* // Returns: true
|
|
916
|
-
* util.isFunction(Bar);
|
|
917
|
-
* // Returns: true
|
|
918
|
-
* ```
|
|
919
|
-
* @since v0.11.5
|
|
920
|
-
* @deprecated Since v4.0.0 - Use `typeof value === 'function'` instead.
|
|
921
|
-
*/
|
|
922
|
-
export function isFunction(object: unknown): boolean;
|
|
923
|
-
/**
|
|
924
|
-
* Returns `true` if the given `object` is strictly `null`. Otherwise, returns`false`.
|
|
925
|
-
*
|
|
926
|
-
* ```js
|
|
927
|
-
* import util from 'node:util';
|
|
928
|
-
*
|
|
929
|
-
* util.isNull(0);
|
|
930
|
-
* // Returns: false
|
|
931
|
-
* util.isNull(undefined);
|
|
932
|
-
* // Returns: false
|
|
933
|
-
* util.isNull(null);
|
|
934
|
-
* // Returns: true
|
|
935
|
-
* ```
|
|
936
|
-
* @since v0.11.5
|
|
937
|
-
* @deprecated Since v4.0.0 - Use `value === null` instead.
|
|
938
|
-
*/
|
|
939
|
-
export function isNull(object: unknown): object is null;
|
|
940
|
-
/**
|
|
941
|
-
* Returns `true` if the given `object` is `null` or `undefined`. Otherwise,
|
|
942
|
-
* returns `false`.
|
|
943
|
-
*
|
|
944
|
-
* ```js
|
|
945
|
-
* import util from 'node:util';
|
|
946
|
-
*
|
|
947
|
-
* util.isNullOrUndefined(0);
|
|
948
|
-
* // Returns: false
|
|
949
|
-
* util.isNullOrUndefined(undefined);
|
|
950
|
-
* // Returns: true
|
|
951
|
-
* util.isNullOrUndefined(null);
|
|
952
|
-
* // Returns: true
|
|
953
|
-
* ```
|
|
954
|
-
* @since v0.11.5
|
|
955
|
-
* @deprecated Since v4.0.0 - Use `value === undefined || value === null` instead.
|
|
956
|
-
*/
|
|
957
|
-
export function isNullOrUndefined(object: unknown): object is null | undefined;
|
|
958
|
-
/**
|
|
959
|
-
* Returns `true` if the given `object` is a `Number`. Otherwise, returns `false`.
|
|
960
|
-
*
|
|
961
|
-
* ```js
|
|
962
|
-
* import util from 'node:util';
|
|
963
|
-
*
|
|
964
|
-
* util.isNumber(false);
|
|
965
|
-
* // Returns: false
|
|
966
|
-
* util.isNumber(Infinity);
|
|
967
|
-
* // Returns: true
|
|
968
|
-
* util.isNumber(0);
|
|
969
|
-
* // Returns: true
|
|
970
|
-
* util.isNumber(NaN);
|
|
971
|
-
* // Returns: true
|
|
972
|
-
* ```
|
|
973
|
-
* @since v0.11.5
|
|
974
|
-
* @deprecated Since v4.0.0 - Use `typeof value === 'number'` instead.
|
|
975
|
-
*/
|
|
976
|
-
export function isNumber(object: unknown): object is number;
|
|
977
|
-
/**
|
|
978
|
-
* Returns `true` if the given `object` is strictly an `Object`**and** not a`Function` (even though functions are objects in JavaScript).
|
|
979
|
-
* Otherwise, returns `false`.
|
|
980
|
-
*
|
|
981
|
-
* ```js
|
|
982
|
-
* import util from 'node:util';
|
|
983
|
-
*
|
|
984
|
-
* util.isObject(5);
|
|
985
|
-
* // Returns: false
|
|
986
|
-
* util.isObject(null);
|
|
987
|
-
* // Returns: false
|
|
988
|
-
* util.isObject({});
|
|
989
|
-
* // Returns: true
|
|
990
|
-
* util.isObject(() => {});
|
|
991
|
-
* // Returns: false
|
|
992
|
-
* ```
|
|
993
|
-
* @since v0.11.5
|
|
994
|
-
* @deprecated Since v4.0.0 - Use `value !== null && typeof value === 'object'` instead.
|
|
995
|
-
*/
|
|
996
|
-
export function isObject(object: unknown): boolean;
|
|
997
|
-
/**
|
|
998
|
-
* Returns `true` if the given `object` is a primitive type. Otherwise, returns`false`.
|
|
999
|
-
*
|
|
1000
|
-
* ```js
|
|
1001
|
-
* import util from 'node:util';
|
|
1002
|
-
*
|
|
1003
|
-
* util.isPrimitive(5);
|
|
1004
|
-
* // Returns: true
|
|
1005
|
-
* util.isPrimitive('foo');
|
|
1006
|
-
* // Returns: true
|
|
1007
|
-
* util.isPrimitive(false);
|
|
1008
|
-
* // Returns: true
|
|
1009
|
-
* util.isPrimitive(null);
|
|
1010
|
-
* // Returns: true
|
|
1011
|
-
* util.isPrimitive(undefined);
|
|
1012
|
-
* // Returns: true
|
|
1013
|
-
* util.isPrimitive({});
|
|
1014
|
-
* // Returns: false
|
|
1015
|
-
* util.isPrimitive(() => {});
|
|
1016
|
-
* // Returns: false
|
|
1017
|
-
* util.isPrimitive(/^$/);
|
|
1018
|
-
* // Returns: false
|
|
1019
|
-
* util.isPrimitive(new Date());
|
|
1020
|
-
* // Returns: false
|
|
1021
|
-
* ```
|
|
1022
|
-
* @since v0.11.5
|
|
1023
|
-
* @deprecated Since v4.0.0 - Use `(typeof value !== 'object' && typeof value !== 'function') || value === null` instead.
|
|
1024
|
-
*/
|
|
1025
|
-
export function isPrimitive(object: unknown): boolean;
|
|
1026
|
-
/**
|
|
1027
|
-
* Returns `true` if the given `object` is a `string`. Otherwise, returns `false`.
|
|
1028
|
-
*
|
|
1029
|
-
* ```js
|
|
1030
|
-
* import util from 'node:util';
|
|
1031
|
-
*
|
|
1032
|
-
* util.isString('');
|
|
1033
|
-
* // Returns: true
|
|
1034
|
-
* util.isString('foo');
|
|
1035
|
-
* // Returns: true
|
|
1036
|
-
* util.isString(String('foo'));
|
|
1037
|
-
* // Returns: true
|
|
1038
|
-
* util.isString(5);
|
|
1039
|
-
* // Returns: false
|
|
1040
|
-
* ```
|
|
1041
|
-
* @since v0.11.5
|
|
1042
|
-
* @deprecated Since v4.0.0 - Use `typeof value === 'string'` instead.
|
|
1043
|
-
*/
|
|
1044
|
-
export function isString(object: unknown): object is string;
|
|
1045
|
-
/**
|
|
1046
|
-
* Returns `true` if the given `object` is a `Symbol`. Otherwise, returns `false`.
|
|
1047
|
-
*
|
|
1048
|
-
* ```js
|
|
1049
|
-
* import util from 'node:util';
|
|
1050
|
-
*
|
|
1051
|
-
* util.isSymbol(5);
|
|
1052
|
-
* // Returns: false
|
|
1053
|
-
* util.isSymbol('foo');
|
|
1054
|
-
* // Returns: false
|
|
1055
|
-
* util.isSymbol(Symbol('foo'));
|
|
1056
|
-
* // Returns: true
|
|
1057
|
-
* ```
|
|
1058
|
-
* @since v0.11.5
|
|
1059
|
-
* @deprecated Since v4.0.0 - Use `typeof value === 'symbol'` instead.
|
|
1060
|
-
*/
|
|
1061
|
-
export function isSymbol(object: unknown): object is symbol;
|
|
1062
|
-
/**
|
|
1063
|
-
* Returns `true` if the given `object` is `undefined`. Otherwise, returns `false`.
|
|
1064
|
-
*
|
|
1065
|
-
* ```js
|
|
1066
|
-
* import util from 'node:util';
|
|
1067
|
-
*
|
|
1068
|
-
* const foo = undefined;
|
|
1069
|
-
* util.isUndefined(5);
|
|
1070
|
-
* // Returns: false
|
|
1071
|
-
* util.isUndefined(foo);
|
|
1072
|
-
* // Returns: true
|
|
1073
|
-
* util.isUndefined(null);
|
|
1074
|
-
* // Returns: false
|
|
1075
|
-
* ```
|
|
1076
|
-
* @since v0.11.5
|
|
1077
|
-
* @deprecated Since v4.0.0 - Use `value === undefined` instead.
|
|
1078
|
-
*/
|
|
1079
|
-
export function isUndefined(object: unknown): object is undefined;
|
|
1080
790
|
/**
|
|
1081
791
|
* The `util.deprecate()` method wraps `fn` (which may be a function or class) in
|
|
1082
792
|
* such a way that it is marked as deprecated.
|
|
@@ -1321,7 +1031,7 @@ declare module "util" {
|
|
|
1321
1031
|
* ```
|
|
1322
1032
|
*
|
|
1323
1033
|
* If there is an `original[util.promisify.custom]` property present, `promisify`
|
|
1324
|
-
* will return its value, see [Custom promisified functions](https://nodejs.org/docs/latest-
|
|
1034
|
+
* will return its value, see [Custom promisified functions](https://nodejs.org/docs/latest-v24.x/api/util.html#custom-promisified-functions).
|
|
1325
1035
|
*
|
|
1326
1036
|
* `promisify()` assumes that `original` is a function taking a callback as its
|
|
1327
1037
|
* final argument in all cases. If `original` is not a function, `promisify()`
|
|
@@ -1411,7 +1121,7 @@ declare module "util" {
|
|
|
1411
1121
|
* @param content The raw contents of a `.env` file.
|
|
1412
1122
|
* @since v20.12.0
|
|
1413
1123
|
*/
|
|
1414
|
-
export function parseEnv(content: string):
|
|
1124
|
+
export function parseEnv(content: string): NodeJS.Dict<string>;
|
|
1415
1125
|
// https://nodejs.org/docs/latest/api/util.html#foreground-colors
|
|
1416
1126
|
type ForegroundColors =
|
|
1417
1127
|
| "black"
|
|
@@ -1462,6 +1172,7 @@ declare module "util" {
|
|
|
1462
1172
|
| "hidden"
|
|
1463
1173
|
| "inverse"
|
|
1464
1174
|
| "italic"
|
|
1175
|
+
| "none"
|
|
1465
1176
|
| "overlined"
|
|
1466
1177
|
| "reset"
|
|
1467
1178
|
| "strikethrough"
|
|
@@ -1481,7 +1192,7 @@ declare module "util" {
|
|
|
1481
1192
|
/**
|
|
1482
1193
|
* This function returns a formatted text considering the `format` passed
|
|
1483
1194
|
* for printing in a terminal. It is aware of the terminal's capabilities
|
|
1484
|
-
* and acts according to the configuration set via `
|
|
1195
|
+
* and acts according to the configuration set via `NO_COLOR`,
|
|
1485
1196
|
* `NODE_DISABLE_COLORS` and `FORCE_COLOR` environment variables.
|
|
1486
1197
|
*
|
|
1487
1198
|
* ```js
|
|
@@ -1518,7 +1229,9 @@ declare module "util" {
|
|
|
1518
1229
|
* );
|
|
1519
1230
|
* ```
|
|
1520
1231
|
*
|
|
1521
|
-
* The
|
|
1232
|
+
* The special format value `none` applies no additional styling to the text.
|
|
1233
|
+
*
|
|
1234
|
+
* The full list of formats can be found in [modifiers](https://nodejs.org/docs/latest-v24.x/api/util.html#modifiers).
|
|
1522
1235
|
* @param format A text format or an Array of text formats defined in `util.inspect.colors`.
|
|
1523
1236
|
* @param text The text to to be formatted.
|
|
1524
1237
|
* @since v20.12.0
|
|
@@ -2222,10 +1935,21 @@ declare module "util/types" {
|
|
|
2222
1935
|
* ```
|
|
2223
1936
|
*
|
|
2224
1937
|
* For further information on `napi_create_external`, refer to
|
|
2225
|
-
* [`napi_create_external()`](https://nodejs.org/docs/latest-
|
|
1938
|
+
* [`napi_create_external()`](https://nodejs.org/docs/latest-v24.x/api/n-api.html#napi_create_external).
|
|
2226
1939
|
* @since v10.0.0
|
|
2227
1940
|
*/
|
|
2228
1941
|
function isExternal(object: unknown): boolean;
|
|
1942
|
+
/**
|
|
1943
|
+
* Returns `true` if the value is a built-in [`Float16Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float16Array) instance.
|
|
1944
|
+
*
|
|
1945
|
+
* ```js
|
|
1946
|
+
* util.types.isFloat16Array(new ArrayBuffer()); // Returns false
|
|
1947
|
+
* util.types.isFloat16Array(new Float16Array()); // Returns true
|
|
1948
|
+
* util.types.isFloat16Array(new Float32Array()); // Returns false
|
|
1949
|
+
* ```
|
|
1950
|
+
* @since v24.0.0
|
|
1951
|
+
*/
|
|
1952
|
+
function isFloat16Array(object: unknown): object is Float16Array;
|
|
2229
1953
|
/**
|
|
2230
1954
|
* Returns `true` if the value is a built-in [`Float32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array) instance.
|
|
2231
1955
|
*
|
|
@@ -2387,6 +2111,7 @@ declare module "util/types" {
|
|
|
2387
2111
|
* console.log(myError instanceof Error); // true
|
|
2388
2112
|
* ```
|
|
2389
2113
|
* @since v10.0.0
|
|
2114
|
+
* @deprecated The `util.types.isNativeError` API is deprecated. Please use `Error.isError` instead.
|
|
2390
2115
|
*/
|
|
2391
2116
|
function isNativeError(object: unknown): object is Error;
|
|
2392
2117
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* ```js
|
|
5
5
|
* import v8 from 'node:v8';
|
|
6
6
|
* ```
|
|
7
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
7
|
+
* @see [source](https://github.com/nodejs/node/blob/v24.x/lib/v8.js)
|
|
8
8
|
*/
|
|
9
9
|
declare module "v8" {
|
|
10
10
|
import { Readable } from "node:stream";
|
|
@@ -400,6 +400,39 @@ declare module "v8" {
|
|
|
400
400
|
* @since v12.8.0
|
|
401
401
|
*/
|
|
402
402
|
function getHeapCodeStatistics(): HeapCodeStatistics;
|
|
403
|
+
/**
|
|
404
|
+
* V8 only supports `Latin-1/ISO-8859-1` and `UTF16` as the underlying representation of a string.
|
|
405
|
+
* If the `content` uses `Latin-1/ISO-8859-1` as the underlying representation, this function will return true;
|
|
406
|
+
* otherwise, it returns false.
|
|
407
|
+
*
|
|
408
|
+
* If this method returns false, that does not mean that the string contains some characters not in `Latin-1/ISO-8859-1`.
|
|
409
|
+
* Sometimes a `Latin-1` string may also be represented as `UTF16`.
|
|
410
|
+
*
|
|
411
|
+
* ```js
|
|
412
|
+
* const { isStringOneByteRepresentation } = require('node:v8');
|
|
413
|
+
*
|
|
414
|
+
* const Encoding = {
|
|
415
|
+
* latin1: 1,
|
|
416
|
+
* utf16le: 2,
|
|
417
|
+
* };
|
|
418
|
+
* const buffer = Buffer.alloc(100);
|
|
419
|
+
* function writeString(input) {
|
|
420
|
+
* if (isStringOneByteRepresentation(input)) {
|
|
421
|
+
* buffer.writeUint8(Encoding.latin1);
|
|
422
|
+
* buffer.writeUint32LE(input.length, 1);
|
|
423
|
+
* buffer.write(input, 5, 'latin1');
|
|
424
|
+
* } else {
|
|
425
|
+
* buffer.writeUint8(Encoding.utf16le);
|
|
426
|
+
* buffer.writeUint32LE(input.length * 2, 1);
|
|
427
|
+
* buffer.write(input, 5, 'utf16le');
|
|
428
|
+
* }
|
|
429
|
+
* }
|
|
430
|
+
* writeString('hello');
|
|
431
|
+
* writeString('你好');
|
|
432
|
+
* ```
|
|
433
|
+
* @since v23.10.0, v22.15.0
|
|
434
|
+
*/
|
|
435
|
+
function isStringOneByteRepresentation(content: string): boolean;
|
|
403
436
|
/**
|
|
404
437
|
* @since v8.0.0
|
|
405
438
|
*/
|
|
@@ -547,8 +580,7 @@ declare module "v8" {
|
|
|
547
580
|
function stopCoverage(): void;
|
|
548
581
|
/**
|
|
549
582
|
* The API is a no-op if `--heapsnapshot-near-heap-limit` is already set from the command line or the API is called more than once.
|
|
550
|
-
* `limit` must be a positive integer. See [`--heapsnapshot-near-heap-limit`](https://nodejs.org/docs/latest-
|
|
551
|
-
* @experimental
|
|
583
|
+
* `limit` must be a positive integer. See [`--heapsnapshot-near-heap-limit`](https://nodejs.org/docs/latest-v24.x/api/cli.html#--heapsnapshot-near-heap-limitmax_count) for more information.
|
|
552
584
|
* @since v18.10.0, v16.18.0
|
|
553
585
|
*/
|
|
554
586
|
function setHeapSnapshotNearHeapLimit(limit: number): void;
|
|
@@ -774,33 +806,6 @@ declare module "v8" {
|
|
|
774
806
|
*/
|
|
775
807
|
const promiseHooks: PromiseHooks;
|
|
776
808
|
type StartupSnapshotCallbackFn = (args: any) => any;
|
|
777
|
-
interface StartupSnapshot {
|
|
778
|
-
/**
|
|
779
|
-
* Add a callback that will be called when the Node.js instance is about to get serialized into a snapshot and exit.
|
|
780
|
-
* This can be used to release resources that should not or cannot be serialized or to convert user data into a form more suitable for serialization.
|
|
781
|
-
* @since v18.6.0, v16.17.0
|
|
782
|
-
*/
|
|
783
|
-
addSerializeCallback(callback: StartupSnapshotCallbackFn, data?: any): void;
|
|
784
|
-
/**
|
|
785
|
-
* Add a callback that will be called when the Node.js instance is deserialized from a snapshot.
|
|
786
|
-
* The `callback` and the `data` (if provided) will be serialized into the snapshot, they can be used to re-initialize the state of the application or
|
|
787
|
-
* to re-acquire resources that the application needs when the application is restarted from the snapshot.
|
|
788
|
-
* @since v18.6.0, v16.17.0
|
|
789
|
-
*/
|
|
790
|
-
addDeserializeCallback(callback: StartupSnapshotCallbackFn, data?: any): void;
|
|
791
|
-
/**
|
|
792
|
-
* This sets the entry point of the Node.js application when it is deserialized from a snapshot. This can be called only once in the snapshot building script.
|
|
793
|
-
* If called, the deserialized application no longer needs an additional entry point script to start up and will simply invoke the callback along with the deserialized
|
|
794
|
-
* data (if provided), otherwise an entry point script still needs to be provided to the deserialized application.
|
|
795
|
-
* @since v18.6.0, v16.17.0
|
|
796
|
-
*/
|
|
797
|
-
setDeserializeMainFunction(callback: StartupSnapshotCallbackFn, data?: any): void;
|
|
798
|
-
/**
|
|
799
|
-
* Returns true if the Node.js instance is run to build a snapshot.
|
|
800
|
-
* @since v18.6.0, v16.17.0
|
|
801
|
-
*/
|
|
802
|
-
isBuildingSnapshot(): boolean;
|
|
803
|
-
}
|
|
804
809
|
/**
|
|
805
810
|
* The `v8.startupSnapshot` interface can be used to add serialization and deserialization hooks for custom startup snapshots.
|
|
806
811
|
*
|
|
@@ -879,10 +884,35 @@ declare module "v8" {
|
|
|
879
884
|
*
|
|
880
885
|
* Currently the application deserialized from a user-land snapshot cannot be snapshotted again, so these APIs are only available to applications that are not deserialized from a user-land snapshot.
|
|
881
886
|
*
|
|
882
|
-
* @experimental
|
|
883
887
|
* @since v18.6.0, v16.17.0
|
|
884
888
|
*/
|
|
885
|
-
|
|
889
|
+
namespace startupSnapshot {
|
|
890
|
+
/**
|
|
891
|
+
* Add a callback that will be called when the Node.js instance is about to get serialized into a snapshot and exit.
|
|
892
|
+
* This can be used to release resources that should not or cannot be serialized or to convert user data into a form more suitable for serialization.
|
|
893
|
+
* @since v18.6.0, v16.17.0
|
|
894
|
+
*/
|
|
895
|
+
function addSerializeCallback(callback: StartupSnapshotCallbackFn, data?: any): void;
|
|
896
|
+
/**
|
|
897
|
+
* Add a callback that will be called when the Node.js instance is deserialized from a snapshot.
|
|
898
|
+
* The `callback` and the `data` (if provided) will be serialized into the snapshot, they can be used to re-initialize the state of the application or
|
|
899
|
+
* to re-acquire resources that the application needs when the application is restarted from the snapshot.
|
|
900
|
+
* @since v18.6.0, v16.17.0
|
|
901
|
+
*/
|
|
902
|
+
function addDeserializeCallback(callback: StartupSnapshotCallbackFn, data?: any): void;
|
|
903
|
+
/**
|
|
904
|
+
* This sets the entry point of the Node.js application when it is deserialized from a snapshot. This can be called only once in the snapshot building script.
|
|
905
|
+
* If called, the deserialized application no longer needs an additional entry point script to start up and will simply invoke the callback along with the deserialized
|
|
906
|
+
* data (if provided), otherwise an entry point script still needs to be provided to the deserialized application.
|
|
907
|
+
* @since v18.6.0, v16.17.0
|
|
908
|
+
*/
|
|
909
|
+
function setDeserializeMainFunction(callback: StartupSnapshotCallbackFn, data?: any): void;
|
|
910
|
+
/**
|
|
911
|
+
* Returns true if the Node.js instance is run to build a snapshot.
|
|
912
|
+
* @since v18.6.0, v16.17.0
|
|
913
|
+
*/
|
|
914
|
+
function isBuildingSnapshot(): boolean;
|
|
915
|
+
}
|
|
886
916
|
}
|
|
887
917
|
declare module "node:v8" {
|
|
888
918
|
export * from "v8";
|