node-red-contrib-tak-registration 0.15.0 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/node/assert.d.ts +8 -6
- package/node_modules/@types/node/async_hooks.d.ts +26 -6
- package/node_modules/@types/node/buffer.d.ts +7 -3
- package/node_modules/@types/node/child_process.d.ts +28 -124
- package/node_modules/@types/node/cluster.d.ts +15 -15
- package/node_modules/@types/node/console.d.ts +17 -17
- package/node_modules/@types/node/crypto.d.ts +95 -38
- package/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@types/node/diagnostics_channel.d.ts +18 -13
- package/node_modules/@types/node/dns/promises.d.ts +36 -9
- package/node_modules/@types/node/dns.d.ts +89 -36
- package/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@types/node/events.d.ts +1 -2
- package/node_modules/@types/node/fs/promises.d.ts +67 -40
- package/node_modules/@types/node/fs.d.ts +88 -52
- package/node_modules/@types/node/globals.d.ts +148 -351
- package/node_modules/@types/node/globals.typedarray.d.ts +1 -0
- package/node_modules/@types/node/http.d.ts +73 -7
- package/node_modules/@types/node/http2.d.ts +88 -15
- package/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/node/index.d.ts +13 -6
- package/node_modules/@types/node/inspector.d.ts +222 -13
- package/node_modules/@types/node/module.d.ts +153 -31
- package/node_modules/@types/node/net.d.ts +3 -6
- package/node_modules/@types/node/os.d.ts +8 -7
- package/node_modules/@types/node/package.json +14 -84
- package/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/node/perf_hooks.d.ts +24 -10
- package/node_modules/@types/node/process.d.ts +21 -11
- package/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/node/readline/promises.d.ts +0 -1
- package/node_modules/@types/node/readline.d.ts +13 -13
- package/node_modules/@types/node/repl.d.ts +25 -17
- package/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/node/sqlite.d.ts +209 -3
- package/node_modules/@types/node/stream/web.d.ts +8 -0
- package/node_modules/@types/node/stream.d.ts +30 -24
- package/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@types/node/test.d.ts +2029 -1975
- package/node_modules/@types/node/timers/promises.d.ts +1 -1
- package/node_modules/@types/node/timers.d.ts +1 -3
- package/node_modules/@types/node/tls.d.ts +2 -48
- package/node_modules/@types/node/trace_events.d.ts +6 -6
- package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +15 -6
- package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +101 -0
- package/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@types/node/url.d.ts +73 -20
- package/node_modules/@types/node/util.d.ts +23 -298
- package/node_modules/@types/node/v8.d.ts +62 -32
- package/node_modules/@types/node/vm.d.ts +132 -24
- package/node_modules/@types/node/wasi.d.ts +22 -1
- package/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/node_modules/@types/node/web-globals/events.d.ts +94 -0
- package/node_modules/@types/node/web-globals/fetch.d.ts +50 -0
- package/node_modules/@types/node/web-globals/navigator.d.ts +22 -0
- package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/node_modules/@types/node/worker_threads.d.ts +85 -26
- package/node_modules/@types/node/zlib.d.ts +13 -9
- package/node_modules/axios/CHANGELOG.md +99 -0
- package/node_modules/axios/README.md +105 -28
- package/node_modules/axios/dist/axios.js +395 -292
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +333 -219
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +333 -219
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +424 -219
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +26 -8
- package/node_modules/axios/index.d.ts +14 -5
- package/node_modules/axios/lib/adapters/adapters.js +6 -4
- package/node_modules/axios/lib/adapters/fetch.js +221 -162
- package/node_modules/axios/lib/adapters/http.js +18 -0
- package/node_modules/axios/lib/adapters/xhr.js +11 -8
- package/node_modules/axios/lib/core/Axios.js +2 -4
- package/node_modules/axios/lib/core/AxiosError.js +10 -3
- package/node_modules/axios/lib/core/dispatchRequest.js +1 -1
- package/node_modules/axios/lib/core/mergeConfig.js +1 -1
- package/node_modules/axios/lib/defaults/index.js +1 -1
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/buildURL.js +1 -3
- package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +73 -0
- package/node_modules/axios/lib/helpers/resolveConfig.js +13 -9
- package/node_modules/axios/lib/helpers/throttle.js +1 -1
- package/node_modules/axios/lib/helpers/toFormData.js +4 -0
- package/node_modules/axios/lib/helpers/toURLEncodedForm.js +4 -3
- package/node_modules/axios/lib/utils.js +40 -2
- package/node_modules/axios/package.json +30 -15
- package/node_modules/bignumber.js/CHANGELOG.md +6 -1
- package/node_modules/bignumber.js/README.md +5 -4
- package/node_modules/bignumber.js/bignumber.js +2 -2
- package/node_modules/bignumber.js/bignumber.mjs +2 -2
- package/node_modules/bignumber.js/package.json +1 -1
- package/node_modules/fast-xml-parser/CHANGELOG.md +7 -0
- package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -1
- package/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -1
- package/node_modules/fast-xml-parser/package.json +1 -2
- package/node_modules/fast-xml-parser/src/cli/cli.js +4 -0
- package/node_modules/fast-xml-parser/src/fxp.d.ts +5 -5
- package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +3 -3
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/form-data/CHANGELOG.md +601 -0
- package/node_modules/form-data/{Readme.md → README.md} +34 -37
- package/node_modules/form-data/lib/browser.js +3 -1
- package/node_modules/form-data/lib/form_data.js +126 -135
- package/node_modules/form-data/lib/populate.js +5 -5
- package/node_modules/form-data/package.json +24 -16
- package/node_modules/protobufjs/dist/light/protobuf.js +8 -7
- package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.js +2 -2
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/protobuf.js +8 -7
- package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/ext/descriptor/index.js +179 -69
- package/node_modules/protobufjs/google/protobuf/descriptor.json +660 -17
- package/node_modules/protobufjs/google/protobuf/descriptor.proto +255 -6
- package/node_modules/protobufjs/package.json +1 -1
- package/node_modules/protobufjs/src/namespace.js +3 -1
- package/node_modules/protobufjs/src/root.js +3 -4
- package/node_modules/undici-types/agent.d.ts +11 -7
- package/node_modules/undici-types/api.d.ts +24 -24
- package/node_modules/undici-types/balanced-pool.d.ts +11 -11
- package/node_modules/undici-types/cache-interceptor.d.ts +172 -0
- package/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/undici-types/client.d.ts +18 -16
- package/node_modules/undici-types/cookies.d.ts +2 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +19 -10
- package/node_modules/undici-types/dispatcher.d.ts +119 -93
- package/node_modules/undici-types/env-http-proxy-agent.d.ts +4 -3
- package/node_modules/undici-types/errors.d.ts +69 -47
- package/node_modules/undici-types/eventsource.d.ts +3 -3
- package/node_modules/undici-types/fetch.d.ts +18 -16
- package/node_modules/undici-types/formdata.d.ts +7 -7
- package/node_modules/undici-types/global-dispatcher.d.ts +4 -4
- package/node_modules/undici-types/global-origin.d.ts +5 -5
- package/node_modules/undici-types/h2c-client.d.ts +75 -0
- package/node_modules/undici-types/handlers.d.ts +8 -8
- package/node_modules/undici-types/header.d.ts +157 -1
- package/node_modules/undici-types/index.d.ts +51 -47
- package/node_modules/undici-types/interceptors.d.ts +25 -8
- package/node_modules/undici-types/mock-agent.d.ts +36 -18
- package/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/node_modules/undici-types/mock-client.d.ts +6 -4
- package/node_modules/undici-types/mock-errors.d.ts +3 -3
- package/node_modules/undici-types/mock-interceptor.d.ts +21 -19
- package/node_modules/undici-types/mock-pool.d.ts +6 -4
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/patch.d.ts +0 -4
- package/node_modules/undici-types/pool-stats.d.ts +8 -8
- package/node_modules/undici-types/pool.d.ts +14 -12
- package/node_modules/undici-types/proxy-agent.d.ts +5 -4
- package/node_modules/undici-types/readable.d.ts +18 -15
- package/node_modules/undici-types/retry-agent.d.ts +1 -1
- package/node_modules/undici-types/retry-handler.d.ts +19 -10
- package/node_modules/undici-types/util.d.ts +3 -3
- package/node_modules/undici-types/utility.d.ts +7 -0
- package/node_modules/undici-types/webidl.d.ts +50 -8
- package/node_modules/undici-types/websocket.d.ts +36 -2
- package/node_modules/uuid/README.md +8 -19
- package/node_modules/uuid/dist/{esm-browser/uuid-bin.js → uuid-bin.js} +1 -1
- package/node_modules/uuid/dist/{esm-browser/v4.js → v4.js} +7 -4
- package/node_modules/uuid/{dist/esm → dist-node}/md5.js +1 -1
- package/node_modules/uuid/dist-node/native.js +2 -0
- package/node_modules/uuid/{dist/esm → dist-node}/rng.js +1 -1
- package/node_modules/uuid/{dist/esm → dist-node}/sha1.js +1 -1
- package/node_modules/uuid/{dist/esm → dist-node}/uuid-bin.js +1 -1
- package/node_modules/uuid/{dist/esm → dist-node}/v4.js +7 -4
- package/node_modules/uuid/package.json +28 -41
- package/package.json +6 -6
- package/tak-registration.bak +557 -0
- package/tak-registration.js +14 -12
- package/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
- package/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
- package/node_modules/@types/node/dom-events.d.ts +0 -124
- package/node_modules/undici-types/file.d.ts +0 -39
- package/node_modules/undici-types/filereader.d.ts +0 -54
- package/node_modules/uuid/dist/cjs/index.d.ts +0 -15
- package/node_modules/uuid/dist/cjs/index.js +0 -31
- package/node_modules/uuid/dist/cjs/max.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/max.js +0 -3
- package/node_modules/uuid/dist/cjs/md5.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/md5.js +0 -13
- package/node_modules/uuid/dist/cjs/native.d.ts +0 -6
- package/node_modules/uuid/dist/cjs/native.js +0 -4
- package/node_modules/uuid/dist/cjs/nil.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/nil.js +0 -3
- package/node_modules/uuid/dist/cjs/package.json +0 -1
- package/node_modules/uuid/dist/cjs/parse.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/parse.js +0 -11
- package/node_modules/uuid/dist/cjs/regex.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/regex.js +0 -3
- package/node_modules/uuid/dist/cjs/rng.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/rng.js +0 -13
- package/node_modules/uuid/dist/cjs/sha1.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/sha1.js +0 -13
- package/node_modules/uuid/dist/cjs/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/cjs/stringify.js +0 -39
- package/node_modules/uuid/dist/cjs/types.d.ts +0 -21
- package/node_modules/uuid/dist/cjs/types.js +0 -2
- package/node_modules/uuid/dist/cjs/uuid-bin.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/uuid-bin.js +0 -72
- package/node_modules/uuid/dist/cjs/v1.d.ts +0 -11
- package/node_modules/uuid/dist/cjs/v1.js +0 -87
- package/node_modules/uuid/dist/cjs/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/v1ToV6.js +0 -13
- package/node_modules/uuid/dist/cjs/v3.d.ts +0 -9
- package/node_modules/uuid/dist/cjs/v3.js +0 -14
- package/node_modules/uuid/dist/cjs/v35.d.ts +0 -7
- package/node_modules/uuid/dist/cjs/v35.js +0 -41
- package/node_modules/uuid/dist/cjs/v4.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/v4.js +0 -29
- package/node_modules/uuid/dist/cjs/v5.d.ts +0 -9
- package/node_modules/uuid/dist/cjs/v5.js +0 -14
- package/node_modules/uuid/dist/cjs/v6.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/v6.js +0 -19
- package/node_modules/uuid/dist/cjs/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/v6ToV1.js +0 -13
- package/node_modules/uuid/dist/cjs/v7.d.ts +0 -9
- package/node_modules/uuid/dist/cjs/v7.js +0 -69
- package/node_modules/uuid/dist/cjs/validate.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/validate.js +0 -7
- package/node_modules/uuid/dist/cjs/version.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/version.js +0 -10
- package/node_modules/uuid/dist/cjs-browser/index.js +0 -31
- package/node_modules/uuid/dist/cjs-browser/max.js +0 -3
- package/node_modules/uuid/dist/cjs-browser/md5.js +0 -137
- package/node_modules/uuid/dist/cjs-browser/native.js +0 -4
- package/node_modules/uuid/dist/cjs-browser/nil.js +0 -3
- package/node_modules/uuid/dist/cjs-browser/package.json +0 -1
- package/node_modules/uuid/dist/cjs-browser/parse.js +0 -11
- package/node_modules/uuid/dist/cjs-browser/regex.js +0 -3
- package/node_modules/uuid/dist/cjs-browser/rng.js +0 -14
- package/node_modules/uuid/dist/cjs-browser/sha1.js +0 -72
- package/node_modules/uuid/dist/cjs-browser/stringify.js +0 -39
- package/node_modules/uuid/dist/cjs-browser/types.js +0 -2
- package/node_modules/uuid/dist/cjs-browser/uuid-bin.js +0 -72
- package/node_modules/uuid/dist/cjs-browser/v1.js +0 -87
- package/node_modules/uuid/dist/cjs-browser/v1ToV6.js +0 -13
- package/node_modules/uuid/dist/cjs-browser/v3.js +0 -14
- package/node_modules/uuid/dist/cjs-browser/v35.js +0 -41
- package/node_modules/uuid/dist/cjs-browser/v4.js +0 -29
- package/node_modules/uuid/dist/cjs-browser/v5.js +0 -14
- package/node_modules/uuid/dist/cjs-browser/v6.js +0 -19
- package/node_modules/uuid/dist/cjs-browser/v6ToV1.js +0 -13
- package/node_modules/uuid/dist/cjs-browser/v7.js +0 -69
- package/node_modules/uuid/dist/cjs-browser/validate.js +0 -7
- package/node_modules/uuid/dist/cjs-browser/version.js +0 -10
- package/node_modules/uuid/dist/esm/index.d.ts +0 -15
- package/node_modules/uuid/dist/esm/max.d.ts +0 -2
- package/node_modules/uuid/dist/esm/md5.d.ts +0 -4
- package/node_modules/uuid/dist/esm/native.d.ts +0 -6
- package/node_modules/uuid/dist/esm/native.js +0 -2
- package/node_modules/uuid/dist/esm/nil.d.ts +0 -2
- package/node_modules/uuid/dist/esm/parse.d.ts +0 -2
- package/node_modules/uuid/dist/esm/regex.d.ts +0 -2
- package/node_modules/uuid/dist/esm/rng.d.ts +0 -1
- package/node_modules/uuid/dist/esm/sha1.d.ts +0 -4
- package/node_modules/uuid/dist/esm/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/esm/types.d.ts +0 -21
- package/node_modules/uuid/dist/esm/uuid-bin.d.ts +0 -1
- package/node_modules/uuid/dist/esm/v1.d.ts +0 -11
- package/node_modules/uuid/dist/esm/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/esm/v3.d.ts +0 -9
- package/node_modules/uuid/dist/esm/v35.d.ts +0 -7
- package/node_modules/uuid/dist/esm/v4.d.ts +0 -4
- package/node_modules/uuid/dist/esm/v5.d.ts +0 -9
- package/node_modules/uuid/dist/esm/v6.d.ts +0 -4
- package/node_modules/uuid/dist/esm/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/esm/v7.d.ts +0 -9
- package/node_modules/uuid/dist/esm/validate.d.ts +0 -2
- package/node_modules/uuid/dist/esm/version.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/index.d.ts +0 -15
- package/node_modules/uuid/dist/esm-browser/max.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/md5.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/native.d.ts +0 -4
- package/node_modules/uuid/dist/esm-browser/nil.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/parse.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/regex.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/rng.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/sha1.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/esm-browser/types.d.ts +0 -21
- package/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/v1.d.ts +0 -11
- package/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/v3.d.ts +0 -9
- package/node_modules/uuid/dist/esm-browser/v35.d.ts +0 -7
- package/node_modules/uuid/dist/esm-browser/v4.d.ts +0 -4
- package/node_modules/uuid/dist/esm-browser/v5.d.ts +0 -9
- package/node_modules/uuid/dist/esm-browser/v6.d.ts +0 -4
- package/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/v7.d.ts +0 -9
- package/node_modules/uuid/dist/esm-browser/validate.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/version.d.ts +0 -2
- /package/node_modules/uuid/dist/{cjs-browser/index.d.ts → index.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/index.js → index.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/max.d.ts → max.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/max.js → max.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/md5.d.ts → md5.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm-browser/md5.js → md5.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/native.d.ts → native.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm-browser/native.js → native.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/nil.d.ts → nil.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/nil.js → nil.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/parse.d.ts → parse.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/parse.js → parse.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/regex.d.ts → regex.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/regex.js → regex.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/rng.d.ts → rng.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm-browser/rng.js → rng.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/sha1.d.ts → sha1.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm-browser/sha1.js → sha1.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/stringify.d.ts → stringify.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/stringify.js → stringify.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/types.d.ts → types.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/types.js → types.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/uuid-bin.d.ts → uuid-bin.d.ts} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v1.d.ts → v1.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v1.js → v1.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v1ToV6.d.ts → v1ToV6.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v1ToV6.js → v1ToV6.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v3.d.ts → v3.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v3.js → v3.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v35.d.ts → v35.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v35.js → v35.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v4.d.ts → v4.d.ts} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v5.d.ts → v5.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v5.js → v5.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v6.d.ts → v6.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v6.js → v6.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v6ToV1.d.ts → v6ToV1.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v6ToV1.js → v6ToV1.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/v7.d.ts → v7.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/v7.js → v7.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/validate.d.ts → validate.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/validate.js → validate.js} +0 -0
- /package/node_modules/uuid/dist/{cjs-browser/version.d.ts → version.d.ts} +0 -0
- /package/node_modules/uuid/dist/{esm/version.js → version.js} +0 -0
- /package/node_modules/uuid/{dist/esm → dist-node}/bin/uuid +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/index.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/max.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/nil.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/parse.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/regex.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/stringify.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/types.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v1.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v1ToV6.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v3.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v35.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v5.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v6.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v6ToV1.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/v7.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/validate.js +0 -0
- /package/node_modules/uuid/{dist/esm-browser → dist-node}/version.js +0 -0
|
@@ -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
|
|
@@ -139,6 +139,27 @@ const isPlainObject = (val) => {
|
|
|
139
139
|
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
|
|
140
140
|
};
|
|
141
141
|
|
|
142
|
+
/**
|
|
143
|
+
* Determine if a value is an empty object (safely handles Buffers)
|
|
144
|
+
*
|
|
145
|
+
* @param {*} val The value to test
|
|
146
|
+
*
|
|
147
|
+
* @returns {boolean} True if value is an empty object, otherwise false
|
|
148
|
+
*/
|
|
149
|
+
const isEmptyObject = (val) => {
|
|
150
|
+
// Early return for non-objects or Buffers to prevent RangeError
|
|
151
|
+
if (!isObject(val) || isBuffer(val)) {
|
|
152
|
+
return false;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
try {
|
|
156
|
+
return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
|
|
157
|
+
} catch (e) {
|
|
158
|
+
// Fallback for any other objects that might cause RangeError with Object.keys()
|
|
159
|
+
return false;
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
|
|
142
163
|
/**
|
|
143
164
|
* Determine if a value is a Date
|
|
144
165
|
*
|
|
@@ -182,7 +203,7 @@ const isFileList = kindOfTest('FileList');
|
|
|
182
203
|
*
|
|
183
204
|
* @returns {boolean} True if value is a Stream, otherwise false
|
|
184
205
|
*/
|
|
185
|
-
const isStream = (val) => isObject(val) && isFunction(val.pipe);
|
|
206
|
+
const isStream = (val) => isObject(val) && isFunction$1(val.pipe);
|
|
186
207
|
|
|
187
208
|
/**
|
|
188
209
|
* Determine if a value is a FormData
|
|
@@ -195,10 +216,10 @@ const isFormData = (thing) => {
|
|
|
195
216
|
let kind;
|
|
196
217
|
return thing && (
|
|
197
218
|
(typeof FormData === 'function' && thing instanceof FormData) || (
|
|
198
|
-
isFunction(thing.append) && (
|
|
219
|
+
isFunction$1(thing.append) && (
|
|
199
220
|
(kind = kindOf(thing)) === 'formdata' ||
|
|
200
221
|
// detect form-data instance
|
|
201
|
-
(kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')
|
|
222
|
+
(kind === 'object' && isFunction$1(thing.toString) && thing.toString() === '[object FormData]')
|
|
202
223
|
)
|
|
203
224
|
)
|
|
204
225
|
)
|
|
@@ -261,6 +282,11 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
261
282
|
fn.call(null, obj[i], i, obj);
|
|
262
283
|
}
|
|
263
284
|
} else {
|
|
285
|
+
// Buffer check
|
|
286
|
+
if (isBuffer(obj)) {
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
289
|
+
|
|
264
290
|
// Iterate over object keys
|
|
265
291
|
const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
|
|
266
292
|
const len = keys.length;
|
|
@@ -274,6 +300,10 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
274
300
|
}
|
|
275
301
|
|
|
276
302
|
function findKey(obj, key) {
|
|
303
|
+
if (isBuffer(obj)){
|
|
304
|
+
return null;
|
|
305
|
+
}
|
|
306
|
+
|
|
277
307
|
key = key.toLowerCase();
|
|
278
308
|
const keys = Object.keys(obj);
|
|
279
309
|
let i = keys.length;
|
|
@@ -314,7 +344,7 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
|
|
|
314
344
|
* @returns {Object} Result of all merge properties
|
|
315
345
|
*/
|
|
316
346
|
function merge(/* obj1, obj2, obj3, ... */) {
|
|
317
|
-
const {caseless} = isContextDefined(this) && this || {};
|
|
347
|
+
const {caseless, skipUndefined} = isContextDefined(this) && this || {};
|
|
318
348
|
const result = {};
|
|
319
349
|
const assignValue = (val, key) => {
|
|
320
350
|
const targetKey = caseless && findKey(result, key) || key;
|
|
@@ -324,7 +354,7 @@ function merge(/* obj1, obj2, obj3, ... */) {
|
|
|
324
354
|
result[targetKey] = merge({}, val);
|
|
325
355
|
} else if (isArray(val)) {
|
|
326
356
|
result[targetKey] = val.slice();
|
|
327
|
-
} else {
|
|
357
|
+
} else if (!skipUndefined || !isUndefined(val)) {
|
|
328
358
|
result[targetKey] = val;
|
|
329
359
|
}
|
|
330
360
|
};
|
|
@@ -347,7 +377,7 @@ function merge(/* obj1, obj2, obj3, ... */) {
|
|
|
347
377
|
*/
|
|
348
378
|
const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
|
|
349
379
|
forEach(b, (val, key) => {
|
|
350
|
-
if (thisArg && isFunction(val)) {
|
|
380
|
+
if (thisArg && isFunction$1(val)) {
|
|
351
381
|
a[key] = bind(val, thisArg);
|
|
352
382
|
} else {
|
|
353
383
|
a[key] = val;
|
|
@@ -563,13 +593,13 @@ const reduceDescriptors = (obj, reducer) => {
|
|
|
563
593
|
const freezeMethods = (obj) => {
|
|
564
594
|
reduceDescriptors(obj, (descriptor, name) => {
|
|
565
595
|
// skip restricted props in strict mode
|
|
566
|
-
if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
|
|
596
|
+
if (isFunction$1(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
|
|
567
597
|
return false;
|
|
568
598
|
}
|
|
569
599
|
|
|
570
600
|
const value = obj[name];
|
|
571
601
|
|
|
572
|
-
if (!isFunction(value)) return;
|
|
602
|
+
if (!isFunction$1(value)) return;
|
|
573
603
|
|
|
574
604
|
descriptor.enumerable = false;
|
|
575
605
|
|
|
@@ -606,6 +636,8 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
|
606
636
|
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
607
637
|
};
|
|
608
638
|
|
|
639
|
+
|
|
640
|
+
|
|
609
641
|
/**
|
|
610
642
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
611
643
|
*
|
|
@@ -614,7 +646,7 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
|
614
646
|
* @returns {boolean}
|
|
615
647
|
*/
|
|
616
648
|
function isSpecCompliantForm(thing) {
|
|
617
|
-
return !!(thing && isFunction(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
|
|
649
|
+
return !!(thing && isFunction$1(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
|
|
618
650
|
}
|
|
619
651
|
|
|
620
652
|
const toJSONObject = (obj) => {
|
|
@@ -627,6 +659,11 @@ const toJSONObject = (obj) => {
|
|
|
627
659
|
return;
|
|
628
660
|
}
|
|
629
661
|
|
|
662
|
+
//Buffer check
|
|
663
|
+
if (isBuffer(source)) {
|
|
664
|
+
return source;
|
|
665
|
+
}
|
|
666
|
+
|
|
630
667
|
if(!('toJSON' in source)) {
|
|
631
668
|
stack[i] = source;
|
|
632
669
|
const target = isArray(source) ? [] : {};
|
|
@@ -651,7 +688,7 @@ const toJSONObject = (obj) => {
|
|
|
651
688
|
const isAsyncFn = kindOfTest('AsyncFunction');
|
|
652
689
|
|
|
653
690
|
const isThenable = (thing) =>
|
|
654
|
-
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);
|
|
655
692
|
|
|
656
693
|
// original code
|
|
657
694
|
// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
|
|
@@ -675,7 +712,7 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
|
675
712
|
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
676
713
|
})(
|
|
677
714
|
typeof setImmediate === 'function',
|
|
678
|
-
isFunction(_global.postMessage)
|
|
715
|
+
isFunction$1(_global.postMessage)
|
|
679
716
|
);
|
|
680
717
|
|
|
681
718
|
const asap = typeof queueMicrotask !== 'undefined' ?
|
|
@@ -684,7 +721,7 @@ const asap = typeof queueMicrotask !== 'undefined' ?
|
|
|
684
721
|
// *********************
|
|
685
722
|
|
|
686
723
|
|
|
687
|
-
const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
|
|
724
|
+
const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
|
|
688
725
|
|
|
689
726
|
|
|
690
727
|
const utils$1 = {
|
|
@@ -698,6 +735,7 @@ const utils$1 = {
|
|
|
698
735
|
isBoolean,
|
|
699
736
|
isObject,
|
|
700
737
|
isPlainObject,
|
|
738
|
+
isEmptyObject,
|
|
701
739
|
isReadableStream,
|
|
702
740
|
isRequest,
|
|
703
741
|
isResponse,
|
|
@@ -707,7 +745,7 @@ const utils$1 = {
|
|
|
707
745
|
isFile,
|
|
708
746
|
isBlob,
|
|
709
747
|
isRegExp,
|
|
710
|
-
isFunction,
|
|
748
|
+
isFunction: isFunction$1,
|
|
711
749
|
isStream,
|
|
712
750
|
isURLSearchParams,
|
|
713
751
|
isTypedArray,
|
|
@@ -833,11 +871,18 @@ AxiosError$1.from = (error, code, config, request, response, customProps) => {
|
|
|
833
871
|
return prop !== 'isAxiosError';
|
|
834
872
|
});
|
|
835
873
|
|
|
836
|
-
|
|
874
|
+
const msg = error && error.message ? error.message : 'Error';
|
|
837
875
|
|
|
838
|
-
|
|
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);
|
|
839
879
|
|
|
840
|
-
|
|
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
|
+
}
|
|
884
|
+
|
|
885
|
+
axiosError.name = (error && error.name) || 'Error';
|
|
841
886
|
|
|
842
887
|
customProps && Object.assign(axiosError, customProps);
|
|
843
888
|
|
|
@@ -962,6 +1007,10 @@ function toFormData$1(obj, formData, options) {
|
|
|
962
1007
|
return value.toISOString();
|
|
963
1008
|
}
|
|
964
1009
|
|
|
1010
|
+
if (utils$1.isBoolean(value)) {
|
|
1011
|
+
return value.toString();
|
|
1012
|
+
}
|
|
1013
|
+
|
|
965
1014
|
if (!useBlob && utils$1.isBlob(value)) {
|
|
966
1015
|
throw new AxiosError$1('Blob is not supported. Use a Buffer instead.');
|
|
967
1016
|
}
|
|
@@ -1124,9 +1173,7 @@ function encode(val) {
|
|
|
1124
1173
|
replace(/%3A/gi, ':').
|
|
1125
1174
|
replace(/%24/g, '$').
|
|
1126
1175
|
replace(/%2C/gi, ',').
|
|
1127
|
-
replace(/%20/g, '+')
|
|
1128
|
-
replace(/%5B/gi, '[').
|
|
1129
|
-
replace(/%5D/gi, ']');
|
|
1176
|
+
replace(/%20/g, '+');
|
|
1130
1177
|
}
|
|
1131
1178
|
|
|
1132
1179
|
/**
|
|
@@ -1325,7 +1372,7 @@ const platform = {
|
|
|
1325
1372
|
};
|
|
1326
1373
|
|
|
1327
1374
|
function toURLEncodedForm(data, options) {
|
|
1328
|
-
return toFormData$1(data, new platform.classes.URLSearchParams(),
|
|
1375
|
+
return toFormData$1(data, new platform.classes.URLSearchParams(), {
|
|
1329
1376
|
visitor: function(value, key, path, helpers) {
|
|
1330
1377
|
if (platform.isNode && utils$1.isBuffer(value)) {
|
|
1331
1378
|
this.append(key, value.toString('base64'));
|
|
@@ -1333,8 +1380,9 @@ function toURLEncodedForm(data, options) {
|
|
|
1333
1380
|
}
|
|
1334
1381
|
|
|
1335
1382
|
return helpers.defaultVisitor.apply(this, arguments);
|
|
1336
|
-
}
|
|
1337
|
-
|
|
1383
|
+
},
|
|
1384
|
+
...options
|
|
1385
|
+
});
|
|
1338
1386
|
}
|
|
1339
1387
|
|
|
1340
1388
|
/**
|
|
@@ -1530,7 +1578,7 @@ const defaults = {
|
|
|
1530
1578
|
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
1531
1579
|
|
|
1532
1580
|
try {
|
|
1533
|
-
return JSON.parse(data);
|
|
1581
|
+
return JSON.parse(data, this.parseReviver);
|
|
1534
1582
|
} catch (e) {
|
|
1535
1583
|
if (strictJSONParsing) {
|
|
1536
1584
|
if (e.name === 'SyntaxError') {
|
|
@@ -2087,7 +2135,7 @@ function throttle(fn, freq) {
|
|
|
2087
2135
|
clearTimeout(timer);
|
|
2088
2136
|
timer = null;
|
|
2089
2137
|
}
|
|
2090
|
-
fn
|
|
2138
|
+
fn(...args);
|
|
2091
2139
|
};
|
|
2092
2140
|
|
|
2093
2141
|
const throttled = (...args) => {
|
|
@@ -2343,7 +2391,7 @@ function mergeConfig$1(config1, config2) {
|
|
|
2343
2391
|
headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)
|
|
2344
2392
|
};
|
|
2345
2393
|
|
|
2346
|
-
utils$1.forEach(Object.keys(
|
|
2394
|
+
utils$1.forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) {
|
|
2347
2395
|
const merge = mergeMap[prop] || mergeDeepProperties;
|
|
2348
2396
|
const configValue = merge(config1[prop], config2[prop], prop);
|
|
2349
2397
|
(utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
|
|
@@ -2355,7 +2403,7 @@ function mergeConfig$1(config1, config2) {
|
|
|
2355
2403
|
const resolveConfig = (config) => {
|
|
2356
2404
|
const newConfig = mergeConfig$1({}, config);
|
|
2357
2405
|
|
|
2358
|
-
let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;
|
|
2406
|
+
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
2359
2407
|
|
|
2360
2408
|
newConfig.headers = headers = AxiosHeaders$2.from(headers);
|
|
2361
2409
|
|
|
@@ -2368,17 +2416,21 @@ const resolveConfig = (config) => {
|
|
|
2368
2416
|
);
|
|
2369
2417
|
}
|
|
2370
2418
|
|
|
2371
|
-
let contentType;
|
|
2372
|
-
|
|
2373
2419
|
if (utils$1.isFormData(data)) {
|
|
2374
2420
|
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
|
2375
|
-
headers.setContentType(undefined); //
|
|
2376
|
-
} else if ((
|
|
2377
|
-
//
|
|
2378
|
-
const
|
|
2379
|
-
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
|
+
});
|
|
2380
2432
|
}
|
|
2381
|
-
}
|
|
2433
|
+
}
|
|
2382
2434
|
|
|
2383
2435
|
// Add xsrf header
|
|
2384
2436
|
// This is only done if running in a standard browser environment.
|
|
@@ -2495,15 +2547,18 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
|
2495
2547
|
};
|
|
2496
2548
|
|
|
2497
2549
|
// Handle low level network errors
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
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;
|
|
2505
2560
|
};
|
|
2506
|
-
|
|
2561
|
+
|
|
2507
2562
|
// Handle timeout
|
|
2508
2563
|
request.ontimeout = function handleTimeout() {
|
|
2509
2564
|
let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
@@ -2719,14 +2774,18 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
|
|
|
2719
2774
|
})
|
|
2720
2775
|
};
|
|
2721
2776
|
|
|
2722
|
-
const
|
|
2723
|
-
|
|
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;
|
|
2724
2788
|
|
|
2725
|
-
// used only inside the fetch adapter
|
|
2726
|
-
const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
|
|
2727
|
-
((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
|
|
2728
|
-
async (str) => new Uint8Array(await new Response(str).arrayBuffer())
|
|
2729
|
-
);
|
|
2730
2789
|
|
|
2731
2790
|
const test = (fn, ...args) => {
|
|
2732
2791
|
try {
|
|
@@ -2736,211 +2795,268 @@ const test = (fn, ...args) => {
|
|
|
2736
2795
|
}
|
|
2737
2796
|
};
|
|
2738
2797
|
|
|
2739
|
-
const
|
|
2740
|
-
|
|
2798
|
+
const factory = (env) => {
|
|
2799
|
+
env = utils$1.merge.call({
|
|
2800
|
+
skipUndefined: true
|
|
2801
|
+
}, globalFetchAPI, env);
|
|
2741
2802
|
|
|
2742
|
-
const
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
duplexAccessed = true;
|
|
2747
|
-
return 'half';
|
|
2748
|
-
},
|
|
2749
|
-
}).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);
|
|
2750
2807
|
|
|
2751
|
-
|
|
2752
|
-
|
|
2808
|
+
if (!isFetchSupported) {
|
|
2809
|
+
return false;
|
|
2810
|
+
}
|
|
2753
2811
|
|
|
2754
|
-
const
|
|
2812
|
+
const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream$1);
|
|
2755
2813
|
|
|
2756
|
-
const
|
|
2757
|
-
|
|
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
|
+
);
|
|
2758
2818
|
|
|
2819
|
+
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
|
|
2820
|
+
let duplexAccessed = false;
|
|
2759
2821
|
|
|
2760
|
-
const
|
|
2761
|
-
|
|
2762
|
-
|
|
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');
|
|
2763
2830
|
|
|
2764
|
-
|
|
2765
|
-
['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
|
|
2766
|
-
!resolvers[type] && (resolvers[type] = utils$1.isFunction(res[type]) ? (res) => res[type]() :
|
|
2767
|
-
(_, config) => {
|
|
2768
|
-
throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
|
|
2769
|
-
});
|
|
2831
|
+
return duplexAccessed && !hasContentType;
|
|
2770
2832
|
});
|
|
2771
|
-
})(new Response));
|
|
2772
2833
|
|
|
2773
|
-
const
|
|
2774
|
-
|
|
2775
|
-
return 0;
|
|
2776
|
-
}
|
|
2834
|
+
const supportsResponseStream = isResponseSupported && isReadableStreamSupported &&
|
|
2835
|
+
test(() => utils$1.isReadableStream(new Response('').body));
|
|
2777
2836
|
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
}
|
|
2837
|
+
const resolvers = {
|
|
2838
|
+
stream: supportsResponseStream && ((res) => res.body)
|
|
2839
|
+
};
|
|
2781
2840
|
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
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
|
+
});
|
|
2786
2852
|
});
|
|
2787
|
-
|
|
2788
|
-
}
|
|
2853
|
+
})());
|
|
2789
2854
|
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2855
|
+
const getBodyLength = async (body) => {
|
|
2856
|
+
if (body == null) {
|
|
2857
|
+
return 0;
|
|
2858
|
+
}
|
|
2793
2859
|
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2860
|
+
if (utils$1.isBlob(body)) {
|
|
2861
|
+
return body.size;
|
|
2862
|
+
}
|
|
2797
2863
|
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
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
|
+
}
|
|
2802
2871
|
|
|
2803
|
-
|
|
2804
|
-
|
|
2872
|
+
if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
|
|
2873
|
+
return body.byteLength;
|
|
2874
|
+
}
|
|
2805
2875
|
|
|
2806
|
-
|
|
2807
|
-
|
|
2876
|
+
if (utils$1.isURLSearchParams(body)) {
|
|
2877
|
+
body = body + '';
|
|
2878
|
+
}
|
|
2879
|
+
|
|
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
|
+
};
|
|
2808
2890
|
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
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 && (() => {
|
|
2832
2916
|
composedSignal.unsubscribe();
|
|
2833
|
-
|
|
2917
|
+
});
|
|
2834
2918
|
|
|
2835
|
-
|
|
2919
|
+
let requestContentLength;
|
|
2836
2920
|
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
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
|
+
});
|
|
2847
2931
|
|
|
2848
|
-
|
|
2932
|
+
let contentTypeHeader;
|
|
2849
2933
|
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2934
|
+
if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
|
|
2935
|
+
headers.setContentType(contentTypeHeader);
|
|
2936
|
+
}
|
|
2853
2937
|
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2938
|
+
if (_request.body) {
|
|
2939
|
+
const [onProgress, flush] = progressEventDecorator(
|
|
2940
|
+
requestContentLength,
|
|
2941
|
+
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
2942
|
+
);
|
|
2859
2943
|
|
|
2860
|
-
|
|
2944
|
+
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
2945
|
+
}
|
|
2861
2946
|
}
|
|
2862
|
-
}
|
|
2863
2947
|
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2948
|
+
if (!utils$1.isString(withCredentials)) {
|
|
2949
|
+
withCredentials = withCredentials ? 'include' : 'omit';
|
|
2950
|
+
}
|
|
2867
2951
|
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
request = new Request(url, {
|
|
2872
|
-
...fetchOptions,
|
|
2873
|
-
signal: composedSignal,
|
|
2874
|
-
method: method.toUpperCase(),
|
|
2875
|
-
headers: headers.normalize().toJSON(),
|
|
2876
|
-
body: data,
|
|
2877
|
-
duplex: "half",
|
|
2878
|
-
credentials: isCredentialsSupported ? withCredentials : undefined
|
|
2879
|
-
});
|
|
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;
|
|
2880
2955
|
|
|
2881
|
-
|
|
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
|
+
};
|
|
2882
2965
|
|
|
2883
|
-
|
|
2966
|
+
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
2884
2967
|
|
|
2885
|
-
|
|
2886
|
-
const options = {};
|
|
2968
|
+
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
|
|
2887
2969
|
|
|
2888
|
-
|
|
2889
|
-
options[prop] = response[prop];
|
|
2890
|
-
});
|
|
2970
|
+
const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
|
|
2891
2971
|
|
|
2892
|
-
|
|
2972
|
+
if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {
|
|
2973
|
+
const options = {};
|
|
2893
2974
|
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
) || [];
|
|
2975
|
+
['status', 'statusText', 'headers'].forEach(prop => {
|
|
2976
|
+
options[prop] = response[prop];
|
|
2977
|
+
});
|
|
2898
2978
|
|
|
2899
|
-
|
|
2900
|
-
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
2901
|
-
flush && flush();
|
|
2902
|
-
unsubscribe && unsubscribe();
|
|
2903
|
-
}),
|
|
2904
|
-
options
|
|
2905
|
-
);
|
|
2906
|
-
}
|
|
2979
|
+
const responseContentLength = utils$1.toFiniteNumber(response.headers.get('content-length'));
|
|
2907
2980
|
|
|
2908
|
-
|
|
2981
|
+
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
2982
|
+
responseContentLength,
|
|
2983
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
2984
|
+
) || [];
|
|
2909
2985
|
|
|
2910
|
-
|
|
2986
|
+
response = new Response(
|
|
2987
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
2988
|
+
flush && flush();
|
|
2989
|
+
unsubscribe && unsubscribe();
|
|
2990
|
+
}),
|
|
2991
|
+
options
|
|
2992
|
+
);
|
|
2993
|
+
}
|
|
2911
2994
|
|
|
2912
|
-
|
|
2995
|
+
responseType = responseType || 'text';
|
|
2913
2996
|
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
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);
|
|
2934
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;
|
|
2935
3039
|
|
|
2936
|
-
|
|
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)));
|
|
3045
|
+
|
|
3046
|
+
map = target;
|
|
2937
3047
|
}
|
|
2938
|
-
|
|
3048
|
+
|
|
3049
|
+
return target;
|
|
3050
|
+
};
|
|
3051
|
+
|
|
3052
|
+
getFetch();
|
|
2939
3053
|
|
|
2940
3054
|
const knownAdapters = {
|
|
2941
3055
|
http: httpAdapter,
|
|
2942
3056
|
xhr: xhrAdapter,
|
|
2943
|
-
fetch:
|
|
3057
|
+
fetch: {
|
|
3058
|
+
get: getFetch,
|
|
3059
|
+
}
|
|
2944
3060
|
};
|
|
2945
3061
|
|
|
2946
3062
|
utils$1.forEach(knownAdapters, (fn, value) => {
|
|
@@ -2959,7 +3075,7 @@ const renderReason = (reason) => `- ${reason}`;
|
|
|
2959
3075
|
const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
|
|
2960
3076
|
|
|
2961
3077
|
const adapters = {
|
|
2962
|
-
getAdapter: (adapters) => {
|
|
3078
|
+
getAdapter: (adapters, config) => {
|
|
2963
3079
|
adapters = utils$1.isArray(adapters) ? adapters : [adapters];
|
|
2964
3080
|
|
|
2965
3081
|
const {length} = adapters;
|
|
@@ -2982,7 +3098,7 @@ const adapters = {
|
|
|
2982
3098
|
}
|
|
2983
3099
|
}
|
|
2984
3100
|
|
|
2985
|
-
if (adapter) {
|
|
3101
|
+
if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
|
|
2986
3102
|
break;
|
|
2987
3103
|
}
|
|
2988
3104
|
|
|
@@ -3050,7 +3166,7 @@ function dispatchRequest(config) {
|
|
|
3050
3166
|
config.headers.setContentType('application/x-www-form-urlencoded', false);
|
|
3051
3167
|
}
|
|
3052
3168
|
|
|
3053
|
-
const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter);
|
|
3169
|
+
const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter, config);
|
|
3054
3170
|
|
|
3055
3171
|
return adapter(config).then(function onAdapterResolution(response) {
|
|
3056
3172
|
throwIfCancellationRequested(config);
|
|
@@ -3084,7 +3200,7 @@ function dispatchRequest(config) {
|
|
|
3084
3200
|
});
|
|
3085
3201
|
}
|
|
3086
3202
|
|
|
3087
|
-
const VERSION$1 = "1.
|
|
3203
|
+
const VERSION$1 = "1.12.2";
|
|
3088
3204
|
|
|
3089
3205
|
const validators$1 = {};
|
|
3090
3206
|
|
|
@@ -3323,8 +3439,8 @@ class Axios$1 {
|
|
|
3323
3439
|
|
|
3324
3440
|
if (!synchronousRequestInterceptors) {
|
|
3325
3441
|
const chain = [dispatchRequest.bind(this), undefined];
|
|
3326
|
-
chain.unshift
|
|
3327
|
-
chain.push
|
|
3442
|
+
chain.unshift(...requestInterceptorChain);
|
|
3443
|
+
chain.push(...responseInterceptorChain);
|
|
3328
3444
|
len = chain.length;
|
|
3329
3445
|
|
|
3330
3446
|
promise = Promise.resolve(config);
|
|
@@ -3340,8 +3456,6 @@ class Axios$1 {
|
|
|
3340
3456
|
|
|
3341
3457
|
let newConfig = config;
|
|
3342
3458
|
|
|
3343
|
-
i = 0;
|
|
3344
|
-
|
|
3345
3459
|
while (i < len) {
|
|
3346
3460
|
const onFulfilled = requestInterceptorChain[i++];
|
|
3347
3461
|
const onRejected = requestInterceptorChain[i++];
|