@orpc/server 0.0.0-next.db1f26d → 0.0.0-next.e7b4f63

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. package/dist/chunk-6A7XHEBH.js +189 -0
  2. package/dist/chunk-B2EZJB7X.js +303 -0
  3. package/dist/fetch.js +22 -97
  4. package/dist/index.js +370 -320
  5. package/dist/node.js +45 -0
  6. package/dist/src/adapters/fetch/composite-handler.d.ts +8 -0
  7. package/dist/src/adapters/fetch/index.d.ts +7 -0
  8. package/dist/src/adapters/fetch/orpc-handler.d.ts +20 -0
  9. package/dist/src/adapters/fetch/orpc-payload-codec.d.ts +16 -0
  10. package/dist/src/adapters/fetch/orpc-procedure-matcher.d.ts +12 -0
  11. package/dist/src/adapters/fetch/super-json.d.ts +12 -0
  12. package/dist/src/adapters/fetch/types.d.ts +16 -0
  13. package/dist/src/adapters/node/composite-handler.d.ts +9 -0
  14. package/dist/src/adapters/node/index.d.ts +5 -0
  15. package/dist/src/adapters/node/orpc-handler.d.ts +12 -0
  16. package/dist/src/adapters/node/types.d.ts +21 -0
  17. package/dist/src/builder.d.ts +26 -44
  18. package/dist/src/hidden.d.ts +6 -0
  19. package/dist/src/implementer-chainable.d.ts +10 -0
  20. package/dist/src/index.d.ts +9 -3
  21. package/dist/src/lazy-decorated.d.ts +10 -0
  22. package/dist/src/lazy-utils.d.ts +4 -0
  23. package/dist/src/lazy.d.ts +6 -11
  24. package/dist/src/middleware-decorated.d.ts +8 -0
  25. package/dist/src/middleware.d.ts +3 -6
  26. package/dist/src/procedure-builder.d.ts +15 -24
  27. package/dist/src/procedure-client.d.ts +34 -0
  28. package/dist/src/procedure-decorated.d.ts +14 -0
  29. package/dist/src/procedure-implementer.d.ts +13 -17
  30. package/dist/src/procedure.d.ts +15 -24
  31. package/dist/src/router-builder.d.ts +23 -21
  32. package/dist/src/router-client.d.ts +25 -0
  33. package/dist/src/router-implementer.d.ts +18 -21
  34. package/dist/src/router.d.ts +11 -16
  35. package/dist/src/types.d.ts +8 -4
  36. package/package.json +12 -11
  37. package/dist/chunk-FL4ZAGNE.js +0 -267
  38. package/dist/src/fetch/handle.d.ts +0 -7
  39. package/dist/src/fetch/handler.d.ts +0 -3
  40. package/dist/src/fetch/index.d.ts +0 -4
  41. package/dist/src/fetch/types.d.ts +0 -35
  42. package/dist/src/procedure-caller.d.ts +0 -20
  43. package/dist/src/router-caller.d.ts +0 -22
