@acrool/react-fetcher 0.0.2-alpha.5 → 0.0.2-alpha.6

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.
@@ -42,7 +42,7 @@ const ht = 400, Gt = (e) => "File" in window && e instanceof File, Zt = (e) => "
42
42
  const b = JSON.stringify({
43
43
  query: t,
44
44
  variables: p.variables
45
- }), T = p.map.reduce((R, m, S) => (R[S] = [m], R), {}), h = [
45
+ }), T = p.map.reduce((R, m, g) => (R[g] = [m], R), {}), h = [
46
46
  { name: "operations", value: b },
47
47
  { name: "map", value: JSON.stringify(T) },
48
48
  ...p.values.map((R, m) => ({ name: m, value: R }))
@@ -194,7 +194,7 @@ function tr() {
194
194
  switch (f) {
195
195
  case R:
196
196
  return "Fragment";
197
- case S:
197
+ case g:
198
198
  return "Profiler";
199
199
  case m:
200
200
  return "StrictMode";
@@ -211,7 +211,7 @@ function tr() {
211
211
  ), f.$$typeof) {
212
212
  case h:
213
213
  return "Portal";
214
- case g:
214
+ case S:
215
215
  return (f.displayName || "Context") + ".Provider";
216
216
  case E:
217
217
  return (f._context.displayName || "Context") + ".Consumer";
@@ -292,7 +292,7 @@ function tr() {
292
292
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
293
293
  )), f = this.props.ref, f !== void 0 ? f : null;
294
294
  }
295
- function l(f, w, _, P, M, B, Se, Oe) {
295
+ function l(f, w, _, P, M, B, ge, Oe) {
296
296
  return _ = B.ref, f = {
297
297
  $$typeof: T,
298
298
  type: f,
@@ -316,7 +316,7 @@ function tr() {
316
316
  configurable: !1,
317
317
  enumerable: !1,
318
318
  writable: !0,
319
- value: Se
319
+ value: ge
320
320
  }), Object.defineProperty(f, "_debugTask", {
321
321
  configurable: !1,
322
322
  enumerable: !1,
@@ -324,7 +324,7 @@ function tr() {
324
324
  value: Oe
325
325
  }), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
326
326
  }
327
- function u(f, w, _, P, M, B, Se, Oe) {
327
+ function u(f, w, _, P, M, B, ge, Oe) {
328
328
  var k = w.children;
329
329
  if (k !== void 0)
330
330
  if (P)
@@ -370,14 +370,14 @@ React keys must be passed directly to JSX without using spread:
370
370
  M,
371
371
  s(),
372
372
  _,
373
- Se,
373
+ ge,
374
374
  Oe
375
375
  );
376
376
  }
377
377
  function p(f) {
378
378
  typeof f == "object" && f !== null && f.$$typeof === T && f._store && (f._store.validated = 1);
379
379
  }
380
- var b = Vt, T = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), g = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), U = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), I = Symbol.for("react.activity"), X = Symbol.for("react.client.reference"), Te = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ie = Object.prototype.hasOwnProperty, Ht = Array.isArray, ge = console.createTask ? console.createTask : function() {
380
+ var b = Vt, T = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), S = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), U = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), I = Symbol.for("react.activity"), X = Symbol.for("react.client.reference"), Te = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ie = Object.prototype.hasOwnProperty, Ht = Array.isArray, Se = console.createTask ? console.createTask : function() {
381
381
  return null;
382
382
  };
