@donkeylabs/server 2.0.11 → 2.0.13

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/server.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donkeylabs/server",
3
- "version": "2.0.11",
3
+ "version": "2.0.13",
4
4
  "type": "module",
5
5
  "description": "Type-safe plugin system for building RPC-style APIs with Bun",
6
6
  "main": "./src/index.ts",
package/src/server.ts CHANGED
@@ -1145,9 +1145,9 @@ ${factoryFunction}
1145
1145
  );
1146
1146
  // Extract result from Response
1147
1147
  if (response instanceof Response) {
1148
- return response.json();
1148
+ return response.json() as Promise<TOutput>;
1149
1149
  }
1150
- return response;
1150
+ return response as TOutput;
1151
1151
  } else {
1152
1152
  return await finalHandler();
1153
1153
  }