@@ -0,0 +1,189 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
6
+
7
+ // src/utils.ts
8
+ function mergeContext(a, b) {
9
+ if (!a)
10
+ return b;
11
+ if (!b)
12
+ return a;
13
+ return {
14
+ ...a,
15
+ ...b
16
+ };
17
+ }
18
+
19
+ // src/procedure.ts
20
+ import { isContractProcedure } from "@orpc/contract";
21
+ var Procedure = class {
22
+ "~type" = "Procedure";
23
+ "~orpc";
24
+ constructor(def) {
25
+ this["~orpc"] = def;
26
+ }
27
+ };
28
+ function isProcedure(item) {
29
+ if (item instanceof Procedure) {
30
+ return true;
31
+ }
32
+ return (typeof item === "object" || typeof item === "function") && item !== null && "~type" in item && item["~type"] === "Procedure" && "~orpc" in item && typeof item["~orpc"] === "object" && item["~orpc"] !== null && "contract" in item["~orpc"] && isContractProcedure(item["~orpc"].contract) && "handler" in item["~orpc"] && typeof item["~orpc"].handler === "function";
33
+ }
34
+
35
+ // src/lazy.ts
36
+ var LAZY_LOADER_SYMBOL = Symbol("ORPC_LAZY_LOADER");
37
+ function lazy(loader) {
38
+ return {
39
+ [LAZY_LOADER_SYMBOL]: loader
40
+ };
41
+ }
42
+ function isLazy(item) {
43
+ return (typeof item === "object" || typeof item === "function") && item !== null && LAZY_LOADER_SYMBOL in item && typeof item[LAZY_LOADER_SYMBOL] === "function";
44
+ }
45
+ function unlazy(lazied) {
46
+ return isLazy(lazied) ? lazied[LAZY_LOADER_SYMBOL]() : Promise.resolve({ default: lazied });
47
+ }
48
+ function flatLazy(lazied) {
49
+ const flattenLoader = async () => {
50
+ let current = await unlazy(lazied);
51
+ while (true) {
52
+ if (!isLazy(current.default)) {
53
+ break;
54
+ }
55
+ current = await unlazy(current.default);
56
+ }
57
+ return current;
58
+ };
59
+ return lazy(flattenLoader);
60
+ }
61
+
62
+ // src/procedure-client.ts
63
+ import { executeWithHooks, value } from "@orpc/shared";
64
+ import { ORPCError } from "@orpc/shared/error";
65
+ function createProcedureClient(options) {
66
+ return async (...[input, callerOptions]) => {
67
+ const path = options.path ?? [];
68
+ const { default: procedure } = await unlazy(options.procedure);
69
+ const context = await value(options.context);
70
+ const meta = {
71
+ path,
72
+ procedure,
73
+ signal: callerOptions?.signal
74
+ };
75
+ const executeWithValidation = async () => {
76
+ const validInput = await validateInput(procedure, input);
77
+ const output = await executeMiddlewareChain(
78
+ procedure,
79
+ validInput,
80
+ context,
81
+ meta
82
+ );
83
+ return validateOutput(procedure, output);
84
+ };
85
+ return executeWithHooks({
86
+ hooks: options,
87
+ input,
88
+ context,
89
+ meta,
90
+ execute: executeWithValidation
91
+ });
92
+ };
93
+ }
94
+ async function validateInput(procedure, input) {
95
+ const schema = procedure["~orpc"].contract["~orpc"].InputSchema;
96
+ if (!schema)
97
+ return input;
98
+ const result = await schema["~standard"].validate(input);
99
+ if (result.issues) {
100
+ throw new ORPCError({
101
+ message: "Input validation failed",
102
+ code: "BAD_REQUEST",
103
+ issues: result.issues
104
+ });
105
+ }
106
+ return result.value;
107
+ }
108
+ async function validateOutput(procedure, output) {
109
+ const schema = procedure["~orpc"].contract["~orpc"].OutputSchema;
110
+ if (!schema)
111
+ return output;
112
+ const result = await schema["~standard"].validate(output);
113
+ if (result.issues) {
114
+ throw new ORPCError({
115
+ message: "Output validation failed",
116
+ code: "INTERNAL_SERVER_ERROR",
117
+ issues: result.issues
118
+ });
119
+ }
120
+ return result.value;
121
+ }
122
+ async function executeMiddlewareChain(procedure, input, context, meta) {
123
+ const middlewares = procedure["~orpc"].middlewares ?? [];
124
+ let currentMidIndex = 0;
125
+ let currentContext = context;
126
+ const next = async (nextOptions) => {
127
+ const mid = middlewares[currentMidIndex];
128
+ currentMidIndex += 1;
129
+ currentContext = mergeContext(currentContext, nextOptions.context);
130
+ if (mid) {
131
+ return await mid(input, currentContext, {
132
+ ...meta,
133
+ next,
134
+ output: (output) => ({ output, context: void 0 })
135
+ });
136
+ }
137
+ const result = {
138
+ output: await procedure["~orpc"].handler(input, currentContext, meta),
139
+ context: currentContext
140
+ };
141
+ return result;
142
+ };
143
+ return (await next({})).output;
144
+ }
145
+
146
+ // src/router.ts
147
+ function getRouterChild(router, ...path) {
148
+ let current = router;
149
+ for (let i = 0; i < path.length; i++) {
150
+ const segment = path[i];
151
+ if (!current) {
152
+ return void 0;
153
+ }
154
+ if (isProcedure(current)) {
155
+ return void 0;
156
+ }
157
+ if (!isLazy(current)) {
158
+ current = current[segment];
159
+ continue;
160
+ }
161
+ const lazied = current;
162
+ const rest = path.slice(i);
163
+ const newLazy = lazy(async () => {
164
+ const unwrapped = await unlazy(lazied);
165
+ if (!unwrapped.default) {
166
+ return unwrapped;
167
+ }
168
+ const next = getRouterChild(unwrapped.default, ...rest);
169
+ return { default: next };
170
+ });
171
+ return flatLazy(newLazy);
172
+ }
173
+ return current;
174
+ }
175
+
176
+ export {
177
+ __export,
178
+ mergeContext,
179
+ Procedure,
180
+ isProcedure,
181
+ LAZY_LOADER_SYMBOL,
182
+ lazy,
183
+ isLazy,
184
+ unlazy,
185
+ flatLazy,
186
+ createProcedureClient,
187
+ getRouterChild
188
+ };
189
+ //# sourceMappingURL=chunk-6A7XHEBH.js.map
@@ -0,0 +1,303 @@
1
+ import {
2
+ __export,
3
+ createProcedureClient,
4
+ getRouterChild,
5
+ isProcedure,
6
+ unlazy
7
+ } from "./chunk-6A7XHEBH.js";
8
+
9
+ // src/adapters/fetch/super-json.ts
10
+ var super_json_exports = {};
11
+ __export(super_json_exports, {
12
+ deserialize: () => deserialize,
13
+ serialize: () => serialize
14
+ });
15
+
16
+ // ../../node_modules/.pnpm/is-what@5.0.2/node_modules/is-what/dist/getType.js
17
+ function getType(payload) {
18
+ return Object.prototype.toString.call(payload).slice(8, -1);
19
+ }
20
+
21
+ // ../../node_modules/.pnpm/is-what@5.0.2/node_modules/is-what/dist/isPlainObject.js
22
+ function isPlainObject(payload) {
23
+ if (getType(payload) !== "Object")
24
+ return false;
25
+ const prototype = Object.getPrototypeOf(payload);
26
+ return !!prototype && prototype.constructor === Object && prototype === Object.prototype;
27
+ }
28
+
29
+ // src/adapters/fetch/super-json.ts
30
+ function serialize(value, segments = [], meta = []) {
31
+ if (typeof value === "bigint") {
32
+ meta.push(["bigint", segments]);
33
+ return { data: value.toString(), meta };
34
+ }
35
+ if (value instanceof Date) {
36
+ meta.push(["date", segments]);
37
+ const data = Number.isNaN(value.getTime()) ? "Invalid Date" : value.toISOString();
38
+ return { data, meta };
39
+ }
40
+ if (Number.isNaN(value)) {
41
+ meta.push(["nan", segments]);
42
+ return { data: "NaN", meta };
43
+ }
44
+ if (value instanceof RegExp) {
45
+ meta.push(["regexp", segments]);
46
+ return { data: value.toString(), meta };
47
+ }
48
+ if (value instanceof URL) {
49
+ meta.push(["url", segments]);
50
+ return { data: value.toString(), meta };
51
+ }
52
+ if (isPlainObject(value)) {
53
+ const data = {};
54
+ for (const k in value) {
55
+ data[k] = serialize(value[k], [...segments, k], meta).data;
56
+ }
57
+ return { data, meta };
58
+ }
59
+ if (Array.isArray(value)) {
60
+ const data = value.map((v, i) => {
61
+ if (v === void 0) {
62
+ meta.push(["undefined", [...segments, i]]);
63
+ return null;
64
+ }
65
+ return serialize(v, [...segments, i], meta).data;
66
+ });
67
+ return { data, meta };
68
+ }
69
+ if (value instanceof Set) {
70
+ const result = serialize(Array.from(value), segments, meta);
71
+ meta.push(["set", segments]);
72
+ return result;
73
+ }
74
+ if (value instanceof Map) {
75
+ const result = serialize(Array.from(value.entries()), segments, meta);
76
+ meta.push(["map", segments]);
77
+ return result;
78
+ }
79
+ return { data: value, meta };
80
+ }
81
+ function deserialize({
82
+ data,
83
+ meta
84
+ }) {
85
+ if (meta.length === 0) {
86
+ return data;
87
+ }
88
+ const ref = { data };
89
+ for (const [type, segments] of meta) {
90
+ let currentRef = ref;
91
+ let preSegment = "data";
92
+ for (let i = 0; i < segments.length; i++) {
93
+ currentRef = currentRef[preSegment];
94
+ preSegment = segments[i];
95
+ }
96
+ switch (type) {
97
+ case "nan":
98
+ currentRef[preSegment] = Number.NaN;
99
+ break;
100
+ case "bigint":
101
+ currentRef[preSegment] = BigInt(currentRef[preSegment]);
102
+ break;
103
+ case "date":
104
+ currentRef[preSegment] = new Date(currentRef[preSegment]);
105
+ break;
106
+ case "regexp": {
107
+ const [, pattern, flags] = currentRef[preSegment].match(/^\/(.*)\/([a-z]*)$/);
108
+ currentRef[preSegment] = new RegExp(pattern, flags);
109
+ break;
110
+ }
111
+ case "url":
112
+ currentRef[preSegment] = new URL(currentRef[preSegment]);
113
+ break;
114
+ case "undefined":
115
+ currentRef[preSegment] = void 0;
116
+ break;
117
+ case "map":
118
+ currentRef[preSegment] = new Map(currentRef[preSegment]);
119
+ break;
120
+ case "set":
121
+ currentRef[preSegment] = new Set(currentRef[preSegment]);
122
+ break;
123
+ /* v8 ignore next 3 */
124
+ default: {
125
+ const _expected = type;
126
+ }
127
+ }
128
+ }
129
+ return ref.data;
130
+ }
131
+
132
+ // src/adapters/fetch/orpc-payload-codec.ts
133
+ import { findDeepMatches, set } from "@orpc/shared";
134
+ import { ORPCError } from "@orpc/shared/error";
135
+ var ORPCPayloadCodec = class {
136
+ /**
137
+ * If method is GET, the payload will be encoded as query string.
138
+ * If method is GET and payload contain file, the method will be fallback to fallbackMethod. (fallbackMethod = GET will force to use GET method)
139
+ */
140
+ encode(payload, method = "POST", fallbackMethod = "POST") {
141
+ const { data, meta } = serialize(payload);
142
+ const { maps, values } = findDeepMatches((v) => v instanceof Blob, data);
143
+ if (method === "GET" && (values.length === 0 || fallbackMethod === "GET")) {
144
+ const query = new URLSearchParams({
145
+ data: JSON.stringify(data),
146
+ meta: JSON.stringify(meta)
147
+ });
148
+ return {
149
+ query,
150
+ method: "GET"
151
+ };
152
+ }
153
+ const nonGETMethod = method === "GET" ? fallbackMethod : method;
154
+ if (values.length > 0) {
155
+ const form = new FormData();
156
+ if (data !== void 0) {
157
+ form.append("data", JSON.stringify(data));
158
+ }
159
+ form.append("meta", JSON.stringify(meta));
160
+ form.append("maps", JSON.stringify(maps));
161
+ for (const i in values) {
162
+ const value = values[i];
163
+ form.append(i, value);
164
+ }
165
+ return {
166
+ body: form,
167
+ method: nonGETMethod
168
+ };
169
+ }
170
+ return {
171
+ body: JSON.stringify({ data, meta }),
172
+ headers: new Headers({
173
+ "content-type": "application/json"
174
+ }),
175
+ method: nonGETMethod
176
+ };
177
+ }
178
+ async decode(re) {
179
+ try {
180
+ if ("method" in re && re.method === "GET") {
181
+ const url = new URL(re.url);
182
+ const query = url.searchParams;
183
+ const data = JSON.parse(query.getAll("data").at(-1));
184
+ const meta = JSON.parse(query.getAll("meta").at(-1));
185
+ return deserialize({
186
+ data,
187
+ meta
188
+ });
189
+ }
190
+ if (re.headers.get("content-type")?.startsWith("multipart/form-data")) {
191
+ const form = await re.formData();
192
+ const rawData = form.get("data");
193
+ const rawMeta = form.get("meta");
194
+ const rawMaps = form.get("maps");
195
+ let data = JSON.parse(rawData);
196
+ const meta = JSON.parse(rawMeta);
197
+ const maps = JSON.parse(rawMaps);
198
+ for (const i in maps) {
199
+ data = set(data, maps[i], form.get(i));
200
+ }
201
+ return deserialize({
202
+ data,
203
+ meta
204
+ });
205
+ }
206
+ const json = await re.json();
207
+ return deserialize(json);
208
+ } catch (e) {
209
+ throw new ORPCError({
210
+ code: "BAD_REQUEST",
211
+ message: "Cannot parse request/response. Please check the request/response body and Content-Type header.",
212
+ cause: e
213
+ });
214
+ }
215
+ }
216
+ };
217
+
218
+ // src/adapters/fetch/orpc-procedure-matcher.ts
219
+ import { trim } from "@orpc/shared";
220
+ var ORPCProcedureMatcher = class {
221
+ constructor(router) {
222
+ this.router = router;
223
+ }
224
+ async match(pathname) {
225
+ const path = trim(pathname, "/").split("/").map(decodeURIComponent);
226
+ const match = getRouterChild(this.router, ...path);
227
+ const { default: maybeProcedure } = await unlazy(match);
228
+ if (!isProcedure(maybeProcedure)) {
229
+ return void 0;
230
+ }
231
+ return {
232
+ procedure: maybeProcedure,
233
+ path
234
+ };
235
+ }
236
+ };
237
+
238
+ // src/adapters/fetch/orpc-handler.ts
239
+ import { executeWithHooks, ORPC_HANDLER_HEADER, ORPC_HANDLER_VALUE, trim as trim2 } from "@orpc/shared";
240
+ import { ORPCError as ORPCError2 } from "@orpc/shared/error";
241
+ var ORPCHandler = class {
242
+ constructor(router, options) {
243
+ this.router = router;
244
+ this.options = options;
245
+ this.procedureMatcher = options?.procedureMatcher ?? new ORPCProcedureMatcher(router);
246
+ this.payloadCodec = options?.payloadCodec ?? new ORPCPayloadCodec();
247
+ }
248
+ procedureMatcher;
249
+ payloadCodec;
250
+ condition(request) {
251
+ return Boolean(request.headers.get(ORPC_HANDLER_HEADER)?.includes(ORPC_HANDLER_VALUE));
252
+ }
253
+ async fetch(request, ...[options]) {
254
+ const context = options?.context;
255
+ const execute = async () => {
256
+ const url = new URL(request.url);
257
+ const pathname = `/${trim2(url.pathname.replace(options?.prefix ?? "", ""), "/")}`;
258
+ const match = await this.procedureMatcher.match(pathname);
259
+ if (!match) {
260
+ throw new ORPCError2({ code: "NOT_FOUND", message: "Not found" });
261
+ }
262
+ const input = await this.payloadCodec.decode(request);
263
+ const client = createProcedureClient({
264
+ context,
265
+ procedure: match.procedure,
266
+ path: match.path
267
+ });
268
+ const output = await client(input, { signal: options?.signal });
269
+ const { body, headers } = this.payloadCodec.encode(output);
270
+ return new Response(body, { headers });
271
+ };
272
+ try {
273
+ return await executeWithHooks({
274
+ context,
275
+ execute,
276
+ input: request,
277
+ hooks: this.options,
278
+ meta: {
279
+ signal: options?.signal
280
+ }
281
+ });
282
+ } catch (e) {
283
+ const error = e instanceof ORPCError2 ? e : new ORPCError2({
284
+ code: "INTERNAL_SERVER_ERROR",
285
+ message: "Internal server error",
286
+ cause: e
287
+ });
288
+ const { body, headers } = this.payloadCodec.encode(error.toJSON());
289
+ return new Response(body, {
290
+ headers,
291
+ status: error.status
292
+ });
293
+ }
294
+ }
295
+ };
296
+
297
+ export {
298
+ super_json_exports,
299
+ ORPCPayloadCodec,
300
+ ORPCProcedureMatcher,
301
+ ORPCHandler
302
+ };
303
+ //# sourceMappingURL=chunk-B2EZJB7X.js.map
package/dist/fetch.js CHANGED
@@ -1,107 +1,32 @@
1
1
  import {
2
- createProcedureCaller,
3
- isLazy,
4
- isProcedure
5
- } from "./chunk-FL4ZAGNE.js";
2
+ ORPCHandler,
3
+ ORPCPayloadCodec,
4
+ ORPCProcedureMatcher,
5
+ super_json_exports
6
+ } from "./chunk-B2EZJB7X.js";
7
+ import "./chunk-6A7XHEBH.js";
6
8
 
