@orpc/standard-server-node 0.0.0-next.e39a46e → 0.0.0-next.e49bee7
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 +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.mjs +3 -0
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -17,6 +17,10 @@ type NodeHttpRequest = (IncomingMessage | Http2ServerRequest) & {
|
|
|
17
17
|
* This is useful for `express.js` middleware.
|
|
18
18
|
*/
|
|
19
19
|
originalUrl?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Prefer parsed body if it is available.
|
|
22
|
+
*/
|
|
23
|
+
body?: unknown;
|
|
20
24
|
};
|
|
21
25
|
type NodeHttpResponse = ServerResponse | Http2ServerResponse;
|
|
22
26
|
|
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,10 @@ type NodeHttpRequest = (IncomingMessage | Http2ServerRequest) & {
|
|
|
17
17
|
* This is useful for `express.js` middleware.
|
|
18
18
|
*/
|
|
19
19
|
originalUrl?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Prefer parsed body if it is available.
|
|
22
|
+
*/
|
|
23
|
+
body?: unknown;
|
|
20
24
|
};
|
|
21
25
|
type NodeHttpResponse = ServerResponse | Http2ServerResponse;
|
|
22
26
|
|
package/dist/index.mjs
CHANGED
|
@@ -11,6 +11,9 @@ function toEventStream(iterator, options = {}) {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
function toStandardBody(req, options = {}) {
|
|
14
|
+
if (req.body !== void 0) {
|
|
15
|
+
return Promise.resolve(req.body);
|
|
16
|
+
}
|
|
14
17
|
return runWithSpan({ name: "parse_standard_body", signal: options.signal }, async () => {
|
|
15
18
|
const contentDisposition = req.headers["content-disposition"];
|
|
16
19
|
const contentType = req.headers["content-type"];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/standard-server-node",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-next.
|
|
4
|
+
"version": "0.0.0-next.e49bee7",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
|
7
7
|
"repository": {
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"dist"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@orpc/
|
|
27
|
-
"@orpc/
|
|
28
|
-
"@orpc/standard-server-fetch": "0.0.0-next.
|
|
26
|
+
"@orpc/shared": "0.0.0-next.e49bee7",
|
|
27
|
+
"@orpc/standard-server": "0.0.0-next.e49bee7",
|
|
28
|
+
"@orpc/standard-server-fetch": "0.0.0-next.e49bee7"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.15.30",
|