@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
package/dist/adapters/ws.js
CHANGED
|
@@ -1,543 +1,417 @@
|
|
|
1
|
-
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.js');
|
|
2
|
+
const require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_utils = require('../unstable-core-do-not-import/utils.js');
|
|
3
|
+
const require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_rpc_parseTRPCMessage = require('../unstable-core-do-not-import/rpc/parseTRPCMessage.js');
|
|
4
|
+
const require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_error_getErrorShape = require('../unstable-core-do-not-import/error/getErrorShape.js');
|
|
5
|
+
const require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_error_TRPCError = require('../unstable-core-do-not-import/error/TRPCError.js');
|
|
6
|
+
const require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_transformer = require('../unstable-core-do-not-import/transformer.js');
|
|
7
|
+
const require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_router = require('../unstable-core-do-not-import/router.js');
|
|
8
|
+
const require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_http_parseConnectionParams = require('../unstable-core-do-not-import/http/parseConnectionParams.js');
|
|
9
|
+
const require__Users_julius_dev_trpc_packages_server_src_observable_observable = require('../observable/observable.js');
|
|
10
|
+
const require__Users_julius_dev_trpc_packages_server_src_vendor_unpromise_unpromise = require('../vendor/unpromise/unpromise.js');
|
|
11
|
+
const require__Users_julius_dev_trpc_node_modules__pnpm__oxc_project_runtime_0_71_0_node_modules__oxc_project_runtime_src_helpers_usingCtx = require('../node_modules/.pnpm/@oxc-project_runtime@0.71.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js');
|
|
12
|
+
const require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_stream_utils_asyncIterable = require('../unstable-core-do-not-import/stream/utils/asyncIterable.js');
|
|
13
|
+
const require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_stream_tracked = require('../unstable-core-do-not-import/stream/tracked.js');
|
|
14
|
+
const require__Users_julius_dev_trpc_packages_server_src_adapters_node_http_incomingMessageToRequest = require('./node-http/incomingMessageToRequest.js');
|
|
2
15
|
|
|
3
|
-
|
|
4
|
-
var
|
|
5
|
-
var router = require('../unstable-core-do-not-import/router.js');
|
|
6
|
-
var utils = require('../unstable-core-do-not-import/utils.js');
|
|
7
|
-
var parseConnectionParams = require('../unstable-core-do-not-import/http/parseConnectionParams.js');
|
|
8
|
-
var parseTRPCMessage = require('../unstable-core-do-not-import/rpc/parseTRPCMessage.js');
|
|
9
|
-
var observable = require('../observable/observable.js');
|
|
10
|
-
var asyncIterable = require('../unstable-core-do-not-import/stream/utils/asyncIterable.js');
|
|
11
|
-
require('../unstable-core-do-not-import/stream/utils/disposable.js');
|
|
12
|
-
var unpromise = require('../vendor/unpromise/unpromise.js');
|
|
13
|
-
var tracked = require('../unstable-core-do-not-import/stream/tracked.js');
|
|
14
|
-
var transformer = require('../unstable-core-do-not-import/transformer.js');
|
|
15
|
-
require('../unstable-core-do-not-import/rootConfig.js');
|
|
16
|
-
var incomingMessageToRequest = require('./node-http/incomingMessageToRequest.js');
|
|
17
|
-
|
|
18
|
-
function _ts_add_disposable_resource(env, value, async) {
|
|
19
|
-
if (value !== null && value !== void 0) {
|
|
20
|
-
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
|
|
21
|
-
var dispose, inner;
|
|
22
|
-
{
|
|
23
|
-
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
24
|
-
dispose = value[Symbol.asyncDispose];
|
|
25
|
-
}
|
|
26
|
-
if (dispose === void 0) {
|
|
27
|
-
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
|
28
|
-
dispose = value[Symbol.dispose];
|
|
29
|
-
inner = dispose;
|
|
30
|
-
}
|
|
31
|
-
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
|
32
|
-
if (inner) dispose = function() {
|
|
33
|
-
try {
|
|
34
|
-
inner.call(this);
|
|
35
|
-
} catch (e) {
|
|
36
|
-
return Promise.reject(e);
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
env.stack.push({
|
|
40
|
-
value: value,
|
|
41
|
-
dispose: dispose,
|
|
42
|
-
async: async
|
|
43
|
-
});
|
|
44
|
-
} else {
|
|
45
|
-
env.stack.push({
|
|
46
|
-
async: true
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
return value;
|
|
50
|
-
}
|
|
51
|
-
function _ts_dispose_resources(env) {
|
|
52
|
-
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
53
|
-
var e = new Error(message);
|
|
54
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
55
|
-
};
|
|
56
|
-
return (_ts_dispose_resources = function _ts_dispose_resources(env) {
|
|
57
|
-
function fail(e) {
|
|
58
|
-
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
59
|
-
env.hasError = true;
|
|
60
|
-
}
|
|
61
|
-
var r, s = 0;
|
|
62
|
-
function next() {
|
|
63
|
-
while(r = env.stack.pop()){
|
|
64
|
-
try {
|
|
65
|
-
if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
|
|
66
|
-
if (r.dispose) {
|
|
67
|
-
var result = r.dispose.call(r.value);
|
|
68
|
-
if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) {
|
|
69
|
-
fail(e);
|
|
70
|
-
return next();
|
|
71
|
-
});
|
|
72
|
-
} else s |= 1;
|
|
73
|
-
} catch (e) {
|
|
74
|
-
fail(e);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
78
|
-
if (env.hasError) throw env.error;
|
|
79
|
-
}
|
|
80
|
-
return next();
|
|
81
|
-
})(env);
|
|
82
|
-
}
|
|
16
|
+
//#region src/adapters/ws.ts
|
|
17
|
+
var import_usingCtx = require_rolldown_runtime.__toESM(require__Users_julius_dev_trpc_node_modules__pnpm__oxc_project_runtime_0_71_0_node_modules__oxc_project_runtime_src_helpers_usingCtx.require_usingCtx());
|
|
83
18
|
/**
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
19
|
+
* Importing ws causes a build error
|
|
20
|
+
* @see https://github.com/trpc/trpc/pull/5279
|
|
21
|
+
*/
|
|
22
|
+
const WEBSOCKET_OPEN = 1;
|
|
87
23
|
function getWSConnectionHandler(opts) {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
}
|
|
433
|
-
const connectionParams = parseConnectionParams.parseConnectionParamsFromUnknown(msg.data);
|
|
434
|
-
return connectionParams;
|
|
435
|
-
});
|
|
436
|
-
return;
|
|
437
|
-
}
|
|
438
|
-
const parsedMsgs = utils.run(()=>{
|
|
439
|
-
try {
|
|
440
|
-
const msgJSON = JSON.parse(msgStr);
|
|
441
|
-
const msgs = Array.isArray(msgJSON) ? msgJSON : [
|
|
442
|
-
msgJSON
|
|
443
|
-
];
|
|
444
|
-
return msgs.map((raw)=>parseTRPCMessage.parseTRPCMessage(raw, transformer$1));
|
|
445
|
-
} catch (cause) {
|
|
446
|
-
const error = new TRPCError.TRPCError({
|
|
447
|
-
code: 'PARSE_ERROR',
|
|
448
|
-
cause
|
|
449
|
-
});
|
|
450
|
-
respond({
|
|
451
|
-
id: null,
|
|
452
|
-
error: getErrorShape.getErrorShape({
|
|
453
|
-
config: router$1._def._config,
|
|
454
|
-
error,
|
|
455
|
-
type: 'unknown',
|
|
456
|
-
path: undefined,
|
|
457
|
-
input: undefined,
|
|
458
|
-
ctx
|
|
459
|
-
})
|
|
460
|
-
});
|
|
461
|
-
return [];
|
|
462
|
-
}
|
|
463
|
-
});
|
|
464
|
-
parsedMsgs.map(handleRequest);
|
|
465
|
-
});
|
|
466
|
-
// WebSocket errors should be handled, as otherwise unhandled exceptions will crash Node.js.
|
|
467
|
-
// This line was introduced after the following error brought down production systems:
|
|
468
|
-
// "RangeError: Invalid WebSocket frame: RSV2 and RSV3 must be clear"
|
|
469
|
-
// Here is the relevant discussion: https://github.com/websockets/ws/issues/1354#issuecomment-774616962
|
|
470
|
-
client.on('error', (cause)=>{
|
|
471
|
-
opts.onError?.({
|
|
472
|
-
ctx,
|
|
473
|
-
error: TRPCError.getTRPCErrorFromUnknown(cause),
|
|
474
|
-
input: undefined,
|
|
475
|
-
path: undefined,
|
|
476
|
-
type: 'unknown',
|
|
477
|
-
req
|
|
478
|
-
});
|
|
479
|
-
});
|
|
480
|
-
client.once('close', ()=>{
|
|
481
|
-
for (const sub of clientSubscriptions.values()){
|
|
482
|
-
sub.abort();
|
|
483
|
-
}
|
|
484
|
-
clientSubscriptions.clear();
|
|
485
|
-
abortController.abort();
|
|
486
|
-
});
|
|
487
|
-
};
|
|
24
|
+
const { createContext, router } = opts;
|
|
25
|
+
const { transformer } = router._def._config;
|
|
26
|
+
return (client, req) => {
|
|
27
|
+
const clientSubscriptions = new Map();
|
|
28
|
+
const abortController = new AbortController();
|
|
29
|
+
if (opts.keepAlive?.enabled) {
|
|
30
|
+
const { pingMs, pongWaitMs } = opts.keepAlive;
|
|
31
|
+
handleKeepAlive(client, pingMs, pongWaitMs);
|
|
32
|
+
}
|
|
33
|
+
function respond(untransformedJSON) {
|
|
34
|
+
client.send(JSON.stringify(require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_transformer.transformTRPCResponse(router._def._config, untransformedJSON)));
|
|
35
|
+
}
|
|
36
|
+
async function createCtxPromise(getConnectionParams) {
|
|
37
|
+
try {
|
|
38
|
+
return await require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_utils.run(async () => {
|
|
39
|
+
ctx = await createContext?.({
|
|
40
|
+
req,
|
|
41
|
+
res: client,
|
|
42
|
+
info: {
|
|
43
|
+
connectionParams: getConnectionParams(),
|
|
44
|
+
calls: [],
|
|
45
|
+
isBatchCall: false,
|
|
46
|
+
accept: null,
|
|
47
|
+
type: "unknown",
|
|
48
|
+
signal: abortController.signal,
|
|
49
|
+
url: null
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
return {
|
|
53
|
+
ok: true,
|
|
54
|
+
value: ctx
|
|
55
|
+
};
|
|
56
|
+
});
|
|
57
|
+
} catch (cause) {
|
|
58
|
+
const error = require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_error_TRPCError.getTRPCErrorFromUnknown(cause);
|
|
59
|
+
opts.onError?.({
|
|
60
|
+
error,
|
|
61
|
+
path: void 0,
|
|
62
|
+
type: "unknown",
|
|
63
|
+
ctx,
|
|
64
|
+
req,
|
|
65
|
+
input: void 0
|
|
66
|
+
});
|
|
67
|
+
respond({
|
|
68
|
+
id: null,
|
|
69
|
+
error: require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_error_getErrorShape.getErrorShape({
|
|
70
|
+
config: router._def._config,
|
|
71
|
+
error,
|
|
72
|
+
type: "unknown",
|
|
73
|
+
path: void 0,
|
|
74
|
+
input: void 0,
|
|
75
|
+
ctx
|
|
76
|
+
})
|
|
77
|
+
});
|
|
78
|
+
(globalThis.setImmediate ?? globalThis.setTimeout)(() => {
|
|
79
|
+
client.close();
|
|
80
|
+
});
|
|
81
|
+
return {
|
|
82
|
+
ok: false,
|
|
83
|
+
error
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
let ctx = void 0;
|
|
88
|
+
/**
|
|
89
|
+
* promise for initializing the context
|
|
90
|
+
*
|
|
91
|
+
* - the context promise will be created immediately on connection if no connectionParams are expected
|
|
92
|
+
* - if connection params are expected, they will be created once received
|
|
93
|
+
*/
|
|
94
|
+
let ctxPromise = require__Users_julius_dev_trpc_packages_server_src_adapters_node_http_incomingMessageToRequest.createURL(req).searchParams.get("connectionParams") === "1" ? null : createCtxPromise(() => null);
|
|
95
|
+
function handleRequest(msg) {
|
|
96
|
+
const { id, jsonrpc } = msg;
|
|
97
|
+
if (id === null) {
|
|
98
|
+
const error = require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_error_TRPCError.getTRPCErrorFromUnknown(new require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_error_TRPCError.TRPCError({
|
|
99
|
+
code: "PARSE_ERROR",
|
|
100
|
+
message: "`id` is required"
|
|
101
|
+
}));
|
|
102
|
+
opts.onError?.({
|
|
103
|
+
error,
|
|
104
|
+
path: void 0,
|
|
105
|
+
type: "unknown",
|
|
106
|
+
ctx,
|
|
107
|
+
req,
|
|
108
|
+
input: void 0
|
|
109
|
+
});
|
|
110
|
+
respond({
|
|
111
|
+
id,
|
|
112
|
+
jsonrpc,
|
|
113
|
+
error: require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_error_getErrorShape.getErrorShape({
|
|
114
|
+
config: router._def._config,
|
|
115
|
+
error,
|
|
116
|
+
type: "unknown",
|
|
117
|
+
path: void 0,
|
|
118
|
+
input: void 0,
|
|
119
|
+
ctx
|
|
120
|
+
})
|
|
121
|
+
});
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
if (msg.method === "subscription.stop") {
|
|
125
|
+
clientSubscriptions.get(id)?.abort();
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
const { path, lastEventId } = msg.params;
|
|
129
|
+
let { input } = msg.params;
|
|
130
|
+
const type = msg.method;
|
|
131
|
+
if (lastEventId !== void 0) if (require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_utils.isObject(input)) input = {
|
|
132
|
+
...input,
|
|
133
|
+
lastEventId
|
|
134
|
+
};
|
|
135
|
+
else input ??= { lastEventId };
|
|
136
|
+
require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_utils.run(async () => {
|
|
137
|
+
const res = await ctxPromise;
|
|
138
|
+
if (!res.ok) throw res.error;
|
|
139
|
+
const abortController$1 = new AbortController();
|
|
140
|
+
const result = await require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_router.callProcedure({
|
|
141
|
+
router,
|
|
142
|
+
path,
|
|
143
|
+
getRawInput: async () => input,
|
|
144
|
+
ctx,
|
|
145
|
+
type,
|
|
146
|
+
signal: abortController$1.signal
|
|
147
|
+
});
|
|
148
|
+
const isIterableResult = require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_utils.isAsyncIterable(result) || require__Users_julius_dev_trpc_packages_server_src_observable_observable.isObservable(result);
|
|
149
|
+
if (type !== "subscription") {
|
|
150
|
+
if (isIterableResult) throw new require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_error_TRPCError.TRPCError({
|
|
151
|
+
code: "UNSUPPORTED_MEDIA_TYPE",
|
|
152
|
+
message: `Cannot return an async iterable or observable from a ${type} procedure with WebSockets`
|
|
153
|
+
});
|
|
154
|
+
respond({
|
|
155
|
+
id,
|
|
156
|
+
jsonrpc,
|
|
157
|
+
result: {
|
|
158
|
+
type: "data",
|
|
159
|
+
data: result
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
if (!isIterableResult) throw new require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_error_TRPCError.TRPCError({
|
|
165
|
+
message: `Subscription ${path} did not return an observable or a AsyncGenerator`,
|
|
166
|
+
code: "INTERNAL_SERVER_ERROR"
|
|
167
|
+
});
|
|
168
|
+
/* istanbul ignore next -- @preserve */
|
|
169
|
+
if (client.readyState !== WEBSOCKET_OPEN) return;
|
|
170
|
+
/* istanbul ignore next -- @preserve */
|
|
171
|
+
if (clientSubscriptions.has(id)) throw new require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_error_TRPCError.TRPCError({
|
|
172
|
+
message: `Duplicate id ${id}`,
|
|
173
|
+
code: "BAD_REQUEST"
|
|
174
|
+
});
|
|
175
|
+
const iterable = require__Users_julius_dev_trpc_packages_server_src_observable_observable.isObservable(result) ? require__Users_julius_dev_trpc_packages_server_src_observable_observable.observableToAsyncIterable(result, abortController$1.signal) : result;
|
|
176
|
+
require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_utils.run(async () => {
|
|
177
|
+
try {
|
|
178
|
+
var _usingCtx = (0, import_usingCtx.default)();
|
|
179
|
+
const iterator = _usingCtx.a(require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_stream_utils_asyncIterable.iteratorResource(iterable));
|
|
180
|
+
const abortPromise = new Promise((resolve) => {
|
|
181
|
+
abortController$1.signal.onabort = () => resolve("abort");
|
|
182
|
+
});
|
|
183
|
+
let next;
|
|
184
|
+
let result$1;
|
|
185
|
+
while (true) {
|
|
186
|
+
next = await require__Users_julius_dev_trpc_packages_server_src_vendor_unpromise_unpromise.Unpromise.race([iterator.next().catch(require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_error_TRPCError.getTRPCErrorFromUnknown), abortPromise]);
|
|
187
|
+
if (next === "abort") {
|
|
188
|
+
await iterator.return?.();
|
|
189
|
+
break;
|
|
190
|
+
}
|
|
191
|
+
if (next instanceof Error) {
|
|
192
|
+
const error = require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_error_TRPCError.getTRPCErrorFromUnknown(next);
|
|
193
|
+
opts.onError?.({
|
|
194
|
+
error,
|
|
195
|
+
path,
|
|
196
|
+
type,
|
|
197
|
+
ctx,
|
|
198
|
+
req,
|
|
199
|
+
input
|
|
200
|
+
});
|
|
201
|
+
respond({
|
|
202
|
+
id,
|
|
203
|
+
jsonrpc,
|
|
204
|
+
error: require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_error_getErrorShape.getErrorShape({
|
|
205
|
+
config: router._def._config,
|
|
206
|
+
error,
|
|
207
|
+
type,
|
|
208
|
+
path,
|
|
209
|
+
input,
|
|
210
|
+
ctx
|
|
211
|
+
})
|
|
212
|
+
});
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
if (next.done) break;
|
|
216
|
+
result$1 = {
|
|
217
|
+
type: "data",
|
|
218
|
+
data: next.value
|
|
219
|
+
};
|
|
220
|
+
if (require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_stream_tracked.isTrackedEnvelope(next.value)) {
|
|
221
|
+
const [id$1, data] = next.value;
|
|
222
|
+
result$1.id = id$1;
|
|
223
|
+
result$1.data = {
|
|
224
|
+
id: id$1,
|
|
225
|
+
data
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
respond({
|
|
229
|
+
id,
|
|
230
|
+
jsonrpc,
|
|
231
|
+
result: result$1
|
|
232
|
+
});
|
|
233
|
+
next = null;
|
|
234
|
+
result$1 = null;
|
|
235
|
+
}
|
|
236
|
+
respond({
|
|
237
|
+
id,
|
|
238
|
+
jsonrpc,
|
|
239
|
+
result: { type: "stopped" }
|
|
240
|
+
});
|
|
241
|
+
clientSubscriptions.delete(id);
|
|
242
|
+
} catch (_) {
|
|
243
|
+
_usingCtx.e = _;
|
|
244
|
+
} finally {
|
|
245
|
+
await _usingCtx.d();
|
|
246
|
+
}
|
|
247
|
+
}).catch((cause) => {
|
|
248
|
+
const error = require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_error_TRPCError.getTRPCErrorFromUnknown(cause);
|
|
249
|
+
opts.onError?.({
|
|
250
|
+
error,
|
|
251
|
+
path,
|
|
252
|
+
type,
|
|
253
|
+
ctx,
|
|
254
|
+
req,
|
|
255
|
+
input
|
|
256
|
+
});
|
|
257
|
+
respond({
|
|
258
|
+
id,
|
|
259
|
+
jsonrpc,
|
|
260
|
+
error: require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_error_getErrorShape.getErrorShape({
|
|
261
|
+
config: router._def._config,
|
|
262
|
+
error,
|
|
263
|
+
type,
|
|
264
|
+
path,
|
|
265
|
+
input,
|
|
266
|
+
ctx
|
|
267
|
+
})
|
|
268
|
+
});
|
|
269
|
+
abortController$1.abort();
|
|
270
|
+
});
|
|
271
|
+
clientSubscriptions.set(id, abortController$1);
|
|
272
|
+
respond({
|
|
273
|
+
id,
|
|
274
|
+
jsonrpc,
|
|
275
|
+
result: { type: "started" }
|
|
276
|
+
});
|
|
277
|
+
}).catch((cause) => {
|
|
278
|
+
const error = require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_error_TRPCError.getTRPCErrorFromUnknown(cause);
|
|
279
|
+
opts.onError?.({
|
|
280
|
+
error,
|
|
281
|
+
path,
|
|
282
|
+
type,
|
|
283
|
+
ctx,
|
|
284
|
+
req,
|
|
285
|
+
input
|
|
286
|
+
});
|
|
287
|
+
respond({
|
|
288
|
+
id,
|
|
289
|
+
jsonrpc,
|
|
290
|
+
error: require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_error_getErrorShape.getErrorShape({
|
|
291
|
+
config: router._def._config,
|
|
292
|
+
error,
|
|
293
|
+
type,
|
|
294
|
+
path,
|
|
295
|
+
input,
|
|
296
|
+
ctx
|
|
297
|
+
})
|
|
298
|
+
});
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
client.on("message", (rawData) => {
|
|
302
|
+
const msgStr = rawData.toString();
|
|
303
|
+
if (msgStr === "PONG") return;
|
|
304
|
+
if (msgStr === "PING") {
|
|
305
|
+
if (!opts.dangerouslyDisablePong) client.send("PONG");
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
if (!ctxPromise) {
|
|
309
|
+
ctxPromise = createCtxPromise(() => {
|
|
310
|
+
let msg;
|
|
311
|
+
try {
|
|
312
|
+
msg = JSON.parse(msgStr);
|
|
313
|
+
if (!require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_utils.isObject(msg)) throw new Error("Message was not an object");
|
|
314
|
+
} catch (cause) {
|
|
315
|
+
throw new require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_error_TRPCError.TRPCError({
|
|
316
|
+
code: "PARSE_ERROR",
|
|
317
|
+
message: `Malformed TRPCConnectionParamsMessage`,
|
|
318
|
+
cause
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
const connectionParams = require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_http_parseConnectionParams.parseConnectionParamsFromUnknown(msg.data);
|
|
322
|
+
return connectionParams;
|
|
323
|
+
});
|
|
324
|
+
return;
|
|
325
|
+
}
|
|
326
|
+
const parsedMsgs = require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_utils.run(() => {
|
|
327
|
+
try {
|
|
328
|
+
const msgJSON = JSON.parse(msgStr);
|
|
329
|
+
const msgs = Array.isArray(msgJSON) ? msgJSON : [msgJSON];
|
|
330
|
+
return msgs.map((raw) => require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_rpc_parseTRPCMessage.parseTRPCMessage(raw, transformer));
|
|
331
|
+
} catch (cause) {
|
|
332
|
+
const error = new require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_error_TRPCError.TRPCError({
|
|
333
|
+
code: "PARSE_ERROR",
|
|
334
|
+
cause
|
|
335
|
+
});
|
|
336
|
+
respond({
|
|
337
|
+
id: null,
|
|
338
|
+
error: require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_error_getErrorShape.getErrorShape({
|
|
339
|
+
config: router._def._config,
|
|
340
|
+
error,
|
|
341
|
+
type: "unknown",
|
|
342
|
+
path: void 0,
|
|
343
|
+
input: void 0,
|
|
344
|
+
ctx
|
|
345
|
+
})
|
|
346
|
+
});
|
|
347
|
+
return [];
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
parsedMsgs.map(handleRequest);
|
|
351
|
+
});
|
|
352
|
+
client.on("error", (cause) => {
|
|
353
|
+
opts.onError?.({
|
|
354
|
+
ctx,
|
|
355
|
+
error: require__Users_julius_dev_trpc_packages_server_src_unstable_core_do_not_import_error_TRPCError.getTRPCErrorFromUnknown(cause),
|
|
356
|
+
input: void 0,
|
|
357
|
+
path: void 0,
|
|
358
|
+
type: "unknown",
|
|
359
|
+
req
|
|
360
|
+
});
|
|
361
|
+
});
|
|
362
|
+
client.once("close", () => {
|
|
363
|
+
for (const sub of clientSubscriptions.values()) sub.abort();
|
|
364
|
+
clientSubscriptions.clear();
|
|
365
|
+
abortController.abort();
|
|
366
|
+
});
|
|
367
|
+
};
|
|
488
368
|
}
|
|
489
369
|
/**
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
370
|
+
* Handle WebSocket keep-alive messages
|
|
371
|
+
*/
|
|
372
|
+
function handleKeepAlive(client, pingMs = 3e4, pongWaitMs = 5e3) {
|
|
373
|
+
let timeout = void 0;
|
|
374
|
+
let ping = void 0;
|
|
375
|
+
const schedulePing = () => {
|
|
376
|
+
const scheduleTimeout = () => {
|
|
377
|
+
timeout = setTimeout(() => {
|
|
378
|
+
client.terminate();
|
|
379
|
+
}, pongWaitMs);
|
|
380
|
+
};
|
|
381
|
+
ping = setTimeout(() => {
|
|
382
|
+
client.send("PING");
|
|
383
|
+
scheduleTimeout();
|
|
384
|
+
}, pingMs);
|
|
385
|
+
};
|
|
386
|
+
const onMessage = () => {
|
|
387
|
+
clearTimeout(ping);
|
|
388
|
+
clearTimeout(timeout);
|
|
389
|
+
schedulePing();
|
|
390
|
+
};
|
|
391
|
+
client.on("message", onMessage);
|
|
392
|
+
client.on("close", () => {
|
|
393
|
+
clearTimeout(ping);
|
|
394
|
+
clearTimeout(timeout);
|
|
395
|
+
});
|
|
396
|
+
schedulePing();
|
|
516
397
|
}
|
|
517
398
|
function applyWSSHandler(opts) {
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
const data = JSON.stringify(response);
|
|
532
|
-
for (const client of opts.wss.clients){
|
|
533
|
-
if (client.readyState === WEBSOCKET_OPEN) {
|
|
534
|
-
client.send(data);
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
};
|
|
399
|
+
const onConnection = getWSConnectionHandler(opts);
|
|
400
|
+
opts.wss.on("connection", (client, req) => {
|
|
401
|
+
if (opts.prefix && !req.url?.startsWith(opts.prefix)) return;
|
|
402
|
+
onConnection(client, req);
|
|
403
|
+
});
|
|
404
|
+
return { broadcastReconnectNotification: () => {
|
|
405
|
+
const response = {
|
|
406
|
+
id: null,
|
|
407
|
+
method: "reconnect"
|
|
408
|
+
};
|
|
409
|
+
const data = JSON.stringify(response);
|
|
410
|
+
for (const client of opts.wss.clients) if (client.readyState === WEBSOCKET_OPEN) client.send(data);
|
|
411
|
+
} };
|
|
539
412
|
}
|
|
540
413
|
|
|
414
|
+
//#endregion
|
|
541
415
|
exports.applyWSSHandler = applyWSSHandler;
|
|
542
416
|
exports.getWSConnectionHandler = getWSConnectionHandler;
|
|
543
|
-
exports.handleKeepAlive = handleKeepAlive;
|
|
417
|
+
exports.handleKeepAlive = handleKeepAlive;
|