@orpc/server 0.0.0-next.4a7a06a → 0.0.0-next.4b03359
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 +0 -1
- package/dist/adapters/bun-ws/index.mjs +1 -2
- package/dist/adapters/crossws/index.mjs +1 -2
- package/dist/adapters/fetch/index.mjs +2 -2
- package/dist/adapters/node/index.mjs +2 -2
- package/dist/adapters/standard/index.mjs +1 -2
- package/dist/adapters/websocket/index.mjs +1 -2
- package/dist/adapters/ws/index.mjs +1 -2
- package/dist/shared/{server.4FnxLwwr.mjs → server.SxlTJfG2.mjs} +2 -5
- package/package.json +8 -8
package/README.md
CHANGED
@@ -49,7 +49,6 @@ 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.
|
53
52
|
- [@orpc/react](https://www.npmjs.com/package/@orpc/react): Utilities for integrating oRPC with React and React Server Actions.
|
54
53
|
- [@orpc/react-query](https://www.npmjs.com/package/@orpc/react-query): Integration with [React Query](https://tanstack.com/query/latest/docs/framework/react/overview).
|
55
54
|
- [@orpc/vue-query](https://www.npmjs.com/package/@orpc/vue-query): Integration with [Vue Query](https://tanstack.com/query/latest/docs/framework/vue/overview).
|
@@ -2,9 +2,8 @@ import { resolveMaybeOptionalOptions } from '@orpc/shared';
|
|
2
2
|
import { ServerPeer } from '@orpc/standard-server-peer';
|
3
3
|
import { r as resolveFriendlyStandardHandleOptions } from '../../shared/server.BVwwTHyO.mjs';
|
4
4
|
import '@orpc/client';
|
5
|
-
import '@orpc/standard-server';
|
6
5
|
import '@orpc/contract';
|
7
|
-
import { b as StandardRPCHandler } from '../../shared/server.
|
6
|
+
import { b as StandardRPCHandler } from '../../shared/server.SxlTJfG2.mjs';
|
8
7
|
import '@orpc/client/standard';
|
9
8
|
import '../../shared/server.DG7Tamti.mjs';
|
10
9
|
|
@@ -2,9 +2,8 @@ import { resolveMaybeOptionalOptions } from '@orpc/shared';
|
|
2
2
|
import { ServerPeer } from '@orpc/standard-server-peer';
|
3
3
|
import { r as resolveFriendlyStandardHandleOptions } from '../../shared/server.BVwwTHyO.mjs';
|
4
4
|
import '@orpc/client';
|
5
|
-
import '@orpc/standard-server';
|
6
5
|
import '@orpc/contract';
|
7
|
-
import { b as StandardRPCHandler } from '../../shared/server.
|
6
|
+
import { b as StandardRPCHandler } from '../../shared/server.SxlTJfG2.mjs';
|
8
7
|
import '@orpc/client/standard';
|
9
8
|
import '../../shared/server.DG7Tamti.mjs';
|
10
9
|
|
@@ -2,11 +2,11 @@ import { ORPCError } from '@orpc/client';
|
|
2
2
|
import { toArray, intercept, resolveMaybeOptionalOptions } from '@orpc/shared';
|
3
3
|
import { toStandardLazyRequest, toFetchResponse } from '@orpc/standard-server-fetch';
|
4
4
|
import { r as resolveFriendlyStandardHandleOptions } from '../../shared/server.BVwwTHyO.mjs';
|
5
|
-
import '@orpc/standard-server';
|
6
5
|
import '@orpc/contract';
|
7
|
-
import { C as CompositeStandardHandlerPlugin, b as StandardRPCHandler } from '../../shared/server.
|
6
|
+
import { C as CompositeStandardHandlerPlugin, b as StandardRPCHandler } from '../../shared/server.SxlTJfG2.mjs';
|
8
7
|
import '@orpc/client/standard';
|
9
8
|
import '@orpc/standard-server/batch';
|
9
|
+
import '@orpc/standard-server';
|
10
10
|
import { S as StrictGetMethodPlugin } from '../../shared/server.BW-nUGgA.mjs';
|
11
11
|
import '../../shared/server.DG7Tamti.mjs';
|
12
12
|
|
@@ -2,11 +2,11 @@ import { ORPCError } from '@orpc/client';
|
|
2
2
|
import { toArray, intercept, resolveMaybeOptionalOptions } from '@orpc/shared';
|
3
3
|
import { toStandardLazyRequest, sendStandardResponse } from '@orpc/standard-server-node';
|
4
4
|
import { r as resolveFriendlyStandardHandleOptions } from '../../shared/server.BVwwTHyO.mjs';
|
5
|
-
import '@orpc/standard-server';
|
6
5
|
import '@orpc/contract';
|
7
|
-
import { C as CompositeStandardHandlerPlugin, b as StandardRPCHandler } from '../../shared/server.
|
6
|
+
import { C as CompositeStandardHandlerPlugin, b as StandardRPCHandler } from '../../shared/server.SxlTJfG2.mjs';
|
8
7
|
import '@orpc/client/standard';
|
9
8
|
import '@orpc/standard-server/batch';
|
9
|
+
import '@orpc/standard-server';
|
10
10
|
import { S as StrictGetMethodPlugin } from '../../shared/server.BW-nUGgA.mjs';
|
11
11
|
import '../../shared/server.DG7Tamti.mjs';
|
12
12
|
|
@@ -1,7 +1,6 @@
|
|
1
|
-
export { C as CompositeStandardHandlerPlugin, S as StandardHandler, a as StandardRPCCodec, b as StandardRPCHandler, c as StandardRPCMatcher } from '../../shared/server.
|
1
|
+
export { C as CompositeStandardHandlerPlugin, S as StandardHandler, a as StandardRPCCodec, b as StandardRPCHandler, c as StandardRPCMatcher } from '../../shared/server.SxlTJfG2.mjs';
|
2
2
|
import '@orpc/client/standard';
|
3
3
|
import '@orpc/client';
|
4
4
|
import '@orpc/shared';
|
5
|
-
import '@orpc/standard-server';
|
6
5
|
import '../../shared/server.DG7Tamti.mjs';
|
7
6
|
import '@orpc/contract';
|
@@ -2,9 +2,8 @@ import { resolveMaybeOptionalOptions } from '@orpc/shared';
|
|
2
2
|
import { ServerPeer } from '@orpc/standard-server-peer';
|
3
3
|
import { r as resolveFriendlyStandardHandleOptions } from '../../shared/server.BVwwTHyO.mjs';
|
4
4
|
import '@orpc/client';
|
5
|
-
import '@orpc/standard-server';
|
6
5
|
import '@orpc/contract';
|
7
|
-
import { b as StandardRPCHandler } from '../../shared/server.
|
6
|
+
import { b as StandardRPCHandler } from '../../shared/server.SxlTJfG2.mjs';
|
8
7
|
import '@orpc/client/standard';
|
9
8
|
import '../../shared/server.DG7Tamti.mjs';
|
10
9
|
|
@@ -2,9 +2,8 @@ import { resolveMaybeOptionalOptions } from '@orpc/shared';
|
|
2
2
|
import { ServerPeer } from '@orpc/standard-server-peer';
|
3
3
|
import { r as resolveFriendlyStandardHandleOptions } from '../../shared/server.BVwwTHyO.mjs';
|
4
4
|
import '@orpc/client';
|
5
|
-
import '@orpc/standard-server';
|
6
5
|
import '@orpc/contract';
|
7
|
-
import { b as StandardRPCHandler } from '../../shared/server.
|
6
|
+
import { b as StandardRPCHandler } from '../../shared/server.SxlTJfG2.mjs';
|
8
7
|
import '@orpc/client/standard';
|
9
8
|
import '../../shared/server.DG7Tamti.mjs';
|
10
9
|
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { toHttpPath, StandardRPCJsonSerializer, StandardRPCSerializer } from '@orpc/client/standard';
|
2
2
|
import { ORPCError, toORPCError } from '@orpc/client';
|
3
3
|
import { toArray, intercept, parseEmptyableJSON } from '@orpc/shared';
|
4
|
-
import { flattenHeader } from '@orpc/standard-server';
|
5
4
|
import { c as createProcedureClient, t as traverseContractProcedures, i as isProcedure, u as unlazy, g as getRouter, a as createContractedProcedure } from './server.DG7Tamti.mjs';
|
6
5
|
|
7
6
|
class CompositeStandardHandlerPlugin {
|
@@ -60,10 +59,8 @@ class StandardHandler {
|
|
60
59
|
isDecoding = true;
|
61
60
|
const input = await this.codec.decode(request2, match.params, match.procedure);
|
62
61
|
isDecoding = false;
|
63
|
-
const
|
64
|
-
|
65
|
-
lastEventId: flattenHeader(request2.headers["last-event-id"])
|
66
|
-
});
|
62
|
+
const lastEventId = Array.isArray(request2.headers["last-event-id"]) ? request2.headers["last-event-id"].at(-1) : request2.headers["last-event-id"];
|
63
|
+
const output = await client(input, { signal: request2.signal, lastEventId });
|
67
64
|
const response = this.codec.encode(output, match.procedure);
|
68
65
|
return {
|
69
66
|
matched: true,
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@orpc/server",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.0.0-next.
|
4
|
+
"version": "0.0.0-next.4b03359",
|
5
5
|
"license": "MIT",
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
7
7
|
"repository": {
|
@@ -76,13 +76,13 @@
|
|
76
76
|
}
|
77
77
|
},
|
78
78
|
"dependencies": {
|
79
|
-
"@orpc/
|
80
|
-
"@orpc/
|
81
|
-
"@orpc/
|
82
|
-
"@orpc/
|
83
|
-
"@orpc/standard-server-
|
84
|
-
"@orpc/standard-server-node": "0.0.0-next.
|
85
|
-
"@orpc/standard-server-
|
79
|
+
"@orpc/client": "0.0.0-next.4b03359",
|
80
|
+
"@orpc/shared": "0.0.0-next.4b03359",
|
81
|
+
"@orpc/standard-server": "0.0.0-next.4b03359",
|
82
|
+
"@orpc/contract": "0.0.0-next.4b03359",
|
83
|
+
"@orpc/standard-server-peer": "0.0.0-next.4b03359",
|
84
|
+
"@orpc/standard-server-node": "0.0.0-next.4b03359",
|
85
|
+
"@orpc/standard-server-fetch": "0.0.0-next.4b03359"
|
86
86
|
},
|
87
87
|
"devDependencies": {
|
88
88
|
"@types/ws": "^8.18.1",
|