@trpc/server 11.1.2 → 11.1.3-alpha-tmp-tsdown.23
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/adapters/aws-lambda/package.json +1 -0
- package/adapters/express/package.json +1 -0
- package/adapters/fastify/package.json +1 -0
- package/adapters/fetch/package.json +1 -0
- package/adapters/next/package.json +1 -0
- package/adapters/next-app-dir/package.json +1 -0
- package/adapters/node-http/package.json +1 -0
- package/adapters/standalone/package.json +1 -0
- package/adapters/ws/package.json +1 -0
- package/dist/@trpc/server/http.js +4 -0
- package/dist/@trpc/server/http.mjs +4 -0
- package/dist/@trpc/server/index.d.mts +31 -0
- package/dist/@trpc/server/index.d.mts.map +1 -0
- package/dist/@trpc/server/index.d.ts +26 -60
- package/dist/@trpc/server/index.d.ts.map +1 -1
- package/dist/@trpc/server/index.js +9 -0
- package/dist/@trpc/server/index.mjs +9 -0
- package/dist/@trpc/server/rpc.js +2 -0
- package/dist/@trpc/server/rpc.mjs +2 -0
- package/dist/_virtual/rolldown_runtime.js +39 -0
- package/dist/_virtual/rolldown_runtime.mjs +27 -0
- package/dist/adapters/aws-lambda/getPlanner.d.mts +12 -0
- package/dist/adapters/aws-lambda/getPlanner.d.mts.map +1 -0
- package/dist/adapters/aws-lambda/getPlanner.d.ts +8 -9
- package/dist/adapters/aws-lambda/getPlanner.d.ts.map +1 -1
- package/dist/adapters/aws-lambda/getPlanner.js +123 -150
- package/dist/adapters/aws-lambda/getPlanner.mjs +122 -147
- package/dist/adapters/aws-lambda/getPlanner.mjs.map +1 -0
- package/dist/adapters/aws-lambda/index.d.mts +27 -0
- package/dist/adapters/aws-lambda/index.d.mts.map +1 -0
- package/dist/adapters/aws-lambda/index.d.ts +25 -20
- package/dist/adapters/aws-lambda/index.d.ts.map +1 -1
- package/dist/adapters/aws-lambda/index.js +56 -31
- package/dist/adapters/aws-lambda/index.mjs +57 -30
- package/dist/adapters/aws-lambda/index.mjs.map +1 -0
- package/dist/adapters/express.d.mts +14 -0
- package/dist/adapters/express.d.mts.map +1 -0
- package/dist/adapters/express.d.ts +13 -14
- package/dist/adapters/express.d.ts.map +1 -1
- package/dist/adapters/express.js +22 -34
- package/dist/adapters/express.mjs +22 -31
- package/dist/adapters/express.mjs.map +1 -0
- package/dist/adapters/fastify/fastifyRequestHandler.d.mts +18 -0
- package/dist/adapters/fastify/fastifyRequestHandler.d.mts.map +1 -0
- package/dist/adapters/fastify/fastifyRequestHandler.d.ts +15 -19
- package/dist/adapters/fastify/fastifyRequestHandler.d.ts.map +1 -1
- package/dist/adapters/fastify/fastifyRequestHandler.js +27 -44
- package/dist/adapters/fastify/fastifyRequestHandler.mjs +27 -41
- package/dist/adapters/fastify/fastifyRequestHandler.mjs.map +1 -0
- package/dist/adapters/fastify/fastifyTRPCPlugin.d.mts +20 -0
- package/dist/adapters/fastify/fastifyTRPCPlugin.d.mts.map +1 -0
- package/dist/adapters/fastify/fastifyTRPCPlugin.d.ts +18 -19
- package/dist/adapters/fastify/fastifyTRPCPlugin.d.ts.map +1 -1
- package/dist/adapters/fastify/fastifyTRPCPlugin.js +32 -52
- package/dist/adapters/fastify/fastifyTRPCPlugin.mjs +32 -49
- package/dist/adapters/fastify/fastifyTRPCPlugin.mjs.map +1 -0
- package/dist/adapters/fastify/index.d.mts +3 -0
- package/dist/adapters/fastify/index.d.ts +3 -3
- package/dist/adapters/fastify/index.js +4 -8
- package/dist/adapters/fastify/index.mjs +4 -2
- package/dist/adapters/fetch/fetchRequestHandler.d.mts +12 -0
- package/dist/adapters/fetch/fetchRequestHandler.d.mts.map +1 -0
- package/dist/adapters/fetch/fetchRequestHandler.d.ts +11 -12
- package/dist/adapters/fetch/fetchRequestHandler.d.ts.map +1 -1
- package/dist/adapters/fetch/fetchRequestHandler.js +49 -71
- package/dist/adapters/fetch/fetchRequestHandler.mjs +49 -68
- package/dist/adapters/fetch/fetchRequestHandler.mjs.map +1 -0
- package/dist/adapters/fetch/index.d.mts +3 -0
- package/dist/adapters/fetch/index.d.ts +3 -3
- package/dist/adapters/fetch/index.js +2 -6
- package/dist/adapters/fetch/index.mjs +3 -1
- package/dist/adapters/fetch/types.d.mts +27 -0
- package/dist/adapters/fetch/types.d.mts.map +1 -0
- package/dist/adapters/fetch/types.d.ts +23 -23
- package/dist/adapters/fetch/types.d.ts.map +1 -1
- package/dist/adapters/next-app-dir/nextAppDirCaller.d.mts +32 -0
- package/dist/adapters/next-app-dir/nextAppDirCaller.d.mts.map +1 -0
- package/dist/adapters/next-app-dir/nextAppDirCaller.d.ts +28 -21
- package/dist/adapters/next-app-dir/nextAppDirCaller.d.ts.map +1 -1
- package/dist/adapters/next-app-dir/nextAppDirCaller.js +79 -89
- package/dist/adapters/next-app-dir/nextAppDirCaller.mjs +79 -86
- package/dist/adapters/next-app-dir/nextAppDirCaller.mjs.map +1 -0
- package/dist/adapters/next-app-dir/notFound.d.mts +18 -0
- package/dist/adapters/next-app-dir/notFound.d.mts.map +1 -0
- package/dist/adapters/next-app-dir/notFound.d.ts +13 -2
- package/dist/adapters/next-app-dir/notFound.d.ts.map +1 -1
- package/dist/adapters/next-app-dir/notFound.js +9 -13
- package/dist/adapters/next-app-dir/notFound.mjs +9 -10
- package/dist/adapters/next-app-dir/notFound.mjs.map +1 -0
- package/dist/adapters/next-app-dir/redirect.d.mts +22 -0
- package/dist/adapters/next-app-dir/redirect.d.mts.map +1 -0
- package/dist/adapters/next-app-dir/redirect.d.ts +13 -9
- package/dist/adapters/next-app-dir/redirect.d.ts.map +1 -1
- package/dist/adapters/next-app-dir/redirect.js +24 -42
- package/dist/adapters/next-app-dir/redirect.mjs +24 -39
- package/dist/adapters/next-app-dir/redirect.mjs.map +1 -0
- package/dist/adapters/next-app-dir/rethrowNextErrors.d.mts +16 -0
- package/dist/adapters/next-app-dir/rethrowNextErrors.d.mts.map +1 -0
- package/dist/adapters/next-app-dir/rethrowNextErrors.d.ts +12 -2
- package/dist/adapters/next-app-dir/rethrowNextErrors.d.ts.map +1 -1
- package/dist/adapters/next-app-dir/rethrowNextErrors.js +31 -60
- package/dist/adapters/next-app-dir/rethrowNextErrors.mjs +31 -38
- package/dist/adapters/next-app-dir/rethrowNextErrors.mjs.map +1 -0
- package/dist/adapters/next-app-dir.d.mts +5 -0
- package/dist/adapters/next-app-dir.d.ts +5 -7
- package/dist/adapters/next-app-dir.js +9 -13
- package/dist/adapters/next-app-dir.mjs +6 -4
- package/dist/adapters/next.d.mts +18 -0
- package/dist/adapters/next.d.mts.map +1 -0
- package/dist/adapters/next.d.ts +14 -15
- package/dist/adapters/next.d.ts.map +1 -1
- package/dist/adapters/next.js +30 -46
- package/dist/adapters/next.mjs +30 -43
- package/dist/adapters/next.mjs.map +1 -0
- package/dist/adapters/node-http/incomingMessageToRequest.d.mts +19 -0
- package/dist/adapters/node-http/incomingMessageToRequest.d.mts.map +1 -0
- package/dist/adapters/node-http/incomingMessageToRequest.d.ts +14 -7
- package/dist/adapters/node-http/incomingMessageToRequest.d.ts.map +1 -1
- package/dist/adapters/node-http/incomingMessageToRequest.js +80 -111
- package/dist/adapters/node-http/incomingMessageToRequest.mjs +80 -108
- package/dist/adapters/node-http/incomingMessageToRequest.mjs.map +1 -0
- package/dist/adapters/node-http/index.d.mts +4 -0
- package/dist/adapters/node-http/index.d.ts +4 -4
- package/dist/adapters/node-http/index.js +6 -10
- package/dist/adapters/node-http/index.mjs +4 -2
- package/dist/adapters/node-http/nodeHTTPRequestHandler.d.mts +22 -0
- package/dist/adapters/node-http/nodeHTTPRequestHandler.d.mts.map +1 -0
- package/dist/adapters/node-http/nodeHTTPRequestHandler.d.ts +14 -12
- package/dist/adapters/node-http/nodeHTTPRequestHandler.d.ts.map +1 -1
- package/dist/adapters/node-http/nodeHTTPRequestHandler.js +73 -88
- package/dist/adapters/node-http/nodeHTTPRequestHandler.mjs +73 -85
- package/dist/adapters/node-http/nodeHTTPRequestHandler.mjs.map +1 -0
- package/dist/adapters/node-http/types.d.mts +78 -0
- package/dist/adapters/node-http/types.d.mts.map +1 -0
- package/dist/adapters/node-http/types.d.ts +68 -71
- package/dist/adapters/node-http/types.d.ts.map +1 -1
- package/dist/adapters/node-http/writeResponse.js +52 -74
- package/dist/adapters/node-http/writeResponse.mjs +53 -71
- package/dist/adapters/node-http/writeResponse.mjs.map +1 -0
- package/dist/adapters/standalone.d.mts +32 -0
- package/dist/adapters/standalone.d.mts.map +1 -0
- package/dist/adapters/standalone.d.ts +26 -30
- package/dist/adapters/standalone.d.ts.map +1 -1
- package/dist/adapters/standalone.js +34 -36
- package/dist/adapters/standalone.mjs +33 -33
- package/dist/adapters/standalone.mjs.map +1 -0
- package/dist/adapters/ws.d.mts +65 -0
- package/dist/adapters/ws.d.mts.map +1 -0
- package/dist/adapters/ws.d.ts +47 -36
- package/dist/adapters/ws.d.ts.map +1 -1
- package/dist/adapters/ws.js +406 -532
- package/dist/adapters/ws.mjs +406 -529
- package/dist/adapters/ws.mjs.map +1 -0
- package/dist/http.d.mts +6 -0
- package/dist/http.d.ts +6 -2
- package/dist/http.js +11 -18
- package/dist/http.mjs +6 -7
- package/dist/index.d.mts +17 -0
- package/dist/index.d.ts +17 -2
- package/dist/index.js +26 -32
- package/dist/index.mjs +11 -12
- package/dist/node_modules/.pnpm/@oxc-project_runtime@0.71.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js +68 -0
- package/dist/node_modules/.pnpm/@oxc-project_runtime@0.71.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.mjs +66 -0
- package/dist/node_modules/.pnpm/@oxc-project_runtime@0.71.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@swc_helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_default.js +17 -0
- package/dist/node_modules/.pnpm/@swc_helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_default.mjs +15 -0
- package/dist/node_modules/.pnpm/@swc_helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_default.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@swc_helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +38 -0
- package/dist/node_modules/.pnpm/@swc_helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_wildcard.mjs +36 -0
- package/dist/node_modules/.pnpm/@swc_helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_wildcard.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/app-router-headers.js +97 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/app-router-headers.mjs +95 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/app-router-headers.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/bailout-to-client-rendering.js +38 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/bailout-to-client-rendering.mjs +36 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/bailout-to-client-rendering.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/forbidden.js +53 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/forbidden.mjs +51 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/forbidden.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/hooks-server-context.js +43 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/hooks-server-context.mjs +41 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/hooks-server-context.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js +66 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.mjs +64 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/is-next-router-error.js +32 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/is-next-router-error.mjs +30 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/is-next-router-error.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/navigation.js +153 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/navigation.mjs +151 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/navigation.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/navigation.react-server.js +82 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/navigation.react-server.mjs +80 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/navigation.react-server.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/not-found.js +50 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/not-found.mjs +48 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/not-found.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/redirect-error.js +53 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/redirect-error.mjs +51 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/redirect-error.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/redirect-status-code.js +31 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/redirect-status-code.mjs +29 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/redirect-status-code.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/redirect.js +90 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/redirect.mjs +88 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/redirect.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.js +28 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.mjs +26 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/static-generation-bailout.js +43 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/static-generation-bailout.mjs +41 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/static-generation-bailout.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unauthorized.js +54 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unauthorized.mjs +52 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unauthorized.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unstable-rethrow.browser.js +33 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unstable-rethrow.browser.mjs +31 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unstable-rethrow.browser.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unstable-rethrow.js +28 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unstable-rethrow.mjs +26 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unstable-rethrow.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unstable-rethrow.server.js +41 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unstable-rethrow.server.mjs +39 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/client/components/unstable-rethrow.server.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/lib/metadata/metadata-constants.js +34 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/lib/metadata/metadata-constants.mjs +32 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/lib/metadata/metadata-constants.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/lib/scheduler.js +51 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/lib/scheduler.mjs +49 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/lib/scheduler.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/action-async-storage-instance.js +23 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/action-async-storage-instance.mjs +21 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/action-async-storage-instance.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/action-async-storage.external.js +22 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/action-async-storage.external.mjs +20 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/action-async-storage.external.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/async-local-storage.js +71 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/async-local-storage.mjs +69 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/async-local-storage.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/dynamic-rendering.js +416 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/dynamic-rendering.mjs +414 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/dynamic-rendering.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-async-storage-instance.js +23 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-async-storage-instance.mjs +21 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-async-storage-instance.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-async-storage.external.js +22 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-async-storage.external.mjs +20 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-async-storage.external.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +23 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.mjs +21 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +106 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-unit-async-storage.external.mjs +104 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/app-render/work-unit-async-storage.external.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/dynamic-rendering-utils.js +59 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/dynamic-rendering-utils.mjs +57 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/dynamic-rendering-utils.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/lib/router-utils/is-postpone.js +24 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/lib/router-utils/is-postpone.mjs +22 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/lib/router-utils/is-postpone.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +52 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.mjs +50 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +41 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.mjs +39 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +38 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.mjs +36 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/segment.js +53 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/segment.mjs +51 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/segment.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js +37 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.mjs +35 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.mjs.map +1 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/navigation.js +15 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/navigation.mjs +13 -0
- package/dist/node_modules/.pnpm/next@15.3.2_@babel_core@7.23.2_@playwright_test@1.51.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/navigation.mjs.map +1 -0
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.development.js +721 -0
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.development.mjs +719 -0
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.development.mjs.map +1 -0
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.production.js +356 -0
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.production.mjs +354 -0
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.production.mjs.map +1 -0
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/index.js +17 -0
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/index.mjs +15 -0
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/index.mjs.map +1 -0
- package/dist/observable/behaviorSubject.d.mts +21 -0
- package/dist/observable/behaviorSubject.d.mts.map +1 -0
- package/dist/observable/behaviorSubject.d.ts +14 -8
- package/dist/observable/behaviorSubject.d.ts.map +1 -1
- package/dist/observable/behaviorSubject.js +31 -36
- package/dist/observable/behaviorSubject.mjs +31 -33
- package/dist/observable/behaviorSubject.mjs.map +1 -0
- package/dist/observable/index.d.mts +5 -0
- package/dist/observable/index.d.ts +5 -5
- package/dist/observable/index.js +14 -18
- package/dist/observable/index.mjs +5 -3
- package/dist/observable/observable.d.mts +20 -0
- package/dist/observable/observable.d.mts.map +1 -0
- package/dist/observable/observable.d.ts +14 -6
- package/dist/observable/observable.d.ts.map +1 -1
- package/dist/observable/observable.js +145 -167
- package/dist/observable/observable.mjs +145 -165
- package/dist/observable/observable.mjs.map +1 -0
- package/dist/observable/operators.d.mts +13 -0
- package/dist/observable/operators.d.mts.map +1 -0
- package/dist/observable/operators.d.ts +12 -9
- package/dist/observable/operators.d.ts.map +1 -1
- package/dist/observable/operators.js +100 -117
- package/dist/observable/operators.mjs +100 -114
- package/dist/observable/operators.mjs.map +1 -0
- package/dist/observable/types.d.mts +29 -0
- package/dist/observable/types.d.mts.map +1 -0
- package/dist/observable/types.d.ts +23 -20
- package/dist/observable/types.d.ts.map +1 -1
- package/dist/rpc.d.mts +4 -0
- package/dist/rpc.d.ts +4 -2
- package/dist/rpc.js +5 -12
- package/dist/rpc.mjs +4 -5
- package/dist/shared.d.mts +5 -0
- package/dist/shared.d.ts +5 -26
- package/dist/shared.js +4 -11
- package/dist/shared.mjs +4 -5
- package/dist/unstable-core-do-not-import/clientish/inference.d.mts +25 -0
- package/dist/unstable-core-do-not-import/clientish/inference.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/clientish/inference.d.ts +20 -12
- package/dist/unstable-core-do-not-import/clientish/inference.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/clientish/inferrable.d.mts +40 -0
- package/dist/unstable-core-do-not-import/clientish/inferrable.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/clientish/inferrable.d.ts +16 -12
- package/dist/unstable-core-do-not-import/clientish/inferrable.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/clientish/serialize.d.mts +66 -0
- package/dist/unstable-core-do-not-import/clientish/serialize.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/clientish/serialize.d.ts +25 -21
- package/dist/unstable-core-do-not-import/clientish/serialize.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/createProxy.d.mts +22 -0
- package/dist/unstable-core-do-not-import/createProxy.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/createProxy.d.ts +8 -5
- package/dist/unstable-core-do-not-import/createProxy.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/createProxy.js +46 -67
- package/dist/unstable-core-do-not-import/createProxy.mjs +46 -65
- package/dist/unstable-core-do-not-import/createProxy.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/error/TRPCError.d.mts +18 -0
- package/dist/unstable-core-do-not-import/error/TRPCError.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/error/TRPCError.d.ts +16 -11
- package/dist/unstable-core-do-not-import/error/TRPCError.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/error/TRPCError.js +31 -75
- package/dist/unstable-core-do-not-import/error/TRPCError.mjs +31 -72
- package/dist/unstable-core-do-not-import/error/TRPCError.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/error/formatter.d.mts +47 -0
- package/dist/unstable-core-do-not-import/error/formatter.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/error/formatter.d.ts +34 -25
- package/dist/unstable-core-do-not-import/error/formatter.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/error/formatter.js +5 -4
- package/dist/unstable-core-do-not-import/error/formatter.mjs +5 -2
- package/dist/unstable-core-do-not-import/error/formatter.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/error/getErrorShape.d.mts +25 -0
- package/dist/unstable-core-do-not-import/error/getErrorShape.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/error/getErrorShape.d.ts +20 -10
- package/dist/unstable-core-do-not-import/error/getErrorShape.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/error/getErrorShape.js +24 -27
- package/dist/unstable-core-do-not-import/error/getErrorShape.mjs +24 -24
- package/dist/unstable-core-do-not-import/error/getErrorShape.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/http/abortError.d.mts +11 -0
- package/dist/unstable-core-do-not-import/http/abortError.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/http/abortError.d.ts +9 -3
- package/dist/unstable-core-do-not-import/http/abortError.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/http/abortError.js +7 -7
- package/dist/unstable-core-do-not-import/http/abortError.mjs +7 -4
- package/dist/unstable-core-do-not-import/http/abortError.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/http/contentType.d.mts +17 -0
- package/dist/unstable-core-do-not-import/http/contentType.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/http/contentType.d.ts +14 -10
- package/dist/unstable-core-do-not-import/http/contentType.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/http/contentType.js +168 -215
- package/dist/unstable-core-do-not-import/http/contentType.mjs +168 -212
- package/dist/unstable-core-do-not-import/http/contentType.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/http/contentTypeParsers.d.mts +18 -0
- package/dist/unstable-core-do-not-import/http/contentTypeParsers.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/http/contentTypeParsers.d.ts +9 -5
- package/dist/unstable-core-do-not-import/http/contentTypeParsers.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/http/contentTypeParsers.js +9 -10
- package/dist/unstable-core-do-not-import/http/contentTypeParsers.mjs +9 -8
- package/dist/unstable-core-do-not-import/http/contentTypeParsers.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/http/formDataToObject.d.mts +8 -0
- package/dist/unstable-core-do-not-import/http/formDataToObject.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/http/formDataToObject.d.ts +7 -1
- package/dist/unstable-core-do-not-import/http/formDataToObject.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/http/formDataToObject.js +23 -34
- package/dist/unstable-core-do-not-import/http/formDataToObject.mjs +23 -32
- package/dist/unstable-core-do-not-import/http/formDataToObject.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.d.mts +18 -0
- package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.d.ts +17 -9
- package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.js +59 -64
- package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.mjs +59 -61
- package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/http/parseConnectionParams.d.mts +11 -0
- package/dist/unstable-core-do-not-import/http/parseConnectionParams.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/http/parseConnectionParams.d.ts +10 -3
- package/dist/unstable-core-do-not-import/http/parseConnectionParams.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/http/parseConnectionParams.js +29 -35
- package/dist/unstable-core-do-not-import/http/parseConnectionParams.mjs +29 -32
- package/dist/unstable-core-do-not-import/http/parseConnectionParams.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/http/resolveResponse.d.mts +19 -0
- package/dist/unstable-core-do-not-import/http/resolveResponse.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/http/resolveResponse.d.ts +16 -12
- package/dist/unstable-core-do-not-import/http/resolveResponse.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/http/resolveResponse.js +400 -556
- package/dist/unstable-core-do-not-import/http/resolveResponse.mjs +400 -553
- package/dist/unstable-core-do-not-import/http/resolveResponse.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/http/types.d.mts +143 -0
- package/dist/unstable-core-do-not-import/http/types.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/http/types.d.ts +105 -100
- package/dist/unstable-core-do-not-import/http/types.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/initTRPC.d.mts +101 -0
- package/dist/unstable-core-do-not-import/initTRPC.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/initTRPC.d.ts +83 -76
- package/dist/unstable-core-do-not-import/initTRPC.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/initTRPC.js +56 -79
- package/dist/unstable-core-do-not-import/initTRPC.mjs +56 -76
- package/dist/unstable-core-do-not-import/initTRPC.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/middleware.d.mts +112 -0
- package/dist/unstable-core-do-not-import/middleware.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/middleware.d.ts +73 -68
- package/dist/unstable-core-do-not-import/middleware.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/middleware.js +73 -83
- package/dist/unstable-core-do-not-import/middleware.mjs +73 -80
- package/dist/unstable-core-do-not-import/middleware.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/parser.d.mts +51 -0
- package/dist/unstable-core-do-not-import/parser.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/parser.d.ts +40 -33
- package/dist/unstable-core-do-not-import/parser.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/parser.js +22 -50
- package/dist/unstable-core-do-not-import/parser.mjs +22 -47
- package/dist/unstable-core-do-not-import/parser.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/procedure.d.mts +78 -0
- package/dist/unstable-core-do-not-import/procedure.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/procedure.d.ts +55 -47
- package/dist/unstable-core-do-not-import/procedure.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/procedure.js +6 -5
- package/dist/unstable-core-do-not-import/procedure.mjs +6 -3
- package/dist/unstable-core-do-not-import/procedure.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/procedureBuilder.d.mts +166 -0
- package/dist/unstable-core-do-not-import/procedureBuilder.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/procedureBuilder.d.ts +136 -127
- package/dist/unstable-core-do-not-import/procedureBuilder.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/procedureBuilder.js +147 -184
- package/dist/unstable-core-do-not-import/procedureBuilder.mjs +147 -181
- package/dist/unstable-core-do-not-import/procedureBuilder.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/rootConfig.d.mts +104 -0
- package/dist/unstable-core-do-not-import/rootConfig.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/rootConfig.d.ts +79 -73
- package/dist/unstable-core-do-not-import/rootConfig.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/rootConfig.js +6 -5
- package/dist/unstable-core-do-not-import/rootConfig.mjs +6 -3
- package/dist/unstable-core-do-not-import/rootConfig.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/router.d.mts +95 -0
- package/dist/unstable-core-do-not-import/router.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/router.d.ts +54 -57
- package/dist/unstable-core-do-not-import/router.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/router.js +204 -254
- package/dist/unstable-core-do-not-import/router.mjs +204 -251
- package/dist/unstable-core-do-not-import/router.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/rpc/codes.d.mts +56 -0
- package/dist/unstable-core-do-not-import/rpc/codes.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/rpc/codes.d.ts +48 -31
- package/dist/unstable-core-do-not-import/rpc/codes.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/rpc/codes.js +55 -49
- package/dist/unstable-core-do-not-import/rpc/codes.mjs +56 -49
- package/dist/unstable-core-do-not-import/rpc/codes.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/rpc/envelopes.d.mts +115 -0
- package/dist/unstable-core-do-not-import/rpc/envelopes.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/rpc/envelopes.d.ts +77 -71
- package/dist/unstable-core-do-not-import/rpc/envelopes.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/rpc/index.js +2 -0
- package/dist/unstable-core-do-not-import/rpc/index.mjs +2 -0
- package/dist/unstable-core-do-not-import/rpc/parseTRPCMessage.d.mts +13 -0
- package/dist/unstable-core-do-not-import/rpc/parseTRPCMessage.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/rpc/parseTRPCMessage.d.ts +11 -3
- package/dist/unstable-core-do-not-import/rpc/parseTRPCMessage.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/rpc/parseTRPCMessage.js +47 -55
- package/dist/unstable-core-do-not-import/rpc/parseTRPCMessage.mjs +47 -52
- package/dist/unstable-core-do-not-import/rpc/parseTRPCMessage.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/stream/jsonl.d.mts +95 -0
- package/dist/unstable-core-do-not-import/stream/jsonl.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/stream/jsonl.d.ts +53 -77
- package/dist/unstable-core-do-not-import/stream/jsonl.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/stream/jsonl.js +374 -579
- package/dist/unstable-core-do-not-import/stream/jsonl.mjs +374 -576
- package/dist/unstable-core-do-not-import/stream/jsonl.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/stream/sse.d.mts +112 -0
- package/dist/unstable-core-do-not-import/stream/sse.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/stream/sse.d.ts +77 -73
- package/dist/unstable-core-do-not-import/stream/sse.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/stream/sse.js +231 -361
- package/dist/unstable-core-do-not-import/stream/sse.mjs +231 -358
- package/dist/unstable-core-do-not-import/stream/sse.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/stream/sse.types.d.mts +34 -0
- package/dist/unstable-core-do-not-import/stream/sse.types.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/stream/sse.types.d.ts +30 -27
- package/dist/unstable-core-do-not-import/stream/sse.types.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/stream/tracked.d.mts +34 -0
- package/dist/unstable-core-do-not-import/stream/tracked.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/stream/tracked.d.ts +20 -17
- package/dist/unstable-core-do-not-import/stream/tracked.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/stream/tracked.js +18 -18
- package/dist/unstable-core-do-not-import/stream/tracked.mjs +18 -16
- package/dist/unstable-core-do-not-import/stream/tracked.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.d.mts +23 -0
- package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.d.ts +12 -6
- package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.js +61 -159
- package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.mjs +61 -156
- package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/stream/utils/createDeferred.d.mts +13 -0
- package/dist/unstable-core-do-not-import/stream/utils/createDeferred.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/stream/utils/createDeferred.d.ts +11 -5
- package/dist/unstable-core-do-not-import/stream/utils/createDeferred.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/stream/utils/createDeferred.js +15 -14
- package/dist/unstable-core-do-not-import/stream/utils/createDeferred.mjs +15 -12
- package/dist/unstable-core-do-not-import/stream/utils/createDeferred.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/stream/utils/disposable.d.mts +23 -0
- package/dist/unstable-core-do-not-import/stream/utils/disposable.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/stream/utils/disposable.d.ts +8 -2
- package/dist/unstable-core-do-not-import/stream/utils/disposable.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/stream/utils/disposable.js +33 -39
- package/dist/unstable-core-do-not-import/stream/utils/disposable.mjs +33 -37
- package/dist/unstable-core-do-not-import/stream/utils/disposable.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/stream/utils/mergeAsyncIterables.js +145 -235
- package/dist/unstable-core-do-not-import/stream/utils/mergeAsyncIterables.mjs +145 -232
- package/dist/unstable-core-do-not-import/stream/utils/mergeAsyncIterables.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/stream/utils/readableStreamFrom.js +23 -21
- package/dist/unstable-core-do-not-import/stream/utils/readableStreamFrom.mjs +23 -19
- package/dist/unstable-core-do-not-import/stream/utils/readableStreamFrom.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/stream/utils/timerResource.js +14 -20
- package/dist/unstable-core-do-not-import/stream/utils/timerResource.mjs +14 -17
- package/dist/unstable-core-do-not-import/stream/utils/timerResource.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/stream/utils/withPing.js +41 -125
- package/dist/unstable-core-do-not-import/stream/utils/withPing.mjs +41 -122
- package/dist/unstable-core-do-not-import/stream/utils/withPing.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/transformer.d.mts +106 -0
- package/dist/unstable-core-do-not-import/transformer.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/transformer.d.ts +68 -61
- package/dist/unstable-core-do-not-import/transformer.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/transformer.js +80 -90
- package/dist/unstable-core-do-not-import/transformer.mjs +80 -87
- package/dist/unstable-core-do-not-import/transformer.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/types.d.mts +116 -0
- package/dist/unstable-core-do-not-import/types.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/types.d.ts +35 -46
- package/dist/unstable-core-do-not-import/types.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/types.js +5 -0
- package/dist/unstable-core-do-not-import/types.mjs +5 -0
- package/dist/unstable-core-do-not-import/types.mjs.map +1 -0
- package/dist/unstable-core-do-not-import/utils.d.mts +45 -0
- package/dist/unstable-core-do-not-import/utils.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import/utils.d.ts +17 -14
- package/dist/unstable-core-do-not-import/utils.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/utils.js +58 -63
- package/dist/unstable-core-do-not-import/utils.mjs +58 -61
- package/dist/unstable-core-do-not-import/utils.mjs.map +1 -0
- package/dist/unstable-core-do-not-import.d.mts +40 -0
- package/dist/unstable-core-do-not-import.d.ts +40 -47
- package/dist/unstable-core-do-not-import.js +104 -107
- package/dist/unstable-core-do-not-import.mjs +32 -30
- package/dist/vendor/cookie-es/set-cookie/split.js +58 -75
- package/dist/vendor/cookie-es/set-cookie/split.mjs +58 -73
- package/dist/vendor/cookie-es/set-cookie/split.mjs.map +1 -0
- package/dist/vendor/standard-schema-v1/error.d.mts +21 -0
- package/dist/vendor/standard-schema-v1/error.d.mts.map +1 -0
- package/dist/vendor/standard-schema-v1/error.d.ts +18 -10
- package/dist/vendor/standard-schema-v1/error.d.ts.map +1 -1
- package/dist/vendor/standard-schema-v1/error.js +18 -26
- package/dist/vendor/standard-schema-v1/error.mjs +18 -24
- package/dist/vendor/standard-schema-v1/error.mjs.map +1 -0
- package/dist/vendor/standard-schema-v1/spec.d.mts +64 -0
- package/dist/vendor/standard-schema-v1/spec.d.mts.map +1 -0
- package/dist/vendor/standard-schema-v1/spec.d.ts +57 -53
- package/dist/vendor/standard-schema-v1/spec.d.ts.map +1 -1
- package/dist/vendor/unpromise/index.js +1 -0
- package/dist/vendor/unpromise/index.mjs +1 -0
- package/dist/vendor/unpromise/types.d.mts +34 -0
- package/dist/vendor/unpromise/types.d.mts.map +1 -0
- package/dist/vendor/unpromise/types.d.ts +18 -12
- package/dist/vendor/unpromise/types.d.ts.map +1 -1
- package/dist/vendor/unpromise/unpromise.d.mts +157 -0
- package/dist/vendor/unpromise/unpromise.d.mts.map +1 -0
- package/dist/vendor/unpromise/unpromise.d.ts +117 -81
- package/dist/vendor/unpromise/unpromise.d.ts.map +1 -1
- package/dist/vendor/unpromise/unpromise.js +230 -279
- package/dist/vendor/unpromise/unpromise.mjs +231 -277
- package/dist/vendor/unpromise/unpromise.mjs.map +1 -0
- package/http/package.json +1 -0
- package/observable/package.json +1 -0
- package/package.json +132 -56
- package/rpc/package.json +1 -0
- package/shared/package.json +1 -0
- package/src/@trpc/server/index.ts +1 -0
- package/src/adapters/aws-lambda/getPlanner.ts +22 -0
- package/src/adapters/aws-lambda/index.ts +40 -1
- package/src/adapters/ws.ts +2 -2
- package/src/unstable-core-do-not-import/clientish/serialize.ts +10 -0
- package/src/unstable-core-do-not-import/error/TRPCError.ts +2 -10
- package/src/unstable-core-do-not-import/http/contentType.ts +11 -12
- package/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts +2 -0
- package/src/unstable-core-do-not-import/http/types.ts +1 -1
- package/src/unstable-core-do-not-import/procedure.ts +7 -0
- package/src/unstable-core-do-not-import/procedureBuilder.ts +7 -0
- package/src/unstable-core-do-not-import/rpc/codes.ts +13 -0
- package/src/unstable-core-do-not-import/rpc/index.ts +5 -1
- package/src/unstable-core-do-not-import/stream/sse.ts +1 -1
- package/src/unstable-core-do-not-import/stream/utils/asyncIterable.ts +6 -0
- package/unstable-core-do-not-import/package.json +1 -0
- package/dist/@trpc/server/http.d.ts +0 -8
- package/dist/@trpc/server/http.d.ts.map +0 -1
- package/dist/@trpc/server/rpc.d.ts +0 -3
- package/dist/@trpc/server/rpc.d.ts.map +0 -1
- package/dist/adapters/fastify/index.d.ts.map +0 -1
- package/dist/adapters/fetch/index.d.ts.map +0 -1
- package/dist/adapters/next-app-dir.d.ts.map +0 -1
- package/dist/adapters/node-http/index.d.ts.map +0 -1
- package/dist/adapters/node-http/writeResponse.d.ts +0 -18
- package/dist/adapters/node-http/writeResponse.d.ts.map +0 -1
- package/dist/http.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.34.8_tslib@2.8.1_typescript@5.8.2/node_modules/tslib/tslib.es6.js +0 -73
- package/dist/observable/index.d.ts.map +0 -1
- package/dist/rpc.d.ts.map +0 -1
- package/dist/shared.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/rpc/index.d.ts +0 -5
- package/dist/unstable-core-do-not-import/rpc/index.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/stream/utils/mergeAsyncIterables.d.ts +0 -17
- package/dist/unstable-core-do-not-import/stream/utils/mergeAsyncIterables.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/stream/utils/readableStreamFrom.d.ts +0 -8
- package/dist/unstable-core-do-not-import/stream/utils/readableStreamFrom.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/stream/utils/timerResource.d.ts +0 -5
- package/dist/unstable-core-do-not-import/stream/utils/timerResource.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/stream/utils/withPing.d.ts +0 -7
- package/dist/unstable-core-do-not-import/stream/utils/withPing.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import.d.ts.map +0 -1
- package/dist/vendor/cookie-es/set-cookie/split.d.ts +0 -18
- package/dist/vendor/cookie-es/set-cookie/split.d.ts.map +0 -1
- package/dist/vendor/unpromise/index.d.ts +0 -3
- package/dist/vendor/unpromise/index.d.ts.map +0 -1
|
@@ -1,44 +1,51 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { StandardSchemaV1 } from "../vendor/standard-schema-v1/spec.js";
|
|
2
|
+
|
|
3
|
+
//#region src/unstable-core-do-not-import/parser.d.ts
|
|
4
|
+
type ParserZodEsque<TInput, TParsedInput> = {
|
|
5
|
+
_input: TInput;
|
|
6
|
+
_output: TParsedInput;
|
|
5
7
|
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
8
|
+
type ParserValibotEsque<TInput, TParsedInput> = {
|
|
9
|
+
schema: {
|
|
10
|
+
_types?: {
|
|
11
|
+
input: TInput;
|
|
12
|
+
output: TParsedInput;
|
|
12
13
|
};
|
|
14
|
+
};
|
|
13
15
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
type ParserArkTypeEsque<TInput, TParsedInput> = {
|
|
17
|
+
inferIn: TInput;
|
|
18
|
+
infer: TParsedInput;
|
|
17
19
|
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
type ParserStandardSchemaEsque<TInput, TParsedInput> = StandardSchemaV1<TInput, TParsedInput>;
|
|
21
|
+
type ParserMyZodEsque<TInput> = {
|
|
22
|
+
parse: (input: any) => TInput;
|
|
21
23
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
type ParserSuperstructEsque<TInput> = {
|
|
25
|
+
create: (input: unknown) => TInput;
|
|
24
26
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
type ParserCustomValidatorEsque<TInput> = (input: unknown) => Promise<TInput> | TInput;
|
|
28
|
+
type ParserYupEsque<TInput> = {
|
|
29
|
+
validateSync: (input: unknown) => TInput;
|
|
28
30
|
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
type ParserScaleEsque<TInput> = {
|
|
32
|
+
assert(value: unknown): asserts value is TInput;
|
|
31
33
|
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
type ParserWithoutInput<TInput> = ParserCustomValidatorEsque<TInput> | ParserMyZodEsque<TInput> | ParserScaleEsque<TInput> | ParserSuperstructEsque<TInput> | ParserYupEsque<TInput>;
|
|
35
|
+
type ParserWithInputOutput<TInput, TParsedInput> = ParserZodEsque<TInput, TParsedInput> | ParserValibotEsque<TInput, TParsedInput> | ParserArkTypeEsque<TInput, TParsedInput> | ParserStandardSchemaEsque<TInput, TParsedInput>;
|
|
36
|
+
type Parser = ParserWithInputOutput<any, any> | ParserWithoutInput<any>;
|
|
37
|
+
type inferParser<TParser extends Parser> = TParser extends ParserWithInputOutput<infer $TIn, infer $TOut> ? {
|
|
38
|
+
in: $TIn;
|
|
39
|
+
out: $TOut;
|
|
38
40
|
} : TParser extends ParserWithoutInput<infer $InOut> ? {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
+
in: $InOut;
|
|
42
|
+
out: $InOut;
|
|
41
43
|
} : never;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
+
type ParseFn<TType> = (value: unknown) => Promise<TType> | TType;
|
|
45
|
+
declare function getParseFn<TType>(procedureParser: Parser): ParseFn<TType>;
|
|
46
|
+
|
|
47
|
+
//#endregion
|
|
48
|
+
//# sourceMappingURL=parser.d.ts.map
|
|
49
|
+
|
|
50
|
+
export { ParseFn, Parser, ParserArkTypeEsque, ParserCustomValidatorEsque, ParserMyZodEsque, ParserScaleEsque, ParserStandardSchemaEsque, ParserSuperstructEsque, ParserValibotEsque, ParserWithInputOutput, ParserWithoutInput, ParserYupEsque, ParserZodEsque, getParseFn, inferParser };
|
|
44
51
|
//# sourceMappingURL=parser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.d.ts","
|
|
1
|
+
{"version":3,"file":"parser.d.ts","names":[],"sources":["../../src/unstable-core-do-not-import/parser.ts"],"sourcesContent":[],"mappings":";;;KAIY;UACF;EADE,OAAA,EAED,YAFe;CAAA;AAChB,KAIE,kBAJF,CAAA,MAAA,EAAA,YAAA,CAAA,GAAA;EAAM,MACL,EAAA;IAAY,MAAA,CAAA,EAAA;MAGX,KAAA,EAGC,MAHiB;MAAA,MAAA,EAIhB,YAJgB;IAGjB,CAAA;EAAM,CAAA;AACO,CAAA;AAKd,KAAA,kBAAkB,CAAA,MAAA,EAAA,YAAA,CAAA,GAAA;EAAA,OAAA,EACnB,MADmB;EAAA,KACnB,EACF,YADE;CAAM;AACI,KAGT,yBAHS,CAAA,MAAA,EAAA,YAAA,CAAA,GAGyC,gBAHzC,CAInB,MAJmB,EAKnB,YALmB,CAAA;AAGT,KAKA,gBALA,CAAA,MAAyB,CAAA,GAAA;EAAA,KAAA,EAAA,CAAA,KAAA,EAAA,GAAA,EAAA,GAMZ,MANY;CAAA;AAEnC,KAOU,sBAPV,CAAA,MAAA,CAAA,GAAA;EAAY,MAFgD,EAAA,CAAA,KAAA,EAAA,OAAA,EAAA,GAUhC,MAVgC;AAAgB,CAAA;AAKlE,KAQA,0BAPa,CAAA,MAAM,CAAA,GAAA,CAAA,KAAA,EAAA,OAAA,EAAA,GAS1B,OAT0B,CASlB,MATkB,CAAA,GASR,MATQ;AAGnB,KAQA,cARA,CAAA,MAAsB,CAAA,GAAA;EAItB,YAAA,EAAA,CAAA,KAAA,EAAA,OAA0B,EAAA,GAKF,MALE;CAAA;AAEzB,KAMD,gBANC,CAAA,MAAA,CAAA,GAAA;EAAM,MAAd,CAAA,KAAA,EAAA,OAAA,CAAA,EAAA,QAAA,KAAA,IAOsC,MAPtC;CAAO;AAAiB,KAUjB,kBAViB,CAAA,MAAA,CAAA,GAWzB,0BAXyB,CAWE,MAXF,CAAA,GAYzB,gBAZyB,CAYR,MAZQ,CAAA,GAazB,gBAbyB,CAaR,MAbQ,CAAA,GAczB,sBAdyB,CAcF,MAdE,CAAA,GAezB,cAfyB,CAeV,MAfU,CAAA;AAEjB,KAeA,qBAdwB,CAAA,MAAM,EAAA,YAAA,CAAA,GAetC,cAfsC,CAevB,MAfuB,EAef,YAfe,CAAA,GAgBtC,kBAhBsC,CAgBnB,MAhBmB,EAgBX,YAhBW,CAAA,GAiBtC,kBAjBsC,CAiBnB,MAjBmB,EAiBX,YAjBW,CAAA,GAkBtC,yBAlBsC,CAkBZ,MAlBY,EAkBJ,YAlBI,CAAA;AAG9B,KAiBA,MAAA,GAAS,qBAhB4B,CAAA,GAAA,EAAA,GAAA,CAAA,GAgBM,kBAhBN,CAAA,GAAA,CAAA;AAGrC,KAeA,WAfA,CAAA,gBAe4B,MAfV,CAAA,GAgB5B,OAhB4B,SAgBZ,qBAhBY,CAAA,KAAA,KAAA,EAAA,KAAA,MAAA,CAAA,GAAA;EAAA,EAAA,EAkBlB,IAlBkB;EAAA,GACC,EAkBlB,KAlBkB;CAAM,GAoB/B,OApBF,SAoBkB,kBApBlB,CAAA,KAAA,OAAA,CAAA,GAAA;EAA0B,EAAA,EAsBhB,MArBO;EAAM,GAAvB,EAsBW,MAtBX;CAAgB,GAAA,KACC;AAAjB,KAyBQ,OAzBR,CAAA,KAAA,CAAA,GAAA,CAAA,KAAA,EAAA,OAAA,EAAA,GAyB6C,OAzB7C,CAyBqD,KAzBrD,CAAA,GAyB8D,KAzB9D;AACuB,iBA0BX,UA1BW,CAAA,KAAA,CAAA,CAAA,eAAA,EA0BwB,MA1BxB,CAAA,EA0BiC,OA1BjC,CA0ByC,KA1BzC,CAAA"}
|
|
@@ -1,54 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var error = require('../vendor/standard-schema-v1/error.js');
|
|
1
|
+
const require__Users_julius_dev_trpc_packages_server_src_vendor_standard_schema_v1_error = require('../vendor/standard-schema-v1/error.js');
|
|
4
2
|
|
|
3
|
+
//#region src/unstable-core-do-not-import/parser.ts
|
|
5
4
|
function getParseFn(procedureParser) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return parser.parse.bind(parser);
|
|
25
|
-
}
|
|
26
|
-
if (typeof parser.validateSync === 'function') {
|
|
27
|
-
// ParserYupEsque
|
|
28
|
-
return parser.validateSync.bind(parser);
|
|
29
|
-
}
|
|
30
|
-
if (typeof parser.create === 'function') {
|
|
31
|
-
// ParserSuperstructEsque
|
|
32
|
-
return parser.create.bind(parser);
|
|
33
|
-
}
|
|
34
|
-
if (typeof parser.assert === 'function') {
|
|
35
|
-
// ParserScaleEsque
|
|
36
|
-
return (value)=>{
|
|
37
|
-
parser.assert(value);
|
|
38
|
-
return value;
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
if (isStandardSchema) {
|
|
42
|
-
// StandardSchemaEsque
|
|
43
|
-
return async (value)=>{
|
|
44
|
-
const result = await parser['~standard'].validate(value);
|
|
45
|
-
if (result.issues) {
|
|
46
|
-
throw new error.StandardSchemaV1Error(result.issues);
|
|
47
|
-
}
|
|
48
|
-
return result.value;
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
throw new Error('Could not find a validator fn');
|
|
5
|
+
const parser = procedureParser;
|
|
6
|
+
const isStandardSchema = "~standard" in parser;
|
|
7
|
+
if (typeof parser === "function" && typeof parser.assert === "function") return parser.assert.bind(parser);
|
|
8
|
+
if (typeof parser === "function" && !isStandardSchema) return parser;
|
|
9
|
+
if (typeof parser.parseAsync === "function") return parser.parseAsync.bind(parser);
|
|
10
|
+
if (typeof parser.parse === "function") return parser.parse.bind(parser);
|
|
11
|
+
if (typeof parser.validateSync === "function") return parser.validateSync.bind(parser);
|
|
12
|
+
if (typeof parser.create === "function") return parser.create.bind(parser);
|
|
13
|
+
if (typeof parser.assert === "function") return (value) => {
|
|
14
|
+
parser.assert(value);
|
|
15
|
+
return value;
|
|
16
|
+
};
|
|
17
|
+
if (isStandardSchema) return async (value) => {
|
|
18
|
+
const result = await parser["~standard"].validate(value);
|
|
19
|
+
if (result.issues) throw new require__Users_julius_dev_trpc_packages_server_src_vendor_standard_schema_v1_error.StandardSchemaV1Error(result.issues);
|
|
20
|
+
return result.value;
|
|
21
|
+
};
|
|
22
|
+
throw new Error("Could not find a validator fn");
|
|
52
23
|
}
|
|
53
24
|
|
|
54
|
-
|
|
25
|
+
//#endregion
|
|
26
|
+
exports.getParseFn = getParseFn;
|
|
@@ -1,52 +1,27 @@
|
|
|
1
|
-
import { StandardSchemaV1Error } from
|
|
1
|
+
import { StandardSchemaV1Error } from "../vendor/standard-schema-v1/error.mjs";
|
|
2
2
|
|
|
3
|
+
//#region src/unstable-core-do-not-import/parser.ts
|
|
3
4
|
function getParseFn(procedureParser) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
return parser.parse.bind(parser);
|
|
23
|
-
}
|
|
24
|
-
if (typeof parser.validateSync === 'function') {
|
|
25
|
-
// ParserYupEsque
|
|
26
|
-
return parser.validateSync.bind(parser);
|
|
27
|
-
}
|
|
28
|
-
if (typeof parser.create === 'function') {
|
|
29
|
-
// ParserSuperstructEsque
|
|
30
|
-
return parser.create.bind(parser);
|
|
31
|
-
}
|
|
32
|
-
if (typeof parser.assert === 'function') {
|
|
33
|
-
// ParserScaleEsque
|
|
34
|
-
return (value)=>{
|
|
35
|
-
parser.assert(value);
|
|
36
|
-
return value;
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
if (isStandardSchema) {
|
|
40
|
-
// StandardSchemaEsque
|
|
41
|
-
return async (value)=>{
|
|
42
|
-
const result = await parser['~standard'].validate(value);
|
|
43
|
-
if (result.issues) {
|
|
44
|
-
throw new StandardSchemaV1Error(result.issues);
|
|
45
|
-
}
|
|
46
|
-
return result.value;
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
throw new Error('Could not find a validator fn');
|
|
5
|
+
const parser = procedureParser;
|
|
6
|
+
const isStandardSchema = "~standard" in parser;
|
|
7
|
+
if (typeof parser === "function" && typeof parser.assert === "function") return parser.assert.bind(parser);
|
|
8
|
+
if (typeof parser === "function" && !isStandardSchema) return parser;
|
|
9
|
+
if (typeof parser.parseAsync === "function") return parser.parseAsync.bind(parser);
|
|
10
|
+
if (typeof parser.parse === "function") return parser.parse.bind(parser);
|
|
11
|
+
if (typeof parser.validateSync === "function") return parser.validateSync.bind(parser);
|
|
12
|
+
if (typeof parser.create === "function") return parser.create.bind(parser);
|
|
13
|
+
if (typeof parser.assert === "function") return (value) => {
|
|
14
|
+
parser.assert(value);
|
|
15
|
+
return value;
|
|
16
|
+
};
|
|
17
|
+
if (isStandardSchema) return async (value) => {
|
|
18
|
+
const result = await parser["~standard"].validate(value);
|
|
19
|
+
if (result.issues) throw new StandardSchemaV1Error(result.issues);
|
|
20
|
+
return result.value;
|
|
21
|
+
};
|
|
22
|
+
throw new Error("Could not find a validator fn");
|
|
50
23
|
}
|
|
51
24
|
|
|
25
|
+
//#endregion
|
|
52
26
|
export { getParseFn };
|
|
27
|
+
//# sourceMappingURL=parser.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parser.mjs","names":["procedureParser: Parser"],"sources":["../../src/unstable-core-do-not-import/parser.ts"],"sourcesContent":["import { StandardSchemaV1Error } from '../vendor/standard-schema-v1/error';\nimport { type StandardSchemaV1 } from '../vendor/standard-schema-v1/spec';\n\n// zod / typeschema\nexport type ParserZodEsque<TInput, TParsedInput> = {\n _input: TInput;\n _output: TParsedInput;\n};\n\nexport type ParserValibotEsque<TInput, TParsedInput> = {\n schema: {\n _types?: {\n input: TInput;\n output: TParsedInput;\n };\n };\n};\n\nexport type ParserArkTypeEsque<TInput, TParsedInput> = {\n inferIn: TInput;\n infer: TParsedInput;\n};\n\nexport type ParserStandardSchemaEsque<TInput, TParsedInput> = StandardSchemaV1<\n TInput,\n TParsedInput\n>;\n\nexport type ParserMyZodEsque<TInput> = {\n parse: (input: any) => TInput;\n};\n\nexport type ParserSuperstructEsque<TInput> = {\n create: (input: unknown) => TInput;\n};\n\nexport type ParserCustomValidatorEsque<TInput> = (\n input: unknown,\n) => Promise<TInput> | TInput;\n\nexport type ParserYupEsque<TInput> = {\n validateSync: (input: unknown) => TInput;\n};\n\nexport type ParserScaleEsque<TInput> = {\n assert(value: unknown): asserts value is TInput;\n};\n\nexport type ParserWithoutInput<TInput> =\n | ParserCustomValidatorEsque<TInput>\n | ParserMyZodEsque<TInput>\n | ParserScaleEsque<TInput>\n | ParserSuperstructEsque<TInput>\n | ParserYupEsque<TInput>;\n\nexport type ParserWithInputOutput<TInput, TParsedInput> =\n | ParserZodEsque<TInput, TParsedInput>\n | ParserValibotEsque<TInput, TParsedInput>\n | ParserArkTypeEsque<TInput, TParsedInput>\n | ParserStandardSchemaEsque<TInput, TParsedInput>;\n\nexport type Parser = ParserWithInputOutput<any, any> | ParserWithoutInput<any>;\n\nexport type inferParser<TParser extends Parser> =\n TParser extends ParserWithInputOutput<infer $TIn, infer $TOut>\n ? {\n in: $TIn;\n out: $TOut;\n }\n : TParser extends ParserWithoutInput<infer $InOut>\n ? {\n in: $InOut;\n out: $InOut;\n }\n : never;\n\nexport type ParseFn<TType> = (value: unknown) => Promise<TType> | TType;\n\nexport function getParseFn<TType>(procedureParser: Parser): ParseFn<TType> {\n const parser = procedureParser as any;\n const isStandardSchema = '~standard' in parser;\n\n if (typeof parser === 'function' && typeof parser.assert === 'function') {\n // ParserArkTypeEsque - arktype schemas shouldn't be called as a function because they return a union type instead of throwing\n return parser.assert.bind(parser);\n }\n\n if (typeof parser === 'function' && !isStandardSchema) {\n // ParserValibotEsque (>= v0.31.0)\n // ParserCustomValidatorEsque - note the check for standard-schema conformance - some libraries like `effect` use function schemas which are *not* a \"parse\" function.\n return parser;\n }\n\n if (typeof parser.parseAsync === 'function') {\n // ParserZodEsque\n return parser.parseAsync.bind(parser);\n }\n\n if (typeof parser.parse === 'function') {\n // ParserZodEsque\n // ParserValibotEsque (< v0.13.0)\n return parser.parse.bind(parser);\n }\n\n if (typeof parser.validateSync === 'function') {\n // ParserYupEsque\n return parser.validateSync.bind(parser);\n }\n\n if (typeof parser.create === 'function') {\n // ParserSuperstructEsque\n return parser.create.bind(parser);\n }\n\n if (typeof parser.assert === 'function') {\n // ParserScaleEsque\n return (value) => {\n parser.assert(value);\n return value as TType;\n };\n }\n\n if (isStandardSchema) {\n // StandardSchemaEsque\n return async (value) => {\n const result = await parser['~standard'].validate(value);\n if (result.issues) {\n throw new StandardSchemaV1Error(result.issues);\n }\n return result.value;\n };\n }\n\n throw new Error('Could not find a validator fn');\n}\n"],"mappings":";;;AA8EA,SAAgB,WAAkBA,iBAAyC;CACzE,MAAM,SAAS;CACf,MAAM,mBAAmB,eAAe;AAExC,YAAW,WAAW,qBAAqB,OAAO,WAAW,WAE3D,QAAO,OAAO,OAAO,KAAK,OAAO;AAGnC,YAAW,WAAW,eAAe,iBAGnC,QAAO;AAGT,YAAW,OAAO,eAAe,WAE/B,QAAO,OAAO,WAAW,KAAK,OAAO;AAGvC,YAAW,OAAO,UAAU,WAG1B,QAAO,OAAO,MAAM,KAAK,OAAO;AAGlC,YAAW,OAAO,iBAAiB,WAEjC,QAAO,OAAO,aAAa,KAAK,OAAO;AAGzC,YAAW,OAAO,WAAW,WAE3B,QAAO,OAAO,OAAO,KAAK,OAAO;AAGnC,YAAW,OAAO,WAAW,WAE3B,QAAO,CAAC,UAAU;AAChB,SAAO,OAAO,MAAM;AACpB,SAAO;CACR;AAGH,KAAI,iBAEF,QAAO,OAAO,UAAU;EACtB,MAAM,SAAS,MAAM,OAAO,aAAa,SAAS,MAAM;AACxD,MAAI,OAAO,OACT,OAAM,IAAI,sBAAsB,OAAO;AAEzC,SAAO,OAAO;CACf;AAGH,OAAM,IAAI,MAAM;AACjB"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { TRPCError$1 as TRPCError } from "./error/TRPCError.mjs";
|
|
2
|
+
import { Parser } from "./parser.mjs";
|
|
3
|
+
import { ProcedureCallOptions } from "./procedureBuilder.mjs";
|
|
4
|
+
|
|
5
|
+
//#region src/unstable-core-do-not-import/procedure.d.ts
|
|
6
|
+
declare const procedureTypes: readonly ["query", "mutation", "subscription"];
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
type ProcedureType = (typeof procedureTypes)[number];
|
|
11
|
+
interface BuiltProcedureDef {
|
|
12
|
+
meta: unknown;
|
|
13
|
+
input: unknown;
|
|
14
|
+
output: unknown;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
interface Procedure<TType extends ProcedureType, TDef extends BuiltProcedureDef> {
|
|
21
|
+
_def: {
|
|
22
|
+
/**
|
|
23
|
+
* These are just types, they can't be used at runtime
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
$types: {
|
|
27
|
+
input: TDef['input'];
|
|
28
|
+
output: TDef['output'];
|
|
29
|
+
};
|
|
30
|
+
procedure: true;
|
|
31
|
+
type: TType;
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
* Meta is not inferrable on individual procedures, only on the router
|
|
35
|
+
*/
|
|
36
|
+
meta: unknown;
|
|
37
|
+
experimental_caller: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* The input parsers for the procedure
|
|
40
|
+
*/
|
|
41
|
+
inputs: Parser[];
|
|
42
|
+
};
|
|
43
|
+
meta: TDef['meta'];
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
(opts: ProcedureCallOptions<unknown>): Promise<TDef['output']>;
|
|
48
|
+
}
|
|
49
|
+
interface QueryProcedure<TDef extends BuiltProcedureDef> extends Procedure<'query', TDef> {}
|
|
50
|
+
interface MutationProcedure<TDef extends BuiltProcedureDef> extends Procedure<'mutation', TDef> {}
|
|
51
|
+
interface SubscriptionProcedure<TDef extends BuiltProcedureDef> extends Procedure<'subscription', TDef> {}
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated
|
|
54
|
+
*/
|
|
55
|
+
interface LegacyObservableSubscriptionProcedure<TDef extends BuiltProcedureDef> extends SubscriptionProcedure<TDef> {
|
|
56
|
+
_observable: true;
|
|
57
|
+
}
|
|
58
|
+
type AnyQueryProcedure = QueryProcedure<any>;
|
|
59
|
+
type AnyMutationProcedure = MutationProcedure<any>;
|
|
60
|
+
type AnySubscriptionProcedure = SubscriptionProcedure<any> | LegacyObservableSubscriptionProcedure<any>;
|
|
61
|
+
type AnyProcedure = AnyQueryProcedure | AnyMutationProcedure | AnySubscriptionProcedure;
|
|
62
|
+
type inferProcedureInput<TProcedure extends AnyProcedure> = undefined extends inferProcedureParams<TProcedure>['$types']['input'] ? void | inferProcedureParams<TProcedure>['$types']['input'] : inferProcedureParams<TProcedure>['$types']['input'];
|
|
63
|
+
type inferProcedureParams<TProcedure> = TProcedure extends AnyProcedure ? TProcedure['_def'] : never;
|
|
64
|
+
type inferProcedureOutput<TProcedure> = inferProcedureParams<TProcedure>['$types']['output'];
|
|
65
|
+
/**
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
interface ErrorHandlerOptions<TContext> {
|
|
69
|
+
error: TRPCError;
|
|
70
|
+
type: ProcedureType | 'unknown';
|
|
71
|
+
path: string | undefined;
|
|
72
|
+
input: unknown;
|
|
73
|
+
ctx: TContext | undefined;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
//#endregion
|
|
77
|
+
export { AnyMutationProcedure, AnyProcedure, AnyQueryProcedure, AnySubscriptionProcedure, ErrorHandlerOptions, LegacyObservableSubscriptionProcedure, MutationProcedure, Procedure, ProcedureType, QueryProcedure, SubscriptionProcedure, inferProcedureInput, inferProcedureOutput, inferProcedureParams, procedureTypes as procedureTypes$1 };
|
|
78
|
+
//# sourceMappingURL=procedure.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"procedure.d.mts","names":[],"sources":["../../src/unstable-core-do-not-import/procedure.ts"],"sourcesContent":[],"mappings":";;;;;cAIa;;AAAb;;KAIY,aAAA,WAAwB;UAE1B,iBAAA;EAFE,IAAA,EAAA,OAAA;EAEF,KAAA,EAAA,OAAA;;;;;AAUV;;AACgB,UADC,SACD,CAAA,cAAA,aAAA,EAAA,aACD,iBADC,CAAA,CAAA;EAAa,IACd,EAAA;IAQF;;;;IAgBL,MAAA,EAAA;MAIC,KAAA,EApBI,IAoBJ,CAAA,OAAA,CAAA;MAAwC,MAAA,EAnBnC,IAmBmC,CAAA,QAAA,CAAA;IAAR,CAAA;IAAO,SAAA,EAAA,IAAA;IAG/B,IAAA,EAnBP,KAmBO;IAAc;;;;IACZ,IAAA,EAAA,OAAA;IAEF,mBAAiB,EAAA,OAAA;IAAA;;;IACxB,MAAA,EAbE,MAaF,EAAA;EAAS,CAAA;EAEF,IAAA,EAbT,IAaS,CAAA,MAAA,CAAA;EAAqB;;;EACE,CAAA,IAA9B,EAVD,oBAUC,CAAA,OAAA,CAAA,CAAA,EAV+B,OAU/B,CAVuC,IAUvC,CAAA,QAAA,CAAA,CAAA;AAAS;UAPF,4BAA4B,2BACnC,mBAAmB;UAEZ,+BAA+B,2BACtC,sBAAsB,OAQhC;AAAsD,UANrC,qBAMqC,CAAA,aANF,iBAME,CAAA,SAL5C,SAK4C,CAAA,cAAA,EALlB,IAKkB,CAAA,CAAA;;;AAEvB;AAInB,UANK,qCAM6B,CAAA,aAL/B,iBAK+B,CAAA,SAJpC,qBAIoC,CAJd,IAIc,CAAA,CAAA;EAClC,WAAA,EAAA,IAAA;AACZ;AAAoC,KAFxB,iBAAA,GAAoB,cAEI,CAAA,GAAA,CAAA;AAChC,KAFQ,oBAAA,GAAuB,iBAE/B,CAAA,GAAA,CAAA;AACA,KAFQ,wBAAA,GACR,qBACA,CAAA,GAAA,CAAA,GAAA,qCAAA,CAAA,GAAA,CAAA;AAAqC,KAE7B,YAAA,GACR,iBAHqC,GAIrC,oBAJqC,GAKrC,wBALqC;AAE7B,KAKA,mBALY,CAAA,mBAK2B,YAL3B,CAAA,GAAA,SAAA,SAMJ,oBANI,CAMiB,UANjB,CAAA,CAAA,QAAA,CAAA,CAAA,OAAA,CAAA,GAAA,IAAA,GAOX,oBAPW,CAOU,UAPV,CAAA,CAAA,QAAA,CAAA,CAAA,OAAA,CAAA,GAQlB,oBARkB,CAQG,UARH,CAAA,CAAA,QAAA,CAAA,CAAA,OAAA,CAAA;AAAA,KAUZ,oBAVY,CAAA,UAAA,CAAA,GAUuB,UAVvB,SAU0C,YAV1C,GAWpB,UAXoB,CAAA,MAAA,CAAA,GAAA,KAAA;AACpB,KAYQ,oBAZR,CAAA,UAAA,CAAA,GAaF,oBAbE,CAamB,UAbnB,CAAA,CAAA,QAAA,CAAA,CAAA,QAAA,CAAA;;;AAEwB;AAEhB,UAcK,mBAdc,CAAA,QAAA,CAAA,CAAA;EAAA,KAAA,EAetB,SAfsB;EAAA,IAAoB,EAgB3C,aAhB2C,GAAA,SAAA;EAAY,IACtB,EAAA,MAAA,GAAA,SAAA;EAAU,KAA/B,EAAA,OAAA;EAAoB,GACN,EAiB3B,QAjB2B,GAAA,SAAA"}
|
|
@@ -1,70 +1,78 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { TRPCError } from "./error/TRPCError.js";
|
|
2
|
+
import { Parser } from "./parser.js";
|
|
3
|
+
import { ProcedureCallOptions } from "./procedureBuilder.js";
|
|
4
|
+
|
|
5
|
+
//#region src/unstable-core-do-not-import/procedure.d.ts
|
|
6
|
+
declare const procedureTypes: readonly ["query", "mutation", "subscription"];
|
|
4
7
|
/**
|
|
5
8
|
* @public
|
|
6
9
|
*/
|
|
7
|
-
|
|
10
|
+
type ProcedureType = (typeof procedureTypes)[number];
|
|
8
11
|
interface BuiltProcedureDef {
|
|
9
|
-
|
|
10
|
-
|
|
12
|
+
meta: unknown;
|
|
13
|
+
input: unknown;
|
|
14
|
+
output: unknown;
|
|
11
15
|
}
|
|
12
16
|
/**
|
|
13
17
|
*
|
|
14
18
|
* @internal
|
|
15
19
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
26
|
-
procedure: true;
|
|
27
|
-
type: TType;
|
|
28
|
-
/**
|
|
29
|
-
* @internal
|
|
30
|
-
* Meta is not inferrable on individual procedures, only on the router
|
|
31
|
-
*/
|
|
32
|
-
meta: unknown;
|
|
33
|
-
experimental_caller: boolean;
|
|
20
|
+
interface Procedure<TType extends ProcedureType, TDef extends BuiltProcedureDef> {
|
|
21
|
+
_def: {
|
|
22
|
+
/**
|
|
23
|
+
* These are just types, they can't be used at runtime
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
$types: {
|
|
27
|
+
input: TDef['input'];
|
|
28
|
+
output: TDef['output'];
|
|
34
29
|
};
|
|
30
|
+
procedure: true;
|
|
31
|
+
type: TType;
|
|
35
32
|
/**
|
|
36
33
|
* @internal
|
|
34
|
+
* Meta is not inferrable on individual procedures, only on the router
|
|
37
35
|
*/
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
36
|
+
meta: unknown;
|
|
37
|
+
experimental_caller: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* The input parsers for the procedure
|
|
40
|
+
*/
|
|
41
|
+
inputs: Parser[];
|
|
42
|
+
};
|
|
43
|
+
meta: TDef['meta'];
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
(opts: ProcedureCallOptions<unknown>): Promise<TDef['output']>;
|
|
45
48
|
}
|
|
49
|
+
interface QueryProcedure<TDef extends BuiltProcedureDef> extends Procedure<'query', TDef> {}
|
|
50
|
+
interface MutationProcedure<TDef extends BuiltProcedureDef> extends Procedure<'mutation', TDef> {}
|
|
51
|
+
interface SubscriptionProcedure<TDef extends BuiltProcedureDef> extends Procedure<'subscription', TDef> {}
|
|
46
52
|
/**
|
|
47
53
|
* @deprecated
|
|
48
54
|
*/
|
|
49
|
-
|
|
50
|
-
|
|
55
|
+
interface LegacyObservableSubscriptionProcedure<TDef extends BuiltProcedureDef> extends SubscriptionProcedure<TDef> {
|
|
56
|
+
_observable: true;
|
|
51
57
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
type AnyQueryProcedure = QueryProcedure<any>;
|
|
59
|
+
type AnyMutationProcedure = MutationProcedure<any>;
|
|
60
|
+
type AnySubscriptionProcedure = SubscriptionProcedure<any> | LegacyObservableSubscriptionProcedure<any>;
|
|
61
|
+
type AnyProcedure = AnyQueryProcedure | AnyMutationProcedure | AnySubscriptionProcedure;
|
|
62
|
+
type inferProcedureInput<TProcedure extends AnyProcedure> = undefined extends inferProcedureParams<TProcedure>['$types']['input'] ? void | inferProcedureParams<TProcedure>['$types']['input'] : inferProcedureParams<TProcedure>['$types']['input'];
|
|
63
|
+
type inferProcedureParams<TProcedure> = TProcedure extends AnyProcedure ? TProcedure['_def'] : never;
|
|
64
|
+
type inferProcedureOutput<TProcedure> = inferProcedureParams<TProcedure>['$types']['output'];
|
|
59
65
|
/**
|
|
60
66
|
* @internal
|
|
61
67
|
*/
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
interface ErrorHandlerOptions<TContext> {
|
|
69
|
+
error: TRPCError;
|
|
70
|
+
type: ProcedureType | 'unknown';
|
|
71
|
+
path: string | undefined;
|
|
72
|
+
input: unknown;
|
|
73
|
+
ctx: TContext | undefined;
|
|
68
74
|
}
|
|
69
|
-
|
|
75
|
+
|
|
76
|
+
//#endregion
|
|
77
|
+
export { AnyMutationProcedure, AnyProcedure, AnyQueryProcedure, AnySubscriptionProcedure, ErrorHandlerOptions, LegacyObservableSubscriptionProcedure, MutationProcedure, Procedure, ProcedureType, QueryProcedure, SubscriptionProcedure, inferProcedureInput, inferProcedureOutput, inferProcedureParams, procedureTypes };
|
|
70
78
|
//# sourceMappingURL=procedure.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"procedure.d.ts","
|
|
1
|
+
{"version":3,"file":"procedure.d.ts","names":[],"sources":["../../src/unstable-core-do-not-import/procedure.ts"],"sourcesContent":[],"mappings":";;;;;cAIa;;AAAb;;KAIY,aAAA,WAAwB;UAE1B,iBAAA;EAFE,IAAA,EAAA,OAAA;EAEF,KAAA,EAAA,OAAA;;;;;AAUV;;AACgB,UADC,SACD,CAAA,cAAA,aAAA,EAAA,aACD,iBADC,CAAA,CAAA;EAAa,IACd,EAAA;IAQF;;;;IAgBL,MAAA,EAAA;MAIC,KAAA,EApBI,IAoBJ,CAAA,OAAA,CAAA;MAAwC,MAAA,EAnBnC,IAmBmC,CAAA,QAAA,CAAA;IAAR,CAAA;IAAO,SAAA,EAAA,IAAA;IAG/B,IAAA,EAnBP,KAmBO;IAAc;;;;IACZ,IAAA,EAAA,OAAA;IAEF,mBAAiB,EAAA,OAAA;IAAA;;;IACxB,MAAA,EAbE,MAaF,EAAA;EAAS,CAAA;EAEF,IAAA,EAbT,IAaS,CAAA,MAAA,CAAA;EAAqB;;;EACE,CAAA,IAA9B,EAVD,oBAUC,CAAA,OAAA,CAAA,CAAA,EAV+B,OAU/B,CAVuC,IAUvC,CAAA,QAAA,CAAA,CAAA;AAAS;UAPF,4BAA4B,2BACnC,mBAAmB;UAEZ,+BAA+B,2BACtC,sBAAsB,OAQhC;AAAsD,UANrC,qBAMqC,CAAA,aANF,iBAME,CAAA,SAL5C,SAK4C,CAAA,cAAA,EALlB,IAKkB,CAAA,CAAA;;;AAEvB;AAInB,UANK,qCAM6B,CAAA,aAL/B,iBAK+B,CAAA,SAJpC,qBAIoC,CAJd,IAIc,CAAA,CAAA;EAClC,WAAA,EAAA,IAAA;AACZ;AAAoC,KAFxB,iBAAA,GAAoB,cAEI,CAAA,GAAA,CAAA;AAChC,KAFQ,oBAAA,GAAuB,iBAE/B,CAAA,GAAA,CAAA;AACA,KAFQ,wBAAA,GACR,qBACA,CAAA,GAAA,CAAA,GAAA,qCAAA,CAAA,GAAA,CAAA;AAAqC,KAE7B,YAAA,GACR,iBAHqC,GAIrC,oBAJqC,GAKrC,wBALqC;AAE7B,KAKA,mBALY,CAAA,mBAK2B,YAL3B,CAAA,GAAA,SAAA,SAMJ,oBANI,CAMiB,UANjB,CAAA,CAAA,QAAA,CAAA,CAAA,OAAA,CAAA,GAAA,IAAA,GAOX,oBAPW,CAOU,UAPV,CAAA,CAAA,QAAA,CAAA,CAAA,OAAA,CAAA,GAQlB,oBARkB,CAQG,UARH,CAAA,CAAA,QAAA,CAAA,CAAA,OAAA,CAAA;AAAA,KAUZ,oBAVY,CAAA,UAAA,CAAA,GAUuB,UAVvB,SAU0C,YAV1C,GAWpB,UAXoB,CAAA,MAAA,CAAA,GAAA,KAAA;AACpB,KAYQ,oBAZR,CAAA,UAAA,CAAA,GAaF,oBAbE,CAamB,UAbnB,CAAA,CAAA,QAAA,CAAA,CAAA,QAAA,CAAA;;;AAEwB;AAEhB,UAcK,mBAdc,CAAA,QAAA,CAAA,CAAA;EAAA,KAAA,EAetB,SAfsB;EAAA,IAAoB,EAgB3C,aAhB2C,GAAA,SAAA;EAAY,IACtB,EAAA,MAAA,GAAA,SAAA;EAAU,KAA/B,EAAA,OAAA;EAAoB,GACN,EAiB3B,QAjB2B,GAAA,SAAA"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
'use strict';
|
|
2
1
|
|
|
2
|
+
//#region src/unstable-core-do-not-import/procedure.ts
|
|
3
3
|
const procedureTypes = [
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
"query",
|
|
5
|
+
"mutation",
|
|
6
|
+
"subscription"
|
|
7
7
|
];
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
//#endregion
|
|
10
|
+
exports.procedureTypes = procedureTypes;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
//#region src/unstable-core-do-not-import/procedure.ts
|
|
1
2
|
const procedureTypes = [
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
"query",
|
|
4
|
+
"mutation",
|
|
5
|
+
"subscription"
|
|
5
6
|
];
|
|
6
7
|
|
|
8
|
+
//#endregion
|
|
7
9
|
export { procedureTypes };
|
|
10
|
+
//# sourceMappingURL=procedure.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"procedure.mjs","names":[],"sources":["../../src/unstable-core-do-not-import/procedure.ts"],"sourcesContent":["import type { TRPCError } from './error/TRPCError';\nimport type { Parser } from './parser';\nimport type { ProcedureCallOptions } from './procedureBuilder';\n\nexport const procedureTypes = ['query', 'mutation', 'subscription'] as const;\n/**\n * @public\n */\nexport type ProcedureType = (typeof procedureTypes)[number];\n\ninterface BuiltProcedureDef {\n meta: unknown;\n input: unknown;\n output: unknown;\n}\n\n/**\n *\n * @internal\n */\nexport interface Procedure<\n TType extends ProcedureType,\n TDef extends BuiltProcedureDef,\n> {\n _def: {\n /**\n * These are just types, they can't be used at runtime\n * @internal\n */\n $types: {\n input: TDef['input'];\n output: TDef['output'];\n };\n procedure: true;\n type: TType;\n /**\n * @internal\n * Meta is not inferrable on individual procedures, only on the router\n */\n meta: unknown;\n experimental_caller: boolean;\n /**\n * The input parsers for the procedure\n */\n inputs: Parser[];\n };\n meta: TDef['meta'];\n /**\n * @internal\n */\n (opts: ProcedureCallOptions<unknown>): Promise<TDef['output']>;\n}\n\nexport interface QueryProcedure<TDef extends BuiltProcedureDef>\n extends Procedure<'query', TDef> {}\n\nexport interface MutationProcedure<TDef extends BuiltProcedureDef>\n extends Procedure<'mutation', TDef> {}\n\nexport interface SubscriptionProcedure<TDef extends BuiltProcedureDef>\n extends Procedure<'subscription', TDef> {}\n\n/**\n * @deprecated\n */\nexport interface LegacyObservableSubscriptionProcedure<\n TDef extends BuiltProcedureDef,\n> extends SubscriptionProcedure<TDef> {\n _observable: true;\n}\n\nexport type AnyQueryProcedure = QueryProcedure<any>;\nexport type AnyMutationProcedure = MutationProcedure<any>;\nexport type AnySubscriptionProcedure =\n | SubscriptionProcedure<any>\n | LegacyObservableSubscriptionProcedure<any>;\n\nexport type AnyProcedure =\n | AnyQueryProcedure\n | AnyMutationProcedure\n | AnySubscriptionProcedure;\n\nexport type inferProcedureInput<TProcedure extends AnyProcedure> =\n undefined extends inferProcedureParams<TProcedure>['$types']['input']\n ? void | inferProcedureParams<TProcedure>['$types']['input']\n : inferProcedureParams<TProcedure>['$types']['input'];\n\nexport type inferProcedureParams<TProcedure> = TProcedure extends AnyProcedure\n ? TProcedure['_def']\n : never;\nexport type inferProcedureOutput<TProcedure> =\n inferProcedureParams<TProcedure>['$types']['output'];\n\n/**\n * @internal\n */\nexport interface ErrorHandlerOptions<TContext> {\n error: TRPCError;\n type: ProcedureType | 'unknown';\n path: string | undefined;\n input: unknown;\n ctx: TContext | undefined;\n}\n"],"mappings":";AAIA,MAAa,iBAAiB;CAAC;CAAS;CAAY;AAAe"}
|