@orpc/standard-server 0.50.0 → 0.51.0
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/README.md +8 -0
- package/dist/index.d.mts +8 -4
- package/dist/index.d.ts +8 -4
- package/package.json +2 -2
package/README.md
CHANGED
@@ -67,6 +67,14 @@ You can find the full documentation [here](https://orpc.unnoq.com).
|
|
67
67
|
|
68
68
|
This package is designed to be used as a base for other server implementations.
|
69
69
|
|
70
|
+
## Sponsors
|
71
|
+
|
72
|
+
<p align="center">
|
73
|
+
<a href="https://cdn.jsdelivr.net/gh/unnoq/unnoq/sponsors.svg">
|
74
|
+
<img src='https://cdn.jsdelivr.net/gh/unnoq/unnoq/sponsors.svg'/>
|
75
|
+
</a>
|
76
|
+
</p>
|
77
|
+
|
70
78
|
## License
|
71
79
|
|
72
80
|
Distributed under the MIT License. See [LICENSE](https://github.com/unnoq/orpc/blob/main/LICENSE) for more information.
|
package/dist/index.d.mts
CHANGED
@@ -67,9 +67,11 @@ interface StandardRequest {
|
|
67
67
|
}
|
68
68
|
interface StandardLazyRequest extends Omit<StandardRequest, 'body'> {
|
69
69
|
/**
|
70
|
-
* Can be { request: Request }
|
70
|
+
* Can be { adapter: 'fetch', request: Request } | { adapter: 'node', request: IncomingMessage, response: ServerResponse }
|
71
71
|
*/
|
72
|
-
raw: Record<string, unknown
|
72
|
+
raw: Record<string, unknown> & {
|
73
|
+
adapter: string;
|
74
|
+
};
|
73
75
|
/**
|
74
76
|
* The body has been parsed based on the content-type header.
|
75
77
|
* This method can safely call multiple times (cached).
|
@@ -86,9 +88,11 @@ interface StandardResponse {
|
|
86
88
|
}
|
87
89
|
interface StandardLazyResponse extends Omit<StandardResponse, 'body'> {
|
88
90
|
/**
|
89
|
-
* Can be {
|
91
|
+
* Can be { adapter: 'fetch', response: Response }
|
90
92
|
*/
|
91
|
-
raw: Record<string, unknown
|
93
|
+
raw: Record<string, unknown> & {
|
94
|
+
adapter: string;
|
95
|
+
};
|
92
96
|
/**
|
93
97
|
* The body has been parsed based on the content-type header.
|
94
98
|
* This method can safely call multiple times (cached).
|
package/dist/index.d.ts
CHANGED
@@ -67,9 +67,11 @@ interface StandardRequest {
|
|
67
67
|
}
|
68
68
|
interface StandardLazyRequest extends Omit<StandardRequest, 'body'> {
|
69
69
|
/**
|
70
|
-
* Can be { request: Request }
|
70
|
+
* Can be { adapter: 'fetch', request: Request } | { adapter: 'node', request: IncomingMessage, response: ServerResponse }
|
71
71
|
*/
|
72
|
-
raw: Record<string, unknown
|
72
|
+
raw: Record<string, unknown> & {
|
73
|
+
adapter: string;
|
74
|
+
};
|
73
75
|
/**
|
74
76
|
* The body has been parsed based on the content-type header.
|
75
77
|
* This method can safely call multiple times (cached).
|
@@ -86,9 +88,11 @@ interface StandardResponse {
|
|
86
88
|
}
|
87
89
|
interface StandardLazyResponse extends Omit<StandardResponse, 'body'> {
|
88
90
|
/**
|
89
|
-
* Can be {
|
91
|
+
* Can be { adapter: 'fetch', response: Response }
|
90
92
|
*/
|
91
|
-
raw: Record<string, unknown
|
93
|
+
raw: Record<string, unknown> & {
|
94
|
+
adapter: string;
|
95
|
+
};
|
92
96
|
/**
|
93
97
|
* The body has been parsed based on the content-type header.
|
94
98
|
* This method can safely call multiple times (cached).
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@orpc/standard-server",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.
|
4
|
+
"version": "0.51.0",
|
5
5
|
"license": "MIT",
|
6
6
|
"homepage": "https://unnoq.com",
|
7
7
|
"repository": {
|
@@ -24,7 +24,7 @@
|
|
24
24
|
],
|
25
25
|
"dependencies": {
|
26
26
|
"@tinyhttp/content-disposition": "^2.2.2",
|
27
|
-
"@orpc/shared": "0.
|
27
|
+
"@orpc/shared": "0.51.0"
|
28
28
|
},
|
29
29
|
"scripts": {
|
30
30
|
"build": "unbuild",
|