@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.
- package/dist/cjs/browser.js +3 -0
- package/dist/cjs/node.js +3 -0
- package/dist/esm/browser.js +3 -0
- package/dist/esm/node.js +3 -0
- package/dist/esm-node/browser.js +3 -0
- package/dist/esm-node/node.js +3 -0
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
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
|
};
|
package/dist/esm/browser.js
CHANGED
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,
|
package/dist/esm-node/browser.js
CHANGED
package/dist/esm-node/node.js
CHANGED
|
@@ -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
|
};
|