@standardserver/node 0.0.20 → 0.0.22
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.d.mts +1 -5
- package/dist/index.d.ts +1 -5
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -47,11 +47,7 @@ declare function toStandardMethod(method: string | undefined): StandardMethod;
|
|
|
47
47
|
|
|
48
48
|
declare function toStandardLazyRequest(req: NodeHttpRequest, res: NodeHttpResponse): StandardLazyRequest;
|
|
49
49
|
|
|
50
|
-
interface SendStandardResponseOptions {
|
|
51
|
-
/**
|
|
52
|
-
* Options for converting the response body to a Node.js HTTP body.
|
|
53
|
-
*/
|
|
54
|
-
body?: ToNodeHttpBodyOptions;
|
|
50
|
+
interface SendStandardResponseOptions extends ToNodeHttpBodyOptions {
|
|
55
51
|
}
|
|
56
52
|
declare function sendStandardResponse(res: NodeHttpResponse, standardResponse: StandardResponse, options?: SendStandardResponseOptions): Promise<void>;
|
|
57
53
|
|
package/dist/index.d.ts
CHANGED
|
@@ -47,11 +47,7 @@ declare function toStandardMethod(method: string | undefined): StandardMethod;
|
|
|
47
47
|
|
|
48
48
|
declare function toStandardLazyRequest(req: NodeHttpRequest, res: NodeHttpResponse): StandardLazyRequest;
|
|
49
49
|
|
|
50
|
-
interface SendStandardResponseOptions {
|
|
51
|
-
/**
|
|
52
|
-
* Options for converting the response body to a Node.js HTTP body.
|
|
53
|
-
*/
|
|
54
|
-
body?: ToNodeHttpBodyOptions;
|
|
50
|
+
interface SendStandardResponseOptions extends ToNodeHttpBodyOptions {
|
|
55
51
|
}
|
|
56
52
|
declare function sendStandardResponse(res: NodeHttpResponse, standardResponse: StandardResponse, options?: SendStandardResponseOptions): Promise<void>;
|
|
57
53
|
|
package/dist/index.mjs
CHANGED
|
@@ -150,7 +150,7 @@ function toStandardLazyRequest(req, res) {
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
async function sendStandardResponse(res, standardResponse, options = {}) {
|
|
153
|
-
const [resBody, resHeaders] = await toNodeHttpBody(standardResponse.body, standardResponse.headers, options
|
|
153
|
+
const [resBody, resHeaders] = await toNodeHttpBody(standardResponse.body, standardResponse.headers, options);
|
|
154
154
|
return new Promise((resolve, reject) => {
|
|
155
155
|
res.once("error", reject);
|
|
156
156
|
res.once("close", resolve);
|
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.22",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://standardserver.dev",
|
|
7
7
|
"repository": {
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@standardserver/fetch": "0.0.
|
|
26
|
-
"@standardserver/
|
|
27
|
-
"@standardserver/
|
|
25
|
+
"@standardserver/fetch": "0.0.22",
|
|
26
|
+
"@standardserver/shared": "0.0.22",
|
|
27
|
+
"@standardserver/core": "0.0.22"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "^25.0.3",
|