@seayoo-web/request 3.4.4 → 3.4.5

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/dist/index.js CHANGED
@@ -136,12 +136,13 @@ const M = async function(t, s, e) {
136
136
  responseHandler: c.getConfig("responseHandler")
137
137
  });
138
138
  };
139
+ // @__NO_SIDE_EFFECTS__
139
140
  function v(t) {
140
141
  if (!C())
141
142
  throw new Error("Default Module Only Support In Browser");
142
143
  return L() ? new E(j, t) : new E(k, t);
143
144
  }
144
- const c = v(), N = c.setConfig, B = c.request, X = c.head, F = c.get, G = c.post, I = c.del, Q = c.put, Z = c.patch;
145
+ const c = /* @__PURE__ */ v(), N = c.setConfig, B = c.request, X = c.head, F = c.get, G = c.post, I = c.del, Q = c.put, Z = c.patch;
145
146
  export {
146
147
  v as NetRequest,
147
148
  w as RequestInternalError,
package/dist/node.js CHANGED
@@ -64,10 +64,11 @@ const j = async function(o, a, u) {
64
64
  }), t.body && c.write(t.body), c.end();
65
65
  });
66
66
  };
67
+ // @__NO_SIDE_EFFECTS__
67
68
  function O(o) {
68
69
  return x() ? new f(C, o) : new f(j, o);
69
70
  }
70
- const s = O(), k = s.setConfig, B = s.head, D = s.get, P = s.post, Z = s.del, F = s.put, G = s.patch;
71
+ const s = /* @__PURE__ */ O(), k = s.setConfig, B = s.head, D = s.get, P = s.post, Z = s.del, F = s.put, G = s.patch;
71
72
  export {
72
73
  O as NetRequest,
73
74
  d as RequestInternalError,
package/dist/wx.js CHANGED
@@ -43,10 +43,11 @@ const m = async function(t, n, r) {
43
43
  function R(t) {
44
44
  return typeof t == "string" ? t : t instanceof ArrayBuffer && y() ? new TextDecoder().decode(t) : JSON.stringify(t);
45
45
  }
46
+ // @__NO_SIDE_EFFECTS__
46
47
  function q(t) {
47
48
  return new g(m, t);
48
49
  }
49
- const s = q(), T = s.setConfig, b = s.head, C = s.get, N = s.post, S = s.del, A = s.put;
50
+ const s = /* @__PURE__ */ q(), T = s.setConfig, b = s.head, C = s.get, N = s.post, S = s.del, A = s.put;
50
51
  export {
51
52
  q as NetRequest,
52
53
  d as RequestInternalError,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seayoo-web/request",
3
- "version": "3.4.4",
3
+ "version": "3.4.5",
4
4
  "description": "request tools for seayoo web",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",