@trpc/server 11.8.1-canary.1 → 11.8.1-canary.12
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/dist/adapters/aws-lambda/index.cjs +1 -1
- package/dist/adapters/aws-lambda/index.d.cts +1 -1
- package/dist/adapters/aws-lambda/index.d.mts +1 -1
- package/dist/adapters/aws-lambda/index.mjs +2 -2
- package/dist/adapters/express.cjs +2 -2
- package/dist/adapters/express.d.cts +2 -2
- package/dist/adapters/express.d.mts +2 -2
- package/dist/adapters/express.mjs +2 -2
- package/dist/adapters/fastify/index.cjs +7 -3
- package/dist/adapters/fastify/index.d.cts +2 -2
- package/dist/adapters/fastify/index.d.mts +2 -2
- package/dist/adapters/fastify/index.mjs +7 -3
- package/dist/adapters/fastify/index.mjs.map +1 -1
- package/dist/adapters/fetch/index.cjs +1 -1
- package/dist/adapters/fetch/index.d.cts +1 -1
- package/dist/adapters/fetch/index.d.mts +1 -1
- package/dist/adapters/fetch/index.mjs +1 -1
- package/dist/adapters/next-app-dir.cjs +1 -1
- package/dist/adapters/next-app-dir.d.cts +1 -1
- package/dist/adapters/next-app-dir.d.mts +1 -1
- package/dist/adapters/next-app-dir.mjs +1 -1
- package/dist/adapters/next.cjs +2 -2
- package/dist/adapters/next.d.cts +2 -2
- package/dist/adapters/next.d.mts +2 -2
- package/dist/adapters/next.mjs +2 -2
- package/dist/adapters/node-http/index.cjs +2 -2
- package/dist/adapters/node-http/index.d.cts +2 -2
- package/dist/adapters/node-http/index.d.mts +2 -2
- package/dist/adapters/node-http/index.mjs +2 -2
- package/dist/adapters/standalone.cjs +2 -2
- package/dist/adapters/standalone.d.cts +2 -2
- package/dist/adapters/standalone.d.mts +2 -2
- package/dist/adapters/standalone.mjs +2 -2
- package/dist/adapters/ws.cjs +3 -3
- package/dist/adapters/ws.d.cts +2 -2
- package/dist/adapters/ws.d.mts +2 -2
- package/dist/adapters/ws.mjs +3 -3
- package/dist/http.cjs +1 -1
- package/dist/http.d.cts +1 -1
- package/dist/http.d.mts +1 -1
- package/dist/http.mjs +1 -1
- package/dist/{index.d-atHbvdjT.d.cts → index.d--uNJFzUS.d.cts} +2 -2
- package/dist/{index.d-atHbvdjT.d.cts.map → index.d--uNJFzUS.d.cts.map} +1 -1
- package/dist/{index.d-dez_BPWp.d.mts → index.d-D7vhS0-R.d.mts} +2 -2
- package/dist/{index.d-dez_BPWp.d.mts.map → index.d-D7vhS0-R.d.mts.map} +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/{node-http-DPtgEQNo.cjs → node-http-D0T_XJ9C.cjs} +3 -1
- package/dist/{node-http-CGm-cSUE.mjs → node-http-pD5xpNfK.mjs} +4 -2
- package/dist/node-http-pD5xpNfK.mjs.map +1 -0
- package/dist/{resolveResponse-BaYG0f5l.cjs → resolveResponse-ByfQ6olt.cjs} +26 -43
- package/dist/{resolveResponse-DNuGyRvp.mjs → resolveResponse-C7AcnFLN.mjs} +29 -40
- package/dist/resolveResponse-C7AcnFLN.mjs.map +1 -0
- package/dist/rpc.d.cts +1 -1
- package/dist/rpc.d.mts +1 -1
- package/dist/shared.d.cts +1 -1
- package/dist/shared.d.mts +1 -1
- package/dist/unstable-core-do-not-import.cjs +2 -3
- package/dist/{unstable-core-do-not-import.d-BHmB4RcG.d.cts → unstable-core-do-not-import.d-BXekdOPr.d.cts} +2 -8
- package/dist/{unstable-core-do-not-import.d-BHmB4RcG.d.cts.map → unstable-core-do-not-import.d-BXekdOPr.d.cts.map} +1 -1
- package/dist/{unstable-core-do-not-import.d-CdCWojne.d.mts → unstable-core-do-not-import.d-CjQPvBRI.d.mts} +2 -8
- package/dist/{unstable-core-do-not-import.d-CdCWojne.d.mts.map → unstable-core-do-not-import.d-CjQPvBRI.d.mts.map} +1 -1
- package/dist/unstable-core-do-not-import.d.cts +2 -2
- package/dist/unstable-core-do-not-import.d.mts +2 -2
- package/dist/unstable-core-do-not-import.mjs +2 -2
- package/dist/{ws-CEdTqhsT.cjs → ws-B16sko8C.cjs} +2 -2
- package/dist/{ws-CWhfReQy.mjs → ws-Dl6Y2YNA.mjs} +3 -3
- package/dist/{ws-CWhfReQy.mjs.map → ws-Dl6Y2YNA.mjs.map} +1 -1
- package/package.json +4 -4
- package/src/adapters/fastify/fastifyTRPCPlugin.ts +8 -0
- package/src/adapters/node-http/incomingMessageToRequest.ts +5 -0
- package/src/unstable-core-do-not-import/http/resolveResponse.ts +28 -2
- package/src/unstable-core-do-not-import/stream/sse.ts +1 -11
- package/src/unstable-core-do-not-import/stream/utils/asyncIterable.ts +0 -30
- package/dist/node-http-CGm-cSUE.mjs.map +0 -1
- package/dist/resolveResponse-DNuGyRvp.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_getErrorShape = require('../../getErrorShape-MR4DZeb7.cjs');
|
|
2
2
|
require('../../codes-BfZsPdy-.cjs');
|
|
3
3
|
require('../../tracked-D4WGA_Z-.cjs');
|
|
4
|
-
const require_resolveResponse = require('../../resolveResponse-
|
|
4
|
+
const require_resolveResponse = require('../../resolveResponse-ByfQ6olt.cjs');
|
|
5
5
|
require('../../observable-B1Nk6r1H.cjs');
|
|
6
6
|
const node_stream = require_getErrorShape.__toESM(require("node:stream"));
|
|
7
7
|
const node_stream_promises = require_getErrorShape.__toESM(require("node:stream/promises"));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../index.d-BiUz7kM_.cjs";
|
|
2
|
-
import { AnyRouter, CreateContextCallback, HTTPBaseHandlerOptions, TRPCRequestInfo, inferRouterContext } from "../../unstable-core-do-not-import.d-
|
|
2
|
+
import { AnyRouter, CreateContextCallback, HTTPBaseHandlerOptions, TRPCRequestInfo, inferRouterContext } from "../../unstable-core-do-not-import.d-BXekdOPr.cjs";
|
|
3
3
|
import "../../index.d-CvZXeEyR.cjs";
|
|
4
4
|
import { APIGatewayProxyEvent, APIGatewayProxyEventV2, APIGatewayProxyResult, APIGatewayProxyStructuredResultV2, Context, StreamifyHandler } from "aws-lambda";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../index.d-D4qZxQJh.mjs";
|
|
2
|
-
import { AnyRouter, CreateContextCallback, HTTPBaseHandlerOptions, TRPCRequestInfo, inferRouterContext } from "../../unstable-core-do-not-import.d-
|
|
2
|
+
import { AnyRouter, CreateContextCallback, HTTPBaseHandlerOptions, TRPCRequestInfo, inferRouterContext } from "../../unstable-core-do-not-import.d-CjQPvBRI.mjs";
|
|
3
3
|
import "../../index.d-vq_QHko2.mjs";
|
|
4
4
|
import { APIGatewayProxyEvent, APIGatewayProxyEventV2, APIGatewayProxyResult, APIGatewayProxyStructuredResultV2, Context, StreamifyHandler } from "aws-lambda";
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __toESM, require_objectSpread2 } from "../../getErrorShape-vC8mUXJD.mjs";
|
|
2
2
|
import "../../codes-DagpWZLc.mjs";
|
|
3
3
|
import "../../tracked-D4V22yc5.mjs";
|
|
4
|
-
import { resolveResponse } from "../../resolveResponse-
|
|
4
|
+
import { resolveResponse } from "../../resolveResponse-C7AcnFLN.mjs";
|
|
5
5
|
import "../../observable-UMO3vUa_.mjs";
|
|
6
6
|
import { Readable } from "node:stream";
|
|
7
7
|
import { pipeline } from "node:stream/promises";
|
|
@@ -67,7 +67,7 @@ function splitSetCookieString(cookiesString) {
|
|
|
67
67
|
|
|
68
68
|
//#endregion
|
|
69
69
|
//#region src/adapters/aws-lambda/getPlanner.ts
|
|
70
|
-
var import_objectSpread2$1 = __toESM(require_objectSpread2()
|
|
70
|
+
var import_objectSpread2$1 = __toESM(require_objectSpread2());
|
|
71
71
|
function determinePayloadFormat(event) {
|
|
72
72
|
const unknownEvent = event;
|
|
73
73
|
if (typeof unknownEvent.version === "undefined") return "1.0";
|
|
@@ -2,12 +2,12 @@ const require_getErrorShape = require('../getErrorShape-MR4DZeb7.cjs');
|
|
|
2
2
|
const require_codes = require('../codes-BfZsPdy-.cjs');
|
|
3
3
|
require('../tracked-D4WGA_Z-.cjs');
|
|
4
4
|
require('../parseTRPCMessage-7Ltmq-Fb.cjs');
|
|
5
|
-
require('../resolveResponse-
|
|
5
|
+
require('../resolveResponse-ByfQ6olt.cjs');
|
|
6
6
|
require('../contentTypeParsers-iAFF_pJG.cjs');
|
|
7
7
|
require('../unstable-core-do-not-import-fsjhEhgh.cjs');
|
|
8
8
|
require('../observable-B1Nk6r1H.cjs');
|
|
9
9
|
require('../initTRPC--HrEu8sH.cjs');
|
|
10
|
-
const require_node_http = require('../node-http-
|
|
10
|
+
const require_node_http = require('../node-http-D0T_XJ9C.cjs');
|
|
11
11
|
|
|
12
12
|
//#region src/adapters/express.ts
|
|
13
13
|
var import_objectSpread2 = require_getErrorShape.__toESM(require_getErrorShape.require_objectSpread2(), 1);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../index.d-BiUz7kM_.cjs";
|
|
2
|
-
import { AnyRouter } from "../unstable-core-do-not-import.d-
|
|
2
|
+
import { AnyRouter } from "../unstable-core-do-not-import.d-BXekdOPr.cjs";
|
|
3
3
|
import "../index.d-CvZXeEyR.cjs";
|
|
4
|
-
import { NodeHTTPCreateContextFnOptions, NodeHTTPHandlerOptions } from "../index.d
|
|
4
|
+
import { NodeHTTPCreateContextFnOptions, NodeHTTPHandlerOptions } from "../index.d--uNJFzUS.cjs";
|
|
5
5
|
import * as express from "express";
|
|
6
6
|
|
|
7
7
|
//#region src/adapters/express.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../index.d-D4qZxQJh.mjs";
|
|
2
|
-
import { AnyRouter } from "../unstable-core-do-not-import.d-
|
|
2
|
+
import { AnyRouter } from "../unstable-core-do-not-import.d-CjQPvBRI.mjs";
|
|
3
3
|
import "../index.d-vq_QHko2.mjs";
|
|
4
|
-
import { NodeHTTPCreateContextFnOptions, NodeHTTPHandlerOptions } from "../index.d-
|
|
4
|
+
import { NodeHTTPCreateContextFnOptions, NodeHTTPHandlerOptions } from "../index.d-D7vhS0-R.mjs";
|
|
5
5
|
import * as express from "express";
|
|
6
6
|
|
|
7
7
|
//#region src/adapters/express.d.ts
|
|
@@ -2,12 +2,12 @@ import { __toESM, require_objectSpread2 } from "../getErrorShape-vC8mUXJD.mjs";
|
|
|
2
2
|
import { run } from "../codes-DagpWZLc.mjs";
|
|
3
3
|
import "../tracked-D4V22yc5.mjs";
|
|
4
4
|
import "../parseTRPCMessage-CTow-umk.mjs";
|
|
5
|
-
import "../resolveResponse-
|
|
5
|
+
import "../resolveResponse-C7AcnFLN.mjs";
|
|
6
6
|
import "../contentTypeParsers-SN4WL9ze.mjs";
|
|
7
7
|
import "../unstable-core-do-not-import-9NNw8uQM.mjs";
|
|
8
8
|
import "../observable-UMO3vUa_.mjs";
|
|
9
9
|
import "../initTRPC-T5bbc89W.mjs";
|
|
10
|
-
import { internal_exceptionHandler, nodeHTTPRequestHandler } from "../node-http-
|
|
10
|
+
import { internal_exceptionHandler, nodeHTTPRequestHandler } from "../node-http-pD5xpNfK.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/adapters/express.ts
|
|
13
13
|
var import_objectSpread2 = __toESM(require_objectSpread2(), 1);
|
|
@@ -2,15 +2,15 @@ const require_getErrorShape = require('../../getErrorShape-MR4DZeb7.cjs');
|
|
|
2
2
|
require('../../codes-BfZsPdy-.cjs');
|
|
3
3
|
require('../../tracked-D4WGA_Z-.cjs');
|
|
4
4
|
require('../../parseTRPCMessage-7Ltmq-Fb.cjs');
|
|
5
|
-
const require_resolveResponse = require('../../resolveResponse-
|
|
5
|
+
const require_resolveResponse = require('../../resolveResponse-ByfQ6olt.cjs');
|
|
6
6
|
require('../../contentTypeParsers-iAFF_pJG.cjs');
|
|
7
7
|
require('../../unstable-core-do-not-import-fsjhEhgh.cjs');
|
|
8
8
|
require('../../observable-B1Nk6r1H.cjs');
|
|
9
9
|
require('../../initTRPC--HrEu8sH.cjs');
|
|
10
10
|
require('../../http-DXy3XyhL.cjs');
|
|
11
|
-
const require_node_http = require('../../node-http-
|
|
11
|
+
const require_node_http = require('../../node-http-D0T_XJ9C.cjs');
|
|
12
12
|
require('../../observable-BVzLuBs6.cjs');
|
|
13
|
-
const require_ws = require('../../ws-
|
|
13
|
+
const require_ws = require('../../ws-B16sko8C.cjs');
|
|
14
14
|
|
|
15
15
|
//#region src/adapters/fastify/fastifyRequestHandler.ts
|
|
16
16
|
var import_objectSpread2$1 = require_getErrorShape.__toESM(require_getErrorShape.require_objectSpread2(), 1);
|
|
@@ -43,6 +43,10 @@ function fastifyTRPCPlugin(fastify, opts, done) {
|
|
|
43
43
|
fastify.addContentTypeParser("application/json", { parseAs: "string" }, function(_, body, _done) {
|
|
44
44
|
_done(null, body);
|
|
45
45
|
});
|
|
46
|
+
fastify.removeContentTypeParser("multipart/form-data");
|
|
47
|
+
fastify.addContentTypeParser("multipart/form-data", {}, function(_, body, _done) {
|
|
48
|
+
_done(null, body);
|
|
49
|
+
});
|
|
46
50
|
let prefix = (_opts$prefix = opts.prefix) !== null && _opts$prefix !== void 0 ? _opts$prefix : "";
|
|
47
51
|
if (typeof fastifyTRPCPlugin.default !== "function") prefix = "";
|
|
48
52
|
fastify.all(`${prefix}/:path`, async (req, res) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../index.d-BiUz7kM_.cjs";
|
|
2
|
-
import { AnyRouter, HTTPBaseHandlerOptions } from "../../unstable-core-do-not-import.d-
|
|
2
|
+
import { AnyRouter, HTTPBaseHandlerOptions } from "../../unstable-core-do-not-import.d-BXekdOPr.cjs";
|
|
3
3
|
import "../../index.d-CvZXeEyR.cjs";
|
|
4
|
-
import { NodeHTTPCreateContextFnOptions, NodeHTTPCreateContextOption } from "../../index.d
|
|
4
|
+
import { NodeHTTPCreateContextFnOptions, NodeHTTPCreateContextOption } from "../../index.d--uNJFzUS.cjs";
|
|
5
5
|
import { FastifyInstance, FastifyReply, FastifyRequest } from "fastify";
|
|
6
6
|
|
|
7
7
|
//#region src/adapters/fastify/fastifyRequestHandler.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../index.d-D4qZxQJh.mjs";
|
|
2
|
-
import { AnyRouter, HTTPBaseHandlerOptions } from "../../unstable-core-do-not-import.d-
|
|
2
|
+
import { AnyRouter, HTTPBaseHandlerOptions } from "../../unstable-core-do-not-import.d-CjQPvBRI.mjs";
|
|
3
3
|
import "../../index.d-vq_QHko2.mjs";
|
|
4
|
-
import { NodeHTTPCreateContextFnOptions, NodeHTTPCreateContextOption } from "../../index.d-
|
|
4
|
+
import { NodeHTTPCreateContextFnOptions, NodeHTTPCreateContextOption } from "../../index.d-D7vhS0-R.mjs";
|
|
5
5
|
import { FastifyInstance, FastifyReply, FastifyRequest } from "fastify";
|
|
6
6
|
|
|
7
7
|
//#region src/adapters/fastify/fastifyRequestHandler.d.ts
|
|
@@ -2,15 +2,15 @@ import { __toESM, require_objectSpread2 } from "../../getErrorShape-vC8mUXJD.mjs
|
|
|
2
2
|
import "../../codes-DagpWZLc.mjs";
|
|
3
3
|
import "../../tracked-D4V22yc5.mjs";
|
|
4
4
|
import "../../parseTRPCMessage-CTow-umk.mjs";
|
|
5
|
-
import { resolveResponse } from "../../resolveResponse-
|
|
5
|
+
import { resolveResponse } from "../../resolveResponse-C7AcnFLN.mjs";
|
|
6
6
|
import "../../contentTypeParsers-SN4WL9ze.mjs";
|
|
7
7
|
import "../../unstable-core-do-not-import-9NNw8uQM.mjs";
|
|
8
8
|
import "../../observable-UMO3vUa_.mjs";
|
|
9
9
|
import "../../initTRPC-T5bbc89W.mjs";
|
|
10
10
|
import "../../http-CWyjOa1l.mjs";
|
|
11
|
-
import { incomingMessageToRequest } from "../../node-http-
|
|
11
|
+
import { incomingMessageToRequest } from "../../node-http-pD5xpNfK.mjs";
|
|
12
12
|
import "../../observable-CUiPknO-.mjs";
|
|
13
|
-
import { getWSConnectionHandler, handleKeepAlive } from "../../ws-
|
|
13
|
+
import { getWSConnectionHandler, handleKeepAlive } from "../../ws-Dl6Y2YNA.mjs";
|
|
14
14
|
|
|
15
15
|
//#region src/adapters/fastify/fastifyRequestHandler.ts
|
|
16
16
|
var import_objectSpread2$1 = __toESM(require_objectSpread2(), 1);
|
|
@@ -43,6 +43,10 @@ function fastifyTRPCPlugin(fastify, opts, done) {
|
|
|
43
43
|
fastify.addContentTypeParser("application/json", { parseAs: "string" }, function(_, body, _done) {
|
|
44
44
|
_done(null, body);
|
|
45
45
|
});
|
|
46
|
+
fastify.removeContentTypeParser("multipart/form-data");
|
|
47
|
+
fastify.addContentTypeParser("multipart/form-data", {}, function(_, body, _done) {
|
|
48
|
+
_done(null, body);
|
|
49
|
+
});
|
|
46
50
|
let prefix = (_opts$prefix = opts.prefix) !== null && _opts$prefix !== void 0 ? _opts$prefix : "";
|
|
47
51
|
if (typeof fastifyTRPCPlugin.default !== "function") prefix = "";
|
|
48
52
|
fastify.all(`${prefix}/:path`, async (req, res) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["opts: FastifyRequestHandlerOptions<TRouter, TRequest, TResponse>","createContext: ResolveHTTPRequestOptionsContextFn<TRouter>","incomingMessage: NodeHTTPRequest","fastify: FastifyInstance","opts: FastifyTRPCPluginOptions<TRouter>","done: (err?: Error) => void"],"sources":["../../../src/adapters/fastify/fastifyRequestHandler.ts","../../../src/adapters/fastify/fastifyTRPCPlugin.ts"],"sourcesContent":["/**\n * If you're making an adapter for tRPC and looking at this file for reference, you should import types and functions from `@trpc/server` and `@trpc/server/http`\n *\n * @example\n * ```ts\n * import type { AnyTRPCRouter } from '@trpc/server'\n * import type { HTTPBaseHandlerOptions } from '@trpc/server/http'\n * ```\n */\nimport type { FastifyReply, FastifyRequest } from 'fastify';\n// @trpc/server\nimport type { AnyRouter } from '../../@trpc/server';\n// @trpc/server/http\nimport {\n resolveResponse,\n type HTTPBaseHandlerOptions,\n type ResolveHTTPRequestOptionsContextFn,\n} from '../../@trpc/server/http';\n// @trpc/server/node-http\nimport type { NodeHTTPRequest } from '../node-http';\nimport {\n incomingMessageToRequest,\n type NodeHTTPCreateContextOption,\n} from '../node-http';\n\nexport type FastifyHandlerOptions<\n TRouter extends AnyRouter,\n TRequest extends FastifyRequest,\n TResponse extends FastifyReply,\n> = HTTPBaseHandlerOptions<TRouter, TRequest> &\n NodeHTTPCreateContextOption<TRouter, TRequest, TResponse>;\n\ntype FastifyRequestHandlerOptions<\n TRouter extends AnyRouter,\n TRequest extends FastifyRequest,\n TResponse extends FastifyReply,\n> = FastifyHandlerOptions<TRouter, TRequest, TResponse> & {\n req: TRequest;\n res: TResponse;\n path: string;\n};\n\nexport async function fastifyRequestHandler<\n TRouter extends AnyRouter,\n TRequest extends FastifyRequest,\n TResponse extends FastifyReply,\n>(opts: FastifyRequestHandlerOptions<TRouter, TRequest, TResponse>) {\n const createContext: ResolveHTTPRequestOptionsContextFn<TRouter> = async (\n innerOpts,\n ) => {\n return await opts.createContext?.({\n ...opts,\n ...innerOpts,\n });\n };\n\n const incomingMessage: NodeHTTPRequest = opts.req.raw;\n\n // monkey-path body to the IncomingMessage\n if ('body' in opts.req) {\n incomingMessage.body = opts.req.body;\n }\n const req = incomingMessageToRequest(incomingMessage, opts.res.raw, {\n maxBodySize: null,\n });\n\n const res = await resolveResponse({\n ...opts,\n req,\n error: null,\n createContext,\n onError(o) {\n opts?.onError?.({\n ...o,\n req: opts.req,\n });\n },\n });\n\n await opts.res.send(res);\n}\n","/**\n * If you're making an adapter for tRPC and looking at this file for reference, you should import types and functions from `@trpc/server` and `@trpc/server/http`\n *\n * @example\n * ```ts\n * import type { AnyTRPCRouter } from '@trpc/server'\n * import type { HTTPBaseHandlerOptions } from '@trpc/server/http'\n * ```\n */\n/// <reference types=\"@fastify/websocket\" />\nimport type { FastifyInstance, FastifyReply, FastifyRequest } from 'fastify';\n// @trpc/server\nimport type { AnyRouter } from '../../@trpc/server';\n// @trpc/server/http\nimport type { NodeHTTPCreateContextFnOptions } from '../node-http';\n// @trpc/server/ws\nimport {\n getWSConnectionHandler,\n handleKeepAlive,\n type WSSHandlerOptions,\n} from '../ws';\nimport type { FastifyHandlerOptions } from './fastifyRequestHandler';\nimport { fastifyRequestHandler } from './fastifyRequestHandler';\n\nexport interface FastifyTRPCPluginOptions<TRouter extends AnyRouter> {\n prefix?: string;\n useWSS?: boolean;\n trpcOptions: FastifyHandlerOptions<TRouter, FastifyRequest, FastifyReply>;\n}\n\nexport type CreateFastifyContextOptions = NodeHTTPCreateContextFnOptions<\n FastifyRequest,\n FastifyReply\n>;\n\nexport function fastifyTRPCPlugin<TRouter extends AnyRouter>(\n fastify: FastifyInstance,\n opts: FastifyTRPCPluginOptions<TRouter>,\n done: (err?: Error) => void,\n) {\n fastify.removeContentTypeParser('application/json');\n fastify.addContentTypeParser(\n 'application/json',\n { parseAs: 'string' },\n function (_, body, _done) {\n _done(null, body);\n },\n );\n\n let prefix = opts.prefix ?? '';\n\n // https://github.com/fastify/fastify-plugin/blob/fe079bef6557a83794bf437e14b9b9edb8a74104/plugin.js#L11\n // @ts-expect-error property 'default' does not exists on type ...\n if (typeof fastifyTRPCPlugin.default !== 'function') {\n prefix = ''; // handled by fastify internally\n }\n\n fastify.all(`${prefix}/:path`, async (req, res) => {\n const path = (req.params as any).path;\n await fastifyRequestHandler({ ...opts.trpcOptions, req, res, path });\n });\n\n if (opts.useWSS) {\n const trpcOptions =\n opts.trpcOptions as unknown as WSSHandlerOptions<TRouter>;\n\n const onConnection = getWSConnectionHandler<TRouter>({\n ...trpcOptions,\n });\n\n fastify.get(prefix ?? '/', { websocket: true }, (socket, req) => {\n onConnection(socket, req.raw);\n if (trpcOptions?.keepAlive?.enabled) {\n const { pingMs, pongWaitMs } = trpcOptions.keepAlive;\n handleKeepAlive(socket, pingMs, pongWaitMs);\n }\n });\n }\n\n done();\n}\n"],"mappings":";;;;;;;;;;;;;;;;AA0CA,eAAsB,sBAIpBA,MAAkE;CAClE,MAAMC,gBAA6D,OACjE,cACG;;AACH,SAAO,8BAAM,KAAK,qEAAL,2GACR,OACA,WACH;CACH;CAED,MAAMC,kBAAmC,KAAK,IAAI;AAGlD,KAAI,UAAU,KAAK,IACjB,iBAAgB,OAAO,KAAK,IAAI;CAElC,MAAM,MAAM,yBAAyB,iBAAiB,KAAK,IAAI,KAAK,EAClE,aAAa,KACd,EAAC;CAEF,MAAM,MAAM,MAAM,4FACb;EACH;EACA,OAAO;EACP;EACA,QAAQ,GAAG;;AACT,6DAAM,iDAAN,qGACK,UACH,KAAK,KAAK,OACV;EACH;IACD;AAEF,OAAM,KAAK,IAAI,KAAK,IAAI;AACzB;;;;;AC7CD,SAAgB,kBACdC,SACAC,MACAC,MACA;;AACA,SAAQ,wBAAwB,mBAAmB;AACnD,SAAQ,qBACN,oBACA,EAAE,SAAS,SAAU,GACrB,SAAU,GAAG,MAAM,OAAO;AACxB,QAAM,MAAM,KAAK;CAClB,EACF;CAED,IAAI,yBAAS,KAAK,6DAAU;AAI5B,YAAW,kBAAkB,YAAY,WACvC,UAAS;AAGX,SAAQ,KAAK,EAAE,OAAO,SAAS,OAAO,KAAK,QAAQ;EACjD,MAAM,OAAQ,IAAI,OAAe;AACjC,QAAM,8FAA2B,KAAK;GAAa;GAAK;GAAK;KAAO;CACrE,EAAC;AAEF,KAAI,KAAK,QAAQ;;EACf,MAAM,cACJ,KAAK;EAEP,MAAM,eAAe,6DAChB,aACH;AAEF,UAAQ,eAAI,mDAAU,KAAK,EAAE,WAAW,KAAM,GAAE,CAAC,QAAQ,QAAQ;;AAC/D,gBAAa,QAAQ,IAAI,IAAI;AAC7B,kFAAI,YAAa,yFAAW,SAAS;IACnC,MAAM,EAAE,QAAQ,YAAY,GAAG,YAAY;AAC3C,oBAAgB,QAAQ,QAAQ,WAAW;GAC5C;EACF,EAAC;CACH;AAED,OAAM;AACP"}
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["opts: FastifyRequestHandlerOptions<TRouter, TRequest, TResponse>","createContext: ResolveHTTPRequestOptionsContextFn<TRouter>","incomingMessage: NodeHTTPRequest","fastify: FastifyInstance","opts: FastifyTRPCPluginOptions<TRouter>","done: (err?: Error) => void"],"sources":["../../../src/adapters/fastify/fastifyRequestHandler.ts","../../../src/adapters/fastify/fastifyTRPCPlugin.ts"],"sourcesContent":["/**\n * If you're making an adapter for tRPC and looking at this file for reference, you should import types and functions from `@trpc/server` and `@trpc/server/http`\n *\n * @example\n * ```ts\n * import type { AnyTRPCRouter } from '@trpc/server'\n * import type { HTTPBaseHandlerOptions } from '@trpc/server/http'\n * ```\n */\nimport type { FastifyReply, FastifyRequest } from 'fastify';\n// @trpc/server\nimport type { AnyRouter } from '../../@trpc/server';\n// @trpc/server/http\nimport {\n resolveResponse,\n type HTTPBaseHandlerOptions,\n type ResolveHTTPRequestOptionsContextFn,\n} from '../../@trpc/server/http';\n// @trpc/server/node-http\nimport type { NodeHTTPRequest } from '../node-http';\nimport {\n incomingMessageToRequest,\n type NodeHTTPCreateContextOption,\n} from '../node-http';\n\nexport type FastifyHandlerOptions<\n TRouter extends AnyRouter,\n TRequest extends FastifyRequest,\n TResponse extends FastifyReply,\n> = HTTPBaseHandlerOptions<TRouter, TRequest> &\n NodeHTTPCreateContextOption<TRouter, TRequest, TResponse>;\n\ntype FastifyRequestHandlerOptions<\n TRouter extends AnyRouter,\n TRequest extends FastifyRequest,\n TResponse extends FastifyReply,\n> = FastifyHandlerOptions<TRouter, TRequest, TResponse> & {\n req: TRequest;\n res: TResponse;\n path: string;\n};\n\nexport async function fastifyRequestHandler<\n TRouter extends AnyRouter,\n TRequest extends FastifyRequest,\n TResponse extends FastifyReply,\n>(opts: FastifyRequestHandlerOptions<TRouter, TRequest, TResponse>) {\n const createContext: ResolveHTTPRequestOptionsContextFn<TRouter> = async (\n innerOpts,\n ) => {\n return await opts.createContext?.({\n ...opts,\n ...innerOpts,\n });\n };\n\n const incomingMessage: NodeHTTPRequest = opts.req.raw;\n\n // monkey-path body to the IncomingMessage\n if ('body' in opts.req) {\n incomingMessage.body = opts.req.body;\n }\n const req = incomingMessageToRequest(incomingMessage, opts.res.raw, {\n maxBodySize: null,\n });\n\n const res = await resolveResponse({\n ...opts,\n req,\n error: null,\n createContext,\n onError(o) {\n opts?.onError?.({\n ...o,\n req: opts.req,\n });\n },\n });\n\n await opts.res.send(res);\n}\n","/**\n * If you're making an adapter for tRPC and looking at this file for reference, you should import types and functions from `@trpc/server` and `@trpc/server/http`\n *\n * @example\n * ```ts\n * import type { AnyTRPCRouter } from '@trpc/server'\n * import type { HTTPBaseHandlerOptions } from '@trpc/server/http'\n * ```\n */\n/// <reference types=\"@fastify/websocket\" />\nimport type { FastifyInstance, FastifyReply, FastifyRequest } from 'fastify';\n// @trpc/server\nimport type { AnyRouter } from '../../@trpc/server';\n// @trpc/server/http\nimport type { NodeHTTPCreateContextFnOptions } from '../node-http';\n// @trpc/server/ws\nimport {\n getWSConnectionHandler,\n handleKeepAlive,\n type WSSHandlerOptions,\n} from '../ws';\nimport type { FastifyHandlerOptions } from './fastifyRequestHandler';\nimport { fastifyRequestHandler } from './fastifyRequestHandler';\n\nexport interface FastifyTRPCPluginOptions<TRouter extends AnyRouter> {\n prefix?: string;\n useWSS?: boolean;\n trpcOptions: FastifyHandlerOptions<TRouter, FastifyRequest, FastifyReply>;\n}\n\nexport type CreateFastifyContextOptions = NodeHTTPCreateContextFnOptions<\n FastifyRequest,\n FastifyReply\n>;\n\nexport function fastifyTRPCPlugin<TRouter extends AnyRouter>(\n fastify: FastifyInstance,\n opts: FastifyTRPCPluginOptions<TRouter>,\n done: (err?: Error) => void,\n) {\n fastify.removeContentTypeParser('application/json');\n fastify.addContentTypeParser(\n 'application/json',\n { parseAs: 'string' },\n function (_, body, _done) {\n _done(null, body);\n },\n );\n fastify.removeContentTypeParser('multipart/form-data');\n fastify.addContentTypeParser(\n 'multipart/form-data',\n {},\n function (_, body, _done) {\n _done(null, body);\n },\n );\n\n let prefix = opts.prefix ?? '';\n\n // https://github.com/fastify/fastify-plugin/blob/fe079bef6557a83794bf437e14b9b9edb8a74104/plugin.js#L11\n // @ts-expect-error property 'default' does not exists on type ...\n if (typeof fastifyTRPCPlugin.default !== 'function') {\n prefix = ''; // handled by fastify internally\n }\n\n fastify.all(`${prefix}/:path`, async (req, res) => {\n const path = (req.params as any).path;\n await fastifyRequestHandler({ ...opts.trpcOptions, req, res, path });\n });\n\n if (opts.useWSS) {\n const trpcOptions =\n opts.trpcOptions as unknown as WSSHandlerOptions<TRouter>;\n\n const onConnection = getWSConnectionHandler<TRouter>({\n ...trpcOptions,\n });\n\n fastify.get(prefix ?? '/', { websocket: true }, (socket, req) => {\n onConnection(socket, req.raw);\n if (trpcOptions?.keepAlive?.enabled) {\n const { pingMs, pongWaitMs } = trpcOptions.keepAlive;\n handleKeepAlive(socket, pingMs, pongWaitMs);\n }\n });\n }\n\n done();\n}\n"],"mappings":";;;;;;;;;;;;;;;;AA0CA,eAAsB,sBAIpBA,MAAkE;CAClE,MAAMC,gBAA6D,OACjE,cACG;;AACH,SAAO,8BAAM,KAAK,qEAAL,2GACR,OACA,WACH;CACH;CAED,MAAMC,kBAAmC,KAAK,IAAI;AAGlD,KAAI,UAAU,KAAK,IACjB,iBAAgB,OAAO,KAAK,IAAI;CAElC,MAAM,MAAM,yBAAyB,iBAAiB,KAAK,IAAI,KAAK,EAClE,aAAa,KACd,EAAC;CAEF,MAAM,MAAM,MAAM,4FACb;EACH;EACA,OAAO;EACP;EACA,QAAQ,GAAG;;AACT,6DAAM,iDAAN,qGACK,UACH,KAAK,KAAK,OACV;EACH;IACD;AAEF,OAAM,KAAK,IAAI,KAAK,IAAI;AACzB;;;;;AC7CD,SAAgB,kBACdC,SACAC,MACAC,MACA;;AACA,SAAQ,wBAAwB,mBAAmB;AACnD,SAAQ,qBACN,oBACA,EAAE,SAAS,SAAU,GACrB,SAAU,GAAG,MAAM,OAAO;AACxB,QAAM,MAAM,KAAK;CAClB,EACF;AACD,SAAQ,wBAAwB,sBAAsB;AACtD,SAAQ,qBACN,uBACA,CAAE,GACF,SAAU,GAAG,MAAM,OAAO;AACxB,QAAM,MAAM,KAAK;CAClB,EACF;CAED,IAAI,yBAAS,KAAK,6DAAU;AAI5B,YAAW,kBAAkB,YAAY,WACvC,UAAS;AAGX,SAAQ,KAAK,EAAE,OAAO,SAAS,OAAO,KAAK,QAAQ;EACjD,MAAM,OAAQ,IAAI,OAAe;AACjC,QAAM,8FAA2B,KAAK;GAAa;GAAK;GAAK;KAAO;CACrE,EAAC;AAEF,KAAI,KAAK,QAAQ;;EACf,MAAM,cACJ,KAAK;EAEP,MAAM,eAAe,6DAChB,aACH;AAEF,UAAQ,eAAI,mDAAU,KAAK,EAAE,WAAW,KAAM,GAAE,CAAC,QAAQ,QAAQ;;AAC/D,gBAAa,QAAQ,IAAI,IAAI;AAC7B,kFAAI,YAAa,yFAAW,SAAS;IACnC,MAAM,EAAE,QAAQ,YAAY,GAAG,YAAY;AAC3C,oBAAgB,QAAQ,QAAQ,WAAW;GAC5C;EACF,EAAC;CACH;AAED,OAAM;AACP"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_getErrorShape = require('../../getErrorShape-MR4DZeb7.cjs');
|
|
2
2
|
require('../../codes-BfZsPdy-.cjs');
|
|
3
3
|
require('../../tracked-D4WGA_Z-.cjs');
|
|
4
|
-
const require_resolveResponse = require('../../resolveResponse-
|
|
4
|
+
const require_resolveResponse = require('../../resolveResponse-ByfQ6olt.cjs');
|
|
5
5
|
require('../../observable-B1Nk6r1H.cjs');
|
|
6
6
|
|
|
7
7
|
//#region src/adapters/fetch/fetchRequestHandler.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../index.d-BiUz7kM_.cjs";
|
|
2
|
-
import { AnyRouter, CreateContextCallback, HTTPBaseHandlerOptions, TRPCRequestInfo, inferRouterContext } from "../../unstable-core-do-not-import.d-
|
|
2
|
+
import { AnyRouter, CreateContextCallback, HTTPBaseHandlerOptions, TRPCRequestInfo, inferRouterContext } from "../../unstable-core-do-not-import.d-BXekdOPr.cjs";
|
|
3
3
|
import "../../index.d-CvZXeEyR.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/adapters/fetch/types.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../index.d-D4qZxQJh.mjs";
|
|
2
|
-
import { AnyRouter, CreateContextCallback, HTTPBaseHandlerOptions, TRPCRequestInfo, inferRouterContext } from "../../unstable-core-do-not-import.d-
|
|
2
|
+
import { AnyRouter, CreateContextCallback, HTTPBaseHandlerOptions, TRPCRequestInfo, inferRouterContext } from "../../unstable-core-do-not-import.d-CjQPvBRI.mjs";
|
|
3
3
|
import "../../index.d-vq_QHko2.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/adapters/fetch/types.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __toESM, require_objectSpread2 } from "../../getErrorShape-vC8mUXJD.mjs";
|
|
2
2
|
import "../../codes-DagpWZLc.mjs";
|
|
3
3
|
import "../../tracked-D4V22yc5.mjs";
|
|
4
|
-
import { resolveResponse } from "../../resolveResponse-
|
|
4
|
+
import { resolveResponse } from "../../resolveResponse-C7AcnFLN.mjs";
|
|
5
5
|
import "../../observable-UMO3vUa_.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/adapters/fetch/fetchRequestHandler.ts
|
|
@@ -2,7 +2,7 @@ const require_getErrorShape = require('../getErrorShape-MR4DZeb7.cjs');
|
|
|
2
2
|
require('../codes-BfZsPdy-.cjs');
|
|
3
3
|
const require_tracked = require('../tracked-D4WGA_Z-.cjs');
|
|
4
4
|
require('../parseTRPCMessage-7Ltmq-Fb.cjs');
|
|
5
|
-
require('../resolveResponse-
|
|
5
|
+
require('../resolveResponse-ByfQ6olt.cjs');
|
|
6
6
|
require('../contentTypeParsers-iAFF_pJG.cjs');
|
|
7
7
|
const require_unstable_core_do_not_import = require('../unstable-core-do-not-import-fsjhEhgh.cjs');
|
|
8
8
|
require('../observable-B1Nk6r1H.cjs');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../index.d-BiUz7kM_.cjs";
|
|
2
|
-
import { CallerOverride, CreateContextCallback, ErrorHandlerOptions, MaybePromise, Simplify, TRPCError } from "../unstable-core-do-not-import.d-
|
|
2
|
+
import { CallerOverride, CreateContextCallback, ErrorHandlerOptions, MaybePromise, Simplify, TRPCError } from "../unstable-core-do-not-import.d-BXekdOPr.cjs";
|
|
3
3
|
import "../index.d-CvZXeEyR.cjs";
|
|
4
4
|
import { RedirectType, notFound as notFound$1 } from "next/navigation";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../index.d-D4qZxQJh.mjs";
|
|
2
|
-
import { CallerOverride, CreateContextCallback, ErrorHandlerOptions, MaybePromise, Simplify, TRPCError } from "../unstable-core-do-not-import.d-
|
|
2
|
+
import { CallerOverride, CreateContextCallback, ErrorHandlerOptions, MaybePromise, Simplify, TRPCError } from "../unstable-core-do-not-import.d-CjQPvBRI.mjs";
|
|
3
3
|
import "../index.d-vq_QHko2.mjs";
|
|
4
4
|
import { RedirectType, notFound as notFound$1 } from "next/navigation";
|
|
5
5
|
|
|
@@ -2,7 +2,7 @@ import { __commonJS, __toESM, require_defineProperty } from "../getErrorShape-vC
|
|
|
2
2
|
import "../codes-DagpWZLc.mjs";
|
|
3
3
|
import { TRPCError, getTRPCErrorFromUnknown } from "../tracked-D4V22yc5.mjs";
|
|
4
4
|
import "../parseTRPCMessage-CTow-umk.mjs";
|
|
5
|
-
import "../resolveResponse-
|
|
5
|
+
import "../resolveResponse-C7AcnFLN.mjs";
|
|
6
6
|
import "../contentTypeParsers-SN4WL9ze.mjs";
|
|
7
7
|
import { formDataToObject } from "../unstable-core-do-not-import-9NNw8uQM.mjs";
|
|
8
8
|
import "../observable-UMO3vUa_.mjs";
|
package/dist/adapters/next.cjs
CHANGED
|
@@ -2,12 +2,12 @@ const require_getErrorShape = require('../getErrorShape-MR4DZeb7.cjs');
|
|
|
2
2
|
const require_codes = require('../codes-BfZsPdy-.cjs');
|
|
3
3
|
const require_tracked = require('../tracked-D4WGA_Z-.cjs');
|
|
4
4
|
require('../parseTRPCMessage-7Ltmq-Fb.cjs');
|
|
5
|
-
require('../resolveResponse-
|
|
5
|
+
require('../resolveResponse-ByfQ6olt.cjs');
|
|
6
6
|
require('../contentTypeParsers-iAFF_pJG.cjs');
|
|
7
7
|
require('../unstable-core-do-not-import-fsjhEhgh.cjs');
|
|
8
8
|
require('../observable-B1Nk6r1H.cjs');
|
|
9
9
|
require('../initTRPC--HrEu8sH.cjs');
|
|
10
|
-
const require_node_http = require('../node-http-
|
|
10
|
+
const require_node_http = require('../node-http-D0T_XJ9C.cjs');
|
|
11
11
|
|
|
12
12
|
//#region src/adapters/next.ts
|
|
13
13
|
var import_objectSpread2 = require_getErrorShape.__toESM(require_getErrorShape.require_objectSpread2(), 1);
|
package/dist/adapters/next.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../index.d-BiUz7kM_.cjs";
|
|
2
|
-
import { AnyRouter } from "../unstable-core-do-not-import.d-
|
|
2
|
+
import { AnyRouter } from "../unstable-core-do-not-import.d-BXekdOPr.cjs";
|
|
3
3
|
import "../index.d-CvZXeEyR.cjs";
|
|
4
|
-
import { NodeHTTPCreateContextFnOptions, NodeHTTPHandlerOptions } from "../index.d
|
|
4
|
+
import { NodeHTTPCreateContextFnOptions, NodeHTTPHandlerOptions } from "../index.d--uNJFzUS.cjs";
|
|
5
5
|
import { NextApiHandler, NextApiHandler as NextApiHandler$1, NextApiRequest, NextApiRequest as NextApiRequest$1, NextApiResponse, NextApiResponse as NextApiResponse$1 } from "next";
|
|
6
6
|
|
|
7
7
|
//#region src/adapters/next.d.ts
|
package/dist/adapters/next.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../index.d-D4qZxQJh.mjs";
|
|
2
|
-
import { AnyRouter } from "../unstable-core-do-not-import.d-
|
|
2
|
+
import { AnyRouter } from "../unstable-core-do-not-import.d-CjQPvBRI.mjs";
|
|
3
3
|
import "../index.d-vq_QHko2.mjs";
|
|
4
|
-
import { NodeHTTPCreateContextFnOptions, NodeHTTPHandlerOptions } from "../index.d-
|
|
4
|
+
import { NodeHTTPCreateContextFnOptions, NodeHTTPHandlerOptions } from "../index.d-D7vhS0-R.mjs";
|
|
5
5
|
import { NextApiHandler, NextApiHandler as NextApiHandler$1, NextApiRequest, NextApiRequest as NextApiRequest$1, NextApiResponse, NextApiResponse as NextApiResponse$1 } from "next";
|
|
6
6
|
|
|
7
7
|
//#region src/adapters/next.d.ts
|
package/dist/adapters/next.mjs
CHANGED
|
@@ -2,12 +2,12 @@ import { __toESM, require_objectSpread2 } from "../getErrorShape-vC8mUXJD.mjs";
|
|
|
2
2
|
import { run } from "../codes-DagpWZLc.mjs";
|
|
3
3
|
import { TRPCError } from "../tracked-D4V22yc5.mjs";
|
|
4
4
|
import "../parseTRPCMessage-CTow-umk.mjs";
|
|
5
|
-
import "../resolveResponse-
|
|
5
|
+
import "../resolveResponse-C7AcnFLN.mjs";
|
|
6
6
|
import "../contentTypeParsers-SN4WL9ze.mjs";
|
|
7
7
|
import "../unstable-core-do-not-import-9NNw8uQM.mjs";
|
|
8
8
|
import "../observable-UMO3vUa_.mjs";
|
|
9
9
|
import "../initTRPC-T5bbc89W.mjs";
|
|
10
|
-
import { internal_exceptionHandler, nodeHTTPRequestHandler } from "../node-http-
|
|
10
|
+
import { internal_exceptionHandler, nodeHTTPRequestHandler } from "../node-http-pD5xpNfK.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/adapters/next.ts
|
|
13
13
|
var import_objectSpread2 = __toESM(require_objectSpread2(), 1);
|
|
@@ -2,12 +2,12 @@ require('../../getErrorShape-MR4DZeb7.cjs');
|
|
|
2
2
|
require('../../codes-BfZsPdy-.cjs');
|
|
3
3
|
require('../../tracked-D4WGA_Z-.cjs');
|
|
4
4
|
require('../../parseTRPCMessage-7Ltmq-Fb.cjs');
|
|
5
|
-
require('../../resolveResponse-
|
|
5
|
+
require('../../resolveResponse-ByfQ6olt.cjs');
|
|
6
6
|
require('../../contentTypeParsers-iAFF_pJG.cjs');
|
|
7
7
|
require('../../unstable-core-do-not-import-fsjhEhgh.cjs');
|
|
8
8
|
require('../../observable-B1Nk6r1H.cjs');
|
|
9
9
|
require('../../initTRPC--HrEu8sH.cjs');
|
|
10
|
-
const require_node_http = require('../../node-http-
|
|
10
|
+
const require_node_http = require('../../node-http-D0T_XJ9C.cjs');
|
|
11
11
|
|
|
12
12
|
exports.createURL = require_node_http.createURL;
|
|
13
13
|
exports.incomingMessageToRequest = require_node_http.incomingMessageToRequest;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../index.d-BiUz7kM_.cjs";
|
|
2
|
-
import "../../unstable-core-do-not-import.d-
|
|
2
|
+
import "../../unstable-core-do-not-import.d-BXekdOPr.cjs";
|
|
3
3
|
import "../../index.d-CvZXeEyR.cjs";
|
|
4
|
-
import { NodeHTTPCreateContextFn, NodeHTTPCreateContextFnOptions, NodeHTTPCreateContextOption, NodeHTTPHandlerOptions, NodeHTTPRequest, NodeHTTPRequestHandlerOptions, NodeHTTPResponse, createURL, incomingMessageToRequest, internal_exceptionHandler, nodeHTTPRequestHandler } from "../../index.d
|
|
4
|
+
import { NodeHTTPCreateContextFn, NodeHTTPCreateContextFnOptions, NodeHTTPCreateContextOption, NodeHTTPHandlerOptions, NodeHTTPRequest, NodeHTTPRequestHandlerOptions, NodeHTTPResponse, createURL, incomingMessageToRequest, internal_exceptionHandler, nodeHTTPRequestHandler } from "../../index.d--uNJFzUS.cjs";
|
|
5
5
|
export { NodeHTTPCreateContextFn, NodeHTTPCreateContextFnOptions, NodeHTTPCreateContextOption, NodeHTTPHandlerOptions, NodeHTTPRequest, NodeHTTPRequestHandlerOptions, NodeHTTPResponse, createURL, incomingMessageToRequest, internal_exceptionHandler, nodeHTTPRequestHandler };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../index.d-D4qZxQJh.mjs";
|
|
2
|
-
import "../../unstable-core-do-not-import.d-
|
|
2
|
+
import "../../unstable-core-do-not-import.d-CjQPvBRI.mjs";
|
|
3
3
|
import "../../index.d-vq_QHko2.mjs";
|
|
4
|
-
import { NodeHTTPCreateContextFn, NodeHTTPCreateContextFnOptions, NodeHTTPCreateContextOption, NodeHTTPHandlerOptions, NodeHTTPRequest, NodeHTTPRequestHandlerOptions, NodeHTTPResponse, createURL, incomingMessageToRequest, internal_exceptionHandler, nodeHTTPRequestHandler } from "../../index.d-
|
|
4
|
+
import { NodeHTTPCreateContextFn, NodeHTTPCreateContextFnOptions, NodeHTTPCreateContextOption, NodeHTTPHandlerOptions, NodeHTTPRequest, NodeHTTPRequestHandlerOptions, NodeHTTPResponse, createURL, incomingMessageToRequest, internal_exceptionHandler, nodeHTTPRequestHandler } from "../../index.d-D7vhS0-R.mjs";
|
|
5
5
|
export { NodeHTTPCreateContextFn, NodeHTTPCreateContextFnOptions, NodeHTTPCreateContextOption, NodeHTTPHandlerOptions, NodeHTTPRequest, NodeHTTPRequestHandlerOptions, NodeHTTPResponse, createURL, incomingMessageToRequest, internal_exceptionHandler, nodeHTTPRequestHandler };
|
|
@@ -2,11 +2,11 @@ import "../../getErrorShape-vC8mUXJD.mjs";
|
|
|
2
2
|
import "../../codes-DagpWZLc.mjs";
|
|
3
3
|
import "../../tracked-D4V22yc5.mjs";
|
|
4
4
|
import "../../parseTRPCMessage-CTow-umk.mjs";
|
|
5
|
-
import "../../resolveResponse-
|
|
5
|
+
import "../../resolveResponse-C7AcnFLN.mjs";
|
|
6
6
|
import "../../contentTypeParsers-SN4WL9ze.mjs";
|
|
7
7
|
import "../../unstable-core-do-not-import-9NNw8uQM.mjs";
|
|
8
8
|
import "../../observable-UMO3vUa_.mjs";
|
|
9
9
|
import "../../initTRPC-T5bbc89W.mjs";
|
|
10
|
-
import { createURL, incomingMessageToRequest, internal_exceptionHandler, nodeHTTPRequestHandler } from "../../node-http-
|
|
10
|
+
import { createURL, incomingMessageToRequest, internal_exceptionHandler, nodeHTTPRequestHandler } from "../../node-http-pD5xpNfK.mjs";
|
|
11
11
|
|
|
12
12
|
export { createURL, incomingMessageToRequest, internal_exceptionHandler, nodeHTTPRequestHandler };
|
|
@@ -2,12 +2,12 @@ const require_getErrorShape = require('../getErrorShape-MR4DZeb7.cjs');
|
|
|
2
2
|
const require_codes = require('../codes-BfZsPdy-.cjs');
|
|
3
3
|
require('../tracked-D4WGA_Z-.cjs');
|
|
4
4
|
require('../parseTRPCMessage-7Ltmq-Fb.cjs');
|
|
5
|
-
require('../resolveResponse-
|
|
5
|
+
require('../resolveResponse-ByfQ6olt.cjs');
|
|
6
6
|
require('../contentTypeParsers-iAFF_pJG.cjs');
|
|
7
7
|
require('../unstable-core-do-not-import-fsjhEhgh.cjs');
|
|
8
8
|
require('../observable-B1Nk6r1H.cjs');
|
|
9
9
|
require('../initTRPC--HrEu8sH.cjs');
|
|
10
|
-
const require_node_http = require('../node-http-
|
|
10
|
+
const require_node_http = require('../node-http-D0T_XJ9C.cjs');
|
|
11
11
|
const http = require_getErrorShape.__toESM(require("http"));
|
|
12
12
|
|
|
13
13
|
//#region src/adapters/standalone.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../index.d-BiUz7kM_.cjs";
|
|
2
|
-
import { AnyRouter } from "../unstable-core-do-not-import.d-
|
|
2
|
+
import { AnyRouter } from "../unstable-core-do-not-import.d-BXekdOPr.cjs";
|
|
3
3
|
import "../index.d-CvZXeEyR.cjs";
|
|
4
|
-
import { NodeHTTPCreateContextFnOptions, NodeHTTPHandlerOptions, NodeHTTPRequest, NodeHTTPResponse } from "../index.d
|
|
4
|
+
import { NodeHTTPCreateContextFnOptions, NodeHTTPHandlerOptions, NodeHTTPRequest, NodeHTTPResponse } from "../index.d--uNJFzUS.cjs";
|
|
5
5
|
import http from "http";
|
|
6
6
|
import * as http2 from "http2";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../index.d-D4qZxQJh.mjs";
|
|
2
|
-
import { AnyRouter } from "../unstable-core-do-not-import.d-
|
|
2
|
+
import { AnyRouter } from "../unstable-core-do-not-import.d-CjQPvBRI.mjs";
|
|
3
3
|
import "../index.d-vq_QHko2.mjs";
|
|
4
|
-
import { NodeHTTPCreateContextFnOptions, NodeHTTPHandlerOptions, NodeHTTPRequest, NodeHTTPResponse } from "../index.d-
|
|
4
|
+
import { NodeHTTPCreateContextFnOptions, NodeHTTPHandlerOptions, NodeHTTPRequest, NodeHTTPResponse } from "../index.d-D7vhS0-R.mjs";
|
|
5
5
|
import http from "http";
|
|
6
6
|
import * as http2 from "http2";
|
|
7
7
|
|
|
@@ -2,12 +2,12 @@ import { __toESM, require_objectSpread2 } from "../getErrorShape-vC8mUXJD.mjs";
|
|
|
2
2
|
import { run } from "../codes-DagpWZLc.mjs";
|
|
3
3
|
import "../tracked-D4V22yc5.mjs";
|
|
4
4
|
import "../parseTRPCMessage-CTow-umk.mjs";
|
|
5
|
-
import "../resolveResponse-
|
|
5
|
+
import "../resolveResponse-C7AcnFLN.mjs";
|
|
6
6
|
import "../contentTypeParsers-SN4WL9ze.mjs";
|
|
7
7
|
import "../unstable-core-do-not-import-9NNw8uQM.mjs";
|
|
8
8
|
import "../observable-UMO3vUa_.mjs";
|
|
9
9
|
import "../initTRPC-T5bbc89W.mjs";
|
|
10
|
-
import { createURL, internal_exceptionHandler, nodeHTTPRequestHandler } from "../node-http-
|
|
10
|
+
import { createURL, internal_exceptionHandler, nodeHTTPRequestHandler } from "../node-http-pD5xpNfK.mjs";
|
|
11
11
|
import http from "http";
|
|
12
12
|
|
|
13
13
|
//#region src/adapters/standalone.ts
|
package/dist/adapters/ws.cjs
CHANGED
|
@@ -2,15 +2,15 @@ require('../getErrorShape-MR4DZeb7.cjs');
|
|
|
2
2
|
require('../codes-BfZsPdy-.cjs');
|
|
3
3
|
require('../tracked-D4WGA_Z-.cjs');
|
|
4
4
|
require('../parseTRPCMessage-7Ltmq-Fb.cjs');
|
|
5
|
-
require('../resolveResponse-
|
|
5
|
+
require('../resolveResponse-ByfQ6olt.cjs');
|
|
6
6
|
require('../contentTypeParsers-iAFF_pJG.cjs');
|
|
7
7
|
require('../unstable-core-do-not-import-fsjhEhgh.cjs');
|
|
8
8
|
require('../observable-B1Nk6r1H.cjs');
|
|
9
9
|
require('../initTRPC--HrEu8sH.cjs');
|
|
10
10
|
require('../http-DXy3XyhL.cjs');
|
|
11
|
-
require('../node-http-
|
|
11
|
+
require('../node-http-D0T_XJ9C.cjs');
|
|
12
12
|
require('../observable-BVzLuBs6.cjs');
|
|
13
|
-
const require_ws = require('../ws-
|
|
13
|
+
const require_ws = require('../ws-B16sko8C.cjs');
|
|
14
14
|
|
|
15
15
|
exports.applyWSSHandler = require_ws.applyWSSHandler;
|
|
16
16
|
exports.getWSConnectionHandler = require_ws.getWSConnectionHandler;
|
package/dist/adapters/ws.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../index.d-BiUz7kM_.cjs";
|
|
2
|
-
import { AnyRouter, BaseHandlerOptions, CreateContextCallback, MaybePromise, inferRouterContext } from "../unstable-core-do-not-import.d-
|
|
2
|
+
import { AnyRouter, BaseHandlerOptions, CreateContextCallback, MaybePromise, inferRouterContext } from "../unstable-core-do-not-import.d-BXekdOPr.cjs";
|
|
3
3
|
import "../index.d-CvZXeEyR.cjs";
|
|
4
|
-
import { NodeHTTPCreateContextFnOptions } from "../index.d
|
|
4
|
+
import { NodeHTTPCreateContextFnOptions } from "../index.d--uNJFzUS.cjs";
|
|
5
5
|
import { IncomingMessage } from "http";
|
|
6
6
|
import ws from "ws";
|
|
7
7
|
|
package/dist/adapters/ws.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../index.d-D4qZxQJh.mjs";
|
|
2
|
-
import { AnyRouter, BaseHandlerOptions, CreateContextCallback, MaybePromise, inferRouterContext } from "../unstable-core-do-not-import.d-
|
|
2
|
+
import { AnyRouter, BaseHandlerOptions, CreateContextCallback, MaybePromise, inferRouterContext } from "../unstable-core-do-not-import.d-CjQPvBRI.mjs";
|
|
3
3
|
import "../index.d-vq_QHko2.mjs";
|
|
4
|
-
import { NodeHTTPCreateContextFnOptions } from "../index.d-
|
|
4
|
+
import { NodeHTTPCreateContextFnOptions } from "../index.d-D7vhS0-R.mjs";
|
|
5
5
|
import { IncomingMessage } from "http";
|
|
6
6
|
import ws from "ws";
|
|
7
7
|
|
package/dist/adapters/ws.mjs
CHANGED
|
@@ -2,14 +2,14 @@ import "../getErrorShape-vC8mUXJD.mjs";
|
|
|
2
2
|
import "../codes-DagpWZLc.mjs";
|
|
3
3
|
import "../tracked-D4V22yc5.mjs";
|
|
4
4
|
import "../parseTRPCMessage-CTow-umk.mjs";
|
|
5
|
-
import "../resolveResponse-
|
|
5
|
+
import "../resolveResponse-C7AcnFLN.mjs";
|
|
6
6
|
import "../contentTypeParsers-SN4WL9ze.mjs";
|
|
7
7
|
import "../unstable-core-do-not-import-9NNw8uQM.mjs";
|
|
8
8
|
import "../observable-UMO3vUa_.mjs";
|
|
9
9
|
import "../initTRPC-T5bbc89W.mjs";
|
|
10
10
|
import "../http-CWyjOa1l.mjs";
|
|
11
|
-
import "../node-http-
|
|
11
|
+
import "../node-http-pD5xpNfK.mjs";
|
|
12
12
|
import "../observable-CUiPknO-.mjs";
|
|
13
|
-
import { applyWSSHandler, getWSConnectionHandler, handleKeepAlive } from "../ws-
|
|
13
|
+
import { applyWSSHandler, getWSConnectionHandler, handleKeepAlive } from "../ws-Dl6Y2YNA.mjs";
|
|
14
14
|
|
|
15
15
|
export { applyWSSHandler, getWSConnectionHandler, handleKeepAlive };
|
package/dist/http.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_getErrorShape = require('./getErrorShape-MR4DZeb7.cjs');
|
|
2
2
|
require('./codes-BfZsPdy-.cjs');
|
|
3
3
|
require('./tracked-D4WGA_Z-.cjs');
|
|
4
|
-
const require_resolveResponse = require('./resolveResponse-
|
|
4
|
+
const require_resolveResponse = require('./resolveResponse-ByfQ6olt.cjs');
|
|
5
5
|
const require_contentTypeParsers = require('./contentTypeParsers-iAFF_pJG.cjs');
|
|
6
6
|
require('./observable-B1Nk6r1H.cjs');
|
|
7
7
|
require('./http-DXy3XyhL.cjs');
|
package/dist/http.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "./index.d-BiUz7kM_.cjs";
|
|
2
|
-
import { BaseHandlerOptions, FileLike, HTTPBaseHandlerOptions, HTTPErrorHandler, OctetInput, ResolveHTTPRequestOptionsContextFn, ResponseMeta, ResponseMetaFn, TRPCRequestInfo, UtilityParser, getHTTPStatusCode, getHTTPStatusCodeFromError, octetInputParser, parseConnectionParamsFromString, parseConnectionParamsFromUnknown, resolveResponse } from "./unstable-core-do-not-import.d-
|
|
2
|
+
import { BaseHandlerOptions, FileLike, HTTPBaseHandlerOptions, HTTPErrorHandler, OctetInput, ResolveHTTPRequestOptionsContextFn, ResponseMeta, ResponseMetaFn, TRPCRequestInfo, UtilityParser, getHTTPStatusCode, getHTTPStatusCodeFromError, octetInputParser, parseConnectionParamsFromString, parseConnectionParamsFromUnknown, resolveResponse } from "./unstable-core-do-not-import.d-BXekdOPr.cjs";
|
|
3
3
|
export { BaseHandlerOptions, FileLike, HTTPBaseHandlerOptions, HTTPErrorHandler, OctetInput, HTTPErrorHandler as OnErrorFunction, ResolveHTTPRequestOptionsContextFn, ResponseMeta, ResponseMetaFn, TRPCRequestInfo, UtilityParser, getHTTPStatusCode, getHTTPStatusCodeFromError, octetInputParser, parseConnectionParamsFromString, parseConnectionParamsFromUnknown, resolveResponse };
|
package/dist/http.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "./index.d-D4qZxQJh.mjs";
|
|
2
|
-
import { BaseHandlerOptions, FileLike, HTTPBaseHandlerOptions, HTTPErrorHandler, OctetInput, ResolveHTTPRequestOptionsContextFn, ResponseMeta, ResponseMetaFn, TRPCRequestInfo, UtilityParser, getHTTPStatusCode, getHTTPStatusCodeFromError, octetInputParser, parseConnectionParamsFromString, parseConnectionParamsFromUnknown, resolveResponse } from "./unstable-core-do-not-import.d-
|
|
2
|
+
import { BaseHandlerOptions, FileLike, HTTPBaseHandlerOptions, HTTPErrorHandler, OctetInput, ResolveHTTPRequestOptionsContextFn, ResponseMeta, ResponseMetaFn, TRPCRequestInfo, UtilityParser, getHTTPStatusCode, getHTTPStatusCodeFromError, octetInputParser, parseConnectionParamsFromString, parseConnectionParamsFromUnknown, resolveResponse } from "./unstable-core-do-not-import.d-CjQPvBRI.mjs";
|
|
3
3
|
export { BaseHandlerOptions, FileLike, HTTPBaseHandlerOptions, HTTPErrorHandler, OctetInput, HTTPErrorHandler as OnErrorFunction, ResolveHTTPRequestOptionsContextFn, ResponseMeta, ResponseMetaFn, TRPCRequestInfo, UtilityParser, getHTTPStatusCode, getHTTPStatusCodeFromError, octetInputParser, parseConnectionParamsFromString, parseConnectionParamsFromUnknown, resolveResponse };
|
package/dist/http.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getHTTPStatusCode, getHTTPStatusCodeFromError } from "./getErrorShape-vC8mUXJD.mjs";
|
|
2
2
|
import "./codes-DagpWZLc.mjs";
|
|
3
3
|
import "./tracked-D4V22yc5.mjs";
|
|
4
|
-
import { parseConnectionParamsFromString, parseConnectionParamsFromUnknown, resolveResponse } from "./resolveResponse-
|
|
4
|
+
import { parseConnectionParamsFromString, parseConnectionParamsFromUnknown, resolveResponse } from "./resolveResponse-C7AcnFLN.mjs";
|
|
5
5
|
import { octetInputParser } from "./contentTypeParsers-SN4WL9ze.mjs";
|
|
6
6
|
import "./observable-UMO3vUa_.mjs";
|
|
7
7
|
import "./http-CWyjOa1l.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyRouter, CreateContextCallback, DistributiveOmit, HTTPBaseHandlerOptions, MaybePromise, TRPCRequestInfo, inferRouterContext } from "./unstable-core-do-not-import.d-
|
|
1
|
+
import { AnyRouter, CreateContextCallback, DistributiveOmit, HTTPBaseHandlerOptions, MaybePromise, TRPCRequestInfo, inferRouterContext } from "./unstable-core-do-not-import.d-BXekdOPr.cjs";
|
|
2
2
|
import * as http$1 from "http";
|
|
3
3
|
import * as http2 from "http2";
|
|
4
4
|
|
|
@@ -96,4 +96,4 @@ declare function incomingMessageToRequest(req: NodeHTTPRequest, res: NodeHTTPRes
|
|
|
96
96
|
|
|
97
97
|
//#endregion
|
|
98
98
|
export { NodeHTTPCreateContextFn, NodeHTTPCreateContextFnOptions, NodeHTTPCreateContextOption, NodeHTTPHandlerOptions, NodeHTTPRequest, NodeHTTPRequestHandlerOptions, NodeHTTPResponse, createURL, incomingMessageToRequest, internal_exceptionHandler, nodeHTTPRequestHandler };
|
|
99
|
-
//# sourceMappingURL=index.d
|
|
99
|
+
//# sourceMappingURL=index.d--uNJFzUS.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d
|
|
1
|
+
{"version":3,"file":"index.d--uNJFzUS.d.cts","names":[],"sources":["../src/adapters/node-http/types.ts","../src/adapters/node-http/nodeHTTPRequestHandler.ts","../src/adapters/node-http/incomingMessageToRequest.ts"],"sourcesContent":[],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyRouter, CreateContextCallback, DistributiveOmit, HTTPBaseHandlerOptions, MaybePromise, TRPCRequestInfo, inferRouterContext } from "./unstable-core-do-not-import.d-
|
|
1
|
+
import { AnyRouter, CreateContextCallback, DistributiveOmit, HTTPBaseHandlerOptions, MaybePromise, TRPCRequestInfo, inferRouterContext } from "./unstable-core-do-not-import.d-CjQPvBRI.mjs";
|
|
2
2
|
import * as http$1 from "http";
|
|
3
3
|
import * as http2 from "http2";
|
|
4
4
|
|
|
@@ -96,4 +96,4 @@ declare function incomingMessageToRequest(req: NodeHTTPRequest, res: NodeHTTPRes
|
|
|
96
96
|
|
|
97
97
|
//#endregion
|
|
98
98
|
export { NodeHTTPCreateContextFn, NodeHTTPCreateContextFnOptions, NodeHTTPCreateContextOption, NodeHTTPHandlerOptions, NodeHTTPRequest, NodeHTTPRequestHandlerOptions, NodeHTTPResponse, createURL, incomingMessageToRequest, internal_exceptionHandler, nodeHTTPRequestHandler };
|
|
99
|
-
//# sourceMappingURL=index.d-
|
|
99
|
+
//# sourceMappingURL=index.d-D7vhS0-R.d.mts.map
|