383
383
  b = {
@@ -388,7 +388,7 @@ React keys must be passed directly to JSX without using spread:
388
388
  var $e, Me = {}, He = b["react-stack-bottom-frame"].bind(
389
389
  b,
390
390
  o
391
- )(), ze = ge(n(o)), Je = {};
391
+ )(), ze = Se(n(o)), Je = {};
392
392
  Z.Fragment = R, Z.jsx = function(f, w, _, P, M) {
393
393
  var B = 1e4 > Te.recentlyCreatedOwnerStacks++;
394
394
  return u(
@@ -399,7 +399,7 @@ React keys must be passed directly to JSX without using spread:
399
399
  P,
400
400
  M,
401
401
  B ? Error("react-stack-top-frame") : He,
402
- B ? ge(n(f)) : ze
402
+ B ? Se(n(f)) : ze
403
403
  );
404
404
  }, Z.jsxs = function(f, w, _, P, M) {
405
405
  var B = 1e4 > Te.recentlyCreatedOwnerStacks++;
@@ -411,7 +411,7 @@ React keys must be passed directly to JSX without using spread:
411
411
  P,
412
412
  M,
413
413
  B ? Error("react-stack-top-frame") : He,
414
- B ? ge(n(f)) : ze
414
+ B ? Se(n(f)) : ze
415
415
  );
416
416
  };
417
417
  }()), Z;