7
- // src/fetch/handle.ts
8
- import { ORPCError } from "@orpc/shared/error";
9
- async function handleFetchRequest(options) {
10
- for (const handler of options.handlers) {
11
- const response = await handler(options);
12
- if (response) {
13
- return response;
14
- }
9
+ // src/adapters/fetch/composite-handler.ts
10
+ var CompositeHandler = class {
11
+ constructor(handlers) {
12
+ this.handlers = handlers;
15
13
  }
16
- const error = new ORPCError({ code: "NOT_FOUND", message: "Not found" });
17
- return new Response(JSON.stringify(error.toJSON()), {
18
- status: error.status,
19
- headers: {
20
- "Content-Type": "application/json"
21
- }
22
- });
23
- }
24
-
25
- // src/fetch/handler.ts
26
- import { ORPC_HEADER, ORPC_HEADER_VALUE } from "@orpc/contract";
27
- import { trim, value } from "@orpc/shared";
28
- import { ORPCError as ORPCError2 } from "@orpc/shared/error";
29
- import { ORPCDeserializer, ORPCSerializer } from "@orpc/transformer";
30
- var serializer = new ORPCSerializer();
31
- var deserializer = new ORPCDeserializer();
32
- function createORPCHandler() {
33
- return async (options) => {
34
- if (options.request.headers.get(ORPC_HEADER) !== ORPC_HEADER_VALUE) {
35
- return void 0;
36
- }
37
- const context = await value(options.context);
38
- const handler = async () => {
39
- const url = new URL(options.request.url);
40
- const pathname = `/${trim(url.pathname.replace(options.prefix ?? "", ""), "/")}`;
41
- const match = resolveORPCRouter(options.router, pathname);
42
- if (!match) {
43
- throw new ORPCError2({ code: "NOT_FOUND", message: "Not found" });
14
+ async fetch(request, ...opt) {
15
+ for (const handler of this.handlers) {
16
+ if (handler.condition(request)) {
17
+ return handler.fetch(request, ...opt);
44
18
  }
45
- const input = await deserializeRequest(options.request);
46
- const caller = createProcedureCaller({
47
- context,
48
- procedure: match.procedure,
49
- path: match.path
50
- });
51
- const output = await caller(input);
52
- const { body, headers } = serializer.serialize(output);
53
- return new Response(body, {
54
- status: 200,
55
- headers
56
- });
57
- };
58
- try {
59
- return await options.hooks?.(
60
- context,
61
- { next: handler, response: (response) => response }
62
- ) ?? await handler();
63
- } catch (e) {
64
- const error = e instanceof ORPCError2 ? e : new ORPCError2({
65
- code: "INTERNAL_SERVER_ERROR",
66
- message: "Internal server error",
67
- cause: e
68
- });
69
- const { body, headers } = serializer.serialize(error.toJSON());
70
- return new Response(body, {
71
- status: error.status,
72
- headers
73
- });
74
19
  }
75
- };
76
- }
77
- function resolveORPCRouter(router, pathname) {
78
- const path = trim(pathname, "/").split("/").map(decodeURIComponent);
79
- let current = router;
80
- for (const segment of path) {
81
- if (typeof current !== "object" && typeof current !== "function" || !current) {
82
- current = void 0;
83
- break;
84
- }
85
- current = current[segment];
86
- }
87
- return isProcedure(current) || isLazy(current) ? {
88
- procedure: current,
89
- path
90
- } : void 0;
91
- }
92
- async function deserializeRequest(request) {
93
- try {
94
- return await deserializer.deserialize(request);
95
- } catch (e) {
96
- throw new ORPCError2({
97
- code: "BAD_REQUEST",
98
- message: "Cannot parse request. Please check the request body and Content-Type header.",
99
- cause: e
20
+ return new Response("None of the handlers can handle the request.", {
21
+ status: 404
100
22
  });
101
23
  }
102
- }
24
+ };
103
25
  export {
104
- createORPCHandler,
105
- handleFetchRequest
26
+ CompositeHandler,
27
+ ORPCHandler,
28
+ ORPCPayloadCodec,
29
+ ORPCProcedureMatcher,
30
+ super_json_exports as SuperJSON
106
31
  };
107
32
  //# sourceMappingURL=fetch.js.map