@modern-js/create-request 2.5.1-alpha.8 → 2.5.1-alpha.9

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.
@@ -95,6 +95,9 @@ const createRequest = (path, method, port, httpMethodDecider = "functionName", f
95
95
  }
96
96
  }
97
97
  }
98
+ if (method.toLowerCase() === "get") {
99
+ body = void 0;
100
+ }
98
101
  return fetcher(finalURL, {
99
102
  method,
100
103
  body,
package/dist/cjs/node.js CHANGED
@@ -100,6 +100,9 @@ const createRequest = (path, method, port, httpMethodDecider = "functionName", f
100
100
  }
101
101
  url = `http://localhost:${port}${finalPath}`;
102
102
  }
103
+ if (method.toLowerCase() === "get") {
104
+ body = void 0;
105
+ }
103
106
  const fetcher = realRequest || originFetch;
104
107
  return fetcher(url, { method, body, headers });
105
108
  };
@@ -234,6 +234,9 @@ var createRequest = function(path, method, port) {
234
234
  }
235
235
  }
236
236
  }
237
+ if (method.toLowerCase() === "get") {
238
+ body = void 0;
239
+ }
237
240
  return [
238
241
  2,
239
242
  fetcher(finalURL, {
package/dist/esm/node.js CHANGED
@@ -124,6 +124,9 @@ var createRequest = function(path, method, port) {
124
124
  }
125
125
  url = "http://localhost:".concat(port).concat(finalPath);
126
126
  }
127
+ if (method.toLowerCase() === "get") {
128
+ body = void 0;
129
+ }
127
130
  var fetcher = realRequest || originFetch;
128
131
  return fetcher(url, {
129
132
  method: method,
@@ -66,6 +66,9 @@ const createRequest = (path, method, port, httpMethodDecider = "functionName", f
66
66
  }
67
67
  }
68
68
  }
69
+ if (method.toLowerCase() === "get") {
70
+ body = void 0;
71
+ }
69
72
  return fetcher(finalURL, {
70
73
  method,
71
74
  body,
@@ -71,6 +71,9 @@ const createRequest = (path, method, port, httpMethodDecider = "functionName", f
71
71
  }
72
72
  url = `http://localhost:${port}${finalPath}`;
73
73
  }
74
+ if (method.toLowerCase() === "get") {
75
+ body = void 0;
76
+ }
74
77
  const fetcher = realRequest || originFetch;
75
78
  return fetcher(url, { method, body, headers });
76
79
  };
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "2.5.1-alpha.8",
14
+ "version": "2.5.1-alpha.9",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/cjs/index.js",