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
|
'use strict';
|
|
3
3
|
|
|
4
4
|
function bind(fn, thisArg) {
|
|
@@ -52,7 +52,7 @@ const isUndefined = typeOfTest('undefined');
|
|
|
52
52
|
*/
|
|
53
53
|
function isBuffer(val) {
|
|
54
54
|
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
|
|
55
|
-
&& isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
55
|
+
&& isFunction$1(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
/**
|
|
@@ -97,7 +97,7 @@ const isString = typeOfTest('string');
|
|
|
97
97
|
* @param {*} val The value to test
|
|
98
98
|
* @returns {boolean} True if value is a Function, otherwise false
|
|
99
99
|
*/
|
|
100
|
-
const isFunction = typeOfTest('function');
|
|
100
|
+
const isFunction$1 = typeOfTest('function');
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
103
|
* Determine if a value is a Number
|
|
@@ -141,6 +141,27 @@ const isPlainObject = (val) => {
|
|
|
141
141
|
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
|
|
142
142
|
};
|
|
143
143
|
|
|
144
|
+
/**
|
|
145
|
+
* Determine if a value is an empty object (safely handles Buffers)
|
|
146
|
+
*
|
|
147
|
+
* @param {*} val The value to test
|
|
148
|
+
*
|
|
149
|
+
* @returns {boolean} True if value is an empty object, otherwise false
|
|
150
|
+
*/
|
|
151
|
+
const isEmptyObject = (val) => {
|
|
152
|
+
// Early return for non-objects or Buffers to prevent RangeError
|
|
153
|
+
if (!isObject(val) || isBuffer(val)) {
|
|
154
|
+
return false;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
try {
|
|
158
|
+
return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
|
|
159
|
+
} catch (e) {
|
|
160
|
+
// Fallback for any other objects that might cause RangeError with Object.keys()
|
|
161
|
+
return false;
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
|
|
144
165
|
/**
|
|
145
166
|
* Determine if a value is a Date
|
|
146
167
|
*
|
|
@@ -184,7 +205,7 @@ const isFileList = kindOfTest('FileList');
|
|
|
184
205
|
*
|
|
185
206
|
* @returns {boolean} True if value is a Stream, otherwise false
|
|
186
207
|
*/
|
|
187
|
-
const isStream = (val) => isObject(val) && isFunction(val.pipe);
|
|
208
|
+
const isStream = (val) => isObject(val) && isFunction$1(val.pipe);
|
|
188
209
|
|
|
189
210
|
/**
|
|
190
211
|
* Determine if a value is a FormData
|
|
@@ -197,10 +218,10 @@ const isFormData = (thing) => {
|
|
|
197
218
|
let kind;
|
|
198
219
|
return thing && (
|
|
199
220
|
(typeof FormData === 'function' && thing instanceof FormData) || (
|
|
200
|
-
isFunction(thing.append) && (
|
|
221
|
+
isFunction$1(thing.append) && (
|
|
201
222
|
(kind = kindOf(thing)) === 'formdata' ||
|
|
202
223
|
// detect form-data instance
|
|
203
|
-
(kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')
|
|
224
|
+
(kind === 'object' && isFunction$1(thing.toString) && thing.toString() === '[object FormData]')
|
|
204
225
|
)
|
|
205
226
|
)
|
|
206
227
|
)
|
|
@@ -263,6 +284,11 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
263
284
|
fn.call(null, obj[i], i, obj);
|
|
264
285
|
}
|
|
265
286
|
} else {
|
|
287
|
+
// Buffer check
|
|
288
|
+
if (isBuffer(obj)) {
|
|
289
|
+
return;
|
|
290
|
+
}
|
|
291
|
+
|
|
266
292
|
// Iterate over object keys
|
|
267
293
|
const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
|
|
268
294
|
const len = keys.length;
|
|
@@ -276,6 +302,10 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
276
302
|
}
|
|
277
303
|
|
|
278
304
|
function findKey(obj, key) {
|
|
305
|
+
if (isBuffer(obj)){
|
|
306
|
+
return null;
|
|
307
|
+
}
|
|
308
|
+
|
|
279
309
|
key = key.toLowerCase();
|
|
280
310
|
const keys = Object.keys(obj);
|
|
281
311
|
let i = keys.length;
|
|
@@ -316,7 +346,7 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
|
|
|
316
346
|
* @returns {Object} Result of all merge properties
|
|
317
347
|
*/
|
|
318
348
|
function merge(/* obj1, obj2, obj3, ... */) {
|
|
319
|
-
const {caseless} = isContextDefined(this) && this || {};
|
|
349
|
+
const {caseless, skipUndefined} = isContextDefined(this) && this || {};
|
|
320
350
|
const result = {};
|
|
321
351
|
const assignValue = (val, key) => {
|
|
322
352
|
const targetKey = caseless && findKey(result, key) || key;
|
|
@@ -326,7 +356,7 @@ function merge(/* obj1, obj2, obj3, ... */) {
|
|
|
326
356
|
result[targetKey] = merge({}, val);
|
|
327
357
|
} else if (isArray(val)) {
|
|
328
358
|
result[targetKey] = val.slice();
|
|
329
|
-
} else {
|
|
359
|
+
} else if (!skipUndefined || !isUndefined(val)) {
|
|
330
360
|
result[targetKey] = val;
|
|
331
361
|
}
|
|
332
362
|
};
|
|
@@ -349,7 +379,7 @@ function merge(/* obj1, obj2, obj3, ... */) {
|
|
|
349
379
|
*/
|
|
350
380
|
const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
|
|
351
381
|
forEach(b, (val, key) => {
|
|
352
|
-
if (thisArg && isFunction(val)) {
|
|
382
|
+
if (thisArg && isFunction$1(val)) {
|
|
353
383
|
a[key] = bind(val, thisArg);
|
|
354
384
|
} else {
|
|
355
385
|
a[key] = val;
|
|
@@ -565,13 +595,13 @@ const reduceDescriptors = (obj, reducer) => {
|
|
|
565
595
|
const freezeMethods = (obj) => {
|
|
566
596
|
reduceDescriptors(obj, (descriptor, name) => {
|
|
567
597
|
// skip restricted props in strict mode
|
|
568
|
-
if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
|
|
598
|
+
if (isFunction$1(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
|
|
569
599
|
return false;
|
|
570
600
|
}
|
|
571
601
|
|
|
572
602
|
const value = obj[name];
|
|
573
603
|
|
|
574
|
-
if (!isFunction(value)) return;
|
|
604
|
+
if (!isFunction$1(value)) return;
|
|
575
605
|
|
|
576
606
|
descriptor.enumerable = false;
|
|
577
607
|
|
|
@@ -608,6 +638,8 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
|
608
638
|
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
609
639
|
};
|
|
610
640
|
|
|
641
|
+
|
|
642
|
+
|
|
611
643
|
/**
|
|
612
644
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
613
645
|
*
|
|
@@ -616,7 +648,7 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
|
616
648
|
* @returns {boolean}
|
|
617
649
|
*/
|
|
618
650
|
function isSpecCompliantForm(thing) {
|
|
619
|
-
return !!(thing && isFunction(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
|
|
651
|
+
return !!(thing && isFunction$1(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
|
|
620
652
|
}
|
|
621
653
|
|
|
622
654
|
const toJSONObject = (obj) => {
|
|
@@ -629,6 +661,11 @@ const toJSONObject = (obj) => {
|
|
|
629
661
|
return;
|
|
630
662
|
}
|
|
631
663
|
|
|
664
|
+
//Buffer check
|
|
665
|
+
if (isBuffer(source)) {
|
|
666
|
+
return source;
|
|
667
|
+
}
|
|
668
|
+
|
|
632
669
|
if(!('toJSON' in source)) {
|
|
633
670
|
stack[i] = source;
|
|
634
671
|
const target = isArray(source) ? [] : {};
|
|
@@ -653,7 +690,7 @@ const toJSONObject = (obj) => {
|
|
|
653
690
|
const isAsyncFn = kindOfTest('AsyncFunction');
|
|
654
691
|
|
|
655
692
|
const isThenable = (thing) =>
|
|
656
|
-
thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
|
|
693
|
+
thing && (isObject(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
|
|
657
694
|
|
|
658
695
|
// original code
|
|
659
696
|
// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
|
|
@@ -677,7 +714,7 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
|
677
714
|
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
678
715
|
})(
|
|
679
716
|
typeof setImmediate === 'function',
|
|
680
|
-
isFunction(_global.postMessage)
|
|
717
|
+
isFunction$1(_global.postMessage)
|
|
681
718
|
);
|
|
682
719
|
|
|
683
720
|
const asap = typeof queueMicrotask !== 'undefined' ?
|
|
@@ -686,7 +723,7 @@ const asap = typeof queueMicrotask !== 'undefined' ?
|
|
|
686
723
|
// *********************
|
|
687
724
|
|
|
688
725
|
|
|
689
|
-
const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
|
|
726
|
+
const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
|
|
690
727
|
|
|
691
728
|
|
|
692
729
|
var utils$1 = {
|
|
@@ -700,6 +737,7 @@ var utils$1 = {
|
|
|
700
737
|
isBoolean,
|
|
701
738
|
isObject,
|
|
702
739
|
isPlainObject,
|
|
740
|
+
isEmptyObject,
|
|
703
741
|
isReadableStream,
|
|
704
742
|
isRequest,
|
|
705
743
|
isResponse,
|
|
@@ -709,7 +747,7 @@ var utils$1 = {
|
|
|
709
747
|
isFile,
|
|
710
748
|
isBlob,
|
|
711
749
|
isRegExp,
|
|
712
|
-
isFunction,
|
|
750
|
+
isFunction: isFunction$1,
|
|
713
751
|
isStream,
|
|
714
752
|
isURLSearchParams,
|
|
715
753
|
isTypedArray,
|
|
@@ -835,11 +873,18 @@ AxiosError.from = (error, code, config, request, response, customProps) => {
|
|
|
835
873
|
return prop !== 'isAxiosError';
|
|
836
874
|
});
|
|
837
875
|
|
|
838
|
-
|
|
876
|
+
const msg = error && error.message ? error.message : 'Error';
|
|
839
877
|
|
|
840
|
-
|
|
878
|
+
// Prefer explicit code; otherwise copy the low-level error's code (e.g. ECONNREFUSED)
|
|
879
|
+
const errCode = code == null && error ? error.code : code;
|
|
880
|
+
AxiosError.call(axiosError, msg, errCode, config, request, response);
|
|
841
881
|
|
|
842
|
-
|
|
882
|
+
// Chain the original error on the standard field; non-enumerable to avoid JSON noise
|
|
883
|
+
if (error && axiosError.cause == null) {
|
|
884
|
+
Object.defineProperty(axiosError, 'cause', { value: error, configurable: true });
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
axiosError.name = (error && error.name) || 'Error';
|
|
843
888
|
|
|
844
889
|
customProps && Object.assign(axiosError, customProps);
|
|
845
890
|
|
|
@@ -964,6 +1009,10 @@ function toFormData(obj, formData, options) {
|
|
|
964
1009
|
return value.toISOString();
|
|
965
1010
|
}
|
|
966
1011
|
|
|
1012
|
+
if (utils$1.isBoolean(value)) {
|
|
1013
|
+
return value.toString();
|
|
1014
|
+
}
|
|
1015
|
+
|
|
967
1016
|
if (!useBlob && utils$1.isBlob(value)) {
|
|
968
1017
|
throw new AxiosError('Blob is not supported. Use a Buffer instead.');
|
|
969
1018
|
}
|
|
@@ -1126,9 +1175,7 @@ function encode(val) {
|
|
|
1126
1175
|
replace(/%3A/gi, ':').
|
|
1127
1176
|
replace(/%24/g, '$').
|
|
1128
1177
|
replace(/%2C/gi, ',').
|
|
1129
|
-
replace(/%20/g, '+')
|
|
1130
|
-
replace(/%5B/gi, '[').
|
|
1131
|
-
replace(/%5D/gi, ']');
|
|
1178
|
+
replace(/%20/g, '+');
|
|
1132
1179
|
}
|
|
1133
1180
|
|
|
1134
1181
|
/**
|
|
@@ -1327,7 +1374,7 @@ var platform = {
|
|
|
1327
1374
|
};
|
|
1328
1375
|
|
|
1329
1376
|
function toURLEncodedForm(data, options) {
|
|
1330
|
-
return toFormData(data, new platform.classes.URLSearchParams(),
|
|
1377
|
+
return toFormData(data, new platform.classes.URLSearchParams(), {
|
|
1331
1378
|
visitor: function(value, key, path, helpers) {
|
|
1332
1379
|
if (platform.isNode && utils$1.isBuffer(value)) {
|
|
1333
1380
|
this.append(key, value.toString('base64'));
|
|
@@ -1335,8 +1382,9 @@ function toURLEncodedForm(data, options) {
|
|
|
1335
1382
|
}
|
|
1336
1383
|
|
|
1337
1384
|
return helpers.defaultVisitor.apply(this, arguments);
|
|
1338
|
-
}
|
|
1339
|
-
|
|
1385
|
+
},
|
|
1386
|
+
...options
|
|
1387
|
+
});
|
|
1340
1388
|
}
|
|
1341
1389
|
|
|
1342
1390
|
/**
|
|
@@ -1532,7 +1580,7 @@ const defaults = {
|
|
|
1532
1580
|
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
1533
1581
|
|
|
1534
1582
|
try {
|
|
1535
|
-
return JSON.parse(data);
|
|
1583
|
+
return JSON.parse(data, this.parseReviver);
|
|
1536
1584
|
} catch (e) {
|
|
1537
1585
|
if (strictJSONParsing) {
|
|
1538
1586
|
if (e.name === 'SyntaxError') {
|
|
@@ -2089,7 +2137,7 @@ function throttle(fn, freq) {
|
|
|
2089
2137
|
clearTimeout(timer);
|
|
2090
2138
|
timer = null;
|
|
2091
2139
|
}
|
|
2092
|
-
fn
|
|
2140
|
+
fn(...args);
|
|
2093
2141
|
};
|
|
2094
2142
|
|
|
2095
2143
|
const throttled = (...args) => {
|
|
@@ -2345,7 +2393,7 @@ function mergeConfig(config1, config2) {
|
|
|
2345
2393
|
headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)
|
|
2346
2394
|
};
|
|
2347
2395
|
|
|
2348
|
-
utils$1.forEach(Object.keys(
|
|
2396
|
+
utils$1.forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) {
|
|
2349
2397
|
const merge = mergeMap[prop] || mergeDeepProperties;
|
|
2350
2398
|
const configValue = merge(config1[prop], config2[prop], prop);
|
|
2351
2399
|
(utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
|
|
@@ -2357,7 +2405,7 @@ function mergeConfig(config1, config2) {
|
|
|
2357
2405
|
var resolveConfig = (config) => {
|
|
2358
2406
|
const newConfig = mergeConfig({}, config);
|
|
2359
2407
|
|
|
2360
|
-
let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;
|
|
2408
|
+
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
2361
2409
|
|
|
2362
2410
|
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
2363
2411
|
|
|
@@ -2370,17 +2418,21 @@ var resolveConfig = (config) => {
|
|
|
2370
2418
|
);
|
|
2371
2419
|
}
|
|
2372
2420
|
|
|
2373
|
-
let contentType;
|
|
2374
|
-
|
|
2375
2421
|
if (utils$1.isFormData(data)) {
|
|
2376
2422
|
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
|
2377
|
-
headers.setContentType(undefined); //
|
|
2378
|
-
} else if ((
|
|
2379
|
-
//
|
|
2380
|
-
const
|
|
2381
|
-
headers
|
|
2423
|
+
headers.setContentType(undefined); // browser handles it
|
|
2424
|
+
} else if (utils$1.isFunction(data.getHeaders)) {
|
|
2425
|
+
// Node.js FormData (like form-data package)
|
|
2426
|
+
const formHeaders = data.getHeaders();
|
|
2427
|
+
// Only set safe headers to avoid overwriting security headers
|
|
2428
|
+
const allowedHeaders = ['content-type', 'content-length'];
|
|
2429
|
+
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
2430
|
+
if (allowedHeaders.includes(key.toLowerCase())) {
|
|
2431
|
+
headers.set(key, val);
|
|
2432
|
+
}
|
|
2433
|
+
});
|
|
2382
2434
|
}
|
|
2383
|
-
}
|
|
2435
|
+
}
|
|
2384
2436
|
|
|
2385
2437
|
// Add xsrf header
|
|
2386
2438
|
// This is only done if running in a standard browser environment.
|
|
@@ -2497,15 +2549,18 @@ var xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
|
2497
2549
|
};
|
|
2498
2550
|
|
|
2499
2551
|
// Handle low level network errors
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2552
|
+
request.onerror = function handleError(event) {
|
|
2553
|
+
// Browsers deliver a ProgressEvent in XHR onerror
|
|
2554
|
+
// (message may be empty; when present, surface it)
|
|
2555
|
+
// See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
|
|
2556
|
+
const msg = event && event.message ? event.message : 'Network Error';
|
|
2557
|
+
const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);
|
|
2558
|
+
// attach the underlying event for consumers who want details
|
|
2559
|
+
err.event = event || null;
|
|
2560
|
+
reject(err);
|
|
2561
|
+
request = null;
|
|
2507
2562
|
};
|
|
2508
|
-
|
|
2563
|
+
|
|
2509
2564
|
// Handle timeout
|
|
2510
2565
|
request.ontimeout = function handleTimeout() {
|
|
2511
2566
|
let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
@@ -2721,14 +2776,18 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
|
|
|
2721
2776
|
})
|
|
2722
2777
|
};
|
|
2723
2778
|
|
|
2724
|
-
const
|
|
2725
|
-
|
|
2779
|
+
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
2780
|
+
|
|
2781
|
+
const {isFunction} = utils$1;
|
|
2782
|
+
|
|
2783
|
+
const globalFetchAPI = (({Request, Response}) => ({
|
|
2784
|
+
Request, Response
|
|
2785
|
+
}))(utils$1.global);
|
|
2786
|
+
|
|
2787
|
+
const {
|
|
2788
|
+
ReadableStream: ReadableStream$1, TextEncoder
|
|
2789
|
+
} = utils$1.global;
|
|
2726
2790
|
|
|
2727
|
-
// used only inside the fetch adapter
|
|
2728
|
-
const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
|
|
2729
|
-
((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
|
|
2730
|
-
async (str) => new Uint8Array(await new Response(str).arrayBuffer())
|
|
2731
|
-
);
|
|
2732
2791
|
|
|
2733
2792
|
const test = (fn, ...args) => {
|
|
2734
2793
|
try {
|
|
@@ -2738,211 +2797,268 @@ const test = (fn, ...args) => {
|
|
|
2738
2797
|
}
|
|
2739
2798
|
};
|
|
2740
2799
|
|
|
2741
|
-
const
|
|
2742
|
-
|
|
2800
|
+
const factory = (env) => {
|
|
2801
|
+
env = utils$1.merge.call({
|
|
2802
|
+
skipUndefined: true
|
|
2803
|
+
}, globalFetchAPI, env);
|
|
2743
2804
|
|
|
2744
|
-
const
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
duplexAccessed = true;
|
|
2749
|
-
return 'half';
|
|
2750
|
-
},
|
|
2751
|
-
}).headers.has('Content-Type');
|
|
2805
|
+
const {fetch: envFetch, Request, Response} = env;
|
|
2806
|
+
const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';
|
|
2807
|
+
const isRequestSupported = isFunction(Request);
|
|
2808
|
+
const isResponseSupported = isFunction(Response);
|
|
2752
2809
|
|
|
2753
|
-
|
|
2754
|
-
|
|
2810
|
+
if (!isFetchSupported) {
|
|
2811
|
+
return false;
|
|
2812
|
+
}
|
|
2755
2813
|
|
|
2756
|
-
const
|
|
2814
|
+
const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream$1);
|
|
2757
2815
|
|
|
2758
|
-
const
|
|
2759
|
-
|
|
2816
|
+
const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
|
|
2817
|
+
((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
|
|
2818
|
+
async (str) => new Uint8Array(await new Request(str).arrayBuffer())
|
|
2819
|
+
);
|
|
2760
2820
|
|
|
2821
|
+
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
|
|
2822
|
+
let duplexAccessed = false;
|
|
2761
2823
|
|
|
2762
|
-
const
|
|
2763
|
-
|
|
2764
|
-
|
|
2824
|
+
const hasContentType = new Request(platform.origin, {
|
|
2825
|
+
body: new ReadableStream$1(),
|
|
2826
|
+
method: 'POST',
|
|
2827
|
+
get duplex() {
|
|
2828
|
+
duplexAccessed = true;
|
|
2829
|
+
return 'half';
|
|
2830
|
+
},
|
|
2831
|
+
}).headers.has('Content-Type');
|
|
2765
2832
|
|
|
2766
|
-
|
|
2767
|
-
['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
|
|
2768
|
-
!resolvers[type] && (resolvers[type] = utils$1.isFunction(res[type]) ? (res) => res[type]() :
|
|
2769
|
-
(_, config) => {
|
|
2770
|
-
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
2771
|
-
});
|
|
2833
|
+
return duplexAccessed && !hasContentType;
|
|
2772
2834
|
});
|
|
2773
|
-
})(new Response));
|
|
2774
2835
|
|
|
2775
|
-
const
|
|
2776
|
-
|
|
2777
|
-
return 0;
|
|
2778
|
-
}
|
|
2836
|
+
const supportsResponseStream = isResponseSupported && isReadableStreamSupported &&
|
|
2837
|
+
test(() => utils$1.isReadableStream(new Response('').body));
|
|
2779
2838
|
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
}
|
|
2839
|
+
const resolvers = {
|
|
2840
|
+
stream: supportsResponseStream && ((res) => res.body)
|
|
2841
|
+
};
|
|
2783
2842
|
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2843
|
+
isFetchSupported && ((() => {
|
|
2844
|
+
['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
|
|
2845
|
+
!resolvers[type] && (resolvers[type] = (res, config) => {
|
|
2846
|
+
let method = res && res[type];
|
|
2847
|
+
|
|
2848
|
+
if (method) {
|
|
2849
|
+
return method.call(res);
|
|
2850
|
+
}
|
|
2851
|
+
|
|
2852
|
+
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
2853
|
+
});
|
|
2788
2854
|
});
|
|
2789
|
-
|
|
2790
|
-
}
|
|
2855
|
+
})());
|
|
2791
2856
|
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2857
|
+
const getBodyLength = async (body) => {
|
|
2858
|
+
if (body == null) {
|
|
2859
|
+
return 0;
|
|
2860
|
+
}
|
|
2795
2861
|
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2862
|
+
if (utils$1.isBlob(body)) {
|
|
2863
|
+
return body.size;
|
|
2864
|
+
}
|
|
2799
2865
|
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2866
|
+
if (utils$1.isSpecCompliantForm(body)) {
|
|
2867
|
+
const _request = new Request(platform.origin, {
|
|
2868
|
+
method: 'POST',
|
|
2869
|
+
body,
|
|
2870
|
+
});
|
|
2871
|
+
return (await _request.arrayBuffer()).byteLength;
|
|
2872
|
+
}
|
|
2804
2873
|
|
|
2805
|
-
|
|
2806
|
-
|
|
2874
|
+
if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
|
|
2875
|
+
return body.byteLength;
|
|
2876
|
+
}
|
|
2807
2877
|
|
|
2808
|
-
|
|
2809
|
-
|
|
2878
|
+
if (utils$1.isURLSearchParams(body)) {
|
|
2879
|
+
body = body + '';
|
|
2880
|
+
}
|
|
2881
|
+
|
|
2882
|
+
if (utils$1.isString(body)) {
|
|
2883
|
+
return (await encodeText(body)).byteLength;
|
|
2884
|
+
}
|
|
2885
|
+
};
|
|
2886
|
+
|
|
2887
|
+
const resolveBodyLength = async (headers, body) => {
|
|
2888
|
+
const length = utils$1.toFiniteNumber(headers.getContentLength());
|
|
2889
|
+
|
|
2890
|
+
return length == null ? getBodyLength(body) : length;
|
|
2891
|
+
};
|
|
2810
2892
|
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2893
|
+
return async (config) => {
|
|
2894
|
+
let {
|
|
2895
|
+
url,
|
|
2896
|
+
method,
|
|
2897
|
+
data,
|
|
2898
|
+
signal,
|
|
2899
|
+
cancelToken,
|
|
2900
|
+
timeout,
|
|
2901
|
+
onDownloadProgress,
|
|
2902
|
+
onUploadProgress,
|
|
2903
|
+
responseType,
|
|
2904
|
+
headers,
|
|
2905
|
+
withCredentials = 'same-origin',
|
|
2906
|
+
fetchOptions
|
|
2907
|
+
} = resolveConfig(config);
|
|
2908
|
+
|
|
2909
|
+
let _fetch = envFetch || fetch;
|
|
2910
|
+
|
|
2911
|
+
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
2912
|
+
|
|
2913
|
+
let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
2914
|
+
|
|
2915
|
+
let request = null;
|
|
2916
|
+
|
|
2917
|
+
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
2834
2918
|
composedSignal.unsubscribe();
|
|
2835
|
-
|
|
2919
|
+
});
|
|
2836
2920
|
|
|
2837
|
-
|
|
2921
|
+
let requestContentLength;
|
|
2838
2922
|
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2923
|
+
try {
|
|
2924
|
+
if (
|
|
2925
|
+
onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&
|
|
2926
|
+
(requestContentLength = await resolveBodyLength(headers, data)) !== 0
|
|
2927
|
+
) {
|
|
2928
|
+
let _request = new Request(url, {
|
|
2929
|
+
method: 'POST',
|
|
2930
|
+
body: data,
|
|
2931
|
+
duplex: "half"
|
|
2932
|
+
});
|
|
2849
2933
|
|
|
2850
|
-
|
|
2934
|
+
let contentTypeHeader;
|
|
2851
2935
|
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2936
|
+
if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
|
|
2937
|
+
headers.setContentType(contentTypeHeader);
|
|
2938
|
+
}
|
|
2855
2939
|
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2940
|
+
if (_request.body) {
|
|
2941
|
+
const [onProgress, flush] = progressEventDecorator(
|
|
2942
|
+
requestContentLength,
|
|
2943
|
+
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
2944
|
+
);
|
|
2861
2945
|
|
|
2862
|
-
|
|
2946
|
+
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
2947
|
+
}
|
|
2863
2948
|
}
|
|
2864
|
-
}
|
|
2865
2949
|
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2950
|
+
if (!utils$1.isString(withCredentials)) {
|
|
2951
|
+
withCredentials = withCredentials ? 'include' : 'omit';
|
|
2952
|
+
}
|
|
2869
2953
|
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
request = new Request(url, {
|
|
2874
|
-
...fetchOptions,
|
|
2875
|
-
signal: composedSignal,
|
|
2876
|
-
method: method.toUpperCase(),
|
|
2877
|
-
headers: headers.normalize().toJSON(),
|
|
2878
|
-
body: data,
|
|
2879
|
-
duplex: "half",
|
|
2880
|
-
credentials: isCredentialsSupported ? withCredentials : undefined
|
|
2881
|
-
});
|
|
2954
|
+
// Cloudflare Workers throws when credentials are defined
|
|
2955
|
+
// see https://github.com/cloudflare/workerd/issues/902
|
|
2956
|
+
const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
|
|
2882
2957
|
|
|
2883
|
-
|
|
2958
|
+
const resolvedOptions = {
|
|
2959
|
+
...fetchOptions,
|
|
2960
|
+
signal: composedSignal,
|
|
2961
|
+
method: method.toUpperCase(),
|
|
2962
|
+
headers: headers.normalize().toJSON(),
|
|
2963
|
+
body: data,
|
|
2964
|
+
duplex: "half",
|
|
2965
|
+
credentials: isCredentialsSupported ? withCredentials : undefined
|
|
2966
|
+
};
|
|
2884
2967
|
|
|
2885
|
-
|
|
2968
|
+
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
2886
2969
|
|
|
2887
|
-
|
|
2888
|
-
const options = {};
|
|
2970
|
+
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
|
|
2889
2971
|
|
|
2890
|
-
|
|
2891
|
-
options[prop] = response[prop];
|
|
2892
|
-
});
|
|
2972
|
+
const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
|
|
2893
2973
|
|
|
2894
|
-
|
|
2974
|
+
if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {
|
|
2975
|
+
const options = {};
|
|
2895
2976
|
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
) || [];
|
|
2977
|
+
['status', 'statusText', 'headers'].forEach(prop => {
|
|
2978
|
+
options[prop] = response[prop];
|
|
2979
|
+
});
|
|
2900
2980
|
|
|
2901
|
-
|
|
2902
|
-
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
2903
|
-
flush && flush();
|
|
2904
|
-
unsubscribe && unsubscribe();
|
|
2905
|
-
}),
|
|
2906
|
-
options
|
|
2907
|
-
);
|
|
2908
|
-
}
|
|
2981
|
+
const responseContentLength = utils$1.toFiniteNumber(response.headers.get('content-length'));
|
|
2909
2982
|
|
|
2910
|
-
|
|
2983
|
+
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
2984
|
+
responseContentLength,
|
|
2985
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
2986
|
+
) || [];
|
|
2911
2987
|
|
|
2912
|
-
|
|
2988
|
+
response = new Response(
|
|
2989
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
2990
|
+
flush && flush();
|
|
2991
|
+
unsubscribe && unsubscribe();
|
|
2992
|
+
}),
|
|
2993
|
+
options
|
|
2994
|
+
);
|
|
2995
|
+
}
|
|
2913
2996
|
|
|
2914
|
-
|
|
2997
|
+
responseType = responseType || 'text';
|
|
2915
2998
|
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2999
|
+
let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || 'text'](response, config);
|
|
3000
|
+
|
|
3001
|
+
!isStreamResponse && unsubscribe && unsubscribe();
|
|
3002
|
+
|
|
3003
|
+
return await new Promise((resolve, reject) => {
|
|
3004
|
+
settle(resolve, reject, {
|
|
3005
|
+
data: responseData,
|
|
3006
|
+
headers: AxiosHeaders$1.from(response.headers),
|
|
3007
|
+
status: response.status,
|
|
3008
|
+
statusText: response.statusText,
|
|
3009
|
+
config,
|
|
3010
|
+
request
|
|
3011
|
+
});
|
|
3012
|
+
})
|
|
3013
|
+
} catch (err) {
|
|
3014
|
+
unsubscribe && unsubscribe();
|
|
3015
|
+
|
|
3016
|
+
if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
|
|
3017
|
+
throw Object.assign(
|
|
3018
|
+
new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),
|
|
3019
|
+
{
|
|
3020
|
+
cause: err.cause || err
|
|
3021
|
+
}
|
|
3022
|
+
)
|
|
3023
|
+
}
|
|
3024
|
+
|
|
3025
|
+
throw AxiosError.from(err, err && err.code, config, request);
|
|
2936
3026
|
}
|
|
3027
|
+
}
|
|
3028
|
+
};
|
|
3029
|
+
|
|
3030
|
+
const seedCache = new Map();
|
|
3031
|
+
|
|
3032
|
+
const getFetch = (config) => {
|
|
3033
|
+
let env = config ? config.env : {};
|
|
3034
|
+
const {fetch, Request, Response} = env;
|
|
3035
|
+
const seeds = [
|
|
3036
|
+
Request, Response, fetch
|
|
3037
|
+
];
|
|
3038
|
+
|
|
3039
|
+
let len = seeds.length, i = len,
|
|
3040
|
+
seed, target, map = seedCache;
|
|
2937
3041
|
|
|
2938
|
-
|
|
3042
|
+
while (i--) {
|
|
3043
|
+
seed = seeds[i];
|
|
3044
|
+
target = map.get(seed);
|
|
3045
|
+
|
|
3046
|
+
target === undefined && map.set(seed, target = (i ? new Map() : factory(env)));
|
|
3047
|
+
|
|
3048
|
+
map = target;
|
|
2939
3049
|
}
|
|
2940
|
-
|
|
3050
|
+
|
|
3051
|
+
return target;
|
|
3052
|
+
};
|
|
3053
|
+
|
|
3054
|
+
getFetch();
|
|
2941
3055
|
|
|
2942
3056
|
const knownAdapters = {
|
|
2943
3057
|
http: httpAdapter,
|
|
2944
3058
|
xhr: xhrAdapter,
|
|
2945
|
-
fetch:
|
|
3059
|
+
fetch: {
|
|
3060
|
+
get: getFetch,
|
|
3061
|
+
}
|
|
2946
3062
|
};
|
|
2947
3063
|
|
|
2948
3064
|
utils$1.forEach(knownAdapters, (fn, value) => {
|
|
@@ -2961,7 +3077,7 @@ const renderReason = (reason) => `- ${reason}`;
|
|
|
2961
3077
|
const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
|
|
2962
3078
|
|
|
2963
3079
|
var adapters = {
|
|
2964
|
-
getAdapter: (adapters) => {
|
|
3080
|
+
getAdapter: (adapters, config) => {
|
|
2965
3081
|
adapters = utils$1.isArray(adapters) ? adapters : [adapters];
|
|
2966
3082
|
|
|
2967
3083
|
const {length} = adapters;
|
|
@@ -2984,7 +3100,7 @@ var adapters = {
|
|
|
2984
3100
|
}
|
|
2985
3101
|
}
|
|
2986
3102
|
|
|
2987
|
-
if (adapter) {
|
|
3103
|
+
if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
|
|
2988
3104
|
break;
|
|
2989
3105
|
}
|
|
2990
3106
|
|
|
@@ -3052,7 +3168,7 @@ function dispatchRequest(config) {
|
|
|
3052
3168
|
config.headers.setContentType('application/x-www-form-urlencoded', false);
|
|
3053
3169
|
}
|
|
3054
3170
|
|
|
3055
|
-
const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter);
|
|
3171
|
+
const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter, config);
|
|
3056
3172
|
|
|
3057
3173
|
return adapter(config).then(function onAdapterResolution(response) {
|
|
3058
3174
|
throwIfCancellationRequested(config);
|
|
@@ -3086,7 +3202,7 @@ function dispatchRequest(config) {
|
|
|
3086
3202
|
});
|
|
3087
3203
|
}
|
|
3088
3204
|
|
|
3089
|
-
const VERSION = "1.
|
|
3205
|
+
const VERSION = "1.12.2";
|
|
3090
3206
|
|
|
3091
3207
|
const validators$1 = {};
|
|
3092
3208
|
|
|
@@ -3325,8 +3441,8 @@ class Axios {
|
|
|
3325
3441
|
|
|
3326
3442
|
if (!synchronousRequestInterceptors) {
|
|
3327
3443
|
const chain = [dispatchRequest.bind(this), undefined];
|
|
3328
|
-
chain.unshift
|
|
3329
|
-
chain.push
|
|
3444
|
+
chain.unshift(...requestInterceptorChain);
|
|
3445
|
+
chain.push(...responseInterceptorChain);
|
|
3330
3446
|
len = chain.length;
|
|
3331
3447
|
|
|
3332
3448
|
promise = Promise.resolve(config);
|
|
@@ -3342,8 +3458,6 @@ class Axios {
|
|
|
3342
3458
|
|
|
3343
3459
|
let newConfig = config;
|
|
3344
3460
|
|
|
3345
|
-
i = 0;
|
|
3346
|
-
|
|
3347
3461
|
while (i < len) {
|
|
3348
3462
|
const onFulfilled = requestInterceptorChain[i++];
|
|
3349
3463
|
const onRejected = requestInterceptorChain[i++];
|