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 (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -585,9 +585,6 @@
|
|
|
585
585
|
function _slicedToArray(arr, i) {
|
|
586
586
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
587
587
|
}
|
|
588
|
-
function _toArray(arr) {
|
|
589
|
-
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
590
|
-
}
|
|
591
588
|
function _toConsumableArray(arr) {
|
|
592
589
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
593
590
|
}
|
|
@@ -727,7 +724,7 @@
|
|
|
727
724
|
* @returns {boolean} True if value is a Buffer, otherwise false
|
|
728
725
|
*/
|
|
729
726
|
function isBuffer(val) {
|
|
730
|
-
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
727
|
+
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction$1(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
731
728
|
}
|
|
732
729
|
|
|
733
730
|
/**
|
|
@@ -771,7 +768,7 @@
|
|
|
771
768
|
* @param {*} val The value to test
|
|
772
769
|
* @returns {boolean} True if value is a Function, otherwise false
|
|
773
770
|
*/
|
|
774
|
-
var isFunction = typeOfTest('function');
|
|
771
|
+
var isFunction$1 = typeOfTest('function');
|
|
775
772
|
|
|
776
773
|
/**
|
|
777
774
|
* Determine if a value is a Number
|
|
@@ -818,6 +815,26 @@
|
|
|
818
815
|
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
|
|
819
816
|
};
|
|
820
817
|
|
|
818
|
+
/**
|
|
819
|
+
* Determine if a value is an empty object (safely handles Buffers)
|
|
820
|
+
*
|
|
821
|
+
* @param {*} val The value to test
|
|
822
|
+
*
|
|
823
|
+
* @returns {boolean} True if value is an empty object, otherwise false
|
|
824
|
+
*/
|
|
825
|
+
var isEmptyObject = function isEmptyObject(val) {
|
|
826
|
+
// Early return for non-objects or Buffers to prevent RangeError
|
|
827
|
+
if (!isObject(val) || isBuffer(val)) {
|
|
828
|
+
return false;
|
|
829
|
+
}
|
|
830
|
+
try {
|
|
831
|
+
return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
|
|
832
|
+
} catch (e) {
|
|
833
|
+
// Fallback for any other objects that might cause RangeError with Object.keys()
|
|
834
|
+
return false;
|
|
835
|
+
}
|
|
836
|
+
};
|
|
837
|
+
|
|
821
838
|
/**
|
|
822
839
|
* Determine if a value is a Date
|
|
823
840
|
*
|
|
@@ -862,7 +879,7 @@
|
|
|
862
879
|
* @returns {boolean} True if value is a Stream, otherwise false
|
|
863
880
|
*/
|
|
864
881
|
var isStream = function isStream(val) {
|
|
865
|
-
return isObject(val) && isFunction(val.pipe);
|
|
882
|
+
return isObject(val) && isFunction$1(val.pipe);
|
|
866
883
|
};
|
|
867
884
|
|
|
868
885
|
/**
|
|
@@ -874,9 +891,9 @@
|
|
|
874
891
|
*/
|
|
875
892
|
var isFormData = function isFormData(thing) {
|
|
876
893
|
var kind;
|
|
877
|
-
return thing && (typeof FormData === 'function' && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === 'formdata' ||
|
|
894
|
+
return thing && (typeof FormData === 'function' && thing instanceof FormData || isFunction$1(thing.append) && ((kind = kindOf(thing)) === 'formdata' ||
|
|
878
895
|
// detect form-data instance
|
|
879
|
-
kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]'));
|
|
896
|
+
kind === 'object' && isFunction$1(thing.toString) && thing.toString() === '[object FormData]'));
|
|
880
897
|
};
|
|
881
898
|
|
|
882
899
|
/**
|
|
@@ -942,6 +959,11 @@
|
|
|
942
959
|
fn.call(null, obj[i], i, obj);
|
|
943
960
|
}
|
|
944
961
|
} else {
|
|
962
|
+
// Buffer check
|
|
963
|
+
if (isBuffer(obj)) {
|
|
964
|
+
return;
|
|
965
|
+
}
|
|
966
|
+
|
|
945
967
|
// Iterate over object keys
|
|
946
968
|
var keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
|
|
947
969
|
var len = keys.length;
|
|
@@ -953,6 +975,9 @@
|
|
|
953
975
|
}
|
|
954
976
|
}
|
|
955
977
|
function findKey(obj, key) {
|
|
978
|
+
if (isBuffer(obj)) {
|
|
979
|
+
return null;
|
|
980
|
+
}
|
|
956
981
|
key = key.toLowerCase();
|
|
957
982
|
var keys = Object.keys(obj);
|
|
958
983
|
var i = keys.length;
|
|
@@ -995,7 +1020,8 @@
|
|
|
995
1020
|
function merge( /* obj1, obj2, obj3, ... */
|
|
996
1021
|
) {
|
|
997
1022
|
var _ref2 = isContextDefined(this) && this || {},
|
|
998
|
-
caseless = _ref2.caseless
|
|
1023
|
+
caseless = _ref2.caseless,
|
|
1024
|
+
skipUndefined = _ref2.skipUndefined;
|
|
999
1025
|
var result = {};
|
|
1000
1026
|
var assignValue = function assignValue(val, key) {
|
|
1001
1027
|
var targetKey = caseless && findKey(result, key) || key;
|
|
@@ -1005,7 +1031,7 @@
|
|
|
1005
1031
|
result[targetKey] = merge({}, val);
|
|
1006
1032
|
} else if (isArray(val)) {
|
|
1007
1033
|
result[targetKey] = val.slice();
|
|
1008
|
-
} else {
|
|
1034
|
+
} else if (!skipUndefined || !isUndefined(val)) {
|
|
1009
1035
|
result[targetKey] = val;
|
|
1010
1036
|
}
|
|
1011
1037
|
};
|
|
@@ -1029,7 +1055,7 @@
|
|
|
1029
1055
|
var _ref3 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {},
|
|
1030
1056
|
allOwnKeys = _ref3.allOwnKeys;
|
|
1031
1057
|
forEach(b, function (val, key) {
|
|
1032
|
-
if (thisArg && isFunction(val)) {
|
|
1058
|
+
if (thisArg && isFunction$1(val)) {
|
|
1033
1059
|
a[key] = bind(val, thisArg);
|
|
1034
1060
|
} else {
|
|
1035
1061
|
a[key] = val;
|
|
@@ -1237,11 +1263,11 @@
|
|
|
1237
1263
|
var freezeMethods = function freezeMethods(obj) {
|
|
1238
1264
|
reduceDescriptors(obj, function (descriptor, name) {
|
|
1239
1265
|
// skip restricted props in strict mode
|
|
1240
|
-
if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
|
|
1266
|
+
if (isFunction$1(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
|
|
1241
1267
|
return false;
|
|
1242
1268
|
}
|
|
1243
1269
|
var value = obj[name];
|
|
1244
|
-
if (!isFunction(value)) return;
|
|
1270
|
+
if (!isFunction$1(value)) return;
|
|
1245
1271
|
descriptor.enumerable = false;
|
|
1246
1272
|
if ('writable' in descriptor) {
|
|
1247
1273
|
descriptor.writable = false;
|
|
@@ -1277,7 +1303,7 @@
|
|
|
1277
1303
|
* @returns {boolean}
|
|
1278
1304
|
*/
|
|
1279
1305
|
function isSpecCompliantForm(thing) {
|
|
1280
|
-
return !!(thing && isFunction(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
|
|
1306
|
+
return !!(thing && isFunction$1(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
|
|
1281
1307
|
}
|
|
1282
1308
|
var toJSONObject = function toJSONObject(obj) {
|
|
1283
1309
|
var stack = new Array(10);
|
|
@@ -1286,6 +1312,11 @@
|
|
|
1286
1312
|
if (stack.indexOf(source) >= 0) {
|
|
1287
1313
|
return;
|
|
1288
1314
|
}
|
|
1315
|
+
|
|
1316
|
+
//Buffer check
|
|
1317
|
+
if (isBuffer(source)) {
|
|
1318
|
+
return source;
|
|
1319
|
+
}
|
|
1289
1320
|
if (!('toJSON' in source)) {
|
|
1290
1321
|
stack[i] = source;
|
|
1291
1322
|
var target = isArray(source) ? [] : {};
|
|
@@ -1303,7 +1334,7 @@
|
|
|
1303
1334
|
};
|
|
1304
1335
|
var isAsyncFn = kindOfTest('AsyncFunction');
|
|
1305
1336
|
var isThenable = function isThenable(thing) {
|
|
1306
|
-
return thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing["catch"]);
|
|
1337
|
+
return thing && (isObject(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing["catch"]);
|
|
1307
1338
|
};
|
|
1308
1339
|
|
|
1309
1340
|
// original code
|
|
@@ -1328,13 +1359,13 @@
|
|
|
1328
1359
|
}("axios@".concat(Math.random()), []) : function (cb) {
|
|
1329
1360
|
return setTimeout(cb);
|
|
1330
1361
|
};
|
|
1331
|
-
}(typeof setImmediate === 'function', isFunction(_global.postMessage));
|
|
1362
|
+
}(typeof setImmediate === 'function', isFunction$1(_global.postMessage));
|
|
1332
1363
|
var asap = typeof queueMicrotask !== 'undefined' ? queueMicrotask.bind(_global) : typeof process !== 'undefined' && process.nextTick || _setImmediate;
|
|
1333
1364
|
|
|
1334
1365
|
// *********************
|
|
1335
1366
|
|
|
1336
1367
|
var isIterable = function isIterable(thing) {
|
|
1337
|
-
return thing != null && isFunction(thing[iterator]);
|
|
1368
|
+
return thing != null && isFunction$1(thing[iterator]);
|
|
1338
1369
|
};
|
|
1339
1370
|
var utils$1 = {
|
|
1340
1371
|
isArray: isArray,
|
|
@@ -1347,6 +1378,7 @@
|
|
|
1347
1378
|
isBoolean: isBoolean,
|
|
1348
1379
|
isObject: isObject,
|
|
1349
1380
|
isPlainObject: isPlainObject,
|
|
1381
|
+
isEmptyObject: isEmptyObject,
|
|
1350
1382
|
isReadableStream: isReadableStream,
|
|
1351
1383
|
isRequest: isRequest,
|
|
1352
1384
|
isResponse: isResponse,
|
|
@@ -1356,7 +1388,7 @@
|
|
|
1356
1388
|
isFile: isFile,
|
|
1357
1389
|
isBlob: isBlob,
|
|
1358
1390
|
isRegExp: isRegExp,
|
|
1359
|
-
isFunction: isFunction,
|
|
1391
|
+
isFunction: isFunction$1,
|
|
1360
1392
|
isStream: isStream,
|
|
1361
1393
|
isURLSearchParams: isURLSearchParams,
|
|
1362
1394
|
isTypedArray: isTypedArray,
|
|
@@ -1467,9 +1499,20 @@
|
|
|
1467
1499
|
}, function (prop) {
|
|
1468
1500
|
return prop !== 'isAxiosError';
|
|
1469
1501
|
});
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1502
|
+
var msg = error && error.message ? error.message : 'Error';
|
|
1503
|
+
|
|
1504
|
+
// Prefer explicit code; otherwise copy the low-level error's code (e.g. ECONNREFUSED)
|
|
1505
|
+
var errCode = code == null && error ? error.code : code;
|
|
1506
|
+
AxiosError.call(axiosError, msg, errCode, config, request, response);
|
|
1507
|
+
|
|
1508
|
+
// Chain the original error on the standard field; non-enumerable to avoid JSON noise
|
|
1509
|
+
if (error && axiosError.cause == null) {
|
|
1510
|
+
Object.defineProperty(axiosError, 'cause', {
|
|
1511
|
+
value: error,
|
|
1512
|
+
configurable: true
|
|
1513
|
+
});
|
|
1514
|
+
}
|
|
1515
|
+
axiosError.name = error && error.name || 'Error';
|
|
1473
1516
|
customProps && Object.assign(axiosError, customProps);
|
|
1474
1517
|
return axiosError;
|
|
1475
1518
|
};
|
|
@@ -1586,6 +1629,9 @@
|
|
|
1586
1629
|
if (utils$1.isDate(value)) {
|
|
1587
1630
|
return value.toISOString();
|
|
1588
1631
|
}
|
|
1632
|
+
if (utils$1.isBoolean(value)) {
|
|
1633
|
+
return value.toString();
|
|
1634
|
+
}
|
|
1589
1635
|
if (!useBlob && utils$1.isBlob(value)) {
|
|
1590
1636
|
throw new AxiosError('Blob is not supported. Use a Buffer instead.');
|
|
1591
1637
|
}
|
|
@@ -1714,7 +1760,7 @@
|
|
|
1714
1760
|
* @returns {string} The encoded value.
|
|
1715
1761
|
*/
|
|
1716
1762
|
function encode(val) {
|
|
1717
|
-
return encodeURIComponent(val).replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+')
|
|
1763
|
+
return encodeURIComponent(val).replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+');
|
|
1718
1764
|
}
|
|
1719
1765
|
|
|
1720
1766
|
/**
|
|
@@ -1904,7 +1950,7 @@
|
|
|
1904
1950
|
var platform = _objectSpread2(_objectSpread2({}, utils), platform$1);
|
|
1905
1951
|
|
|
1906
1952
|
function toURLEncodedForm(data, options) {
|
|
1907
|
-
return toFormData(data, new platform.classes.URLSearchParams(),
|
|
1953
|
+
return toFormData(data, new platform.classes.URLSearchParams(), _objectSpread2({
|
|
1908
1954
|
visitor: function visitor(value, key, path, helpers) {
|
|
1909
1955
|
if (platform.isNode && utils$1.isBuffer(value)) {
|
|
1910
1956
|
this.append(key, value.toString('base64'));
|
|
@@ -2069,7 +2115,7 @@
|
|
|
2069
2115
|
var silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
2070
2116
|
var strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
2071
2117
|
try {
|
|
2072
|
-
return JSON.parse(data);
|
|
2118
|
+
return JSON.parse(data, this.parseReviver);
|
|
2073
2119
|
} catch (e) {
|
|
2074
2120
|
if (strictJSONParsing) {
|
|
2075
2121
|
if (e.name === 'SyntaxError') {
|
|
@@ -2573,7 +2619,7 @@
|
|
|
2573
2619
|
clearTimeout(timer);
|
|
2574
2620
|
timer = null;
|
|
2575
2621
|
}
|
|
2576
|
-
fn.apply(
|
|
2622
|
+
fn.apply(void 0, _toConsumableArray(args));
|
|
2577
2623
|
};
|
|
2578
2624
|
var throttled = function throttled() {
|
|
2579
2625
|
var now = Date.now();
|
|
@@ -2821,7 +2867,7 @@
|
|
|
2821
2867
|
return mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true);
|
|
2822
2868
|
}
|
|
2823
2869
|
};
|
|
2824
|
-
utils$1.forEach(Object.keys(
|
|
2870
|
+
utils$1.forEach(Object.keys(_objectSpread2(_objectSpread2({}, config1), config2)), function computeConfigValue(prop) {
|
|
2825
2871
|
var merge = mergeMap[prop] || mergeDeepProperties;
|
|
2826
2872
|
var configValue = merge(config1[prop], config2[prop], prop);
|
|
2827
2873
|
utils$1.isUndefined(configValue) && merge !== mergeDirectKeys || (config[prop] = configValue);
|
|
@@ -2844,19 +2890,22 @@
|
|
|
2844
2890
|
if (auth) {
|
|
2845
2891
|
headers.set('Authorization', 'Basic ' + btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : '')));
|
|
2846
2892
|
}
|
|
2847
|
-
var contentType;
|
|
2848
2893
|
if (utils$1.isFormData(data)) {
|
|
2849
2894
|
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
|
2850
|
-
headers.setContentType(undefined); //
|
|
2851
|
-
} else if ((
|
|
2852
|
-
//
|
|
2853
|
-
var
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2895
|
+
headers.setContentType(undefined); // browser handles it
|
|
2896
|
+
} else if (utils$1.isFunction(data.getHeaders)) {
|
|
2897
|
+
// Node.js FormData (like form-data package)
|
|
2898
|
+
var formHeaders = data.getHeaders();
|
|
2899
|
+
// Only set safe headers to avoid overwriting security headers
|
|
2900
|
+
var allowedHeaders = ['content-type', 'content-length'];
|
|
2901
|
+
Object.entries(formHeaders).forEach(function (_ref) {
|
|
2902
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
2903
|
+
key = _ref2[0],
|
|
2904
|
+
val = _ref2[1];
|
|
2905
|
+
if (allowedHeaders.includes(key.toLowerCase())) {
|
|
2906
|
+
headers.set(key, val);
|
|
2907
|
+
}
|
|
2908
|
+
});
|
|
2860
2909
|
}
|
|
2861
2910
|
}
|
|
2862
2911
|
|
|
@@ -2962,12 +3011,15 @@
|
|
|
2962
3011
|
};
|
|
2963
3012
|
|
|
2964
3013
|
// Handle low level network errors
|
|
2965
|
-
request.onerror = function handleError() {
|
|
2966
|
-
//
|
|
2967
|
-
//
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
3014
|
+
request.onerror = function handleError(event) {
|
|
3015
|
+
// Browsers deliver a ProgressEvent in XHR onerror
|
|
3016
|
+
// (message may be empty; when present, surface it)
|
|
3017
|
+
// See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
|
|
3018
|
+
var msg = event && event.message ? event.message : 'Network Error';
|
|
3019
|
+
var err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);
|
|
3020
|
+
// attach the underlying event for consumers who want details
|
|
3021
|
+
err.event = event || null;
|
|
3022
|
+
reject(err);
|
|
2971
3023
|
request = null;
|
|
2972
3024
|
};
|
|
2973
3025
|
|
|
@@ -3296,35 +3348,19 @@
|
|
|
3296
3348
|
});
|
|
3297
3349
|
};
|
|
3298
3350
|
|
|
3299
|
-
var
|
|
3300
|
-
var
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
return
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
}(new TextEncoder()) : ( /*#__PURE__*/function () {
|
|
3308
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
3309
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
3310
|
-
while (1) switch (_context.prev = _context.next) {
|
|
3311
|
-
case 0:
|
|
3312
|
-
_context.t0 = Uint8Array;
|
|
3313
|
-
_context.next = 3;
|
|
3314
|
-
return new Response(str).arrayBuffer();
|
|
3315
|
-
case 3:
|
|
3316
|
-
_context.t1 = _context.sent;
|
|
3317
|
-
return _context.abrupt("return", new _context.t0(_context.t1));
|
|
3318
|
-
case 5:
|
|
3319
|
-
case "end":
|
|
3320
|
-
return _context.stop();
|
|
3321
|
-
}
|
|
3322
|
-
}, _callee);
|
|
3323
|
-
}));
|
|
3324
|
-
return function (_x) {
|
|
3325
|
-
return _ref.apply(this, arguments);
|
|
3351
|
+
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
3352
|
+
var isFunction = utils$1.isFunction;
|
|
3353
|
+
var globalFetchAPI = function (_ref) {
|
|
3354
|
+
var Request = _ref.Request,
|
|
3355
|
+
Response = _ref.Response;
|
|
3356
|
+
return {
|
|
3357
|
+
Request: Request,
|
|
3358
|
+
Response: Response
|
|
3326
3359
|
};
|
|
3327
|
-
}()
|
|
3360
|
+
}(utils$1.global);
|
|
3361
|
+
var _utils$global = utils$1.global,
|
|
3362
|
+
ReadableStream$1 = _utils$global.ReadableStream,
|
|
3363
|
+
TextEncoder = _utils$global.TextEncoder;
|
|
3328
3364
|
var test = function test(fn) {
|
|
3329
3365
|
try {
|
|
3330
3366
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
@@ -3335,232 +3371,300 @@
|
|
|
3335
3371
|
return false;
|
|
3336
3372
|
}
|
|
3337
3373
|
};
|
|
3338
|
-
var
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
var supportsResponseStream = isReadableStreamSupported && test(function () {
|
|
3352
|
-
return utils$1.isReadableStream(new Response('').body);
|
|
3353
|
-
});
|
|
3354
|
-
var resolvers = {
|
|
3355
|
-
stream: supportsResponseStream && function (res) {
|
|
3356
|
-
return res.body;
|
|
3374
|
+
var factory = function factory(env) {
|
|
3375
|
+
env = utils$1.merge.call({
|
|
3376
|
+
skipUndefined: true
|
|
3377
|
+
}, globalFetchAPI, env);
|
|
3378
|
+
var _env = env,
|
|
3379
|
+
envFetch = _env.fetch,
|
|
3380
|
+
Request = _env.Request,
|
|
3381
|
+
Response = _env.Response;
|
|
3382
|
+
var isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';
|
|
3383
|
+
var isRequestSupported = isFunction(Request);
|
|
3384
|
+
var isResponseSupported = isFunction(Response);
|
|
3385
|
+
if (!isFetchSupported) {
|
|
3386
|
+
return false;
|
|
3357
3387
|
}
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
body: body
|
|
3393
|
-
});
|
|
3394
|
-
_context2.next = 8;
|
|
3395
|
-
return _request.arrayBuffer();
|
|
3396
|
-
case 8:
|
|
3397
|
-
return _context2.abrupt("return", _context2.sent.byteLength);
|
|
3398
|
-
case 9:
|
|
3399
|
-
if (!(utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body))) {
|
|
3400
|
-
_context2.next = 11;
|
|
3401
|
-
break;
|
|
3402
|
-
}
|
|
3403
|
-
return _context2.abrupt("return", body.byteLength);
|
|
3404
|
-
case 11:
|
|
3405
|
-
if (utils$1.isURLSearchParams(body)) {
|
|
3406
|
-
body = body + '';
|
|
3407
|
-
}
|
|
3408
|
-
if (!utils$1.isString(body)) {
|
|
3409
|
-
_context2.next = 16;
|
|
3410
|
-
break;
|
|
3411
|
-
}
|
|
3412
|
-
_context2.next = 15;
|
|
3413
|
-
return encodeText(body);
|
|
3414
|
-
case 15:
|
|
3415
|
-
return _context2.abrupt("return", _context2.sent.byteLength);
|
|
3416
|
-
case 16:
|
|
3417
|
-
case "end":
|
|
3418
|
-
return _context2.stop();
|
|
3419
|
-
}
|
|
3420
|
-
}, _callee2);
|
|
3421
|
-
}));
|
|
3422
|
-
return function getBodyLength(_x2) {
|
|
3423
|
-
return _ref2.apply(this, arguments);
|
|
3424
|
-
};
|
|
3425
|
-
}();
|
|
3426
|
-
var resolveBodyLength = /*#__PURE__*/function () {
|
|
3427
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(headers, body) {
|
|
3428
|
-
var length;
|
|
3429
|
-
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
3430
|
-
while (1) switch (_context3.prev = _context3.next) {
|
|
3431
|
-
case 0:
|
|
3432
|
-
length = utils$1.toFiniteNumber(headers.getContentLength());
|
|
3433
|
-
return _context3.abrupt("return", length == null ? getBodyLength(body) : length);
|
|
3434
|
-
case 2:
|
|
3435
|
-
case "end":
|
|
3436
|
-
return _context3.stop();
|
|
3388
|
+
var isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream$1);
|
|
3389
|
+
var encodeText = isFetchSupported && (typeof TextEncoder === 'function' ? function (encoder) {
|
|
3390
|
+
return function (str) {
|
|
3391
|
+
return encoder.encode(str);
|
|
3392
|
+
};
|
|
3393
|
+
}(new TextEncoder()) : ( /*#__PURE__*/function () {
|
|
3394
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
3395
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
3396
|
+
while (1) switch (_context.prev = _context.next) {
|
|
3397
|
+
case 0:
|
|
3398
|
+
_context.t0 = Uint8Array;
|
|
3399
|
+
_context.next = 3;
|
|
3400
|
+
return new Request(str).arrayBuffer();
|
|
3401
|
+
case 3:
|
|
3402
|
+
_context.t1 = _context.sent;
|
|
3403
|
+
return _context.abrupt("return", new _context.t0(_context.t1));
|
|
3404
|
+
case 5:
|
|
3405
|
+
case "end":
|
|
3406
|
+
return _context.stop();
|
|
3407
|
+
}
|
|
3408
|
+
}, _callee);
|
|
3409
|
+
}));
|
|
3410
|
+
return function (_x) {
|
|
3411
|
+
return _ref2.apply(this, arguments);
|
|
3412
|
+
};
|
|
3413
|
+
}()));
|
|
3414
|
+
var supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(function () {
|
|
3415
|
+
var duplexAccessed = false;
|
|
3416
|
+
var hasContentType = new Request(platform.origin, {
|
|
3417
|
+
body: new ReadableStream$1(),
|
|
3418
|
+
method: 'POST',
|
|
3419
|
+
get duplex() {
|
|
3420
|
+
duplexAccessed = true;
|
|
3421
|
+
return 'half';
|
|
3437
3422
|
}
|
|
3438
|
-
}
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3423
|
+
}).headers.has('Content-Type');
|
|
3424
|
+
return duplexAccessed && !hasContentType;
|
|
3425
|
+
});
|
|
3426
|
+
var supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(function () {
|
|
3427
|
+
return utils$1.isReadableStream(new Response('').body);
|
|
3428
|
+
});
|
|
3429
|
+
var resolvers = {
|
|
3430
|
+
stream: supportsResponseStream && function (res) {
|
|
3431
|
+
return res.body;
|
|
3432
|
+
}
|
|
3442
3433
|
};
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3434
|
+
isFetchSupported && function () {
|
|
3435
|
+
['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(function (type) {
|
|
3436
|
+
!resolvers[type] && (resolvers[type] = function (res, config) {
|
|
3437
|
+
var method = res && res[type];
|
|
3438
|
+
if (method) {
|
|
3439
|
+
return method.call(res);
|
|
3440
|
+
}
|
|
3441
|
+
throw new AxiosError("Response type '".concat(type, "' is not supported"), AxiosError.ERR_NOT_SUPPORT, config);
|
|
3442
|
+
});
|
|
3443
|
+
});
|
|
3444
|
+
}();
|
|
3445
|
+
var getBodyLength = /*#__PURE__*/function () {
|
|
3446
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(body) {
|
|
3447
|
+
var _request;
|
|
3448
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
3449
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
3450
|
+
case 0:
|
|
3451
|
+
if (!(body == null)) {
|
|
3452
|
+
_context2.next = 2;
|
|
3453
|
+
break;
|
|
3454
|
+
}
|
|
3455
|
+
return _context2.abrupt("return", 0);
|
|
3456
|
+
case 2:
|
|
3457
|
+
if (!utils$1.isBlob(body)) {
|
|
3458
|
+
_context2.next = 4;
|
|
3459
|
+
break;
|
|
3460
|
+
}
|
|
3461
|
+
return _context2.abrupt("return", body.size);
|
|
3462
|
+
case 4:
|
|
3463
|
+
if (!utils$1.isSpecCompliantForm(body)) {
|
|
3464
|
+
_context2.next = 9;
|
|
3465
|
+
break;
|
|
3466
|
+
}
|
|
3467
|
+
_request = new Request(platform.origin, {
|
|
3468
|
+
method: 'POST',
|
|
3469
|
+
body: body
|
|
3470
|
+
});
|
|
3471
|
+
_context2.next = 8;
|
|
3472
|
+
return _request.arrayBuffer();
|
|
3473
|
+
case 8:
|
|
3474
|
+
return _context2.abrupt("return", _context2.sent.byteLength);
|
|
3475
|
+
case 9:
|
|
3476
|
+
if (!(utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body))) {
|
|
3477
|
+
_context2.next = 11;
|
|
3478
|
+
break;
|
|
3479
|
+
}
|
|
3480
|
+
return _context2.abrupt("return", body.byteLength);
|
|
3481
|
+
case 11:
|
|
3482
|
+
if (utils$1.isURLSearchParams(body)) {
|
|
3483
|
+
body = body + '';
|
|
3484
|
+
}
|
|
3485
|
+
if (!utils$1.isString(body)) {
|
|
3486
|
+
_context2.next = 16;
|
|
3487
|
+
break;
|
|
3488
|
+
}
|
|
3489
|
+
_context2.next = 15;
|
|
3490
|
+
return encodeText(body);
|
|
3491
|
+
case 15:
|
|
3492
|
+
return _context2.abrupt("return", _context2.sent.byteLength);
|
|
3493
|
+
case 16:
|
|
3494
|
+
case "end":
|
|
3495
|
+
return _context2.stop();
|
|
3496
|
+
}
|
|
3497
|
+
}, _callee2);
|
|
3498
|
+
}));
|
|
3499
|
+
return function getBodyLength(_x2) {
|
|
3500
|
+
return _ref3.apply(this, arguments);
|
|
3501
|
+
};
|
|
3502
|
+
}();
|
|
3503
|
+
var resolveBodyLength = /*#__PURE__*/function () {
|
|
3504
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(headers, body) {
|
|
3505
|
+
var length;
|
|
3506
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
3507
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
3508
|
+
case 0:
|
|
3509
|
+
length = utils$1.toFiniteNumber(headers.getContentLength());
|
|
3510
|
+
return _context3.abrupt("return", length == null ? getBodyLength(body) : length);
|
|
3511
|
+
case 2:
|
|
3512
|
+
case "end":
|
|
3513
|
+
return _context3.stop();
|
|
3514
|
+
}
|
|
3515
|
+
}, _callee3);
|
|
3516
|
+
}));
|
|
3517
|
+
return function resolveBodyLength(_x3, _x4) {
|
|
3518
|
+
return _ref4.apply(this, arguments);
|
|
3519
|
+
};
|
|
3520
|
+
}();
|
|
3521
|
+
return /*#__PURE__*/function () {
|
|
3522
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(config) {
|
|
3523
|
+
var _resolveConfig, url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, _resolveConfig$withCr, withCredentials, fetchOptions, _fetch, composedSignal, request, unsubscribe, requestContentLength, _request, contentTypeHeader, _progressEventDecorat, _progressEventDecorat2, onProgress, flush, isCredentialsSupported, resolvedOptions, response, isStreamResponse, options, responseContentLength, _ref6, _ref7, _onProgress, _flush, responseData;
|
|
3524
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
3525
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
3526
|
+
case 0:
|
|
3527
|
+
_resolveConfig = resolveConfig(config), url = _resolveConfig.url, method = _resolveConfig.method, data = _resolveConfig.data, signal = _resolveConfig.signal, cancelToken = _resolveConfig.cancelToken, timeout = _resolveConfig.timeout, onDownloadProgress = _resolveConfig.onDownloadProgress, onUploadProgress = _resolveConfig.onUploadProgress, responseType = _resolveConfig.responseType, headers = _resolveConfig.headers, _resolveConfig$withCr = _resolveConfig.withCredentials, withCredentials = _resolveConfig$withCr === void 0 ? 'same-origin' : _resolveConfig$withCr, fetchOptions = _resolveConfig.fetchOptions;
|
|
3528
|
+
_fetch = envFetch || fetch;
|
|
3529
|
+
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
3530
|
+
composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
3531
|
+
request = null;
|
|
3532
|
+
unsubscribe = composedSignal && composedSignal.unsubscribe && function () {
|
|
3533
|
+
composedSignal.unsubscribe();
|
|
3534
|
+
};
|
|
3535
|
+
_context4.prev = 6;
|
|
3536
|
+
_context4.t0 = onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head';
|
|
3537
|
+
if (!_context4.t0) {
|
|
3538
|
+
_context4.next = 13;
|
|
3539
|
+
break;
|
|
3540
|
+
}
|
|
3459
3541
|
_context4.next = 11;
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
if (!utils$1.isString(withCredentials)) {
|
|
3486
|
-
withCredentials = withCredentials ? 'include' : 'omit';
|
|
3487
|
-
}
|
|
3542
|
+
return resolveBodyLength(headers, data);
|
|
3543
|
+
case 11:
|
|
3544
|
+
_context4.t1 = requestContentLength = _context4.sent;
|
|
3545
|
+
_context4.t0 = _context4.t1 !== 0;
|
|
3546
|
+
case 13:
|
|
3547
|
+
if (!_context4.t0) {
|
|
3548
|
+
_context4.next = 17;
|
|
3549
|
+
break;
|
|
3550
|
+
}
|
|
3551
|
+
_request = new Request(url, {
|
|
3552
|
+
method: 'POST',
|
|
3553
|
+
body: data,
|
|
3554
|
+
duplex: "half"
|
|
3555
|
+
});
|
|
3556
|
+
if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
|
|
3557
|
+
headers.setContentType(contentTypeHeader);
|
|
3558
|
+
}
|
|
3559
|
+
if (_request.body) {
|
|
3560
|
+
_progressEventDecorat = progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress))), _progressEventDecorat2 = _slicedToArray(_progressEventDecorat, 2), onProgress = _progressEventDecorat2[0], flush = _progressEventDecorat2[1];
|
|
3561
|
+
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
3562
|
+
}
|
|
3563
|
+
case 17:
|
|
3564
|
+
if (!utils$1.isString(withCredentials)) {
|
|
3565
|
+
withCredentials = withCredentials ? 'include' : 'omit';
|
|
3566
|
+
}
|
|
3488
3567
|
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
}));
|
|
3500
|
-
_context4.next = 20;
|
|
3501
|
-
return fetch(request);
|
|
3502
|
-
case 20:
|
|
3503
|
-
response = _context4.sent;
|
|
3504
|
-
isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
|
|
3505
|
-
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
3506
|
-
options = {};
|
|
3507
|
-
['status', 'statusText', 'headers'].forEach(function (prop) {
|
|
3508
|
-
options[prop] = response[prop];
|
|
3568
|
+
// Cloudflare Workers throws when credentials are defined
|
|
3569
|
+
// see https://github.com/cloudflare/workerd/issues/902
|
|
3570
|
+
isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
|
|
3571
|
+
resolvedOptions = _objectSpread2(_objectSpread2({}, fetchOptions), {}, {
|
|
3572
|
+
signal: composedSignal,
|
|
3573
|
+
method: method.toUpperCase(),
|
|
3574
|
+
headers: headers.normalize().toJSON(),
|
|
3575
|
+
body: data,
|
|
3576
|
+
duplex: "half",
|
|
3577
|
+
credentials: isCredentialsSupported ? withCredentials : undefined
|
|
3509
3578
|
});
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3579
|
+
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
3580
|
+
_context4.next = 23;
|
|
3581
|
+
return isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions);
|
|
3582
|
+
case 23:
|
|
3583
|
+
response = _context4.sent;
|
|
3584
|
+
isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
|
|
3585
|
+
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
3586
|
+
options = {};
|
|
3587
|
+
['status', 'statusText', 'headers'].forEach(function (prop) {
|
|
3588
|
+
options[prop] = response[prop];
|
|
3589
|
+
});
|
|
3590
|
+
responseContentLength = utils$1.toFiniteNumber(response.headers.get('content-length'));
|
|
3591
|
+
_ref6 = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [], _ref7 = _slicedToArray(_ref6, 2), _onProgress = _ref7[0], _flush = _ref7[1];
|
|
3592
|
+
response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, _onProgress, function () {
|
|
3593
|
+
_flush && _flush();
|
|
3594
|
+
unsubscribe && unsubscribe();
|
|
3595
|
+
}), options);
|
|
3596
|
+
}
|
|
3597
|
+
responseType = responseType || 'text';
|
|
3598
|
+
_context4.next = 29;
|
|
3599
|
+
return resolvers[utils$1.findKey(resolvers, responseType) || 'text'](response, config);
|
|
3600
|
+
case 29:
|
|
3601
|
+
responseData = _context4.sent;
|
|
3602
|
+
!isStreamResponse && unsubscribe && unsubscribe();
|
|
3603
|
+
_context4.next = 33;
|
|
3604
|
+
return new Promise(function (resolve, reject) {
|
|
3605
|
+
settle(resolve, reject, {
|
|
3606
|
+
data: responseData,
|
|
3607
|
+
headers: AxiosHeaders$1.from(response.headers),
|
|
3608
|
+
status: response.status,
|
|
3609
|
+
statusText: response.statusText,
|
|
3610
|
+
config: config,
|
|
3611
|
+
request: request
|
|
3612
|
+
});
|
|
3532
3613
|
});
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
}
|
|
3553
|
-
}
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
};
|
|
3558
|
-
}
|
|
3614
|
+
case 33:
|
|
3615
|
+
return _context4.abrupt("return", _context4.sent);
|
|
3616
|
+
case 36:
|
|
3617
|
+
_context4.prev = 36;
|
|
3618
|
+
_context4.t2 = _context4["catch"](6);
|
|
3619
|
+
unsubscribe && unsubscribe();
|
|
3620
|
+
if (!(_context4.t2 && _context4.t2.name === 'TypeError' && /Load failed|fetch/i.test(_context4.t2.message))) {
|
|
3621
|
+
_context4.next = 41;
|
|
3622
|
+
break;
|
|
3623
|
+
}
|
|
3624
|
+
throw Object.assign(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request), {
|
|
3625
|
+
cause: _context4.t2.cause || _context4.t2
|
|
3626
|
+
});
|
|
3627
|
+
case 41:
|
|
3628
|
+
throw AxiosError.from(_context4.t2, _context4.t2 && _context4.t2.code, config, request);
|
|
3629
|
+
case 42:
|
|
3630
|
+
case "end":
|
|
3631
|
+
return _context4.stop();
|
|
3632
|
+
}
|
|
3633
|
+
}, _callee4, null, [[6, 36]]);
|
|
3634
|
+
}));
|
|
3635
|
+
return function (_x5) {
|
|
3636
|
+
return _ref5.apply(this, arguments);
|
|
3637
|
+
};
|
|
3638
|
+
}();
|
|
3639
|
+
};
|
|
3640
|
+
var seedCache = new Map();
|
|
3641
|
+
var getFetch = function getFetch(config) {
|
|
3642
|
+
var env = config ? config.env : {};
|
|
3643
|
+
var fetch = env.fetch,
|
|
3644
|
+
Request = env.Request,
|
|
3645
|
+
Response = env.Response;
|
|
3646
|
+
var seeds = [Request, Response, fetch];
|
|
3647
|
+
var len = seeds.length,
|
|
3648
|
+
i = len,
|
|
3649
|
+
seed,
|
|
3650
|
+
target,
|
|
3651
|
+
map = seedCache;
|
|
3652
|
+
while (i--) {
|
|
3653
|
+
seed = seeds[i];
|
|
3654
|
+
target = map.get(seed);
|
|
3655
|
+
target === undefined && map.set(seed, target = i ? new Map() : factory(env));
|
|
3656
|
+
map = target;
|
|
3657
|
+
}
|
|
3658
|
+
return target;
|
|
3659
|
+
};
|
|
3660
|
+
getFetch();
|
|
3559
3661
|
|
|
3560
3662
|
var knownAdapters = {
|
|
3561
3663
|
http: httpAdapter,
|
|
3562
3664
|
xhr: xhrAdapter,
|
|
3563
|
-
fetch:
|
|
3665
|
+
fetch: {
|
|
3666
|
+
get: getFetch
|
|
3667
|
+
}
|
|
3564
3668
|
};
|
|
3565
3669
|
utils$1.forEach(knownAdapters, function (fn, value) {
|
|
3566
3670
|
if (fn) {
|
|
@@ -3583,7 +3687,7 @@
|
|
|
3583
3687
|
return utils$1.isFunction(adapter) || adapter === null || adapter === false;
|
|
3584
3688
|
};
|
|
3585
3689
|
var adapters = {
|
|
3586
|
-
getAdapter: function getAdapter(adapters) {
|
|
3690
|
+
getAdapter: function getAdapter(adapters, config) {
|
|
3587
3691
|
adapters = utils$1.isArray(adapters) ? adapters : [adapters];
|
|
3588
3692
|
var _adapters = adapters,
|
|
3589
3693
|
length = _adapters.length;
|
|
@@ -3600,7 +3704,7 @@
|
|
|
3600
3704
|
throw new AxiosError("Unknown adapter '".concat(id, "'"));
|
|
3601
3705
|
}
|
|
3602
3706
|
}
|
|
3603
|
-
if (adapter) {
|
|
3707
|
+
if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
|
|
3604
3708
|
break;
|
|
3605
3709
|
}
|
|
3606
3710
|
rejectedReasons[id || '#' + i] = adapter;
|
|
@@ -3652,7 +3756,7 @@
|
|
|
3652
3756
|
if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {
|
|
3653
3757
|
config.headers.setContentType('application/x-www-form-urlencoded', false);
|
|
3654
3758
|
}
|
|
3655
|
-
var adapter = adapters.getAdapter(config.adapter || defaults$1.adapter);
|
|
3759
|
+
var adapter = adapters.getAdapter(config.adapter || defaults$1.adapter, config);
|
|
3656
3760
|
return adapter(config).then(function onAdapterResolution(response) {
|
|
3657
3761
|
throwIfCancellationRequested(config);
|
|
3658
3762
|
|
|
@@ -3674,7 +3778,7 @@
|
|
|
3674
3778
|
});
|
|
3675
3779
|
}
|
|
3676
3780
|
|
|
3677
|
-
var VERSION = "1.
|
|
3781
|
+
var VERSION = "1.12.2";
|
|
3678
3782
|
|
|
3679
3783
|
var validators$1 = {};
|
|
3680
3784
|
|
|
@@ -3917,7 +4021,6 @@
|
|
|
3917
4021
|
}
|
|
3918
4022
|
len = requestInterceptorChain.length;
|
|
3919
4023
|
var newConfig = config;
|
|
3920
|
-
i = 0;
|
|
3921
4024
|
while (i < len) {
|
|
3922
4025
|
var onFulfilled = requestInterceptorChain[i++];
|
|
3923
4026
|
var onRejected = requestInterceptorChain[i++];
|