@recode-js/next-toolkit 0.0.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/README.md +27 -0
- package/dist/NextToolkitProvider.d.ts +8 -0
- package/dist/NextToolkitProvider.d.ts.map +1 -0
- package/dist/NextToolkitProvider.js +12 -0
- package/dist/NextToolkitProvider.js.map +1 -0
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/_virtual/browser.js +4 -0
- package/dist/_virtual/browser.js.map +1 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/index.js.map +1 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/_virtual/index2.js.map +1 -0
- package/dist/_virtual/index3.js +4 -0
- package/dist/_virtual/index3.js.map +1 -0
- package/dist/_virtual/node.js +4 -0
- package/dist/_virtual/node.js.map +1 -0
- package/dist/_virtual/use-sync-external-store-with-selector.development.js +4 -0
- package/dist/_virtual/use-sync-external-store-with-selector.development.js.map +1 -0
- package/dist/_virtual/use-sync-external-store-with-selector.production.js +4 -0
- package/dist/_virtual/use-sync-external-store-with-selector.production.js.map +1 -0
- package/dist/_virtual/with-selector.js +4 -0
- package/dist/_virtual/with-selector.js.map +1 -0
- package/dist/axios/api.d.ts +16 -0
- package/dist/axios/api.d.ts.map +1 -0
- package/dist/axios/api.js +11 -0
- package/dist/axios/api.js.map +1 -0
- package/dist/components/auth/Form.d.ts +10 -0
- package/dist/components/auth/Form.d.ts.map +1 -0
- package/dist/components/auth/Form.js +49 -0
- package/dist/components/auth/Form.js.map +1 -0
- package/dist/components/auth/auth.d.ts +8 -0
- package/dist/components/auth/auth.d.ts.map +1 -0
- package/dist/components/auth/auth.js +18 -0
- package/dist/components/auth/auth.js.map +1 -0
- package/dist/components/auth/formActions.d.ts +17 -0
- package/dist/components/auth/formActions.d.ts.map +1 -0
- package/dist/components/auth/formActions.js +58 -0
- package/dist/components/auth/formActions.js.map +1 -0
- package/dist/components/auth/login/LoginPage.d.ts +7 -0
- package/dist/components/auth/login/LoginPage.d.ts.map +1 -0
- package/dist/components/auth/login/LoginPage.js +18 -0
- package/dist/components/auth/login/LoginPage.js.map +1 -0
- package/dist/components/auth/login/login.d.ts +1 -0
- package/dist/components/auth/login/login.d.ts.map +1 -0
- package/dist/components/auth/register/RegisterPage.d.ts +7 -0
- package/dist/components/auth/register/RegisterPage.d.ts.map +1 -0
- package/dist/components/auth/register/RegisterPage.js +18 -0
- package/dist/components/auth/register/RegisterPage.js.map +1 -0
- package/dist/components/auth/register/register.d.ts +1 -0
- package/dist/components/auth/register/register.d.ts.map +1 -0
- package/dist/components/auth/styles/form.module.css.js +4 -0
- package/dist/components/auth/styles/form.module.css.js.map +1 -0
- package/dist/components/common/Button.d.ts +25 -0
- package/dist/components/common/Button.d.ts.map +1 -0
- package/dist/components/common/Button.js +25 -0
- package/dist/components/common/Button.js.map +1 -0
- package/dist/components/common/styles/button.module.css.js +4 -0
- package/dist/components/common/styles/button.module.css.js.map +1 -0
- package/dist/components/navigation/NavigatorProvider.d.ts +10 -0
- package/dist/components/navigation/NavigatorProvider.d.ts.map +1 -0
- package/dist/components/navigation/NavigatorProvider.js +15 -0
- package/dist/components/navigation/NavigatorProvider.js.map +1 -0
- package/dist/components/navigation/bottom-tab/BottomTab.d.ts +12 -0
- package/dist/components/navigation/bottom-tab/BottomTab.d.ts.map +1 -0
- package/dist/components/navigation/bottom-tab/BottomTab.js +45 -0
- package/dist/components/navigation/bottom-tab/BottomTab.js.map +1 -0
- package/dist/components/navigation/bottom-tab/bottom-tab.module.css.js +4 -0
- package/dist/components/navigation/bottom-tab/bottom-tab.module.css.js.map +1 -0
- package/dist/components/navigation/drawer/Drawer.d.ts +21 -0
- package/dist/components/navigation/drawer/Drawer.d.ts.map +1 -0
- package/dist/components/navigation/drawer/Drawer.js +91 -0
- package/dist/components/navigation/drawer/Drawer.js.map +1 -0
- package/dist/components/navigation/drawer/drawer.module.css.js +4 -0
- package/dist/components/navigation/drawer/drawer.module.css.js.map +1 -0
- package/dist/components/navigation/header/Header.d.ts +7 -0
- package/dist/components/navigation/header/Header.d.ts.map +1 -0
- package/dist/components/navigation/header/Header.js +32 -0
- package/dist/components/navigation/header/Header.js.map +1 -0
- package/dist/components/navigation/header/header.module.css.js +4 -0
- package/dist/components/navigation/header/header.module.css.js.map +1 -0
- package/dist/components/navigation/navigatior-provider.module.css.js +4 -0
- package/dist/components/navigation/navigatior-provider.module.css.js.map +1 -0
- package/dist/components/toast/Toast.d.ts +9 -0
- package/dist/components/toast/Toast.d.ts.map +1 -0
- package/dist/components/toast/Toast.js +92 -0
- package/dist/components/toast/Toast.js.map +1 -0
- package/dist/components/toast/ToastExamples.d.ts +2 -0
- package/dist/components/toast/ToastExamples.d.ts.map +1 -0
- package/dist/components/toast/ToastExamples.js +74 -0
- package/dist/components/toast/ToastExamples.js.map +1 -0
- package/dist/components/toast/toast.module.css.js +4 -0
- package/dist/components/toast/toast.module.css.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +969 -0
- package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js.map +1 -0
- package/dist/node_modules/axios/index.js +26 -0
- package/dist/node_modules/axios/index.js.map +1 -0
- package/dist/node_modules/axios/lib/adapters/adapters.js +129 -0
- package/dist/node_modules/axios/lib/adapters/adapters.js.map +1 -0
- package/dist/node_modules/axios/lib/adapters/fetch.js +289 -0
- package/dist/node_modules/axios/lib/adapters/fetch.js.map +1 -0
- package/dist/node_modules/axios/lib/adapters/http.js +895 -0
- package/dist/node_modules/axios/lib/adapters/http.js.map +1 -0
- package/dist/node_modules/axios/lib/adapters/xhr.js +203 -0
- package/dist/node_modules/axios/lib/adapters/xhr.js.map +1 -0
- package/dist/node_modules/axios/lib/axios.js +88 -0
- package/dist/node_modules/axios/lib/axios.js.map +1 -0
- package/dist/node_modules/axios/lib/cancel/CancelToken.js +135 -0
- package/dist/node_modules/axios/lib/cancel/CancelToken.js.map +1 -0
- package/dist/node_modules/axios/lib/cancel/CanceledError.js +25 -0
- package/dist/node_modules/axios/lib/cancel/CanceledError.js.map +1 -0
- package/dist/node_modules/axios/lib/cancel/isCancel.js +7 -0
- package/dist/node_modules/axios/lib/cancel/isCancel.js.map +1 -0
- package/dist/node_modules/axios/lib/core/Axios.js +238 -0
- package/dist/node_modules/axios/lib/core/Axios.js.map +1 -0
- package/dist/node_modules/axios/lib/core/AxiosError.js +110 -0
- package/dist/node_modules/axios/lib/core/AxiosError.js.map +1 -0
- package/dist/node_modules/axios/lib/core/AxiosHeaders.js +314 -0
- package/dist/node_modules/axios/lib/core/AxiosHeaders.js.map +1 -0
- package/dist/node_modules/axios/lib/core/InterceptorManager.js +71 -0
- package/dist/node_modules/axios/lib/core/InterceptorManager.js.map +1 -0
- package/dist/node_modules/axios/lib/core/buildFullPath.js +24 -0
- package/dist/node_modules/axios/lib/core/buildFullPath.js.map +1 -0
- package/dist/node_modules/axios/lib/core/dispatchRequest.js +83 -0
- package/dist/node_modules/axios/lib/core/dispatchRequest.js.map +1 -0
- package/dist/node_modules/axios/lib/core/mergeConfig.js +108 -0
- package/dist/node_modules/axios/lib/core/mergeConfig.js.map +1 -0
- package/dist/node_modules/axios/lib/core/settle.js +29 -0
- package/dist/node_modules/axios/lib/core/settle.js.map +1 -0
- package/dist/node_modules/axios/lib/core/transformData.js +30 -0
- package/dist/node_modules/axios/lib/core/transformData.js.map +1 -0
- package/dist/node_modules/axios/lib/defaults/index.js +161 -0
- package/dist/node_modules/axios/lib/defaults/index.js.map +1 -0
- package/dist/node_modules/axios/lib/defaults/transitional.js +9 -0
- package/dist/node_modules/axios/lib/defaults/transitional.js.map +1 -0
- package/dist/node_modules/axios/lib/env/data.js +4 -0
- package/dist/node_modules/axios/lib/env/data.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/AxiosTransformStream.js +143 -0
- package/dist/node_modules/axios/lib/helpers/AxiosTransformStream.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +58 -0
- package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js +78 -0
- package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +28 -0
- package/dist/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/bind.js +16 -0
- package/dist/node_modules/axios/lib/helpers/bind.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/buildURL.js +69 -0
- package/dist/node_modules/axios/lib/helpers/buildURL.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/callbackify.js +17 -0
- package/dist/node_modules/axios/lib/helpers/callbackify.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/combineURLs.js +17 -0
- package/dist/node_modules/axios/lib/helpers/combineURLs.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/composeSignals.js +49 -0
- package/dist/node_modules/axios/lib/helpers/composeSignals.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/cookies.js +55 -0
- package/dist/node_modules/axios/lib/helpers/cookies.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +76 -0
- package/dist/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +95 -0
- package/dist/node_modules/axios/lib/helpers/formDataToJSON.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/formDataToStream.js +113 -0
- package/dist/node_modules/axios/lib/helpers/formDataToStream.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/fromDataURI.js +55 -0
- package/dist/node_modules/axios/lib/helpers/fromDataURI.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js +17 -0
- package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/isAxiosError.js +16 -0
- package/dist/node_modules/axios/lib/helpers/isAxiosError.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js +17 -0
- package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/parseHeaders.js +57 -0
- package/dist/node_modules/axios/lib/helpers/parseHeaders.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/parseProtocol.js +8 -0
- package/dist/node_modules/axios/lib/helpers/parseProtocol.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/progressEventReducer.js +47 -0
- package/dist/node_modules/axios/lib/helpers/progressEventReducer.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/readBlob.js +16 -0
- package/dist/node_modules/axios/lib/helpers/readBlob.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/resolveConfig.js +63 -0
- package/dist/node_modules/axios/lib/helpers/resolveConfig.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/speedometer.js +55 -0
- package/dist/node_modules/axios/lib/helpers/speedometer.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/spread.js +30 -0
- package/dist/node_modules/axios/lib/helpers/spread.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/throttle.js +45 -0
- package/dist/node_modules/axios/lib/helpers/throttle.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/toFormData.js +222 -0
- package/dist/node_modules/axios/lib/helpers/toFormData.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js +21 -0
- package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/trackStream.js +89 -0
- package/dist/node_modules/axios/lib/helpers/trackStream.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/validator.js +101 -0
- package/dist/node_modules/axios/lib/helpers/validator.js.map +1 -0
- package/dist/node_modules/axios/lib/platform/common/utils.js +46 -0
- package/dist/node_modules/axios/lib/platform/common/utils.js.map +1 -0
- package/dist/node_modules/axios/lib/platform/index.js +10 -0
- package/dist/node_modules/axios/lib/platform/index.js.map +1 -0
- package/dist/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
- package/dist/node_modules/axios/lib/platform/node/classes/FormData.js.map +1 -0
- package/dist/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +7 -0
- package/dist/node_modules/axios/lib/platform/node/classes/URLSearchParams.js.map +1 -0
- package/dist/node_modules/axios/lib/platform/node/index.js +41 -0
- package/dist/node_modules/axios/lib/platform/node/index.js.map +1 -0
- package/dist/node_modules/axios/lib/utils.js +784 -0
- package/dist/node_modules/axios/lib/utils.js.map +1 -0
- package/dist/node_modules/debug/src/browser.js +287 -0
- package/dist/node_modules/debug/src/browser.js.map +1 -0
- package/dist/node_modules/debug/src/common.js +304 -0
- package/dist/node_modules/debug/src/common.js.map +1 -0
- package/dist/node_modules/debug/src/index.js +24 -0
- package/dist/node_modules/debug/src/index.js.map +1 -0
- package/dist/node_modules/debug/src/node.js +280 -0
- package/dist/node_modules/debug/src/node.js.map +1 -0
- package/dist/node_modules/follow-redirects/debug.js +20 -0
- package/dist/node_modules/follow-redirects/debug.js.map +1 -0
- package/dist/node_modules/follow-redirects/index.js +701 -0
- package/dist/node_modules/follow-redirects/index.js.map +1 -0
- package/dist/node_modules/immer/dist/immer.js +860 -0
- package/dist/node_modules/immer/dist/immer.js.map +1 -0
- package/dist/node_modules/proxy-from-env/index.js +112 -0
- package/dist/node_modules/proxy-from-env/index.js.map +1 -0
- package/dist/node_modules/react-redux/dist/react-redux.js +348 -0
- package/dist/node_modules/react-redux/dist/react-redux.js.map +1 -0
- package/dist/node_modules/redux/dist/redux.js +362 -0
- package/dist/node_modules/redux/dist/redux.js.map +1 -0
- package/dist/node_modules/redux-thunk/dist/redux-thunk.js +15 -0
- package/dist/node_modules/redux-thunk/dist/redux-thunk.js.map +1 -0
- package/dist/node_modules/reselect/dist/reselect.js +322 -0
- package/dist/node_modules/reselect/dist/reselect.js.map +1 -0
- package/dist/node_modules/server-only/index.js +5 -0
- package/dist/node_modules/server-only/index.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +108 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +96 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/with-selector.js +14 -0
- package/dist/node_modules/use-sync-external-store/with-selector.js.map +1 -0
- package/dist/store/StoreProvider.d.ts +7 -0
- package/dist/store/StoreProvider.d.ts.map +1 -0
- package/dist/store/StoreProvider.js +11 -0
- package/dist/store/StoreProvider.js.map +1 -0
- package/dist/store/features/drawer/drawer.slice.d.ts +12 -0
- package/dist/store/features/drawer/drawer.slice.d.ts.map +1 -0
- package/dist/store/features/drawer/drawer.slice.js +26 -0
- package/dist/store/features/drawer/drawer.slice.js.map +1 -0
- package/dist/store/features/toast/toastSlice.d.ts +16 -0
- package/dist/store/features/toast/toastSlice.d.ts.map +1 -0
- package/dist/store/features/toast/toastSlice.js +26 -0
- package/dist/store/features/toast/toastSlice.js.map +1 -0
- package/dist/store/hooks.d.ts +10 -0
- package/dist/store/hooks.d.ts.map +1 -0
- package/dist/store/hooks.js +8 -0
- package/dist/store/hooks.js.map +1 -0
- package/dist/store/store.d.ts +16 -0
- package/dist/store/store.d.ts.map +1 -0
- package/dist/store/store.js +13 -0
- package/dist/store/store.js.map +1 -0
- package/dist/styles.css +2 -0
- package/dist/styles.css.map +1 -0
- package/package.json +57 -0
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import platform from '../platform/index.js';
|
|
2
|
+
import utils from '../utils.js';
|
|
3
|
+
import AxiosError from '../core/AxiosError.js';
|
|
4
|
+
import composeSignals from '../helpers/composeSignals.js';
|
|
5
|
+
import { trackStream } from '../helpers/trackStream.js';
|
|
6
|
+
import AxiosHeaders from '../core/AxiosHeaders.js';
|
|
7
|
+
import { progressEventDecorator, progressEventReducer, asyncDecorator } from '../helpers/progressEventReducer.js';
|
|
8
|
+
import resolveConfig from '../helpers/resolveConfig.js';
|
|
9
|
+
import settle from '../core/settle.js';
|
|
10
|
+
|
|
11
|
+
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
12
|
+
|
|
13
|
+
const {isFunction} = utils;
|
|
14
|
+
|
|
15
|
+
const globalFetchAPI = (({Request, Response}) => ({
|
|
16
|
+
Request, Response
|
|
17
|
+
}))(utils.global);
|
|
18
|
+
|
|
19
|
+
const {
|
|
20
|
+
ReadableStream, TextEncoder
|
|
21
|
+
} = utils.global;
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
const test = (fn, ...args) => {
|
|
25
|
+
try {
|
|
26
|
+
return !!fn(...args);
|
|
27
|
+
} catch (e) {
|
|
28
|
+
return false
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const factory = (env) => {
|
|
33
|
+
env = utils.merge.call({
|
|
34
|
+
skipUndefined: true
|
|
35
|
+
}, globalFetchAPI, env);
|
|
36
|
+
|
|
37
|
+
const {fetch: envFetch, Request, Response} = env;
|
|
38
|
+
const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';
|
|
39
|
+
const isRequestSupported = isFunction(Request);
|
|
40
|
+
const isResponseSupported = isFunction(Response);
|
|
41
|
+
|
|
42
|
+
if (!isFetchSupported) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream);
|
|
47
|
+
|
|
48
|
+
const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
|
|
49
|
+
((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
|
|
50
|
+
async (str) => new Uint8Array(await new Request(str).arrayBuffer())
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
|
|
54
|
+
let duplexAccessed = false;
|
|
55
|
+
|
|
56
|
+
const hasContentType = new Request(platform.origin, {
|
|
57
|
+
body: new ReadableStream(),
|
|
58
|
+
method: 'POST',
|
|
59
|
+
get duplex() {
|
|
60
|
+
duplexAccessed = true;
|
|
61
|
+
return 'half';
|
|
62
|
+
},
|
|
63
|
+
}).headers.has('Content-Type');
|
|
64
|
+
|
|
65
|
+
return duplexAccessed && !hasContentType;
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
const supportsResponseStream = isResponseSupported && isReadableStreamSupported &&
|
|
69
|
+
test(() => utils.isReadableStream(new Response('').body));
|
|
70
|
+
|
|
71
|
+
const resolvers = {
|
|
72
|
+
stream: supportsResponseStream && ((res) => res.body)
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
isFetchSupported && ((() => {
|
|
76
|
+
['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
|
|
77
|
+
!resolvers[type] && (resolvers[type] = (res, config) => {
|
|
78
|
+
let method = res && res[type];
|
|
79
|
+
|
|
80
|
+
if (method) {
|
|
81
|
+
return method.call(res);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
})());
|
|
88
|
+
|
|
89
|
+
const getBodyLength = async (body) => {
|
|
90
|
+
if (body == null) {
|
|
91
|
+
return 0;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (utils.isBlob(body)) {
|
|
95
|
+
return body.size;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (utils.isSpecCompliantForm(body)) {
|
|
99
|
+
const _request = new Request(platform.origin, {
|
|
100
|
+
method: 'POST',
|
|
101
|
+
body,
|
|
102
|
+
});
|
|
103
|
+
return (await _request.arrayBuffer()).byteLength;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
if (utils.isArrayBufferView(body) || utils.isArrayBuffer(body)) {
|
|
107
|
+
return body.byteLength;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
if (utils.isURLSearchParams(body)) {
|
|
111
|
+
body = body + '';
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (utils.isString(body)) {
|
|
115
|
+
return (await encodeText(body)).byteLength;
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
const resolveBodyLength = async (headers, body) => {
|
|
120
|
+
const length = utils.toFiniteNumber(headers.getContentLength());
|
|
121
|
+
|
|
122
|
+
return length == null ? getBodyLength(body) : length;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
return async (config) => {
|
|
126
|
+
let {
|
|
127
|
+
url,
|
|
128
|
+
method,
|
|
129
|
+
data,
|
|
130
|
+
signal,
|
|
131
|
+
cancelToken,
|
|
132
|
+
timeout,
|
|
133
|
+
onDownloadProgress,
|
|
134
|
+
onUploadProgress,
|
|
135
|
+
responseType,
|
|
136
|
+
headers,
|
|
137
|
+
withCredentials = 'same-origin',
|
|
138
|
+
fetchOptions
|
|
139
|
+
} = resolveConfig(config);
|
|
140
|
+
|
|
141
|
+
let _fetch = envFetch || fetch;
|
|
142
|
+
|
|
143
|
+
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
144
|
+
|
|
145
|
+
let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
146
|
+
|
|
147
|
+
let request = null;
|
|
148
|
+
|
|
149
|
+
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
150
|
+
composedSignal.unsubscribe();
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
let requestContentLength;
|
|
154
|
+
|
|
155
|
+
try {
|
|
156
|
+
if (
|
|
157
|
+
onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&
|
|
158
|
+
(requestContentLength = await resolveBodyLength(headers, data)) !== 0
|
|
159
|
+
) {
|
|
160
|
+
let _request = new Request(url, {
|
|
161
|
+
method: 'POST',
|
|
162
|
+
body: data,
|
|
163
|
+
duplex: "half"
|
|
164
|
+
});
|
|
165
|
+
|
|
166
|
+
let contentTypeHeader;
|
|
167
|
+
|
|
168
|
+
if (utils.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
|
|
169
|
+
headers.setContentType(contentTypeHeader);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
if (_request.body) {
|
|
173
|
+
const [onProgress, flush] = progressEventDecorator(
|
|
174
|
+
requestContentLength,
|
|
175
|
+
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
176
|
+
);
|
|
177
|
+
|
|
178
|
+
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if (!utils.isString(withCredentials)) {
|
|
183
|
+
withCredentials = withCredentials ? 'include' : 'omit';
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// Cloudflare Workers throws when credentials are defined
|
|
187
|
+
// see https://github.com/cloudflare/workerd/issues/902
|
|
188
|
+
const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
|
|
189
|
+
|
|
190
|
+
const resolvedOptions = {
|
|
191
|
+
...fetchOptions,
|
|
192
|
+
signal: composedSignal,
|
|
193
|
+
method: method.toUpperCase(),
|
|
194
|
+
headers: headers.normalize().toJSON(),
|
|
195
|
+
body: data,
|
|
196
|
+
duplex: "half",
|
|
197
|
+
credentials: isCredentialsSupported ? withCredentials : undefined
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
201
|
+
|
|
202
|
+
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
|
|
203
|
+
|
|
204
|
+
const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
|
|
205
|
+
|
|
206
|
+
if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {
|
|
207
|
+
const options = {};
|
|
208
|
+
|
|
209
|
+
['status', 'statusText', 'headers'].forEach(prop => {
|
|
210
|
+
options[prop] = response[prop];
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
const responseContentLength = utils.toFiniteNumber(response.headers.get('content-length'));
|
|
214
|
+
|
|
215
|
+
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
216
|
+
responseContentLength,
|
|
217
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
218
|
+
) || [];
|
|
219
|
+
|
|
220
|
+
response = new Response(
|
|
221
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
222
|
+
flush && flush();
|
|
223
|
+
unsubscribe && unsubscribe();
|
|
224
|
+
}),
|
|
225
|
+
options
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
responseType = responseType || 'text';
|
|
230
|
+
|
|
231
|
+
let responseData = await resolvers[utils.findKey(resolvers, responseType) || 'text'](response, config);
|
|
232
|
+
|
|
233
|
+
!isStreamResponse && unsubscribe && unsubscribe();
|
|
234
|
+
|
|
235
|
+
return await new Promise((resolve, reject) => {
|
|
236
|
+
settle(resolve, reject, {
|
|
237
|
+
data: responseData,
|
|
238
|
+
headers: AxiosHeaders.from(response.headers),
|
|
239
|
+
status: response.status,
|
|
240
|
+
statusText: response.statusText,
|
|
241
|
+
config,
|
|
242
|
+
request
|
|
243
|
+
});
|
|
244
|
+
})
|
|
245
|
+
} catch (err) {
|
|
246
|
+
unsubscribe && unsubscribe();
|
|
247
|
+
|
|
248
|
+
if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
|
|
249
|
+
throw Object.assign(
|
|
250
|
+
new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),
|
|
251
|
+
{
|
|
252
|
+
cause: err.cause || err
|
|
253
|
+
}
|
|
254
|
+
)
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
throw AxiosError.from(err, err && err.code, config, request);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
const seedCache = new Map();
|
|
263
|
+
|
|
264
|
+
const getFetch = (config) => {
|
|
265
|
+
let env = (config && config.env) || {};
|
|
266
|
+
const {fetch, Request, Response} = env;
|
|
267
|
+
const seeds = [
|
|
268
|
+
Request, Response, fetch
|
|
269
|
+
];
|
|
270
|
+
|
|
271
|
+
let len = seeds.length, i = len,
|
|
272
|
+
seed, target, map = seedCache;
|
|
273
|
+
|
|
274
|
+
while (i--) {
|
|
275
|
+
seed = seeds[i];
|
|
276
|
+
target = map.get(seed);
|
|
277
|
+
|
|
278
|
+
target === undefined && map.set(seed, target = (i ? new Map() : factory(env)));
|
|
279
|
+
|
|
280
|
+
map = target;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
return target;
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
getFetch();
|
|
287
|
+
|
|
288
|
+
export { getFetch };
|
|
289
|
+
//# sourceMappingURL=fetch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch.js","sources":["../../../../../node_modules/axios/lib/adapters/fetch.js"],"sourcesContent":["import platform from \"../platform/index.js\";\nimport utils from \"../utils.js\";\nimport AxiosError from \"../core/AxiosError.js\";\nimport composeSignals from \"../helpers/composeSignals.js\";\nimport {trackStream} from \"../helpers/trackStream.js\";\nimport AxiosHeaders from \"../core/AxiosHeaders.js\";\nimport {progressEventReducer, progressEventDecorator, asyncDecorator} from \"../helpers/progressEventReducer.js\";\nimport resolveConfig from \"../helpers/resolveConfig.js\";\nimport settle from \"../core/settle.js\";\n\nconst DEFAULT_CHUNK_SIZE = 64 * 1024;\n\nconst {isFunction} = utils;\n\nconst globalFetchAPI = (({Request, Response}) => ({\n Request, Response\n}))(utils.global);\n\nconst {\n ReadableStream, TextEncoder\n} = utils.global;\n\n\nconst test = (fn, ...args) => {\n try {\n return !!fn(...args);\n } catch (e) {\n return false\n }\n}\n\nconst factory = (env) => {\n env = utils.merge.call({\n skipUndefined: true\n }, globalFetchAPI, env);\n\n const {fetch: envFetch, Request, Response} = env;\n const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';\n const isRequestSupported = isFunction(Request);\n const isResponseSupported = isFunction(Response);\n\n if (!isFetchSupported) {\n return false;\n }\n\n const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream);\n\n const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?\n ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :\n async (str) => new Uint8Array(await new Request(str).arrayBuffer())\n );\n\n const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {\n let duplexAccessed = false;\n\n const hasContentType = new Request(platform.origin, {\n body: new ReadableStream(),\n method: 'POST',\n get duplex() {\n duplexAccessed = true;\n return 'half';\n },\n }).headers.has('Content-Type');\n\n return duplexAccessed && !hasContentType;\n });\n\n const supportsResponseStream = isResponseSupported && isReadableStreamSupported &&\n test(() => utils.isReadableStream(new Response('').body));\n\n const resolvers = {\n stream: supportsResponseStream && ((res) => res.body)\n };\n\n isFetchSupported && ((() => {\n ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {\n !resolvers[type] && (resolvers[type] = (res, config) => {\n let method = res && res[type];\n\n if (method) {\n return method.call(res);\n }\n\n throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);\n })\n });\n })());\n\n const getBodyLength = async (body) => {\n if (body == null) {\n return 0;\n }\n\n if (utils.isBlob(body)) {\n return body.size;\n }\n\n if (utils.isSpecCompliantForm(body)) {\n const _request = new Request(platform.origin, {\n method: 'POST',\n body,\n });\n return (await _request.arrayBuffer()).byteLength;\n }\n\n if (utils.isArrayBufferView(body) || utils.isArrayBuffer(body)) {\n return body.byteLength;\n }\n\n if (utils.isURLSearchParams(body)) {\n body = body + '';\n }\n\n if (utils.isString(body)) {\n return (await encodeText(body)).byteLength;\n }\n }\n\n const resolveBodyLength = async (headers, body) => {\n const length = utils.toFiniteNumber(headers.getContentLength());\n\n return length == null ? getBodyLength(body) : length;\n }\n\n return async (config) => {\n let {\n url,\n method,\n data,\n signal,\n cancelToken,\n timeout,\n onDownloadProgress,\n onUploadProgress,\n responseType,\n headers,\n withCredentials = 'same-origin',\n fetchOptions\n } = resolveConfig(config);\n\n let _fetch = envFetch || fetch;\n\n responseType = responseType ? (responseType + '').toLowerCase() : 'text';\n\n let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);\n\n let request = null;\n\n const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {\n composedSignal.unsubscribe();\n });\n\n let requestContentLength;\n\n try {\n if (\n onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&\n (requestContentLength = await resolveBodyLength(headers, data)) !== 0\n ) {\n let _request = new Request(url, {\n method: 'POST',\n body: data,\n duplex: \"half\"\n });\n\n let contentTypeHeader;\n\n if (utils.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {\n headers.setContentType(contentTypeHeader)\n }\n\n if (_request.body) {\n const [onProgress, flush] = progressEventDecorator(\n requestContentLength,\n progressEventReducer(asyncDecorator(onUploadProgress))\n );\n\n data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);\n }\n }\n\n if (!utils.isString(withCredentials)) {\n withCredentials = withCredentials ? 'include' : 'omit';\n }\n\n // Cloudflare Workers throws when credentials are defined\n // see https://github.com/cloudflare/workerd/issues/902\n const isCredentialsSupported = isRequestSupported && \"credentials\" in Request.prototype;\n\n const resolvedOptions = {\n ...fetchOptions,\n signal: composedSignal,\n method: method.toUpperCase(),\n headers: headers.normalize().toJSON(),\n body: data,\n duplex: \"half\",\n credentials: isCredentialsSupported ? withCredentials : undefined\n };\n\n request = isRequestSupported && new Request(url, resolvedOptions);\n\n let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));\n\n const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');\n\n if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {\n const options = {};\n\n ['status', 'statusText', 'headers'].forEach(prop => {\n options[prop] = response[prop];\n });\n\n const responseContentLength = utils.toFiniteNumber(response.headers.get('content-length'));\n\n const [onProgress, flush] = onDownloadProgress && progressEventDecorator(\n responseContentLength,\n progressEventReducer(asyncDecorator(onDownloadProgress), true)\n ) || [];\n\n response = new Response(\n trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {\n flush && flush();\n unsubscribe && unsubscribe();\n }),\n options\n );\n }\n\n responseType = responseType || 'text';\n\n let responseData = await resolvers[utils.findKey(resolvers, responseType) || 'text'](response, config);\n\n !isStreamResponse && unsubscribe && unsubscribe();\n\n return await new Promise((resolve, reject) => {\n settle(resolve, reject, {\n data: responseData,\n headers: AxiosHeaders.from(response.headers),\n status: response.status,\n statusText: response.statusText,\n config,\n request\n })\n })\n } catch (err) {\n unsubscribe && unsubscribe();\n\n if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {\n throw Object.assign(\n new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),\n {\n cause: err.cause || err\n }\n )\n }\n\n throw AxiosError.from(err, err && err.code, config, request);\n }\n }\n}\n\nconst seedCache = new Map();\n\nexport const getFetch = (config) => {\n let env = (config && config.env) || {};\n const {fetch, Request, Response} = env;\n const seeds = [\n Request, Response, fetch\n ];\n\n let len = seeds.length, i = len,\n seed, target, map = seedCache;\n\n while (i--) {\n seed = seeds[i];\n target = map.get(seed);\n\n target === undefined && map.set(seed, target = (i ? new Map() : factory(env)))\n\n map = target;\n }\n\n return target;\n};\n\nconst adapter = getFetch();\n\nexport default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