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