@dbmx/confy 0.0.73 → 0.0.76
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/esm/components/SelectMemberMenu/index.js +1 -1
- package/esm/ducks/utils.js +1 -1
- package/esm/forms/utils.js +2 -2
- package/esm/hooks/roles.js +1 -1
- package/esm/lib/api/apiKeys.js +51 -0
- package/esm/lib/api/apiKeys.js.map +1 -0
- package/esm/lib/api/dataBuckets.js +18 -0
- package/esm/lib/api/dataBuckets.js.map +1 -0
- package/esm/lib/api/jobs.js +56 -0
- package/esm/lib/api/jobs.js.map +1 -0
- package/esm/lib/api/members.js +33 -0
- package/esm/lib/api/members.js.map +1 -0
- package/esm/lib/api/people.js +50 -0
- package/esm/lib/api/people.js.map +1 -0
- package/esm/lib/api/roles.js +17 -0
- package/esm/lib/api/roles.js.map +1 -0
- package/esm/lib/api/routes.js +43 -0
- package/esm/lib/api/routes.js.map +1 -0
- package/esm/lib/api/servicesMap.js +17 -0
- package/esm/lib/api/servicesMap.js.map +1 -0
- package/esm/lib/api/spaces.js +32 -0
- package/esm/lib/api/spaces.js.map +1 -0
- package/esm/lib/api/storage.js +94 -0
- package/esm/lib/api/storage.js.map +1 -0
- package/esm/node_modules/@dbmx/auth/dist/index.js +638 -0
- package/esm/node_modules/@dbmx/auth/dist/index.js.map +1 -0
- package/esm/node_modules/@dbmx/auth/dist/oidc-client.js +107 -0
- package/esm/node_modules/@dbmx/auth/dist/oidc-client.js.map +1 -0
- package/esm/node_modules/@dbmx/semver/dist/index.esm.js +958 -0
- package/esm/node_modules/@dbmx/semver/dist/index.esm.js.map +1 -0
- package/esm/node_modules/@dbmx/semver/node_modules/lru-cache/index.js +340 -0
- package/esm/node_modules/@dbmx/semver/node_modules/lru-cache/index.js.map +1 -0
- package/esm/node_modules/@dbmx/semver/node_modules/yallist/iterator.js +18 -0
- package/esm/node_modules/@dbmx/semver/node_modules/yallist/iterator.js.map +1 -0
- package/esm/node_modules/@dbmx/semver/node_modules/yallist/yallist.js +430 -0
- package/esm/node_modules/@dbmx/semver/node_modules/yallist/yallist.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/index.js +251 -0
- package/esm/node_modules/@dbmx/users/esm/index.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/ap.js +44 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/ap.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/bind.js +36 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/bind.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/curry.js +53 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/curry.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/curryN.js +60 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/curryN.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/difference.js +50 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/difference.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/either.js +46 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/either.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/equals.js +37 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/equals.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/flip.js +37 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/flip.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/identity.js +29 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/identity.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/includes.js +32 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/includes.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_Set.js +201 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_Set.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_arity.js +65 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_arity.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_arrayFromIterator.js +13 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_arrayFromIterator.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_concat.js +37 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_concat.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_curry1.js +23 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_curry1.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_curry2.js +35 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_curry2.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_curry3.js +53 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_curry3.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_curryN.js +46 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_curryN.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_dispatchable.js +50 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_dispatchable.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_equals.js +170 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_equals.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_filter.js +18 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_filter.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_functionName.js +8 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_functionName.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_has.js +6 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_has.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_identity.js +6 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_identity.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_includes.js +8 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_includes.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_includesWith.js +17 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_includesWith.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_indexOf.js +71 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_indexOf.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_isArguments.js +16 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_isArguments.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_isArray.js +18 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_isArray.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_isArrayLike.js +58 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_isArrayLike.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_isFunction.js +7 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_isFunction.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_isInteger.js +14 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_isInteger.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_isPlaceholder.js +6 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_isPlaceholder.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_isString.js +6 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_isString.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_isTransformer.js +6 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_isTransformer.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_map.js +15 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_map.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_objectIs.js +17 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_objectIs.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_reduce.js +74 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_reduce.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_xfBase.js +11 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_xfBase.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_xmap.js +29 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_xmap.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_xwrap.js +28 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/internal/_xwrap.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/intersection.js +42 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/intersection.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/is.js +34 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/is.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/keys.js +92 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/keys.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/lift.js +34 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/lift.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/liftN.js +35 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/liftN.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/map.js +68 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/map.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/nth.js +39 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/nth.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/or.js +31 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/or.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/path.js +32 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/path.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/paths.js +47 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/paths.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/prop.js +33 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/prop.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/propEq.js +37 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/propEq.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/type.js +36 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/type.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/uniq.js +27 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/uniq.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/uniqBy.js +46 -0
- package/esm/node_modules/@dbmx/users/esm/node_modules/ramda/es/uniqBy.js.map +1 -0
- package/esm/node_modules/@dbmx/users/esm/roles.js +127 -0
- package/esm/node_modules/@dbmx/users/esm/roles.js.map +1 -0
- package/esm/node_modules/jsrsasign/lib/jsrsasign.js +248 -0
- package/esm/node_modules/jsrsasign/lib/jsrsasign.js.map +1 -0
- package/esm/node_modules/jwt-decode/build/esm/index.js +60 -0
- package/esm/node_modules/jwt-decode/build/esm/index.js.map +1 -0
- package/esm/node_modules/oidc-client-ts/dist/esm/oidc-client-ts.js +3591 -0
- package/esm/node_modules/oidc-client-ts/dist/esm/oidc-client-ts.js.map +1 -0
- package/esm/node_modules/ramda/es/internal/_objectAssign.js +32 -0
- package/esm/node_modules/ramda/es/internal/_objectAssign.js.map +1 -0
- package/esm/node_modules/ramda/es/merge.js +36 -0
- package/esm/node_modules/ramda/es/merge.js.map +1 -0
- package/esm/utils/authorizations.js +1 -1
- package/esm/utils/confy.js +1 -1
- package/package.json +5 -8
- package/esm/_virtual/browser.js +0 -4
- package/esm/_virtual/browser.js.map +0 -1
- package/esm/_virtual/index15.js +0 -4
- package/esm/_virtual/index15.js.map +0 -1
- package/esm/_virtual/index16.js +0 -4
- package/esm/_virtual/index16.js.map +0 -1
- package/esm/_virtual/index17.js +0 -4
- package/esm/_virtual/index17.js.map +0 -1
- package/esm/_virtual/index18.js +0 -4
- package/esm/_virtual/index18.js.map +0 -1
- package/esm/_virtual/node.js +0 -4
- package/esm/_virtual/node.js.map +0 -1
- package/esm/_virtual/serialOrdered.js +0 -4
- package/esm/_virtual/serialOrdered.js.map +0 -1
- package/esm/node_modules/asynckit/index.js +0 -13
- package/esm/node_modules/asynckit/index.js.map +0 -1
- package/esm/node_modules/asynckit/lib/abort.js +0 -32
- package/esm/node_modules/asynckit/lib/abort.js.map +0 -1
- package/esm/node_modules/asynckit/lib/async.js +0 -39
- package/esm/node_modules/asynckit/lib/async.js.map +0 -1
- package/esm/node_modules/asynckit/lib/defer.js +0 -29
- package/esm/node_modules/asynckit/lib/defer.js.map +0 -1
- package/esm/node_modules/asynckit/lib/iterate.js +0 -81
- package/esm/node_modules/asynckit/lib/iterate.js.map +0 -1
- package/esm/node_modules/asynckit/lib/state.js +0 -40
- package/esm/node_modules/asynckit/lib/state.js.map +0 -1
- package/esm/node_modules/asynckit/lib/terminator.js +0 -35
- package/esm/node_modules/asynckit/lib/terminator.js.map +0 -1
- package/esm/node_modules/asynckit/parallel.js +0 -50
- package/esm/node_modules/asynckit/parallel.js.map +0 -1
- package/esm/node_modules/asynckit/serial.js +0 -22
- package/esm/node_modules/asynckit/serial.js.map +0 -1
- package/esm/node_modules/asynckit/serialOrdered.js +0 -85
- package/esm/node_modules/asynckit/serialOrdered.js.map +0 -1
- package/esm/node_modules/axios/index.js +0 -26
- package/esm/node_modules/axios/index.js.map +0 -1
- package/esm/node_modules/axios/lib/adapters/adapters.js +0 -133
- package/esm/node_modules/axios/lib/adapters/adapters.js.map +0 -1
- package/esm/node_modules/axios/lib/adapters/fetch.js +0 -331
- package/esm/node_modules/axios/lib/adapters/fetch.js.map +0 -1
- package/esm/node_modules/axios/lib/adapters/http.js +0 -945
- package/esm/node_modules/axios/lib/adapters/http.js.map +0 -1
- package/esm/node_modules/axios/lib/adapters/xhr.js +0 -225
- package/esm/node_modules/axios/lib/adapters/xhr.js.map +0 -1
- package/esm/node_modules/axios/lib/axios.js +0 -87
- package/esm/node_modules/axios/lib/axios.js.map +0 -1
- package/esm/node_modules/axios/lib/cancel/CancelToken.js +0 -134
- package/esm/node_modules/axios/lib/cancel/CancelToken.js.map +0 -1
- package/esm/node_modules/axios/lib/cancel/CanceledError.js +0 -21
- package/esm/node_modules/axios/lib/cancel/CanceledError.js.map +0 -1
- package/esm/node_modules/axios/lib/cancel/isCancel.js +0 -6
- package/esm/node_modules/axios/lib/cancel/isCancel.js.map +0 -1
- package/esm/node_modules/axios/lib/core/Axios.js +0 -260
- package/esm/node_modules/axios/lib/core/Axios.js.map +0 -1
- package/esm/node_modules/axios/lib/core/AxiosError.js +0 -89
- package/esm/node_modules/axios/lib/core/AxiosError.js.map +0 -1
- package/esm/node_modules/axios/lib/core/AxiosHeaders.js +0 -343
- package/esm/node_modules/axios/lib/core/AxiosHeaders.js.map +0 -1
- package/esm/node_modules/axios/lib/core/InterceptorManager.js +0 -71
- package/esm/node_modules/axios/lib/core/InterceptorManager.js.map +0 -1
- package/esm/node_modules/axios/lib/core/buildFullPath.js +0 -23
- package/esm/node_modules/axios/lib/core/buildFullPath.js.map +0 -1
- package/esm/node_modules/axios/lib/core/dispatchRequest.js +0 -78
- package/esm/node_modules/axios/lib/core/dispatchRequest.js.map +0 -1
- package/esm/node_modules/axios/lib/core/mergeConfig.js +0 -108
- package/esm/node_modules/axios/lib/core/mergeConfig.js.map +0 -1
- package/esm/node_modules/axios/lib/core/settle.js +0 -32
- package/esm/node_modules/axios/lib/core/settle.js.map +0 -1
- package/esm/node_modules/axios/lib/core/transformData.js +0 -29
- package/esm/node_modules/axios/lib/core/transformData.js.map +0 -1
- package/esm/node_modules/axios/lib/defaults/index.js +0 -171
- package/esm/node_modules/axios/lib/defaults/index.js.map +0 -1
- package/esm/node_modules/axios/lib/defaults/transitional.js +0 -9
- package/esm/node_modules/axios/lib/defaults/transitional.js.map +0 -1
- package/esm/node_modules/axios/lib/env/data.js +0 -4
- package/esm/node_modules/axios/lib/env/data.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/AxiosTransformStream.js +0 -155
- package/esm/node_modules/axios/lib/helpers/AxiosTransformStream.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -61
- package/esm/node_modules/axios/lib/helpers/AxiosURLSearchParams.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -78
- package/esm/node_modules/axios/lib/helpers/HttpStatusCode.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +0 -28
- package/esm/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/bind.js +0 -15
- package/esm/node_modules/axios/lib/helpers/bind.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/buildURL.js +0 -67
- package/esm/node_modules/axios/lib/helpers/buildURL.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/callbackify.js +0 -19
- package/esm/node_modules/axios/lib/helpers/callbackify.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/combineURLs.js +0 -16
- package/esm/node_modules/axios/lib/helpers/combineURLs.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/composeSignals.js +0 -57
- package/esm/node_modules/axios/lib/helpers/composeSignals.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/cookies.js +0 -51
- package/esm/node_modules/axios/lib/helpers/cookies.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +0 -76
- package/esm/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/formDataToJSON.js +0 -94
- package/esm/node_modules/axios/lib/helpers/formDataToJSON.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/formDataToStream.js +0 -119
- package/esm/node_modules/axios/lib/helpers/formDataToStream.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/fromDataURI.js +0 -54
- package/esm/node_modules/axios/lib/helpers/fromDataURI.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -20
- package/esm/node_modules/axios/lib/helpers/isAbsoluteURL.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/isAxiosError.js +0 -15
- package/esm/node_modules/axios/lib/helpers/isAxiosError.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -19
- package/esm/node_modules/axios/lib/helpers/isURLSameOrigin.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/parseHeaders.js +0 -70
- package/esm/node_modules/axios/lib/helpers/parseHeaders.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/parseProtocol.js +0 -7
- package/esm/node_modules/axios/lib/helpers/parseProtocol.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/progressEventReducer.js +0 -54
- package/esm/node_modules/axios/lib/helpers/progressEventReducer.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/readBlob.js +0 -16
- package/esm/node_modules/axios/lib/helpers/readBlob.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/resolveConfig.js +0 -73
- package/esm/node_modules/axios/lib/helpers/resolveConfig.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/speedometer.js +0 -54
- package/esm/node_modules/axios/lib/helpers/speedometer.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/spread.js +0 -29
- package/esm/node_modules/axios/lib/helpers/spread.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/throttle.js +0 -45
- package/esm/node_modules/axios/lib/helpers/throttle.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/toFormData.js +0 -239
- package/esm/node_modules/axios/lib/helpers/toFormData.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -20
- package/esm/node_modules/axios/lib/helpers/toURLEncodedForm.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/trackStream.js +0 -92
- package/esm/node_modules/axios/lib/helpers/trackStream.js.map +0 -1
- package/esm/node_modules/axios/lib/helpers/validator.js +0 -111
- package/esm/node_modules/axios/lib/helpers/validator.js.map +0 -1
- package/esm/node_modules/axios/lib/platform/common/utils.js +0 -47
- package/esm/node_modules/axios/lib/platform/common/utils.js.map +0 -1
- package/esm/node_modules/axios/lib/platform/index.js +0 -10
- package/esm/node_modules/axios/lib/platform/index.js.map +0 -1
- package/esm/node_modules/axios/lib/platform/node/classes/FormData.js +0 -6
- package/esm/node_modules/axios/lib/platform/node/classes/FormData.js.map +0 -1
- package/esm/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +0 -6
- package/esm/node_modules/axios/lib/platform/node/classes/URLSearchParams.js.map +0 -1
- package/esm/node_modules/axios/lib/platform/node/index.js +0 -40
- package/esm/node_modules/axios/lib/platform/node/index.js.map +0 -1
- package/esm/node_modules/axios/lib/utils.js +0 -920
- package/esm/node_modules/axios/lib/utils.js.map +0 -1
- package/esm/node_modules/call-bind-apply-helpers/node_modules/function-bind/implementation.js +0 -66
- package/esm/node_modules/call-bind-apply-helpers/node_modules/function-bind/implementation.js.map +0 -1
- package/esm/node_modules/call-bind-apply-helpers/node_modules/function-bind/index.js +0 -7
- package/esm/node_modules/call-bind-apply-helpers/node_modules/function-bind/index.js.map +0 -1
- package/esm/node_modules/combined-stream/lib/combined_stream.js +0 -215
- package/esm/node_modules/combined-stream/lib/combined_stream.js.map +0 -1
- package/esm/node_modules/debug/src/browser.js +0 -287
- package/esm/node_modules/debug/src/browser.js.map +0 -1
- package/esm/node_modules/debug/src/common.js +0 -304
- package/esm/node_modules/debug/src/common.js.map +0 -1
- package/esm/node_modules/debug/src/index.js +0 -24
- package/esm/node_modules/debug/src/index.js.map +0 -1
- package/esm/node_modules/debug/src/node.js +0 -281
- package/esm/node_modules/debug/src/node.js.map +0 -1
- package/esm/node_modules/deep-equal/node_modules/has-symbols/index.js +0 -22
- package/esm/node_modules/deep-equal/node_modules/has-symbols/index.js.map +0 -1
- package/esm/node_modules/deep-equal/node_modules/has-symbols/shams.js +0 -58
- package/esm/node_modules/deep-equal/node_modules/has-symbols/shams.js.map +0 -1
- package/esm/node_modules/deep-equal/node_modules/has-tostringtag/shams.js +0 -9
- package/esm/node_modules/deep-equal/node_modules/has-tostringtag/shams.js.map +0 -1
- package/esm/node_modules/deep-equal/node_modules/is-regex/index.js +0 -53
- package/esm/node_modules/deep-equal/node_modules/is-regex/index.js.map +0 -1
- package/esm/node_modules/deep-equal/node_modules/is-regex/node_modules/call-bind/callBound.js +0 -16
- package/esm/node_modules/deep-equal/node_modules/is-regex/node_modules/call-bind/callBound.js.map +0 -1
- package/esm/node_modules/deep-equal/node_modules/is-regex/node_modules/call-bind/index.js +0 -53
- package/esm/node_modules/deep-equal/node_modules/is-regex/node_modules/call-bind/index.js.map +0 -1
- package/esm/node_modules/deep-equal/node_modules/is-regex/node_modules/get-intrinsic/index.js +0 -307
- package/esm/node_modules/deep-equal/node_modules/is-regex/node_modules/get-intrinsic/index.js.map +0 -1
- package/esm/node_modules/delayed-stream/lib/delayed_stream.js +0 -113
- package/esm/node_modules/delayed-stream/lib/delayed_stream.js.map +0 -1
- package/esm/node_modules/es-set-tostringtag/index.js +0 -41
- package/esm/node_modules/es-set-tostringtag/index.js.map +0 -1
- package/esm/node_modules/follow-redirects/debug.js +0 -20
- package/esm/node_modules/follow-redirects/debug.js.map +0 -1
- package/esm/node_modules/follow-redirects/index.js +0 -701
- package/esm/node_modules/follow-redirects/index.js.map +0 -1
- package/esm/node_modules/form-data/lib/form_data.js +0 -514
- package/esm/node_modules/form-data/lib/form_data.js.map +0 -1
- package/esm/node_modules/form-data/lib/populate.js +0 -11
- package/esm/node_modules/form-data/lib/populate.js.map +0 -1
- package/esm/node_modules/get-intrinsic/node_modules/function-bind/implementation.js +0 -75
- package/esm/node_modules/get-intrinsic/node_modules/function-bind/implementation.js.map +0 -1
- package/esm/node_modules/get-intrinsic/node_modules/function-bind/index.js +0 -16
- package/esm/node_modules/get-intrinsic/node_modules/function-bind/index.js.map +0 -1
- package/esm/node_modules/has/src/index.js +0 -7
- package/esm/node_modules/has/src/index.js.map +0 -1
- package/esm/node_modules/has-flag/index.js +0 -18
- package/esm/node_modules/has-flag/index.js.map +0 -1
- package/esm/node_modules/hasown/node_modules/function-bind/implementation.js +0 -75
- package/esm/node_modules/hasown/node_modules/function-bind/implementation.js.map +0 -1
- package/esm/node_modules/hasown/node_modules/function-bind/index.js +0 -16
- package/esm/node_modules/hasown/node_modules/function-bind/index.js.map +0 -1
- package/esm/node_modules/is-boolean-object/node_modules/call-bind/callBound.js +0 -16
- package/esm/node_modules/is-boolean-object/node_modules/call-bind/callBound.js.map +0 -1
- package/esm/node_modules/is-boolean-object/node_modules/call-bind/index.js +0 -53
- package/esm/node_modules/is-boolean-object/node_modules/call-bind/index.js.map +0 -1
- package/esm/node_modules/is-boolean-object/node_modules/get-intrinsic/index.js +0 -307
- package/esm/node_modules/is-boolean-object/node_modules/get-intrinsic/index.js.map +0 -1
- package/esm/node_modules/is-boolean-object/node_modules/has-symbols/index.js +0 -22
- package/esm/node_modules/is-boolean-object/node_modules/has-symbols/index.js.map +0 -1
- package/esm/node_modules/is-boolean-object/node_modules/has-symbols/shams.js +0 -67
- package/esm/node_modules/is-boolean-object/node_modules/has-symbols/shams.js.map +0 -1
- package/esm/node_modules/is-boolean-object/node_modules/has-tostringtag/shams.js +0 -18
- package/esm/node_modules/is-boolean-object/node_modules/has-tostringtag/shams.js.map +0 -1
- package/esm/node_modules/is-number-object/node_modules/has-symbols/shams.js +0 -58
- package/esm/node_modules/is-number-object/node_modules/has-symbols/shams.js.map +0 -1
- package/esm/node_modules/is-number-object/node_modules/has-tostringtag/shams.js +0 -9
- package/esm/node_modules/is-number-object/node_modules/has-tostringtag/shams.js.map +0 -1
- package/esm/node_modules/is-string/node_modules/has-symbols/shams.js +0 -58
- package/esm/node_modules/is-string/node_modules/has-symbols/shams.js.map +0 -1
- package/esm/node_modules/is-string/node_modules/has-tostringtag/shams.js +0 -9
- package/esm/node_modules/is-string/node_modules/has-tostringtag/shams.js.map +0 -1
- package/esm/node_modules/is-symbol/node_modules/has-symbols/index.js +0 -22
- package/esm/node_modules/is-symbol/node_modules/has-symbols/index.js.map +0 -1
- package/esm/node_modules/is-symbol/node_modules/has-symbols/shams.js +0 -58
- package/esm/node_modules/is-symbol/node_modules/has-symbols/shams.js.map +0 -1
- package/esm/node_modules/mime-db/db.json.js +0 -10705
- package/esm/node_modules/mime-db/db.json.js.map +0 -1
- package/esm/node_modules/mime-db/index.js +0 -17
- package/esm/node_modules/mime-db/index.js.map +0 -1
- package/esm/node_modules/mime-types/index.js +0 -194
- package/esm/node_modules/mime-types/index.js.map +0 -1
- package/esm/node_modules/ms/index.js +0 -173
- package/esm/node_modules/ms/index.js.map +0 -1
- package/esm/node_modules/proxy-from-env/index.js +0 -112
- package/esm/node_modules/proxy-from-env/index.js.map +0 -1
- package/esm/node_modules/side-channel/node_modules/call-bind/callBound.js +0 -16
- package/esm/node_modules/side-channel/node_modules/call-bind/callBound.js.map +0 -1
- package/esm/node_modules/side-channel/node_modules/call-bind/index.js +0 -53
- package/esm/node_modules/side-channel/node_modules/call-bind/index.js.map +0 -1
- package/esm/node_modules/side-channel/node_modules/get-intrinsic/index.js +0 -307
- package/esm/node_modules/side-channel/node_modules/get-intrinsic/index.js.map +0 -1
- package/esm/node_modules/side-channel/node_modules/has-symbols/index.js +0 -22
- package/esm/node_modules/side-channel/node_modules/has-symbols/index.js.map +0 -1
- package/esm/node_modules/side-channel/node_modules/has-symbols/shams.js +0 -58
- package/esm/node_modules/side-channel/node_modules/has-symbols/shams.js.map +0 -1
- package/esm/node_modules/side-channel/node_modules/object-inspect/index.js +0 -469
- package/esm/node_modules/side-channel/node_modules/object-inspect/index.js.map +0 -1
- package/esm/node_modules/side-channel/node_modules/object-inspect/util.inspect.js +0 -6
- package/esm/node_modules/side-channel/node_modules/object-inspect/util.inspect.js.map +0 -1
- package/esm/node_modules/supports-color/index.js +0 -149
- package/esm/node_modules/supports-color/index.js.map +0 -1
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import stream from 'stream';
|
|
2
|
-
|
|
3
|
-
class ZlibHeaderTransformStream extends stream.Transform {
|
|
4
|
-
__transform(chunk, encoding, callback) {
|
|
5
|
-
this.push(chunk);
|
|
6
|
-
callback();
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
_transform(chunk, encoding, callback) {
|
|
10
|
-
if (chunk.length !== 0) {
|
|
11
|
-
this._transform = this.__transform;
|
|
12
|
-
|
|
13
|
-
// Add Default Compression headers if no zlib headers are present
|
|
14
|
-
if (chunk[0] !== 120) {
|
|
15
|
-
// Hex: 78
|
|
16
|
-
const header = Buffer.alloc(2);
|
|
17
|
-
header[0] = 120; // Hex: 78
|
|
18
|
-
header[1] = 156; // Hex: 9C
|
|
19
|
-
this.push(header, encoding);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
this.__transform(chunk, encoding, callback);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export { ZlibHeaderTransformStream as default };
|
|
28
|
-
//# sourceMappingURL=ZlibHeaderTransformStream.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ZlibHeaderTransformStream.js","sources":["../../../../../node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js"],"sourcesContent":["'use strict';\n\nimport stream from 'stream';\n\nclass ZlibHeaderTransformStream extends stream.Transform {\n __transform(chunk, encoding, callback) {\n this.push(chunk);\n callback();\n }\n\n _transform(chunk, encoding, callback) {\n if (chunk.length !== 0) {\n this._transform = this.__transform;\n\n // Add Default Compression headers if no zlib headers are present\n if (chunk[0] !== 120) {\n // Hex: 78\n const header = Buffer.alloc(2);\n header[0] = 120; // Hex: 78\n header[1] = 156; // Hex: 9C\n this.push(header, encoding);\n }\n }\n\n this.__transform(chunk, encoding, callback);\n }\n}\n\nexport default ZlibHeaderTransformStream;\n"],"names":[],"mappings":";;AAIA,MAAM,yBAAyB,SAAS,MAAM,CAAC,SAAS,CAAC;AACzD,EAAE,WAAW,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE;AACzC,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;AACpB,IAAI,QAAQ,EAAE;AACd,EAAE;;AAEF,EAAE,UAAU,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE;AACxC,IAAI,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;AAC5B,MAAM,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,WAAW;;AAExC;AACA,MAAM,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;AAC5B;AACA,QAAQ,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;AACtC,QAAQ,MAAM,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC;AACxB,QAAQ,MAAM,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC;AACxB,QAAQ,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC;AACnC,MAAM;AACN,IAAI;;AAEJ,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC;AAC/C,EAAE;AACF;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create a bound version of a function with a specified `this` context
|
|
3
|
-
*
|
|
4
|
-
* @param {Function} fn - The function to bind
|
|
5
|
-
* @param {*} thisArg - The value to be passed as the `this` parameter
|
|
6
|
-
* @returns {Function} A new function that will call the original function with the specified `this` context
|
|
7
|
-
*/
|
|
8
|
-
function bind(fn, thisArg) {
|
|
9
|
-
return function wrap() {
|
|
10
|
-
return fn.apply(thisArg, arguments);
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { bind as default };
|
|
15
|
-
//# sourceMappingURL=bind.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bind.js","sources":["../../../../../node_modules/axios/lib/helpers/bind.js"],"sourcesContent":["'use strict';\n\n/**\n * Create a bound version of a function with a specified `this` context\n *\n * @param {Function} fn - The function to bind\n * @param {*} thisArg - The value to be passed as the `this` parameter\n * @returns {Function} A new function that will call the original function with the specified `this` context\n */\nexport default function bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n"],"names":[],"mappings":"AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE;AAC1C,EAAE,OAAO,SAAS,IAAI,GAAG;AACzB,IAAI,OAAO,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,SAAS,CAAC;AACvC,EAAE,CAAC;AACH;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import utils from '../utils.js';
|
|
2
|
-
import AxiosURLSearchParams from './AxiosURLSearchParams.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their
|
|
6
|
-
* URI encoded counterparts
|
|
7
|
-
*
|
|
8
|
-
* @param {string} val The value to be encoded.
|
|
9
|
-
*
|
|
10
|
-
* @returns {string} The encoded value.
|
|
11
|
-
*/
|
|
12
|
-
function encode(val) {
|
|
13
|
-
return encodeURIComponent(val)
|
|
14
|
-
.replace(/%3A/gi, ':')
|
|
15
|
-
.replace(/%24/g, '$')
|
|
16
|
-
.replace(/%2C/gi, ',')
|
|
17
|
-
.replace(/%20/g, '+');
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Build a URL by appending params to the end
|
|
22
|
-
*
|
|
23
|
-
* @param {string} url The base of the url (e.g., http://www.google.com)
|
|
24
|
-
* @param {object} [params] The params to be appended
|
|
25
|
-
* @param {?(object|Function)} options
|
|
26
|
-
*
|
|
27
|
-
* @returns {string} The formatted url
|
|
28
|
-
*/
|
|
29
|
-
function buildURL(url, params, options) {
|
|
30
|
-
if (!params) {
|
|
31
|
-
return url;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const _encode = (options && options.encode) || encode;
|
|
35
|
-
|
|
36
|
-
const _options = utils.isFunction(options)
|
|
37
|
-
? {
|
|
38
|
-
serialize: options,
|
|
39
|
-
}
|
|
40
|
-
: options;
|
|
41
|
-
|
|
42
|
-
const serializeFn = _options && _options.serialize;
|
|
43
|
-
|
|
44
|
-
let serializedParams;
|
|
45
|
-
|
|
46
|
-
if (serializeFn) {
|
|
47
|
-
serializedParams = serializeFn(params, _options);
|
|
48
|
-
} else {
|
|
49
|
-
serializedParams = utils.isURLSearchParams(params)
|
|
50
|
-
? params.toString()
|
|
51
|
-
: new AxiosURLSearchParams(params, _options).toString(_encode);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
if (serializedParams) {
|
|
55
|
-
const hashmarkIndex = url.indexOf('#');
|
|
56
|
-
|
|
57
|
-
if (hashmarkIndex !== -1) {
|
|
58
|
-
url = url.slice(0, hashmarkIndex);
|
|
59
|
-
}
|
|
60
|
-
url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
return url;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export { buildURL as default };
|
|
67
|
-
//# sourceMappingURL=buildURL.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"buildURL.js","sources":["../../../../../node_modules/axios/lib/helpers/buildURL.js"],"sourcesContent":["'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val)\n .replace(/%3A/gi, ':')\n .replace(/%24/g, '$')\n .replace(/%2C/gi, ',')\n .replace(/%20/g, '+');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?(object|Function)} options\n *\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params, options) {\n if (!params) {\n return url;\n }\n\n const _encode = (options && options.encode) || encode;\n\n const _options = utils.isFunction(options)\n ? {\n serialize: options,\n }\n : options;\n\n const serializeFn = _options && _options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, _options);\n } else {\n serializedParams = utils.isURLSearchParams(params)\n ? params.toString()\n : new AxiosURLSearchParams(params, _options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf('#');\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n"],"names":[],"mappings":";;;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,MAAM,CAAC,GAAG,EAAE;AACrB,EAAE,OAAO,kBAAkB,CAAC,GAAG;AAC/B,KAAK,OAAO,CAAC,OAAO,EAAE,GAAG;AACzB,KAAK,OAAO,CAAC,MAAM,EAAE,GAAG;AACxB,KAAK,OAAO,CAAC,OAAO,EAAE,GAAG;AACzB,KAAK,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;AACzB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE;AACvD,EAAE,IAAI,CAAC,MAAM,EAAE;AACf,IAAI,OAAO,GAAG;AACd,EAAE;;AAEF,EAAE,MAAM,OAAO,GAAG,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,KAAK,MAAM;;AAEvD,EAAE,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAC,OAAO;AAC3C,MAAM;AACN,QAAQ,SAAS,EAAE,OAAO;AAC1B;AACA,MAAM,OAAO;;AAEb,EAAE,MAAM,WAAW,GAAG,QAAQ,IAAI,QAAQ,CAAC,SAAS;;AAEpD,EAAE,IAAI,gBAAgB;;AAEtB,EAAE,IAAI,WAAW,EAAE;AACnB,IAAI,gBAAgB,GAAG,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;AACpD,EAAE,CAAC,MAAM;AACT,IAAI,gBAAgB,GAAG,KAAK,CAAC,iBAAiB,CAAC,MAAM;AACrD,QAAQ,MAAM,CAAC,QAAQ;AACvB,QAAQ,IAAI,oBAAoB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;AACpE,EAAE;;AAEF,EAAE,IAAI,gBAAgB,EAAE;AACxB,IAAI,MAAM,aAAa,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC;;AAE1C,IAAI,IAAI,aAAa,KAAK,EAAE,EAAE;AAC9B,MAAM,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,aAAa,CAAC;AACvC,IAAI;AACJ,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,GAAG,GAAG,GAAG,IAAI,gBAAgB;AACnE,EAAE;;AAEF,EAAE,OAAO,GAAG;AACZ;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import utils from '../utils.js';
|
|
2
|
-
|
|
3
|
-
const callbackify = (fn, reducer) => {
|
|
4
|
-
return utils.isAsyncFn(fn)
|
|
5
|
-
? function (...args) {
|
|
6
|
-
const cb = args.pop();
|
|
7
|
-
fn.apply(this, args).then((value) => {
|
|
8
|
-
try {
|
|
9
|
-
reducer ? cb(null, ...reducer(value)) : cb(null, value);
|
|
10
|
-
} catch (err) {
|
|
11
|
-
cb(err);
|
|
12
|
-
}
|
|
13
|
-
}, cb);
|
|
14
|
-
}
|
|
15
|
-
: fn;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export { callbackify as default };
|
|
19
|
-
//# sourceMappingURL=callbackify.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"callbackify.js","sources":["../../../../../node_modules/axios/lib/helpers/callbackify.js"],"sourcesContent":["import utils from '../utils.js';\n\nconst callbackify = (fn, reducer) => {\n return utils.isAsyncFn(fn)\n ? function (...args) {\n const cb = args.pop();\n fn.apply(this, args).then((value) => {\n try {\n reducer ? cb(null, ...reducer(value)) : cb(null, value);\n } catch (err) {\n cb(err);\n }\n }, cb);\n }\n : fn;\n};\n\nexport default callbackify;\n"],"names":[],"mappings":";;AAEK,MAAC,WAAW,GAAG,CAAC,EAAE,EAAE,OAAO,KAAK;AACrC,EAAE,OAAO,KAAK,CAAC,SAAS,CAAC,EAAE;AAC3B,MAAM,UAAU,GAAG,IAAI,EAAE;AACzB,QAAQ,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE;AAC7B,QAAQ,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,KAAK;AAC7C,UAAU,IAAI;AACd,YAAY,OAAO,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC;AACnE,UAAU,CAAC,CAAC,OAAO,GAAG,EAAE;AACxB,YAAY,EAAE,CAAC,GAAG,CAAC;AACnB,UAAU;AACV,QAAQ,CAAC,EAAE,EAAE,CAAC;AACd,MAAM;AACN,MAAM,EAAE;AACR;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Creates a new URL by combining the specified URLs
|
|
3
|
-
*
|
|
4
|
-
* @param {string} baseURL The base URL
|
|
5
|
-
* @param {string} relativeURL The relative URL
|
|
6
|
-
*
|
|
7
|
-
* @returns {string} The combined URL
|
|
8
|
-
*/
|
|
9
|
-
function combineURLs(baseURL, relativeURL) {
|
|
10
|
-
return relativeURL
|
|
11
|
-
? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '')
|
|
12
|
-
: baseURL;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export { combineURLs as default };
|
|
16
|
-
//# sourceMappingURL=combineURLs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"combineURLs.js","sources":["../../../../../node_modules/axios/lib/helpers/combineURLs.js"],"sourcesContent":["'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n"],"names":[],"mappings":"AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,WAAW,CAAC,OAAO,EAAE,WAAW,EAAE;AAC1D,EAAE,OAAO;AACT,MAAM,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,GAAG,GAAG,GAAG,WAAW,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE;AAC1E,MAAM,OAAO;AACb;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import CanceledError from '../cancel/CanceledError.js';
|
|
2
|
-
import AxiosError from '../core/AxiosError.js';
|
|
3
|
-
import utils from '../utils.js';
|
|
4
|
-
|
|
5
|
-
const composeSignals = (signals, timeout) => {
|
|
6
|
-
const { length } = (signals = signals ? signals.filter(Boolean) : []);
|
|
7
|
-
|
|
8
|
-
if (timeout || length) {
|
|
9
|
-
let controller = new AbortController();
|
|
10
|
-
|
|
11
|
-
let aborted;
|
|
12
|
-
|
|
13
|
-
const onabort = function (reason) {
|
|
14
|
-
if (!aborted) {
|
|
15
|
-
aborted = true;
|
|
16
|
-
unsubscribe();
|
|
17
|
-
const err = reason instanceof Error ? reason : this.reason;
|
|
18
|
-
controller.abort(
|
|
19
|
-
err instanceof AxiosError
|
|
20
|
-
? err
|
|
21
|
-
: new CanceledError(err instanceof Error ? err.message : err)
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
let timer =
|
|
27
|
-
timeout &&
|
|
28
|
-
setTimeout(() => {
|
|
29
|
-
timer = null;
|
|
30
|
-
onabort(new AxiosError(`timeout of ${timeout}ms exceeded`, AxiosError.ETIMEDOUT));
|
|
31
|
-
}, timeout);
|
|
32
|
-
|
|
33
|
-
const unsubscribe = () => {
|
|
34
|
-
if (signals) {
|
|
35
|
-
timer && clearTimeout(timer);
|
|
36
|
-
timer = null;
|
|
37
|
-
signals.forEach((signal) => {
|
|
38
|
-
signal.unsubscribe
|
|
39
|
-
? signal.unsubscribe(onabort)
|
|
40
|
-
: signal.removeEventListener('abort', onabort);
|
|
41
|
-
});
|
|
42
|
-
signals = null;
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
signals.forEach((signal) => signal.addEventListener('abort', onabort));
|
|
47
|
-
|
|
48
|
-
const { signal } = controller;
|
|
49
|
-
|
|
50
|
-
signal.unsubscribe = () => utils.asap(unsubscribe);
|
|
51
|
-
|
|
52
|
-
return signal;
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export { composeSignals as default };
|
|
57
|
-
//# sourceMappingURL=composeSignals.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"composeSignals.js","sources":["../../../../../node_modules/axios/lib/helpers/composeSignals.js"],"sourcesContent":["import CanceledError from '../cancel/CanceledError.js';\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\nconst composeSignals = (signals, timeout) => {\n const { length } = (signals = signals ? signals.filter(Boolean) : []);\n\n if (timeout || length) {\n let controller = new AbortController();\n\n let aborted;\n\n const onabort = function (reason) {\n if (!aborted) {\n aborted = true;\n unsubscribe();\n const err = reason instanceof Error ? reason : this.reason;\n controller.abort(\n err instanceof AxiosError\n ? err\n : new CanceledError(err instanceof Error ? err.message : err)\n );\n }\n };\n\n let timer =\n timeout &&\n setTimeout(() => {\n timer = null;\n onabort(new AxiosError(`timeout of ${timeout}ms exceeded`, AxiosError.ETIMEDOUT));\n }, timeout);\n\n const unsubscribe = () => {\n if (signals) {\n timer && clearTimeout(timer);\n timer = null;\n signals.forEach((signal) => {\n signal.unsubscribe\n ? signal.unsubscribe(onabort)\n : signal.removeEventListener('abort', onabort);\n });\n signals = null;\n }\n };\n\n signals.forEach((signal) => signal.addEventListener('abort', onabort));\n\n const { signal } = controller;\n\n signal.unsubscribe = () => utils.asap(unsubscribe);\n\n return signal;\n }\n};\n\nexport default composeSignals;\n"],"names":[],"mappings":";;;;AAIK,MAAC,cAAc,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK;AAC7C,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;;AAEvE,EAAE,IAAI,OAAO,IAAI,MAAM,EAAE;AACzB,IAAI,IAAI,UAAU,GAAG,IAAI,eAAe,EAAE;;AAE1C,IAAI,IAAI,OAAO;;AAEf,IAAI,MAAM,OAAO,GAAG,UAAU,MAAM,EAAE;AACtC,MAAM,IAAI,CAAC,OAAO,EAAE;AACpB,QAAQ,OAAO,GAAG,IAAI;AACtB,QAAQ,WAAW,EAAE;AACrB,QAAQ,MAAM,GAAG,GAAG,MAAM,YAAY,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC,MAAM;AAClE,QAAQ,UAAU,CAAC,KAAK;AACxB,UAAU,GAAG,YAAY;AACzB,cAAc;AACd,cAAc,IAAI,aAAa,CAAC,GAAG,YAAY,KAAK,GAAG,GAAG,CAAC,OAAO,GAAG,GAAG;AACxE,SAAS;AACT,MAAM;AACN,IAAI,CAAC;;AAEL,IAAI,IAAI,KAAK;AACb,MAAM,OAAO;AACb,MAAM,UAAU,CAAC,MAAM;AACvB,QAAQ,KAAK,GAAG,IAAI;AACpB,QAAQ,OAAO,CAAC,IAAI,UAAU,CAAC,CAAC,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;AACzF,MAAM,CAAC,EAAE,OAAO,CAAC;;AAEjB,IAAI,MAAM,WAAW,GAAG,MAAM;AAC9B,MAAM,IAAI,OAAO,EAAE;AACnB,QAAQ,KAAK,IAAI,YAAY,CAAC,KAAK,CAAC;AACpC,QAAQ,KAAK,GAAG,IAAI;AACpB,QAAQ,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK;AACpC,UAAU,MAAM,CAAC;AACjB,cAAc,MAAM,CAAC,WAAW,CAAC,OAAO;AACxC,cAAc,MAAM,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC;AAC1D,QAAQ,CAAC,CAAC;AACV,QAAQ,OAAO,GAAG,IAAI;AACtB,MAAM;AACN,IAAI,CAAC;;AAEL,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;;AAE1E,IAAI,MAAM,EAAE,MAAM,EAAE,GAAG,UAAU;;AAEjC,IAAI,MAAM,CAAC,WAAW,GAAG,MAAM,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC;;AAEtD,IAAI,OAAO,MAAM;AACjB,EAAE;AACF;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import utils from '../utils.js';
|
|
2
|
-
import platform from '../platform/index.js';
|
|
3
|
-
|
|
4
|
-
var cookies = platform.hasStandardBrowserEnv
|
|
5
|
-
? // Standard browser envs support document.cookie
|
|
6
|
-
{
|
|
7
|
-
write(name, value, expires, path, domain, secure, sameSite) {
|
|
8
|
-
if (typeof document === 'undefined') return;
|
|
9
|
-
|
|
10
|
-
const cookie = [`${name}=${encodeURIComponent(value)}`];
|
|
11
|
-
|
|
12
|
-
if (utils.isNumber(expires)) {
|
|
13
|
-
cookie.push(`expires=${new Date(expires).toUTCString()}`);
|
|
14
|
-
}
|
|
15
|
-
if (utils.isString(path)) {
|
|
16
|
-
cookie.push(`path=${path}`);
|
|
17
|
-
}
|
|
18
|
-
if (utils.isString(domain)) {
|
|
19
|
-
cookie.push(`domain=${domain}`);
|
|
20
|
-
}
|
|
21
|
-
if (secure === true) {
|
|
22
|
-
cookie.push('secure');
|
|
23
|
-
}
|
|
24
|
-
if (utils.isString(sameSite)) {
|
|
25
|
-
cookie.push(`SameSite=${sameSite}`);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
document.cookie = cookie.join('; ');
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
read(name) {
|
|
32
|
-
if (typeof document === 'undefined') return null;
|
|
33
|
-
const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));
|
|
34
|
-
return match ? decodeURIComponent(match[1]) : null;
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
remove(name) {
|
|
38
|
-
this.write(name, '', Date.now() - 86400000, '/');
|
|
39
|
-
},
|
|
40
|
-
}
|
|
41
|
-
: // Non-standard browser env (web workers, react-native) lack needed support.
|
|
42
|
-
{
|
|
43
|
-
write() {},
|
|
44
|
-
read() {
|
|
45
|
-
return null;
|
|
46
|
-
},
|
|
47
|
-
remove() {},
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export { cookies as default };
|
|
51
|
-
//# sourceMappingURL=cookies.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cookies.js","sources":["../../../../../node_modules/axios/lib/helpers/cookies.js"],"sourcesContent":["import utils from '../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv\n ? // Standard browser envs support document.cookie\n {\n write(name, value, expires, path, domain, secure, sameSite) {\n if (typeof document === 'undefined') return;\n\n const cookie = [`${name}=${encodeURIComponent(value)}`];\n\n if (utils.isNumber(expires)) {\n cookie.push(`expires=${new Date(expires).toUTCString()}`);\n }\n if (utils.isString(path)) {\n cookie.push(`path=${path}`);\n }\n if (utils.isString(domain)) {\n cookie.push(`domain=${domain}`);\n }\n if (secure === true) {\n cookie.push('secure');\n }\n if (utils.isString(sameSite)) {\n cookie.push(`SameSite=${sameSite}`);\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read(name) {\n if (typeof document === 'undefined') return null;\n const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));\n return match ? decodeURIComponent(match[1]) : null;\n },\n\n remove(name) {\n this.write(name, '', Date.now() - 86400000, '/');\n },\n }\n : // Non-standard browser env (web workers, react-native) lack needed support.\n {\n write() {},\n read() {\n return null;\n },\n remove() {},\n };\n"],"names":[],"mappings":";;;AAGA,cAAe,QAAQ,CAAC;AACxB;AACA,IAAI;AACJ,MAAM,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE;AAClE,QAAQ,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;;AAE7C,QAAQ,MAAM,MAAM,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;;AAE/D,QAAQ,IAAI,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;AACrC,UAAU,MAAM,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;AACnE,QAAQ;AACR,QAAQ,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;AAClC,UAAU,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;AACrC,QAAQ;AAC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|
|
|
1
|
-
/**
|
|
2
|
-
* Estimate decoded byte length of a data:// URL *without* allocating large buffers.
|
|
3
|
-
* - For base64: compute exact decoded size using length and padding;
|
|
4
|
-
* handle %XX at the character-count level (no string allocation).
|
|
5
|
-
* - For non-base64: use UTF-8 byteLength of the encoded body as a safe upper bound.
|
|
6
|
-
*
|
|
7
|
-
* @param {string} url
|
|
8
|
-
* @returns {number}
|
|
9
|
-
*/
|
|
10
|
-
function estimateDataURLDecodedBytes(url) {
|
|
11
|
-
if (!url || typeof url !== 'string') return 0;
|
|
12
|
-
if (!url.startsWith('data:')) return 0;
|
|
13
|
-
|
|
14
|
-
const comma = url.indexOf(',');
|
|
15
|
-
if (comma < 0) return 0;
|
|
16
|
-
|
|
17
|
-
const meta = url.slice(5, comma);
|
|
18
|
-
const body = url.slice(comma + 1);
|
|
19
|
-
const isBase64 = /;base64/i.test(meta);
|
|
20
|
-
|
|
21
|
-
if (isBase64) {
|
|
22
|
-
let effectiveLen = body.length;
|
|
23
|
-
const len = body.length; // cache length
|
|
24
|
-
|
|
25
|
-
for (let i = 0; i < len; i++) {
|
|
26
|
-
if (body.charCodeAt(i) === 37 /* '%' */ && i + 2 < len) {
|
|
27
|
-
const a = body.charCodeAt(i + 1);
|
|
28
|
-
const b = body.charCodeAt(i + 2);
|
|
29
|
-
const isHex =
|
|
30
|
-
((a >= 48 && a <= 57) || (a >= 65 && a <= 70) || (a >= 97 && a <= 102)) &&
|
|
31
|
-
((b >= 48 && b <= 57) || (b >= 65 && b <= 70) || (b >= 97 && b <= 102));
|
|
32
|
-
|
|
33
|
-
if (isHex) {
|
|
34
|
-
effectiveLen -= 2;
|
|
35
|
-
i += 2;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
let pad = 0;
|
|
41
|
-
let idx = len - 1;
|
|
42
|
-
|
|
43
|
-
const tailIsPct3D = (j) =>
|
|
44
|
-
j >= 2 &&
|
|
45
|
-
body.charCodeAt(j - 2) === 37 && // '%'
|
|
46
|
-
body.charCodeAt(j - 1) === 51 && // '3'
|
|
47
|
-
(body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100); // 'D' or 'd'
|
|
48
|
-
|
|
49
|
-
if (idx >= 0) {
|
|
50
|
-
if (body.charCodeAt(idx) === 61 /* '=' */) {
|
|
51
|
-
pad++;
|
|
52
|
-
idx--;
|
|
53
|
-
} else if (tailIsPct3D(idx)) {
|
|
54
|
-
pad++;
|
|
55
|
-
idx -= 3;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
if (pad === 1 && idx >= 0) {
|
|
60
|
-
if (body.charCodeAt(idx) === 61 /* '=' */) {
|
|
61
|
-
pad++;
|
|
62
|
-
} else if (tailIsPct3D(idx)) {
|
|
63
|
-
pad++;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
const groups = Math.floor(effectiveLen / 4);
|
|
68
|
-
const bytes = groups * 3 - (pad || 0);
|
|
69
|
-
return bytes > 0 ? bytes : 0;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
return Buffer.byteLength(body, 'utf8');
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export { estimateDataURLDecodedBytes as default };
|
|
76
|
-
//# sourceMappingURL=estimateDataURLDecodedBytes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"estimateDataURLDecodedBytes.js","sources":["../../../../../node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js"],"sourcesContent":["/**\n * Estimate decoded byte length of a data:// URL *without* allocating large buffers.\n * - For base64: compute exact decoded size using length and padding;\n * handle %XX at the character-count level (no string allocation).\n * - For non-base64: use UTF-8 byteLength of the encoded body as a safe upper bound.\n *\n * @param {string} url\n * @returns {number}\n */\nexport default function estimateDataURLDecodedBytes(url) {\n if (!url || typeof url !== 'string') return 0;\n if (!url.startsWith('data:')) return 0;\n\n const comma = url.indexOf(',');\n if (comma < 0) return 0;\n\n const meta = url.slice(5, comma);\n const body = url.slice(comma + 1);\n const isBase64 = /;base64/i.test(meta);\n\n if (isBase64) {\n let effectiveLen = body.length;\n const len = body.length; // cache length\n\n for (let i = 0; i < len; i++) {\n if (body.charCodeAt(i) === 37 /* '%' */ && i + 2 < len) {\n const a = body.charCodeAt(i + 1);\n const b = body.charCodeAt(i + 2);\n const isHex =\n ((a >= 48 && a <= 57) || (a >= 65 && a <= 70) || (a >= 97 && a <= 102)) &&\n ((b >= 48 && b <= 57) || (b >= 65 && b <= 70) || (b >= 97 && b <= 102));\n\n if (isHex) {\n effectiveLen -= 2;\n i += 2;\n }\n }\n }\n\n let pad = 0;\n let idx = len - 1;\n\n const tailIsPct3D = (j) =>\n j >= 2 &&\n body.charCodeAt(j - 2) === 37 && // '%'\n body.charCodeAt(j - 1) === 51 && // '3'\n (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100); // 'D' or 'd'\n\n if (idx >= 0) {\n if (body.charCodeAt(idx) === 61 /* '=' */) {\n pad++;\n idx--;\n } else if (tailIsPct3D(idx)) {\n pad++;\n idx -= 3;\n }\n }\n\n if (pad === 1 && idx >= 0) {\n if (body.charCodeAt(idx) === 61 /* '=' */) {\n pad++;\n } else if (tailIsPct3D(idx)) {\n pad++;\n }\n }\n\n const groups = Math.floor(effectiveLen / 4);\n const bytes = groups * 3 - (pad || 0);\n return bytes > 0 ? bytes : 0;\n }\n\n return Buffer.byteLength(body, 'utf8');\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,2BAA2B,CAAC,GAAG,EAAE;AACzD,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,OAAO,CAAC;AAC/C,EAAE,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;;AAExC,EAAE,MAAM,KAAK,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC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O,KAAK,GAAG,CAAC,GAAG,KAAK,GAAG,CAAC;AAChC,EAAE;;AAEF,EAAE,OAAO,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC;AACxC;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import utils from '../utils.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
|
|
5
|
-
*
|
|
6
|
-
* @param {string} name - The name of the property to get.
|
|
7
|
-
*
|
|
8
|
-
* @returns An array of strings.
|
|
9
|
-
*/
|
|
10
|
-
function parsePropPath(name) {
|
|
11
|
-
// foo[x][y][z]
|
|
12
|
-
// foo.x.y.z
|
|
13
|
-
// foo-x-y-z
|
|
14
|
-
// foo x y z
|
|
15
|
-
return utils.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
16
|
-
return match[0] === '[]' ? '' : match[1] || match[0];
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Convert an array to an object.
|
|
22
|
-
*
|
|
23
|
-
* @param {Array<any>} arr - The array to convert to an object.
|
|
24
|
-
*
|
|
25
|
-
* @returns An object with the same keys and values as the array.
|
|
26
|
-
*/
|
|
27
|
-
function arrayToObject(arr) {
|
|
28
|
-
const obj = {};
|
|
29
|
-
const keys = Object.keys(arr);
|
|
30
|
-
let i;
|
|
31
|
-
const len = keys.length;
|
|
32
|
-
let key;
|
|
33
|
-
for (i = 0; i < len; i++) {
|
|
34
|
-
key = keys[i];
|
|
35
|
-
obj[key] = arr[key];
|
|
36
|
-
}
|
|
37
|
-
return obj;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* It takes a FormData object and returns a JavaScript object
|
|
42
|
-
*
|
|
43
|
-
* @param {string} formData The FormData object to convert to JSON.
|
|
44
|
-
*
|
|
45
|
-
* @returns {Object<string, any> | null} The converted object.
|
|
46
|
-
*/
|
|
47
|
-
function formDataToJSON(formData) {
|
|
48
|
-
function buildPath(path, value, target, index) {
|
|
49
|
-
let name = path[index++];
|
|
50
|
-
|
|
51
|
-
if (name === '__proto__') return true;
|
|
52
|
-
|
|
53
|
-
const isNumericKey = Number.isFinite(+name);
|
|
54
|
-
const isLast = index >= path.length;
|
|
55
|
-
name = !name && utils.isArray(target) ? target.length : name;
|
|
56
|
-
|
|
57
|
-
if (isLast) {
|
|
58
|
-
if (utils.hasOwnProp(target, name)) {
|
|
59
|
-
target[name] = [target[name], value];
|
|
60
|
-
} else {
|
|
61
|
-
target[name] = value;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
return !isNumericKey;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
if (!target[name] || !utils.isObject(target[name])) {
|
|
68
|
-
target[name] = [];
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
const result = buildPath(path, value, target[name], index);
|
|
72
|
-
|
|
73
|
-
if (result && utils.isArray(target[name])) {
|
|
74
|
-
target[name] = arrayToObject(target[name]);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
return !isNumericKey;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {
|
|
81
|
-
const obj = {};
|
|
82
|
-
|
|
83
|
-
utils.forEachEntry(formData, (name, value) => {
|
|
84
|
-
buildPath(parsePropPath(name), value, obj, 0);
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
return obj;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
return null;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export { formDataToJSON as default };
|
|
94
|
-
//# sourceMappingURL=formDataToJSON.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formDataToJSON.js","sources":["../../../../../node_modules/axios/lib/helpers/formDataToJSON.js"],"sourcesContent":["'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map((match) => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array<any>} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object<string, any> | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n\n if (name === '__proto__') return true;\n\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n const obj = {};\n\n utils.forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\nexport default formDataToJSON;\n"],"names":[],"mappings":";;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,aAAa,CAAC,IAAI,EAAE;AAC7B;AACA;AACA;AACA;AACA,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C;AACnD,IAAI,CAAC,CAAC;;AAEN,IAAI,OAAO,GAAG;AACd,EAAE;;AAEF,EAAE,OAAO,IAAI;AACb;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import require$$1 from 'util';
|
|
2
|
-
import { Readable } from 'stream';
|
|
3
|
-
import utils from '../utils.js';
|
|
4
|
-
import readBlob from './readBlob.js';
|
|
5
|
-
import platform from '../platform/index.js';
|
|
6
|
-
|
|
7
|
-
const BOUNDARY_ALPHABET = platform.ALPHABET.ALPHA_DIGIT + '-_';
|
|
8
|
-
|
|
9
|
-
const textEncoder = typeof TextEncoder === 'function' ? new TextEncoder() : new require$$1.TextEncoder();
|
|
10
|
-
|
|
11
|
-
const CRLF = '\r\n';
|
|
12
|
-
const CRLF_BYTES = textEncoder.encode(CRLF);
|
|
13
|
-
const CRLF_BYTES_COUNT = 2;
|
|
14
|
-
|
|
15
|
-
class FormDataPart {
|
|
16
|
-
constructor(name, value) {
|
|
17
|
-
const { escapeName } = this.constructor;
|
|
18
|
-
const isStringValue = utils.isString(value);
|
|
19
|
-
|
|
20
|
-
let headers = `Content-Disposition: form-data; name="${escapeName(name)}"${
|
|
21
|
-
!isStringValue && value.name ? `; filename="${escapeName(value.name)}"` : ''
|
|
22
|
-
}${CRLF}`;
|
|
23
|
-
|
|
24
|
-
if (isStringValue) {
|
|
25
|
-
value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));
|
|
26
|
-
} else {
|
|
27
|
-
headers += `Content-Type: ${value.type || 'application/octet-stream'}${CRLF}`;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
this.headers = textEncoder.encode(headers + CRLF);
|
|
31
|
-
|
|
32
|
-
this.contentLength = isStringValue ? value.byteLength : value.size;
|
|
33
|
-
|
|
34
|
-
this.size = this.headers.byteLength + this.contentLength + CRLF_BYTES_COUNT;
|
|
35
|
-
|
|
36
|
-
this.name = name;
|
|
37
|
-
this.value = value;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
async *encode() {
|
|
41
|
-
yield this.headers;
|
|
42
|
-
|
|
43
|
-
const { value } = this;
|
|
44
|
-
|
|
45
|
-
if (utils.isTypedArray(value)) {
|
|
46
|
-
yield value;
|
|
47
|
-
} else {
|
|
48
|
-
yield* readBlob(value);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
yield CRLF_BYTES;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
static escapeName(name) {
|
|
55
|
-
return String(name).replace(
|
|
56
|
-
/[\r\n"]/g,
|
|
57
|
-
(match) =>
|
|
58
|
-
({
|
|
59
|
-
'\r': '%0D',
|
|
60
|
-
'\n': '%0A',
|
|
61
|
-
'"': '%22',
|
|
62
|
-
})[match]
|
|
63
|
-
);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
const formDataToStream = (form, headersHandler, options) => {
|
|
68
|
-
const {
|
|
69
|
-
tag = 'form-data-boundary',
|
|
70
|
-
size = 25,
|
|
71
|
-
boundary = tag + '-' + platform.generateString(size, BOUNDARY_ALPHABET),
|
|
72
|
-
} = options || {};
|
|
73
|
-
|
|
74
|
-
if (!utils.isFormData(form)) {
|
|
75
|
-
throw TypeError('FormData instance required');
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
if (boundary.length < 1 || boundary.length > 70) {
|
|
79
|
-
throw Error('boundary must be 10-70 characters long');
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
const boundaryBytes = textEncoder.encode('--' + boundary + CRLF);
|
|
83
|
-
const footerBytes = textEncoder.encode('--' + boundary + '--' + CRLF);
|
|
84
|
-
let contentLength = footerBytes.byteLength;
|
|
85
|
-
|
|
86
|
-
const parts = Array.from(form.entries()).map(([name, value]) => {
|
|
87
|
-
const part = new FormDataPart(name, value);
|
|
88
|
-
contentLength += part.size;
|
|
89
|
-
return part;
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
contentLength += boundaryBytes.byteLength * parts.length;
|
|
93
|
-
|
|
94
|
-
contentLength = utils.toFiniteNumber(contentLength);
|
|
95
|
-
|
|
96
|
-
const computedHeaders = {
|
|
97
|
-
'Content-Type': `multipart/form-data; boundary=${boundary}`,
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
if (Number.isFinite(contentLength)) {
|
|
101
|
-
computedHeaders['Content-Length'] = contentLength;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
headersHandler && headersHandler(computedHeaders);
|
|
105
|
-
|
|
106
|
-
return Readable.from(
|
|
107
|
-
(async function* () {
|
|
108
|
-
for (const part of parts) {
|
|
109
|
-
yield boundaryBytes;
|
|
110
|
-
yield* part.encode();
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
yield footerBytes;
|
|
114
|
-
})()
|
|
115
|
-
);
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
export { formDataToStream as default };
|
|
119
|
-
//# sourceMappingURL=formDataToStream.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formDataToStream.js","sources":["../../../../../node_modules/axios/lib/helpers/formDataToStream.js"],"sourcesContent":["import util from 'util';\nimport { Readable } from 'stream';\nimport utils from '../utils.js';\nimport readBlob from './readBlob.js';\nimport platform from '../platform/index.js';\n\nconst BOUNDARY_ALPHABET = platform.ALPHABET.ALPHA_DIGIT + '-_';\n\nconst textEncoder = typeof TextEncoder === 'function' ? new TextEncoder() : new util.TextEncoder();\n\nconst CRLF = '\\r\\n';\nconst CRLF_BYTES = textEncoder.encode(CRLF);\nconst CRLF_BYTES_COUNT = 2;\n\nclass FormDataPart {\n constructor(name, value) {\n const { escapeName } = this.constructor;\n const isStringValue = utils.isString(value);\n\n let headers = `Content-Disposition: form-data; name=\"${escapeName(name)}\"${\n !isStringValue && value.name ? `; filename=\"${escapeName(value.name)}\"` : ''\n }${CRLF}`;\n\n if (isStringValue) {\n value = textEncoder.encode(String(value).replace(/\\r?\\n|\\r\\n?/g, CRLF));\n } else {\n headers += `Content-Type: ${value.type || 'application/octet-stream'}${CRLF}`;\n }\n\n this.headers = textEncoder.encode(headers + CRLF);\n\n this.contentLength = isStringValue ? value.byteLength : value.size;\n\n this.size = this.headers.byteLength + this.contentLength + CRLF_BYTES_COUNT;\n\n this.name = name;\n this.value = value;\n }\n\n async *encode() {\n yield this.headers;\n\n const { value } = this;\n\n if (utils.isTypedArray(value)) {\n yield value;\n } else {\n yield* readBlob(value);\n }\n\n yield CRLF_BYTES;\n }\n\n static escapeName(name) {\n return String(name).replace(\n /[\\r\\n\"]/g,\n (match) =>\n ({\n '\\r': '%0D',\n '\\n': '%0A',\n '\"': '%22',\n })[match]\n );\n }\n}\n\nconst formDataToStream = (form, headersHandler, options) => {\n const {\n tag = 'form-data-boundary',\n size = 25,\n boundary = tag + '-' + platform.generateString(size, BOUNDARY_ALPHABET),\n } = options || {};\n\n if (!utils.isFormData(form)) {\n throw TypeError('FormData instance required');\n }\n\n if (boundary.length < 1 || boundary.length > 70) {\n throw Error('boundary must be 10-70 characters long');\n }\n\n const boundaryBytes = textEncoder.encode('--' + boundary + CRLF);\n const footerBytes = textEncoder.encode('--' + boundary + '--' + CRLF);\n let contentLength = footerBytes.byteLength;\n\n const parts = Array.from(form.entries()).map(([name, value]) => {\n const part = new FormDataPart(name, value);\n contentLength += part.size;\n return part;\n });\n\n contentLength += boundaryBytes.byteLength * parts.length;\n\n contentLength = utils.toFiniteNumber(contentLength);\n\n const computedHeaders = {\n 'Content-Type': `multipart/form-data; boundary=${boundary}`,\n };\n\n if (Number.isFinite(contentLength)) {\n computedHeaders['Content-Length'] = contentLength;\n }\n\n headersHandler && headersHandler(computedHeaders);\n\n return Readable.from(\n (async function* () {\n for (const part of parts) {\n yield boundaryBytes;\n yield* part.encode();\n }\n\n yield footerBytes;\n })()\n );\n};\n\nexport default formDataToStream;\n"],"names":["util"],"mappings":";;;;;;AAMA,MAAM,iBAAiB,GAAG,QAAQ,CAAC,QAAQ,CAAC,WAAW,GAAG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