@orpc/standard-server-peer 1.2.0 → 1.4.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 CHANGED
@@ -49,6 +49,7 @@ You can find the full documentation [here](https://orpc.unnoq.com).
49
49
  - [@orpc/contract](https://www.npmjs.com/package/@orpc/contract): Build your API contract.
50
50
  - [@orpc/server](https://www.npmjs.com/package/@orpc/server): Build your API or implement API contract.
51
51
  - [@orpc/client](https://www.npmjs.com/package/@orpc/client): Consume your API on the client with type-safety.
52
+ - [@orpc/nest](https://www.npmjs.com/package/@orpc/nest): Deeply integrate oRPC with NestJS.
52
53
  - [@orpc/react](https://www.npmjs.com/package/@orpc/react): Utilities for integrating oRPC with React and React Server Actions.
53
54
  - [@orpc/react-query](https://www.npmjs.com/package/@orpc/react-query): Integration with [React Query](https://tanstack.com/query/latest/docs/framework/react/overview).
54
55
  - [@orpc/vue-query](https://www.npmjs.com/package/@orpc/vue-query): Integration with [Vue Query](https://tanstack.com/query/latest/docs/framework/vue/overview).
package/dist/index.d.mts CHANGED
@@ -63,7 +63,7 @@ declare function isEventIteratorHeaders(headers: StandardHeaders): boolean;
63
63
 
64
64
  interface AsyncIdQueueCloseOptions {
65
65
  id?: number;
66
- reason?: Error;
66
+ reason?: unknown;
67
67
  }
68
68
  declare class AsyncIdQueue<T> {
69
69
  private readonly openIds;
package/dist/index.d.ts CHANGED
@@ -63,7 +63,7 @@ declare function isEventIteratorHeaders(headers: StandardHeaders): boolean;
63
63
 
64
64
  interface AsyncIdQueueCloseOptions {
65
65
  id?: number;
66
- reason?: Error;
66
+ reason?: unknown;
67
67
  }
68
68
  declare class AsyncIdQueue<T> {
69
69
  private readonly openIds;
package/dist/index.mjs CHANGED
@@ -188,7 +188,7 @@ async function decodeRawMessage(raw) {
188
188
  const blobData = buffer.slice(delimiterIndex + 1);
189
189
  return {
190
190
  json: JSON.parse(jsonPart),
191
- blobData
191
+ blobData: blobData.buffer
192
192
  };
193
193
  }
194
194
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orpc/standard-server-peer",
3
3
  "type": "module",
4
- "version": "1.2.0",
4
+ "version": "1.4.0",
5
5
  "license": "MIT",
6
6
  "homepage": "https://unnoq.com",
7
7
  "repository": {
@@ -23,8 +23,8 @@
23
23
  "dist"
24
24
  ],
25
25
  "dependencies": {
26
- "@orpc/shared": "1.2.0",
27
- "@orpc/standard-server": "1.2.0"
26
+ "@orpc/shared": "1.4.0",
27
+ "@orpc/standard-server": "1.4.0"
28
28
  },
29
29
  "scripts": {
30
30
  "build": "unbuild",