@trpc/server 11.18.1-canary.30
“The tRPC server library”
Agent Skills SKILL.md definition file
SHA-256c902af418ff449e40e420479d46f2ff644f3bd6fc625f0e9ed08ce3502bf8835
MaleculeK(Am)
Evidence
1const require_codes = require("./codes-C6ZIq69A.cjs");
2const require_getErrorShape = require("./getErrorShape-DeIapApr.cjs");
3const require_tracked = require("./tracked-BQJb0ANk.cjs");
4//#region src/unstable-core-do-not-import/middleware.ts
5/** @internal */
6const middlewareMa …
279:18… rocess3;
280/**
281* The default check to see if we're in a server
282*/
283const isServerDefault = typeof window === "undefined" || "Deno" in window || ((_globalThis$process = globalThis.process) === null || _globalThis$process === void 0 || (_globalThis$process = _globalThis$process.env) === null || _globalThis$process === void 0 ? void 0 : _globalThis$process["NODE_ENV"]) === "test" || !!((_globalThis$process2 = globalThis.process) === null || _globalThis$process2 === void 0 || (_globalThis$process2 = _globalThis$process2.env) === null || _globalThis$process2 === void 0 ? void 0 : _globalThis$process2["JEST_WORKER_ID"]) || !!((_globalThis$process3 = globalThis.process) === …
50:48… r: ${msg}`);
51}
52function sleep(ms = 0) {
53 return new Promise((res) => setTimeout(res, ms));
54}
55/**
56* Ponyfill for
57* [`AbortSignal.any`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/any_static).
58*/
59function abortSignalsAnyPonyfill(signals) {
60 if (typeof AbortSignal.any === "func …
1---
2name: adapter-fastify
3description: >
4 Mount tRPC as a Fastify plugin with fastifyTRPCPlugin from
5 @trpc/server/adapters/fastify. Configure prefix, trpcOptions (router,
⋯4 lines
20# tRPC — Adapter: Fastify
21
22## Setup
23
24```ts
25// server.ts
26import { initTRPC } from '@trpc/server';
⋯4 lines
No evidence locations were recorded for this file. Raw result