@standardserver/node 0.0.11 → 0.0.15
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.mjs +2 -4
- package/package.json +5 -4
package/dist/index.mjs
CHANGED
|
@@ -83,10 +83,8 @@ async function toNodeHttpBody(body, headers, options = {}) {
|
|
|
83
83
|
}
|
|
84
84
|
if (body instanceof FormData) {
|
|
85
85
|
const response = new Response(body);
|
|
86
|
-
|
|
87
|
-
headers
|
|
88
|
-
headers["content-length"] = blob.size.toString();
|
|
89
|
-
return [Readable.fromWeb(blob.stream()), headers];
|
|
86
|
+
headers["content-type"] = response.headers.get("content-type");
|
|
87
|
+
return [Readable.fromWeb(response.body), headers];
|
|
90
88
|
}
|
|
91
89
|
if (body instanceof URLSearchParams) {
|
|
92
90
|
headers["content-type"] = "application/x-www-form-urlencoded";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@standardserver/node",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.15",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://standardserver.dev",
|
|
7
7
|
"repository": {
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"url": "git+https://github.com/standardserver/standardserver.git",
|
|
10
10
|
"directory": "packages/node"
|
|
11
11
|
},
|
|
12
|
+
"sideEffects": false,
|
|
12
13
|
"exports": {
|
|
13
14
|
".": {
|
|
14
15
|
"types": "./dist/index.d.mts",
|
|
@@ -20,9 +21,9 @@
|
|
|
20
21
|
"dist"
|
|
21
22
|
],
|
|
22
23
|
"dependencies": {
|
|
23
|
-
"@standardserver/core": "0.0.
|
|
24
|
-
"@standardserver/shared": "0.0.
|
|
25
|
-
"@standardserver/fetch": "0.0.
|
|
24
|
+
"@standardserver/core": "0.0.15",
|
|
25
|
+
"@standardserver/shared": "0.0.15",
|
|
26
|
+
"@standardserver/fetch": "0.0.15"
|
|
26
27
|
},
|
|
27
28
|
"devDependencies": {
|
|
28
29
|
"@types/node": "^25.0.3",
|