node-red-contrib-tak-registration 0.16.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 +58 -0
- package/node_modules/axios/README.md +87 -10
- package/node_modules/axios/dist/axios.js +355 -289
- 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 +286 -213
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +286 -213
- 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 +377 -213
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +12 -5
- package/node_modules/axios/index.d.ts +13 -4
- 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 +0 -2
- 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/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/utils.js +5 -3
- package/node_modules/axios/package.json +18 -12
- 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/follow-redirects/package.json +1 -1
- package/node_modules/protobufjs/dist/light/protobuf.js +2 -2
- package/node_modules/protobufjs/dist/light/protobuf.min.js +2 -2
- 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 +2 -2
- package/node_modules/protobufjs/dist/protobuf.min.js +2 -2
- package/node_modules/protobufjs/google/protobuf/descriptor.json +2 -2
- package/node_modules/protobufjs/google/protobuf/descriptor.proto +2 -1
- package/node_modules/protobufjs/package.json +1 -1
- 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 +4 -4
- package/tak-registration.bak +557 -0
- package/tak-registration.js +8 -8
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Axios v1.
|
|
1
|
+
/*! Axios v1.12.2 Copyright (c) 2025 Matt Zabriskie and contributors */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
function bind(fn, thisArg) {
|
|
@@ -52,7 +52,7 @@ const isUndefined = typeOfTest('undefined');
|
|
|
52
52
|
*/
|
|
53
53
|
function isBuffer(val) {
|
|
54
54
|
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
|
|
55
|
-
&& isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
55
|
+
&& isFunction$1(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
/**
|
|
@@ -97,7 +97,7 @@ const isString = typeOfTest('string');
|
|
|
97
97
|
* @param {*} val The value to test
|
|
98
98
|
* @returns {boolean} True if value is a Function, otherwise false
|
|
99
99
|
*/
|
|
100
|
-
const isFunction = typeOfTest('function');
|
|
100
|
+
const isFunction$1 = typeOfTest('function');
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
103
|
* Determine if a value is a Number
|
|
@@ -153,7 +153,7 @@ const isEmptyObject = (val) => {
|
|
|
153
153
|
if (!isObject(val) || isBuffer(val)) {
|
|
154
154
|
return false;
|
|
155
155
|
}
|
|
156
|
-
|
|
156
|
+
|
|
157
157
|
try {
|
|
158
158
|
return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
|
|
159
159
|
} catch (e) {
|
|
@@ -205,7 +205,7 @@ const isFileList = kindOfTest('FileList');
|
|
|
205
205
|
*
|
|
206
206
|
* @returns {boolean} True if value is a Stream, otherwise false
|
|
207
207
|
*/
|
|
208
|
-
const isStream = (val) => isObject(val) && isFunction(val.pipe);
|
|
208
|
+
const isStream = (val) => isObject(val) && isFunction$1(val.pipe);
|
|
209
209
|
|
|
210
210
|
/**
|
|
211
211
|
* Determine if a value is a FormData
|
|
@@ -218,10 +218,10 @@ const isFormData = (thing) => {
|
|
|
218
218
|
let kind;
|
|
219
219
|
return thing && (
|
|
220
220
|
(typeof FormData === 'function' && thing instanceof FormData) || (
|
|
221
|
-
isFunction(thing.append) && (
|
|
221
|
+
isFunction$1(thing.append) && (
|
|
222
222
|
(kind = kindOf(thing)) === 'formdata' ||
|
|
223
223
|
// detect form-data instance
|
|
224
|
-
(kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')
|
|
224
|
+
(kind === 'object' && isFunction$1(thing.toString) && thing.toString() === '[object FormData]')
|
|
225
225
|
)
|
|
226
226
|
)
|
|
227
227
|
)
|
|
@@ -346,7 +346,7 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
|
|
|
346
346
|
* @returns {Object} Result of all merge properties
|
|
347
347
|
*/
|
|
348
348
|
function merge(/* obj1, obj2, obj3, ... */) {
|
|
349
|
-
const {caseless} = isContextDefined(this) && this || {};
|
|
349
|
+
const {caseless, skipUndefined} = isContextDefined(this) && this || {};
|
|
350
350
|
const result = {};
|
|
351
351
|
const assignValue = (val, key) => {
|
|
352
352
|
const targetKey = caseless && findKey(result, key) || key;
|
|
@@ -356,7 +356,7 @@ function merge(/* obj1, obj2, obj3, ... */) {
|
|
|
356
356
|
result[targetKey] = merge({}, val);
|
|
357
357
|
} else if (isArray(val)) {
|
|
358
358
|
result[targetKey] = val.slice();
|
|
359
|
-
} else {
|
|
359
|
+
} else if (!skipUndefined || !isUndefined(val)) {
|
|
360
360
|
result[targetKey] = val;
|
|
361
361
|
}
|
|
362
362
|
};
|
|
@@ -379,7 +379,7 @@ function merge(/* obj1, obj2, obj3, ... */) {
|
|
|
379
379
|
*/
|
|
380
380
|
const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
|
|
381
381
|
forEach(b, (val, key) => {
|
|
382
|
-
if (thisArg && isFunction(val)) {
|
|
382
|
+
if (thisArg && isFunction$1(val)) {
|
|
383
383
|
a[key] = bind(val, thisArg);
|
|
384
384
|
} else {
|
|
385
385
|
a[key] = val;
|
|
@@ -595,13 +595,13 @@ const reduceDescriptors = (obj, reducer) => {
|
|
|
595
595
|
const freezeMethods = (obj) => {
|
|
596
596
|
reduceDescriptors(obj, (descriptor, name) => {
|
|
597
597
|
// skip restricted props in strict mode
|
|
598
|
-
if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
|
|
598
|
+
if (isFunction$1(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
|
|
599
599
|
return false;
|
|
600
600
|
}
|
|
601
601
|
|
|
602
602
|
const value = obj[name];
|
|
603
603
|
|
|
604
|
-
if (!isFunction(value)) return;
|
|
604
|
+
if (!isFunction$1(value)) return;
|
|
605
605
|
|
|
606
606
|
descriptor.enumerable = false;
|
|
607
607
|
|
|
@@ -638,6 +638,8 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
|
638
638
|
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
639
639
|
};
|
|
640
640
|
|
|
641
|
+
|
|
642
|
+
|
|
641
643
|
/**
|
|
642
644
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
643
645
|
*
|
|
@@ -646,7 +648,7 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
|
646
648
|
* @returns {boolean}
|
|
647
649
|
*/
|
|
648
650
|
function isSpecCompliantForm(thing) {
|
|
649
|
-
return !!(thing && isFunction(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
|
|
651
|
+
return !!(thing && isFunction$1(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
|
|
650
652
|
}
|
|
651
653
|
|
|
652
654
|
const toJSONObject = (obj) => {
|
|
@@ -688,7 +690,7 @@ const toJSONObject = (obj) => {
|
|
|
688
690
|
const isAsyncFn = kindOfTest('AsyncFunction');
|
|
689
691
|
|
|
690
692
|
const isThenable = (thing) =>
|
|
691
|
-
thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
|
|
693
|
+
thing && (isObject(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
|
|
692
694
|
|
|
693
695
|
// original code
|
|
694
696
|
// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
|
|
@@ -712,7 +714,7 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
|
712
714
|
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
713
715
|
})(
|
|
714
716
|
typeof setImmediate === 'function',
|
|
715
|
-
isFunction(_global.postMessage)
|
|
717
|
+
isFunction$1(_global.postMessage)
|
|
716
718
|
);
|
|
717
719
|
|
|
718
720
|
const asap = typeof queueMicrotask !== 'undefined' ?
|
|
@@ -721,7 +723,7 @@ const asap = typeof queueMicrotask !== 'undefined' ?
|
|
|
721
723
|
// *********************
|
|
722
724
|
|
|
723
725
|
|
|
724
|
-
const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
|
|
726
|
+
const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
|
|
725
727
|
|
|
726
728
|
|
|
727
729
|
var utils$1 = {
|
|
@@ -745,7 +747,7 @@ var utils$1 = {
|
|
|
745
747
|
isFile,
|
|
746
748
|
isBlob,
|
|
747
749
|
isRegExp,
|
|
748
|
-
isFunction,
|
|
750
|
+
isFunction: isFunction$1,
|
|
749
751
|
isStream,
|
|
750
752
|
isURLSearchParams,
|
|
751
753
|
isTypedArray,
|
|
@@ -871,11 +873,18 @@ AxiosError.from = (error, code, config, request, response, customProps) => {
|
|
|
871
873
|
return prop !== 'isAxiosError';
|
|
872
874
|
});
|
|
873
875
|
|
|
874
|
-
|
|
876
|
+
const msg = error && error.message ? error.message : 'Error';
|
|
877
|
+
|
|
878
|
+
// Prefer explicit code; otherwise copy the low-level error's code (e.g. ECONNREFUSED)
|
|
879
|
+
const errCode = code == null && error ? error.code : code;
|
|
880
|
+
AxiosError.call(axiosError, msg, errCode, config, request, response);
|
|
875
881
|
|
|
876
|
-
|
|
882
|
+
// Chain the original error on the standard field; non-enumerable to avoid JSON noise
|
|
883
|
+
if (error && axiosError.cause == null) {
|
|
884
|
+
Object.defineProperty(axiosError, 'cause', { value: error, configurable: true });
|
|
885
|
+
}
|
|
877
886
|
|
|
878
|
-
axiosError.name = error.name;
|
|
887
|
+
axiosError.name = (error && error.name) || 'Error';
|
|
879
888
|
|
|
880
889
|
customProps && Object.assign(axiosError, customProps);
|
|
881
890
|
|
|
@@ -1166,9 +1175,7 @@ function encode(val) {
|
|
|
1166
1175
|
replace(/%3A/gi, ':').
|
|
1167
1176
|
replace(/%24/g, '$').
|
|
1168
1177
|
replace(/%2C/gi, ',').
|
|
1169
|
-
replace(/%20/g, '+')
|
|
1170
|
-
replace(/%5B/gi, '[').
|
|
1171
|
-
replace(/%5D/gi, ']');
|
|
1178
|
+
replace(/%20/g, '+');
|
|
1172
1179
|
}
|
|
1173
1180
|
|
|
1174
1181
|
/**
|
|
@@ -1573,7 +1580,7 @@ const defaults = {
|
|
|
1573
1580
|
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
1574
1581
|
|
|
1575
1582
|
try {
|
|
1576
|
-
return JSON.parse(data);
|
|
1583
|
+
return JSON.parse(data, this.parseReviver);
|
|
1577
1584
|
} catch (e) {
|
|
1578
1585
|
if (strictJSONParsing) {
|
|
1579
1586
|
if (e.name === 'SyntaxError') {
|
|
@@ -2398,7 +2405,7 @@ function mergeConfig(config1, config2) {
|
|
|
2398
2405
|
var resolveConfig = (config) => {
|
|
2399
2406
|
const newConfig = mergeConfig({}, config);
|
|
2400
2407
|
|
|
2401
|
-
let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;
|
|
2408
|
+
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
2402
2409
|
|
|
2403
2410
|
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
2404
2411
|
|
|
@@ -2411,17 +2418,21 @@ var resolveConfig = (config) => {
|
|
|
2411
2418
|
);
|
|
2412
2419
|
}
|
|
2413
2420
|
|
|
2414
|
-
let contentType;
|
|
2415
|
-
|
|
2416
2421
|
if (utils$1.isFormData(data)) {
|
|
2417
2422
|
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
|
2418
|
-
headers.setContentType(undefined); //
|
|
2419
|
-
} else if ((
|
|
2420
|
-
//
|
|
2421
|
-
const
|
|
2422
|
-
headers
|
|
2423
|
+
headers.setContentType(undefined); // browser handles it
|
|
2424
|
+
} else if (utils$1.isFunction(data.getHeaders)) {
|
|
2425
|
+
// Node.js FormData (like form-data package)
|
|
2426
|
+
const formHeaders = data.getHeaders();
|
|
2427
|
+
// Only set safe headers to avoid overwriting security headers
|
|
2428
|
+
const allowedHeaders = ['content-type', 'content-length'];
|
|
2429
|
+
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
2430
|
+
if (allowedHeaders.includes(key.toLowerCase())) {
|
|
2431
|
+
headers.set(key, val);
|
|
2432
|
+
}
|
|
2433
|
+
});
|
|
2423
2434
|
}
|
|
2424
|
-
}
|
|
2435
|
+
}
|
|
2425
2436
|
|
|
2426
2437
|
// Add xsrf header
|
|
2427
2438
|
// This is only done if running in a standard browser environment.
|
|
@@ -2538,15 +2549,18 @@ var xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
|
2538
2549
|
};
|
|
2539
2550
|
|
|
2540
2551
|
// Handle low level network errors
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2552
|
+
request.onerror = function handleError(event) {
|
|
2553
|
+
// Browsers deliver a ProgressEvent in XHR onerror
|
|
2554
|
+
// (message may be empty; when present, surface it)
|
|
2555
|
+
// See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
|
|
2556
|
+
const msg = event && event.message ? event.message : 'Network Error';
|
|
2557
|
+
const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);
|
|
2558
|
+
// attach the underlying event for consumers who want details
|
|
2559
|
+
err.event = event || null;
|
|
2560
|
+
reject(err);
|
|
2561
|
+
request = null;
|
|
2548
2562
|
};
|
|
2549
|
-
|
|
2563
|
+
|
|
2550
2564
|
// Handle timeout
|
|
2551
2565
|
request.ontimeout = function handleTimeout() {
|
|
2552
2566
|
let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
@@ -2762,14 +2776,18 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
|
|
|
2762
2776
|
})
|
|
2763
2777
|
};
|
|
2764
2778
|
|
|
2765
|
-
const
|
|
2766
|
-
|
|
2779
|
+
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
2780
|
+
|
|
2781
|
+
const {isFunction} = utils$1;
|
|
2782
|
+
|
|
2783
|
+
const globalFetchAPI = (({Request, Response}) => ({
|
|
2784
|
+
Request, Response
|
|
2785
|
+
}))(utils$1.global);
|
|
2786
|
+
|
|
2787
|
+
const {
|
|
2788
|
+
ReadableStream: ReadableStream$1, TextEncoder
|
|
2789
|
+
} = utils$1.global;
|
|
2767
2790
|
|
|
2768
|
-
// used only inside the fetch adapter
|
|
2769
|
-
const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
|
|
2770
|
-
((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
|
|
2771
|
-
async (str) => new Uint8Array(await new Response(str).arrayBuffer())
|
|
2772
|
-
);
|
|
2773
2791
|
|
|
2774
2792
|
const test = (fn, ...args) => {
|
|
2775
2793
|
try {
|
|
@@ -2779,211 +2797,268 @@ const test = (fn, ...args) => {
|
|
|
2779
2797
|
}
|
|
2780
2798
|
};
|
|
2781
2799
|
|
|
2782
|
-
const
|
|
2783
|
-
|
|
2800
|
+
const factory = (env) => {
|
|
2801
|
+
env = utils$1.merge.call({
|
|
2802
|
+
skipUndefined: true
|
|
2803
|
+
}, globalFetchAPI, env);
|
|
2784
2804
|
|
|
2785
|
-
const
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
duplexAccessed = true;
|
|
2790
|
-
return 'half';
|
|
2791
|
-
},
|
|
2792
|
-
}).headers.has('Content-Type');
|
|
2805
|
+
const {fetch: envFetch, Request, Response} = env;
|
|
2806
|
+
const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';
|
|
2807
|
+
const isRequestSupported = isFunction(Request);
|
|
2808
|
+
const isResponseSupported = isFunction(Response);
|
|
2793
2809
|
|
|
2794
|
-
|
|
2795
|
-
|
|
2810
|
+
if (!isFetchSupported) {
|
|
2811
|
+
return false;
|
|
2812
|
+
}
|
|
2796
2813
|
|
|
2797
|
-
const
|
|
2814
|
+
const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream$1);
|
|
2798
2815
|
|
|
2799
|
-
const
|
|
2800
|
-
|
|
2816
|
+
const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
|
|
2817
|
+
((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
|
|
2818
|
+
async (str) => new Uint8Array(await new Request(str).arrayBuffer())
|
|
2819
|
+
);
|
|
2801
2820
|
|
|
2821
|
+
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
|
|
2822
|
+
let duplexAccessed = false;
|
|
2802
2823
|
|
|
2803
|
-
const
|
|
2804
|
-
|
|
2805
|
-
|
|
2824
|
+
const hasContentType = new Request(platform.origin, {
|
|
2825
|
+
body: new ReadableStream$1(),
|
|
2826
|
+
method: 'POST',
|
|
2827
|
+
get duplex() {
|
|
2828
|
+
duplexAccessed = true;
|
|
2829
|
+
return 'half';
|
|
2830
|
+
},
|
|
2831
|
+
}).headers.has('Content-Type');
|
|
2806
2832
|
|
|
2807
|
-
|
|
2808
|
-
['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
|
|
2809
|
-
!resolvers[type] && (resolvers[type] = utils$1.isFunction(res[type]) ? (res) => res[type]() :
|
|
2810
|
-
(_, config) => {
|
|
2811
|
-
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
2812
|
-
});
|
|
2833
|
+
return duplexAccessed && !hasContentType;
|
|
2813
2834
|
});
|
|
2814
|
-
})(new Response));
|
|
2815
2835
|
|
|
2816
|
-
const
|
|
2817
|
-
|
|
2818
|
-
return 0;
|
|
2819
|
-
}
|
|
2836
|
+
const supportsResponseStream = isResponseSupported && isReadableStreamSupported &&
|
|
2837
|
+
test(() => utils$1.isReadableStream(new Response('').body));
|
|
2820
2838
|
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
}
|
|
2839
|
+
const resolvers = {
|
|
2840
|
+
stream: supportsResponseStream && ((res) => res.body)
|
|
2841
|
+
};
|
|
2824
2842
|
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2843
|
+
isFetchSupported && ((() => {
|
|
2844
|
+
['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
|
|
2845
|
+
!resolvers[type] && (resolvers[type] = (res, config) => {
|
|
2846
|
+
let method = res && res[type];
|
|
2847
|
+
|
|
2848
|
+
if (method) {
|
|
2849
|
+
return method.call(res);
|
|
2850
|
+
}
|
|
2851
|
+
|
|
2852
|
+
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
2853
|
+
});
|
|
2829
2854
|
});
|
|
2830
|
-
|
|
2831
|
-
}
|
|
2855
|
+
})());
|
|
2832
2856
|
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2857
|
+
const getBodyLength = async (body) => {
|
|
2858
|
+
if (body == null) {
|
|
2859
|
+
return 0;
|
|
2860
|
+
}
|
|
2836
2861
|
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2862
|
+
if (utils$1.isBlob(body)) {
|
|
2863
|
+
return body.size;
|
|
2864
|
+
}
|
|
2840
2865
|
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2866
|
+
if (utils$1.isSpecCompliantForm(body)) {
|
|
2867
|
+
const _request = new Request(platform.origin, {
|
|
2868
|
+
method: 'POST',
|
|
2869
|
+
body,
|
|
2870
|
+
});
|
|
2871
|
+
return (await _request.arrayBuffer()).byteLength;
|
|
2872
|
+
}
|
|
2845
2873
|
|
|
2846
|
-
|
|
2847
|
-
|
|
2874
|
+
if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
|
|
2875
|
+
return body.byteLength;
|
|
2876
|
+
}
|
|
2848
2877
|
|
|
2849
|
-
|
|
2850
|
-
|
|
2878
|
+
if (utils$1.isURLSearchParams(body)) {
|
|
2879
|
+
body = body + '';
|
|
2880
|
+
}
|
|
2881
|
+
|
|
2882
|
+
if (utils$1.isString(body)) {
|
|
2883
|
+
return (await encodeText(body)).byteLength;
|
|
2884
|
+
}
|
|
2885
|
+
};
|
|
2886
|
+
|
|
2887
|
+
const resolveBodyLength = async (headers, body) => {
|
|
2888
|
+
const length = utils$1.toFiniteNumber(headers.getContentLength());
|
|
2889
|
+
|
|
2890
|
+
return length == null ? getBodyLength(body) : length;
|
|
2891
|
+
};
|
|
2892
|
+
|
|
2893
|
+
return async (config) => {
|
|
2894
|
+
let {
|
|
2895
|
+
url,
|
|
2896
|
+
method,
|
|
2897
|
+
data,
|
|
2898
|
+
signal,
|
|
2899
|
+
cancelToken,
|
|
2900
|
+
timeout,
|
|
2901
|
+
onDownloadProgress,
|
|
2902
|
+
onUploadProgress,
|
|
2903
|
+
responseType,
|
|
2904
|
+
headers,
|
|
2905
|
+
withCredentials = 'same-origin',
|
|
2906
|
+
fetchOptions
|
|
2907
|
+
} = resolveConfig(config);
|
|
2908
|
+
|
|
2909
|
+
let _fetch = envFetch || fetch;
|
|
2910
|
+
|
|
2911
|
+
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
2912
|
+
|
|
2913
|
+
let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
2851
2914
|
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
method,
|
|
2856
|
-
data,
|
|
2857
|
-
signal,
|
|
2858
|
-
cancelToken,
|
|
2859
|
-
timeout,
|
|
2860
|
-
onDownloadProgress,
|
|
2861
|
-
onUploadProgress,
|
|
2862
|
-
responseType,
|
|
2863
|
-
headers,
|
|
2864
|
-
withCredentials = 'same-origin',
|
|
2865
|
-
fetchOptions
|
|
2866
|
-
} = resolveConfig(config);
|
|
2867
|
-
|
|
2868
|
-
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
2869
|
-
|
|
2870
|
-
let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
2871
|
-
|
|
2872
|
-
let request;
|
|
2873
|
-
|
|
2874
|
-
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
2915
|
+
let request = null;
|
|
2916
|
+
|
|
2917
|
+
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
2875
2918
|
composedSignal.unsubscribe();
|
|
2876
|
-
|
|
2919
|
+
});
|
|
2877
2920
|
|
|
2878
|
-
|
|
2921
|
+
let requestContentLength;
|
|
2879
2922
|
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2923
|
+
try {
|
|
2924
|
+
if (
|
|
2925
|
+
onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&
|
|
2926
|
+
(requestContentLength = await resolveBodyLength(headers, data)) !== 0
|
|
2927
|
+
) {
|
|
2928
|
+
let _request = new Request(url, {
|
|
2929
|
+
method: 'POST',
|
|
2930
|
+
body: data,
|
|
2931
|
+
duplex: "half"
|
|
2932
|
+
});
|
|
2890
2933
|
|
|
2891
|
-
|
|
2934
|
+
let contentTypeHeader;
|
|
2892
2935
|
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2936
|
+
if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
|
|
2937
|
+
headers.setContentType(contentTypeHeader);
|
|
2938
|
+
}
|
|
2896
2939
|
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2940
|
+
if (_request.body) {
|
|
2941
|
+
const [onProgress, flush] = progressEventDecorator(
|
|
2942
|
+
requestContentLength,
|
|
2943
|
+
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
2944
|
+
);
|
|
2902
2945
|
|
|
2903
|
-
|
|
2946
|
+
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
2947
|
+
}
|
|
2904
2948
|
}
|
|
2905
|
-
}
|
|
2906
2949
|
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2950
|
+
if (!utils$1.isString(withCredentials)) {
|
|
2951
|
+
withCredentials = withCredentials ? 'include' : 'omit';
|
|
2952
|
+
}
|
|
2910
2953
|
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
request = new Request(url, {
|
|
2915
|
-
...fetchOptions,
|
|
2916
|
-
signal: composedSignal,
|
|
2917
|
-
method: method.toUpperCase(),
|
|
2918
|
-
headers: headers.normalize().toJSON(),
|
|
2919
|
-
body: data,
|
|
2920
|
-
duplex: "half",
|
|
2921
|
-
credentials: isCredentialsSupported ? withCredentials : undefined
|
|
2922
|
-
});
|
|
2954
|
+
// Cloudflare Workers throws when credentials are defined
|
|
2955
|
+
// see https://github.com/cloudflare/workerd/issues/902
|
|
2956
|
+
const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
|
|
2923
2957
|
|
|
2924
|
-
|
|
2958
|
+
const resolvedOptions = {
|
|
2959
|
+
...fetchOptions,
|
|
2960
|
+
signal: composedSignal,
|
|
2961
|
+
method: method.toUpperCase(),
|
|
2962
|
+
headers: headers.normalize().toJSON(),
|
|
2963
|
+
body: data,
|
|
2964
|
+
duplex: "half",
|
|
2965
|
+
credentials: isCredentialsSupported ? withCredentials : undefined
|
|
2966
|
+
};
|
|
2925
2967
|
|
|
2926
|
-
|
|
2968
|
+
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
2927
2969
|
|
|
2928
|
-
|
|
2929
|
-
const options = {};
|
|
2970
|
+
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
|
|
2930
2971
|
|
|
2931
|
-
|
|
2932
|
-
options[prop] = response[prop];
|
|
2933
|
-
});
|
|
2972
|
+
const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
|
|
2934
2973
|
|
|
2935
|
-
|
|
2974
|
+
if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {
|
|
2975
|
+
const options = {};
|
|
2936
2976
|
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
) || [];
|
|
2977
|
+
['status', 'statusText', 'headers'].forEach(prop => {
|
|
2978
|
+
options[prop] = response[prop];
|
|
2979
|
+
});
|
|
2941
2980
|
|
|
2942
|
-
|
|
2943
|
-
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
2944
|
-
flush && flush();
|
|
2945
|
-
unsubscribe && unsubscribe();
|
|
2946
|
-
}),
|
|
2947
|
-
options
|
|
2948
|
-
);
|
|
2949
|
-
}
|
|
2981
|
+
const responseContentLength = utils$1.toFiniteNumber(response.headers.get('content-length'));
|
|
2950
2982
|
|
|
2951
|
-
|
|
2983
|
+
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
2984
|
+
responseContentLength,
|
|
2985
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
2986
|
+
) || [];
|
|
2952
2987
|
|
|
2953
|
-
|
|
2988
|
+
response = new Response(
|
|
2989
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
2990
|
+
flush && flush();
|
|
2991
|
+
unsubscribe && unsubscribe();
|
|
2992
|
+
}),
|
|
2993
|
+
options
|
|
2994
|
+
);
|
|
2995
|
+
}
|
|
2954
2996
|
|
|
2955
|
-
|
|
2997
|
+
responseType = responseType || 'text';
|
|
2956
2998
|
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2999
|
+
let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || 'text'](response, config);
|
|
3000
|
+
|
|
3001
|
+
!isStreamResponse && unsubscribe && unsubscribe();
|
|
3002
|
+
|
|
3003
|
+
return await new Promise((resolve, reject) => {
|
|
3004
|
+
settle(resolve, reject, {
|
|
3005
|
+
data: responseData,
|
|
3006
|
+
headers: AxiosHeaders$1.from(response.headers),
|
|
3007
|
+
status: response.status,
|
|
3008
|
+
statusText: response.statusText,
|
|
3009
|
+
config,
|
|
3010
|
+
request
|
|
3011
|
+
});
|
|
3012
|
+
})
|
|
3013
|
+
} catch (err) {
|
|
3014
|
+
unsubscribe && unsubscribe();
|
|
3015
|
+
|
|
3016
|
+
if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
|
|
3017
|
+
throw Object.assign(
|
|
3018
|
+
new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),
|
|
3019
|
+
{
|
|
3020
|
+
cause: err.cause || err
|
|
3021
|
+
}
|
|
3022
|
+
)
|
|
3023
|
+
}
|
|
3024
|
+
|
|
3025
|
+
throw AxiosError.from(err, err && err.code, config, request);
|
|
2977
3026
|
}
|
|
3027
|
+
}
|
|
3028
|
+
};
|
|
3029
|
+
|
|
3030
|
+
const seedCache = new Map();
|
|
3031
|
+
|
|
3032
|
+
const getFetch = (config) => {
|
|
3033
|
+
let env = config ? config.env : {};
|
|
3034
|
+
const {fetch, Request, Response} = env;
|
|
3035
|
+
const seeds = [
|
|
3036
|
+
Request, Response, fetch
|
|
3037
|
+
];
|
|
3038
|
+
|
|
3039
|
+
let len = seeds.length, i = len,
|
|
3040
|
+
seed, target, map = seedCache;
|
|
3041
|
+
|
|
3042
|
+
while (i--) {
|
|
3043
|
+
seed = seeds[i];
|
|
3044
|
+
target = map.get(seed);
|
|
3045
|
+
|
|
3046
|
+
target === undefined && map.set(seed, target = (i ? new Map() : factory(env)));
|
|
2978
3047
|
|
|
2979
|
-
|
|
3048
|
+
map = target;
|
|
2980
3049
|
}
|
|
2981
|
-
|
|
3050
|
+
|
|
3051
|
+
return target;
|
|
3052
|
+
};
|
|
3053
|
+
|
|
3054
|
+
getFetch();
|
|
2982
3055
|
|
|
2983
3056
|
const knownAdapters = {
|
|
2984
3057
|
http: httpAdapter,
|
|
2985
3058
|
xhr: xhrAdapter,
|
|
2986
|
-
fetch:
|
|
3059
|
+
fetch: {
|
|
3060
|
+
get: getFetch,
|
|
3061
|
+
}
|
|
2987
3062
|
};
|
|
2988
3063
|
|
|
2989
3064
|
utils$1.forEach(knownAdapters, (fn, value) => {
|
|
@@ -3002,7 +3077,7 @@ const renderReason = (reason) => `- ${reason}`;
|
|
|
3002
3077
|
const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
|
|
3003
3078
|
|
|
3004
3079
|
var adapters = {
|
|
3005
|
-
getAdapter: (adapters) => {
|
|
3080
|
+
getAdapter: (adapters, config) => {
|
|
3006
3081
|
adapters = utils$1.isArray(adapters) ? adapters : [adapters];
|
|
3007
3082
|
|
|
3008
3083
|
const {length} = adapters;
|
|
@@ -3025,7 +3100,7 @@ var adapters = {
|
|
|
3025
3100
|
}
|
|
3026
3101
|
}
|
|
3027
3102
|
|
|
3028
|
-
if (adapter) {
|
|
3103
|
+
if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
|
|
3029
3104
|
break;
|
|
3030
3105
|
}
|
|
3031
3106
|
|
|
@@ -3093,7 +3168,7 @@ function dispatchRequest(config) {
|
|
|
3093
3168
|
config.headers.setContentType('application/x-www-form-urlencoded', false);
|
|
3094
3169
|
}
|
|
3095
3170
|
|
|
3096
|
-
const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter);
|
|
3171
|
+
const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter, config);
|
|
3097
3172
|
|
|
3098
3173
|
return adapter(config).then(function onAdapterResolution(response) {
|
|
3099
3174
|
throwIfCancellationRequested(config);
|
|
@@ -3127,7 +3202,7 @@ function dispatchRequest(config) {
|
|
|
3127
3202
|
});
|
|
3128
3203
|
}
|
|
3129
3204
|
|
|
3130
|
-
const VERSION = "1.
|
|
3205
|
+
const VERSION = "1.12.2";
|
|
3131
3206
|
|
|
3132
3207
|
const validators$1 = {};
|
|
3133
3208
|
|
|
@@ -3383,8 +3458,6 @@ class Axios {
|
|
|
3383
3458
|
|
|
3384
3459
|
let newConfig = config;
|
|
3385
3460
|
|
|
3386
|
-
i = 0;
|
|
3387
|
-
|
|
3388
3461
|
while (i < len) {
|
|
3389
3462
|
const onFulfilled = requestInterceptorChain[i++];
|
|
3390
3463
|
const onRejected = requestInterceptorChain[i++];
|