@@ -652,44 +652,44 @@ const fr = dt(null), Yn = ({
652
652
  forceLogout: p
653
653
  } = cr();
654
654
  Xt(() => {
655
- const E = t.interceptors.request.use(h), g = t.interceptors.response.use(R, S);
655
+ const E = t.interceptors.request.use(h), S = t.interceptors.response.use(R, g);
656
656
  return () => {
657
- t.interceptors.request.eject(E), t.interceptors.response.eject(g);
657
+ t.interceptors.request.eject(E), t.interceptors.response.eject(S);
658
658
  };
659
659
  }, [d, u, l, p]);
660
660
  const b = (E) => {
661
661
  c && v.warning("[FetcherProvider] runPendingRequest", { isSuccess: E }), Q = !1;
662
- for (const g of _e)
663
- g(E);
662
+ for (const S of _e)
663
+ S(E);
664
664
  _e = [];
665
- }, T = (E, g) => (O) => {
665
+ }, T = (E, S) => (O) => {
666
666
  c && v.info("[FetcherProvider] Request add pending queue", { originConfig: O }), _e.push((A) => {
667
- A ? (O.pendingRequest = !0, E(t(O))) : g(new te({
667
+ A ? (O.pendingRequest = !0, E(t(O))) : S(new te({
668
668
  message: m(401),
669
669
  code: "UNAUTHORIZED",
670
670
  path: "AxiosClientProvider.pushPendingRequestQueues"
671
671
  }));
672
672
  });
673
- }, h = (E) => new Promise((g, O) => {
673
+ }, h = (E) => new Promise((S, O) => {
674
674
  var C, I;
675
675
  E.headers["Accept-Language"] = r;
676
676
  const A = (C = d()) == null ? void 0 : C.accessToken;
677
677
  if (!((I = E.fetchOptions) == null ? void 0 : I.forceGuest) && A && (E.headers.Authorization = [o, A].filter((X) => X).join(" ")), !(E && s ? s(E) : !1) && Q) {
678
- T(g, O)(E), O(new lr({
678
+ T(S, O)(E), O(new lr({
679
679
  message: "Token refreshing, so request save queues not send",
680
680
  code: "REFRESH_TOKEN"
681
681
  }));
682
682
  return;
683
683
  }
684
- g(E);
684
+ S(E);
685
685
  }), R = (E) => (c && v.info("[FetcherProvider] interceptorsResponseSuccess", { response: E }), E), m = (E) => {
686
- const g = (i == null ? void 0 : i[r]) || Ze[r] || Ze["en-US"];
687
- return (g == null ? void 0 : g[E]) || `Error: ${E}`;
688
- }, S = (E) => {
689
- const g = E.response, O = E.config, A = E.status, N = ur(g);
686
+ const S = (i == null ? void 0 : i[r]) || Ze[r] || Ze["en-US"];
687
+ return (S == null ? void 0 : S[E]) || `Error: ${E}`;
688
+ }, g = (E) => {
689
+ const S = E.response, O = E.config, A = E.status, N = ur(S);
690
690
  c && v.warning("[FetcherProvider] interceptorsResponseError", { status: A, responseFirstError: N }), n && n(N);
691
691
  const U = O && s ? s(O) : !1;
692
- if (g && O && (A === 401 || N.code === "UNAUTHENTICATED")) {
692
+ if (S && O && (A === 401 || N.code === "UNAUTHENTICATED")) {
693
693
  const C = d();
694
694
  return c && v.warning("[FetcherProvider] enter refresh token flow", { refreshToken: C == null ? void 0 : C.refreshToken }), Ue(C == null ? void 0 : C.refreshToken) || U || O.pendingRequest ? (Q = !1, c && v.warning("[FetcherProvider] no refreshToken/refreshAPI|pendingRequest fail, force logout"), p(), Promise.reject(new te(N))) : (Q || (Q = !0, c && v.warning("[FetcherProvider] refreshTokens"), u().then(() => {
695
695
  c && v.info("[FetcherProvider] refreshTokens success"), b(!0);
@@ -731,11 +731,11 @@ const mr = Re("string"), j = Re("function"), Tt = Re("number"), Ee = (e) => e !=
731
731
  return !1;
732
732
  const t = De(e);
733
733
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(yt in e) && !(he in e);
734
- }, Er = D("Date"), br = D("File"), yr = D("Blob"), wr = D("FileList"), Tr = (e) => Ee(e) && j(e.pipe), gr = (e) => {
734
+ }, Er = D("Date"), br = D("File"), yr = D("Blob"), wr = D("FileList"), Tr = (e) => Ee(e) && j(e.pipe), Sr = (e) => {
735
735
  let t;
736
736
  return e && (typeof FormData == "function" && e instanceof FormData || j(e.append) && ((t = me(e)) === "formdata" || // detect form-data instance
737
737
  t === "object" && j(e.toString) && e.toString() === "[object FormData]"));
738
- }, Sr = D("URLSearchParams"), [Or, Ar, _r, xr] = ["ReadableStream", "Request", "Response", "Headers"].map(D), Nr = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
738
+ }, gr = D("URLSearchParams"), [Or, Ar, _r, xr] = ["ReadableStream", "Request", "Response", "Headers"].map(D), Nr = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
739
739
  function ie(e, t, { allOwnKeys: r = !1 } = {}) {
740
740
  if (e === null || typeof e > "u")
741
741
  return;
@@ -750,7 +750,7 @@ function ie(e, t, { allOwnKeys: r = !1 } = {}) {
750
750
  c = o[n], t.call(null, e[c], c, e);
751
751
  }
752
752
  }
753
- function gt(e, t) {
753
+ function St(e, t) {
754
754
  t = t.toLowerCase();
755
755
  const r = Object.keys(e);
756
756
  let n = r.length, s;
@@ -759,10 +759,10 @@ function gt(e, t) {
759
759
  return s;
760
760
  return null;
761
761
  }
762
- const H = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, St = (e) => !re(e) && e !== H;
762
+ const H = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, gt = (e) => !re(e) && e !== H;
763
763
  function Pe() {
764
- const { caseless: e } = St(this) && this || {}, t = {}, r = (n, s) => {
765
- const o = e && gt(t, s) || s;
764
+ const { caseless: e } = gt(this) && this || {}, t = {}, r = (n, s) => {
765
+ const o = e && St(t, s) || s;
766
766
  le(t[o]) && le(n) ? t[o] = Pe(t[o], n) : le(n) ? t[o] = Pe({}, n) : Y(n) ? t[o] = n.slice() : t[o] = n;
767
767
  };
768
768
  for (let n = 0, s = arguments.length; n < s; n++)
@@ -877,7 +877,7 @@ const Wr = (e) => {
877
877
  isArray: Y,
878
878
  isArrayBuffer: wt,
879
879
  isBuffer: pr,
880
- isFormData: gr,
880
+ isFormData: Sr,
881
881
  isArrayBufferView: hr,
882
882
  isString: mr,
883
883
  isNumber: Tt,
@@ -895,7 +895,7 @@ const Wr = (e) => {
895
895
  isRegExp: Ir,
896
896
  isFunction: j,
897
897
  isStream: Tr,
898
- isURLSearchParams: Sr,
898
+ isURLSearchParams: gr,
899
899
  isTypedArray: Lr,
900
900
  isFileList: wr,
901
901
  forEach: ie,
@@ -921,9 +921,9 @@ const Wr = (e) => {
921
921
  toCamelCase: qr,
922
922
  noop: Hr,
923
923
  toFiniteNumber: zr,
924
- findKey: gt,
924
+ findKey: St,
925
925
  global: H,
926
- isContextDefined: St,
926
+ isContextDefined: gt,
927
927
  isSpecCompliantForm: Jr,
928
928
  toJSONObject: Wr,
929
929
  isAsyncFn: Vr,
@@ -1022,16 +1022,16 @@ function be(e, t, r) {
1022
1022
  return a.isArrayBuffer(h) || a.isTypedArray(h) ? d && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
1023
1023
  }
1024
1024
  function u(h, R, m) {
1025
- let S = h;
1025
+ let g = h;
1026
1026
  if (h && !m && typeof h == "object") {
1027
1027
  if (a.endsWith(R, "{}"))
1028
1028
  R = n ? R : R.slice(0, -2), h = JSON.stringify(h);
1029
- else if (a.isArray(h) && Zr(h) || (a.isFileList(h) || a.endsWith(R, "[]")) && (S = a.toArray(h)))
1030
- return R = Nt(R), S.forEach(function(g, O) {
1031
- !(a.isUndefined(g) || g === null) && t.append(
1029
+ else if (a.isArray(h) && Zr(h) || (a.isFileList(h) || a.endsWith(R, "[]")) && (g = a.toArray(h)))
1030
+ return R = Nt(R), g.forEach(function(S, O) {
1031
+ !(a.isUndefined(S) || S === null) && t.append(
1032
1032
  // eslint-disable-next-line no-nested-ternary
1033
1033
  i === !0 ? et([R], O, o) : i === null ? R : R + "[]",
1034
- l(g)
1034
+ l(S)
1035
1035
  );
1036
1036
  }), !1;
1037
1037
  }
@@ -1046,14 +1046,14 @@ function be(e, t, r) {
1046
1046
  if (!a.isUndefined(h)) {
1047
1047
  if (p.indexOf(h) !== -1)
1048
1048
  throw Error("Circular reference detected in " + R.join("."));
1049
- p.push(h), a.forEach(h, function(S, E) {
1050
- (!(a.isUndefined(S) || S === null) && s.call(
1049
+ p.push(h), a.forEach(h, function(g, E) {
1050
+ (!(a.isUndefined(g) || g === null) && s.call(
1051
1051
  t,
1052
- S,
1052
+ g,
1053
1053
  a.isString(E) ? E.trim() : E,
1054
1054
  R,
1055
1055
  b
1056
- )) === !0 && T(S, R ? R.concat(E) : [E]);
1056
+ )) === !0 && T(g, R ? R.concat(E) : [E]);
1057
1057
  }), p.pop();
1058
1058
  }
1059
1059
  }
@@ -1546,7 +1546,7 @@ function Tn(e, t) {
1546
1546
  return T ? Math.round(b * 1e3 / T) : void 0;
1547
1547
  };
1548
1548
  }
1549
- function gn(e, t) {
1549
+ function Sn(e, t) {
1550
1550
  let r = 0, n = 1e3 / t, s, o;
1551
1551
  const i = (l, u = Date.now()) => {
1552
1552
  r = u, s = null, o && (clearTimeout(o), o = null), e.apply(null, l);
@@ -1561,7 +1561,7 @@ function gn(e, t) {
1561
1561
  const de = (e, t, r = 3) => {
1562
1562
  let n = 0;
1563
1563
  const s = Tn(50, 250);
1564
- return gn((o) => {
1564
+ return Sn((o) => {
1565
1565
  const i = o.loaded, c = o.lengthComputable ? o.total : void 0, d = i - n, l = s(d), u = i <= c;
1566
1566
  n = i;
1567
1567
  const p = {
@@ -1584,7 +1584,7 @@ const de = (e, t, r = 3) => {
1584
1584
  total: e,
1585
1585
  loaded: n
1586
1586
  }), t[1]];
1587
- }, ot = (e) => (...t) => a.asap(() => e(...t)), Sn = F.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, F.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
1587
+ }, ot = (e) => (...t) => a.asap(() => e(...t)), gn = F.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, F.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
1588
1588
  new URL(F.origin),
1589
1589
  F.navigator && /(msie|trident)/i.test(F.navigator.userAgent)
1590
1590
  ) : () => !0, On = F.hasStandardBrowserEnv ? (
@@ -1705,7 +1705,7 @@ const Ut = (e) => {
1705
1705
  i.setContentType([l || "multipart/form-data", ...u].join("; "));
1706
1706
  }
1707
1707
  }
1708
- if (F.hasStandardBrowserEnv && (n && a.isFunction(n) && (n = n(t)), n || n !== !1 && Sn(t.url))) {
1708
+ if (F.hasStandardBrowserEnv && (n && a.isFunction(n) && (n = n(t)), n || n !== !1 && gn(t.url))) {
1709
1709
  const l = s && o && On.read(o);
1710
1710
  l && i.set(s, l);
1711
1711
  }
@@ -1721,16 +1721,16 @@ const Ut = (e) => {
1721
1721
  }
1722
1722
  let m = new XMLHttpRequest();
1723
1723
  m.open(s.method.toUpperCase(), s.url, !0), m.timeout = s.timeout;
1724
- function S() {
1724
+ function g() {
1725
1725
  if (!m)
1726
1726
  return;
1727
- const g = L.from(
1727
+ const S = L.from(
1728
1728
  "getAllResponseHeaders" in m && m.getAllResponseHeaders()
1729
1729
  ), A = {
1730
1730
  data: !c || c === "text" || c === "json" ? m.responseText : m.response,
1731
1731
  status: m.status,
1732
1732
  statusText: m.statusText,
1733
- headers: g,
1733
+ headers: S,
1734
1734
  config: e,
1735
1735
  request: m
1736
1736
  };
@@ -1740,8 +1740,8 @@ const Ut = (e) => {
1740
1740
  n(U), R();
1741
1741
  }, A), m = null;
1742
1742
  }
1743
- "onloadend" in m ? m.onloadend = S : m.onreadystatechange = function() {
1744
- !m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(S);
1743
+ "onloadend" in m ? m.onloadend = g : m.onreadystatechange = function() {
1744
+ !m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(g);
1745
1745
  }, m.onabort = function() {
1746
1746
  m && (n(new y("Request aborted", y.ECONNABORTED, e, m)), m = null);
1747
1747
  }, m.onerror = function() {
@@ -1757,8 +1757,8 @@ const Ut = (e) => {
1757
1757
  )), m = null;
1758
1758
  }, o === void 0 && i.setContentType(null), "setRequestHeader" in m && a.forEach(i.toJSON(), function(O, A) {
1759
1759
  m.setRequestHeader(A, O);
1760
- }), a.isUndefined(s.withCredentials) || (m.withCredentials = !!s.withCredentials), c && c !== "json" && (m.responseType = s.responseType), l && ([b, h] = de(l, !0), m.addEventListener("progress", b)), d && m.upload && ([p, T] = de(d), m.upload.addEventListener("progress", p), m.upload.addEventListener("loadend", T)), (s.cancelToken || s.signal) && (u = (g) => {
1761
- m && (n(!g || g.type ? new K(null, e, m) : g), m.abort(), m = null);
1760
+ }), a.isUndefined(s.withCredentials) || (m.withCredentials = !!s.withCredentials), c && c !== "json" && (m.responseType = s.responseType), l && ([b, h] = de(l, !0), m.addEventListener("progress", b)), d && m.upload && ([p, T] = de(d), m.upload.addEventListener("progress", p), m.upload.addEventListener("loadend", T)), (s.cancelToken || s.signal) && (u = (S) => {
1761
+ m && (n(!S || S.type ? new K(null, e, m) : S), m.abort(), m = null);
1762
1762
  }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
1763
1763
  const E = wn(s.url);
1764
1764
  if (E && F.protocols.indexOf(E) === -1) {
@@ -1927,7 +1927,7 @@ const Ln = async (e) => {
1927
1927
  }
1928
1928
  }
1929
1929
  a.isString(p) || (p = p ? "include" : "omit");
1930
- const S = "credentials" in Request.prototype;
1930
+ const g = "credentials" in Request.prototype;
1931
1931
  h = new Request(t, {
1932
1932
  ...b,
1933
1933
  signal: T,
@@ -1935,11 +1935,11 @@ const Ln = async (e) => {
1935
1935
  headers: u.normalize().toJSON(),
1936
1936
  body: n,
1937
1937
  duplex: "half",
1938
- credentials: S ? p : void 0
1938
+ credentials: g ? p : void 0
1939
1939
  });
1940
1940
  let E = await fetch(h);
1941
- const g = ve && (l === "stream" || l === "response");
1942
- if (ve && (c || g && R)) {
1941
+ const S = ve && (l === "stream" || l === "response");
1942
+ if (ve && (c || S && R)) {
1943
1943
  const A = {};
1944
1944
  ["status", "statusText", "headers"].forEach((I) => {
1945
1945
  A[I] = E[I];
@@ -1957,7 +1957,7 @@ const Ln = async (e) => {
1957
1957
  }
1958
1958
  l = l || "text";
1959
1959
  let O = await pe[a.findKey(pe, l) || "text"](E, e);
1960
- return !g && R && R(), await new Promise((A, N) => {
1960
+ return !S && R && R(), await new Promise((A, N) => {
1961
1961
  jt(A, N, {
1962
1962
  data: O,
1963
1963
  headers: L.from(E.headers),
@@ -1967,13 +1967,13 @@ const Ln = async (e) => {
1967
1967
  request: h
1968
1968
  });
1969
1969
  });
1970
- } catch (S) {
1971
- throw R && R(), S && S.name === "TypeError" && /Load failed|fetch/i.test(S.message) ? Object.assign(
1970
+ } catch (g) {
1971
+ throw R && R(), g && g.name === "TypeError" && /Load failed|fetch/i.test(g.message) ? Object.assign(
1972
1972
  new y("Network Error", y.ERR_NETWORK, e, h),
1973
1973
  {
1974
- cause: S.cause || S
1974
+ cause: g.cause || g
1975
1975
  }
1976
- ) : y.from(S, S && S.code, e, h);
1976
+ ) : y.from(g, g && g.code, e, h);
1977
1977
  }
1978
1978
  }), je = {
1979
1979
  http: Gr,
@@ -2408,7 +2408,6 @@ const {
2408
2408
  getAdapter: fs,
2409
2409
  mergeConfig: ds
2410
2410
  } = x, ps = (e) => x.create({
2411
- baseURL: "/graphql",
2412
2411
  timeout: 2 * 60 * 1e3,
2413
2412
  ...e
2414
2413
  });
@@ -1,4 +1,2 @@
1
- import { default as axios } from 'axios';
2
- type TCreateAxiosInstanceConfig = ReturnType<typeof axios.create>;
3
- export declare const createAxiosInstance: (config?: TCreateAxiosInstanceConfig) => import('axios').AxiosInstance;
4
- export {};
1
+ import { CreateAxiosDefaults } from 'axios';
2
+ export declare const createAxiosInstance: (config?: CreateAxiosDefaults) => import('axios').AxiosInstance;
@@ -1,5 +1,5 @@
1
1
  import { AxiosRequestConfig, InternalAxiosRequestConfig } from 'axios';
2
- export interface IFetchOptions {
2
+ interface IFetchOptions {
3
3
  pendingRequest?: boolean;
4
4
  requestCode?: string;
5
5
  forceGuest?: boolean;
@@ -10,3 +10,4 @@ export interface IInternalRequestConfig extends InternalAxiosRequestConfig, IFet
10
10
  }
11
11
  export interface IRequestConfig extends AxiosRequestConfig, IFetchOptions {
12
12
  }
13
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acrool/react-fetcher",
3
- "version": "0.0.2-alpha.5",
3
+ "version": "0.0.2-alpha.6",
4
4
  "description": "Fetcher library based for Reactjs",
5
5
  "keywords": [
6
6
  "acrool",