@trpc/server 11.3.1 → 11.3.2-canary.2
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/adapters/aws-lambda/index.cjs +255 -0
- package/dist/adapters/aws-lambda/index.d.cts +31 -0
- package/dist/adapters/aws-lambda/index.d.cts.map +1 -0
- package/dist/adapters/aws-lambda/index.d.mts +31 -0
- package/dist/adapters/aws-lambda/index.d.mts.map +1 -0
- package/dist/adapters/aws-lambda/index.mjs +248 -57
- package/dist/adapters/aws-lambda/index.mjs.map +1 -0
- package/dist/adapters/express.cjs +34 -0
- package/dist/adapters/express.d.cts +15 -0
- package/dist/adapters/express.d.cts.map +1 -0
- package/dist/adapters/express.d.mts +15 -0
- package/dist/adapters/express.d.mts.map +1 -0
- package/dist/adapters/express.mjs +30 -32
- package/dist/adapters/express.mjs.map +1 -0
- package/dist/adapters/fastify/index.cjs +75 -0
- package/dist/adapters/fastify/index.d.cts +29 -0
- package/dist/adapters/fastify/index.d.cts.map +1 -0
- package/dist/adapters/fastify/index.d.mts +29 -0
- package/dist/adapters/fastify/index.d.mts.map +1 -0
- package/dist/adapters/fastify/index.mjs +75 -2
- package/dist/adapters/fastify/index.mjs.map +1 -0
- package/dist/adapters/fetch/index.cjs +58 -0
- package/dist/adapters/fetch/index.d.cts +30 -0
- package/dist/adapters/fetch/index.d.cts.map +1 -0
- package/dist/adapters/fetch/index.d.mts +30 -0
- package/dist/adapters/fetch/index.d.mts.map +1 -0
- package/dist/adapters/fetch/index.mjs +59 -1
- package/dist/adapters/fetch/index.mjs.map +1 -0
- package/dist/adapters/next-app-dir.cjs +3050 -0
- package/dist/adapters/next-app-dir.d.cts +58 -0
- package/dist/adapters/next-app-dir.d.cts.map +1 -0
- package/dist/adapters/next-app-dir.d.mts +58 -0
- package/dist/adapters/next-app-dir.d.mts.map +1 -0
- package/dist/adapters/next-app-dir.mjs +3048 -4
- package/dist/adapters/next-app-dir.mjs.map +1 -0
- package/dist/adapters/next.cjs +41 -0
- package/dist/adapters/next.d.cts +19 -0
- package/dist/adapters/next.d.cts.map +1 -0
- package/dist/adapters/next.d.mts +19 -0
- package/dist/adapters/next.d.mts.map +1 -0
- package/dist/adapters/next.mjs +37 -44
- package/dist/adapters/next.mjs.map +1 -0
- package/dist/adapters/node-http/index.cjs +15 -0
- package/dist/adapters/node-http/index.d.cts +5 -0
- package/dist/adapters/node-http/index.d.mts +5 -0
- package/dist/adapters/node-http/index.mjs +12 -2
- package/dist/adapters/standalone.cjs +52 -0
- package/dist/adapters/standalone.d.cts +33 -0
- package/dist/adapters/standalone.d.cts.map +1 -0
- package/dist/adapters/standalone.d.mts +33 -0
- package/dist/adapters/standalone.d.mts.map +1 -0
- package/dist/adapters/standalone.mjs +40 -34
- package/dist/adapters/standalone.mjs.map +1 -0
- package/dist/adapters/ws.cjs +17 -0
- package/dist/adapters/ws.d.cts +61 -0
- package/dist/adapters/ws.d.cts.map +1 -0
- package/dist/adapters/ws.d.mts +61 -0
- package/dist/adapters/ws.d.mts.map +1 -0
- package/dist/adapters/ws.mjs +14 -539
- package/dist/contentTypeParsers-SN4WL9ze.mjs +13 -0
- package/dist/contentTypeParsers-SN4WL9ze.mjs.map +1 -0
- package/dist/contentTypeParsers-iAFF_pJG.cjs +18 -0
- package/dist/getErrorShape-CsikfkAc.cjs +201 -0
- package/dist/getErrorShape-DyYil4aT.mjs +149 -0
- package/dist/getErrorShape-DyYil4aT.mjs.map +1 -0
- package/dist/http-CWyjOa1l.mjs +0 -0
- package/dist/http-DXy3XyhL.cjs +0 -0
- package/dist/http.cjs +14 -0
- package/dist/http.d.cts +3 -0
- package/dist/http.d.mts +3 -0
- package/dist/http.mjs +9 -8
- package/dist/index.cjs +22 -0
- package/dist/index.d-BiUz7kM_.d.cts +65 -0
- package/dist/index.d-BiUz7kM_.d.cts.map +1 -0
- package/dist/index.d-ChWYhXbd.d.cts +99 -0
- package/dist/index.d-ChWYhXbd.d.cts.map +1 -0
- package/dist/index.d-CvZXeEyR.d.cts +11 -0
- package/dist/index.d-CvZXeEyR.d.cts.map +1 -0
- package/dist/index.d-D4qZxQJh.d.mts +65 -0
- package/dist/index.d-D4qZxQJh.d.mts.map +1 -0
- package/dist/index.d-Ocy_AnXj.d.mts +99 -0
- package/dist/index.d-Ocy_AnXj.d.mts.map +1 -0
- package/dist/index.d-vq_QHko2.d.mts +11 -0
- package/dist/index.d-vq_QHko2.d.mts.map +1 -0
- package/dist/index.d.cts +4 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.mjs +6 -13
- package/dist/initTRPC-COaJMShh.mjs +339 -0
- package/dist/initTRPC-COaJMShh.mjs.map +1 -0
- package/dist/initTRPC-DjEpHmY2.cjs +397 -0
- package/dist/node-http-BPR68yI4.cjs +243 -0
- package/dist/node-http-BUQnHuGI.mjs +221 -0
- package/dist/node-http-BUQnHuGI.mjs.map +1 -0
- package/dist/observable/index.cjs +13 -0
- package/dist/observable/index.d.cts +2 -0
- package/dist/observable/index.d.mts +2 -0
- package/dist/observable/index.mjs +4 -3
- package/dist/observable-B1orLHHI.mjs +155 -0
- package/dist/observable-B1orLHHI.mjs.map +1 -0
- package/dist/observable-BwdrSFZU.cjs +178 -0
- package/dist/observable-C6qq2Ydk.cjs +180 -0
- package/dist/observable-CFXA_tyK.mjs +146 -0
- package/dist/observable-CFXA_tyK.mjs.map +1 -0
- package/dist/parseTRPCMessage-ByQWigsq.cjs +73 -0
- package/dist/parseTRPCMessage-CNyYMSRB.mjs +63 -0
- package/dist/parseTRPCMessage-CNyYMSRB.mjs.map +1 -0
- package/dist/resolveResponse-B2CuaT_1.cjs +2042 -0
- package/dist/resolveResponse-DPbYgJDD.mjs +1912 -0
- package/dist/resolveResponse-DPbYgJDD.mjs.map +1 -0
- package/dist/rpc.cjs +6 -0
- package/dist/rpc.d.cts +3 -0
- package/dist/rpc.d.mts +3 -0
- package/dist/rpc.mjs +4 -5
- package/dist/shared.cjs +5 -0
- package/dist/shared.d.cts +4 -0
- package/dist/shared.d.mts +4 -0
- package/dist/shared.mjs +4 -6
- package/dist/tracked-Dl9sBZxY.cjs +483 -0
- package/dist/tracked-GEWPoL0C.mjs +383 -0
- package/dist/tracked-GEWPoL0C.mjs.map +1 -0
- package/dist/unstable-core-do-not-import-D89CaGtL.mjs +29 -0
- package/dist/unstable-core-do-not-import-D89CaGtL.mjs.map +1 -0
- package/dist/unstable-core-do-not-import-DFQys1IC.cjs +34 -0
- package/dist/unstable-core-do-not-import.cjs +83 -0
- package/dist/unstable-core-do-not-import.d-CSxj_rbP.d.cts +1974 -0
- package/dist/unstable-core-do-not-import.d-CSxj_rbP.d.cts.map +1 -0
- package/dist/unstable-core-do-not-import.d-ptrxwuSa.d.mts +1974 -0
- package/dist/unstable-core-do-not-import.d-ptrxwuSa.d.mts.map +1 -0
- package/dist/unstable-core-do-not-import.d.cts +3 -0
- package/dist/unstable-core-do-not-import.d.mts +3 -0
- package/dist/unstable-core-do-not-import.mjs +11 -30
- package/dist/utils-BHZJcBRv.mjs +137 -0
- package/dist/utils-BHZJcBRv.mjs.map +1 -0
- package/dist/utils-DVO6HZiR.cjs +220 -0
- package/dist/ws-C2nEUNk_.cjs +425 -0
- package/dist/ws-eIVIMTrw.mjs +409 -0
- package/dist/ws-eIVIMTrw.mjs.map +1 -0
- package/http/package.json +1 -0
- package/observable/package.json +1 -0
- package/package.json +131 -55
- package/rpc/package.json +1 -0
- package/shared/package.json +1 -0
- package/src/@trpc/server/index.ts +24 -0
- package/src/unstable-core-do-not-import/http/contentType.ts +5 -4
- package/src/unstable-core-do-not-import/initTRPC.ts +79 -4
- package/src/unstable-core-do-not-import/router.ts +36 -12
- package/src/unstable-core-do-not-import/utils.ts +3 -2
- package/unstable-core-do-not-import/package.json +1 -0
- package/adapters/aws-lambda/index.d.ts +0 -1
- package/adapters/aws-lambda/index.js +0 -1
- package/adapters/express/index.d.ts +0 -1
- package/adapters/express/index.js +0 -1
- package/adapters/fastify/index.d.ts +0 -1
- package/adapters/fastify/index.js +0 -1
- package/adapters/fetch/index.d.ts +0 -1
- package/adapters/fetch/index.js +0 -1
- package/adapters/next/index.d.ts +0 -1
- package/adapters/next/index.js +0 -1
- package/adapters/next-app-dir/index.d.ts +0 -1
- package/adapters/next-app-dir/index.js +0 -1
- package/adapters/node-http/content-type/form-data/index.d.ts +0 -1
- package/adapters/node-http/content-type/form-data/index.js +0 -1
- package/adapters/node-http/content-type/json/index.d.ts +0 -1
- package/adapters/node-http/content-type/json/index.js +0 -1
- package/adapters/node-http/index.d.ts +0 -1
- package/adapters/node-http/index.js +0 -1
- package/adapters/standalone/index.d.ts +0 -1
- package/adapters/standalone/index.js +0 -1
- package/adapters/ws/index.d.ts +0 -1
- package/adapters/ws/index.js +0 -1
- package/dist/@trpc/server/http.d.ts +0 -8
- package/dist/@trpc/server/http.d.ts.map +0 -1
- package/dist/@trpc/server/index.d.ts +0 -65
- package/dist/@trpc/server/index.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/aws-lambda/getPlanner.d.ts +0 -15
- package/dist/adapters/aws-lambda/getPlanner.d.ts.map +0 -1
- package/dist/adapters/aws-lambda/getPlanner.js +0 -179
- package/dist/adapters/aws-lambda/getPlanner.mjs +0 -177
- package/dist/adapters/aws-lambda/index.d.ts +0 -23
- package/dist/adapters/aws-lambda/index.d.ts.map +0 -1
- package/dist/adapters/aws-lambda/index.js +0 -67
- package/dist/adapters/express.d.ts +0 -15
- package/dist/adapters/express.d.ts.map +0 -1
- package/dist/adapters/express.js +0 -39
- package/dist/adapters/fastify/fastifyRequestHandler.d.ts +0 -22
- package/dist/adapters/fastify/fastifyRequestHandler.d.ts.map +0 -1
- package/dist/adapters/fastify/fastifyRequestHandler.js +0 -49
- package/dist/adapters/fastify/fastifyRequestHandler.mjs +0 -47
- package/dist/adapters/fastify/fastifyTRPCPlugin.d.ts +0 -21
- package/dist/adapters/fastify/fastifyTRPCPlugin.d.ts.map +0 -1
- package/dist/adapters/fastify/fastifyTRPCPlugin.js +0 -56
- package/dist/adapters/fastify/fastifyTRPCPlugin.mjs +0 -54
- package/dist/adapters/fastify/index.d.ts +0 -3
- package/dist/adapters/fastify/index.d.ts.map +0 -1
- package/dist/adapters/fastify/index.js +0 -9
- package/dist/adapters/fetch/fetchRequestHandler.d.ts +0 -13
- package/dist/adapters/fetch/fetchRequestHandler.d.ts.map +0 -1
- package/dist/adapters/fetch/fetchRequestHandler.js +0 -77
- package/dist/adapters/fetch/fetchRequestHandler.mjs +0 -75
- package/dist/adapters/fetch/index.d.ts +0 -3
- package/dist/adapters/fetch/index.d.ts.map +0 -1
- package/dist/adapters/fetch/index.js +0 -7
- package/dist/adapters/fetch/types.d.ts +0 -27
- package/dist/adapters/fetch/types.d.ts.map +0 -1
- package/dist/adapters/next-app-dir/nextAppDirCaller.d.ts +0 -25
- package/dist/adapters/next-app-dir/nextAppDirCaller.d.ts.map +0 -1
- package/dist/adapters/next-app-dir/nextAppDirCaller.js +0 -94
- package/dist/adapters/next-app-dir/nextAppDirCaller.mjs +0 -92
- package/dist/adapters/next-app-dir/notFound.d.ts +0 -7
- package/dist/adapters/next-app-dir/notFound.d.ts.map +0 -1
- package/dist/adapters/next-app-dir/notFound.js +0 -18
- package/dist/adapters/next-app-dir/notFound.mjs +0 -16
- package/dist/adapters/next-app-dir/redirect.d.ts +0 -18
- package/dist/adapters/next-app-dir/redirect.d.ts.map +0 -1
- package/dist/adapters/next-app-dir/redirect.js +0 -49
- package/dist/adapters/next-app-dir/redirect.mjs +0 -46
- package/dist/adapters/next-app-dir/rethrowNextErrors.d.ts +0 -6
- package/dist/adapters/next-app-dir/rethrowNextErrors.d.ts.map +0 -1
- package/dist/adapters/next-app-dir/rethrowNextErrors.js +0 -70
- package/dist/adapters/next-app-dir/rethrowNextErrors.mjs +0 -49
- package/dist/adapters/next-app-dir.d.ts +0 -7
- package/dist/adapters/next-app-dir.d.ts.map +0 -1
- package/dist/adapters/next-app-dir.js +0 -13
- package/dist/adapters/next.d.ts +0 -19
- package/dist/adapters/next.d.ts.map +0 -1
- package/dist/adapters/next.js +0 -51
- package/dist/adapters/node-http/incomingMessageToRequest.d.ts +0 -12
- package/dist/adapters/node-http/incomingMessageToRequest.d.ts.map +0 -1
- package/dist/adapters/node-http/incomingMessageToRequest.js +0 -123
- package/dist/adapters/node-http/incomingMessageToRequest.mjs +0 -120
- package/dist/adapters/node-http/index.d.ts +0 -4
- package/dist/adapters/node-http/index.d.ts.map +0 -1
- package/dist/adapters/node-http/index.js +0 -11
- package/dist/adapters/node-http/nodeHTTPRequestHandler.d.ts +0 -20
- package/dist/adapters/node-http/nodeHTTPRequestHandler.d.ts.map +0 -1
- package/dist/adapters/node-http/nodeHTTPRequestHandler.js +0 -96
- package/dist/adapters/node-http/nodeHTTPRequestHandler.mjs +0 -93
- package/dist/adapters/node-http/types.d.ts +0 -81
- package/dist/adapters/node-http/types.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/adapters/node-http/writeResponse.js +0 -83
- package/dist/adapters/node-http/writeResponse.mjs +0 -80
- package/dist/adapters/standalone.d.ts +0 -36
- package/dist/adapters/standalone.d.ts.map +0 -1
- package/dist/adapters/standalone.js +0 -49
- package/dist/adapters/ws.d.ts +0 -54
- package/dist/adapters/ws.d.ts.map +0 -1
- package/dist/adapters/ws.js +0 -544
- package/dist/http.d.ts +0 -2
- package/dist/http.d.ts.map +0 -1
- package/dist/http.js +0 -19
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -35
- 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/behaviorSubject.d.ts +0 -15
- package/dist/observable/behaviorSubject.d.ts.map +0 -1
- package/dist/observable/behaviorSubject.js +0 -40
- package/dist/observable/behaviorSubject.mjs +0 -38
- package/dist/observable/index.d.ts +0 -5
- package/dist/observable/index.d.ts.map +0 -1
- package/dist/observable/index.js +0 -18
- package/dist/observable/observable.d.ts +0 -12
- package/dist/observable/observable.d.ts.map +0 -1
- package/dist/observable/observable.js +0 -180
- package/dist/observable/observable.mjs +0 -175
- package/dist/observable/operators.d.ts +0 -10
- package/dist/observable/operators.d.ts.map +0 -1
- package/dist/observable/operators.js +0 -134
- package/dist/observable/operators.mjs +0 -128
- package/dist/observable/types.d.ts +0 -26
- package/dist/observable/types.d.ts.map +0 -1
- package/dist/rpc.d.ts +0 -2
- package/dist/rpc.d.ts.map +0 -1
- package/dist/rpc.js +0 -13
- package/dist/shared.d.ts +0 -26
- package/dist/shared.d.ts.map +0 -1
- package/dist/shared.js +0 -13
- package/dist/unstable-core-do-not-import/clientish/inference.d.ts +0 -17
- package/dist/unstable-core-do-not-import/clientish/inference.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/clientish/inferrable.d.ts +0 -36
- package/dist/unstable-core-do-not-import/clientish/inferrable.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/clientish/serialize.d.ts +0 -69
- package/dist/unstable-core-do-not-import/clientish/serialize.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/createProxy.d.ts +0 -19
- package/dist/unstable-core-do-not-import/createProxy.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/createProxy.js +0 -76
- package/dist/unstable-core-do-not-import/createProxy.mjs +0 -73
- package/dist/unstable-core-do-not-import/error/TRPCError.d.ts +0 -13
- package/dist/unstable-core-do-not-import/error/TRPCError.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/error/TRPCError.js +0 -76
- package/dist/unstable-core-do-not-import/error/TRPCError.mjs +0 -72
- package/dist/unstable-core-do-not-import/error/formatter.d.ts +0 -38
- package/dist/unstable-core-do-not-import/error/formatter.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/error/formatter.js +0 -7
- package/dist/unstable-core-do-not-import/error/formatter.mjs +0 -5
- package/dist/unstable-core-do-not-import/error/getErrorShape.d.ts +0 -15
- package/dist/unstable-core-do-not-import/error/getErrorShape.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/error/getErrorShape.js +0 -31
- package/dist/unstable-core-do-not-import/error/getErrorShape.mjs +0 -29
- package/dist/unstable-core-do-not-import/http/abortError.d.ts +0 -5
- package/dist/unstable-core-do-not-import/http/abortError.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/http/abortError.js +0 -13
- package/dist/unstable-core-do-not-import/http/abortError.mjs +0 -10
- package/dist/unstable-core-do-not-import/http/contentType.d.ts +0 -13
- package/dist/unstable-core-do-not-import/http/contentType.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/http/contentType.js +0 -229
- package/dist/unstable-core-do-not-import/http/contentType.mjs +0 -227
- package/dist/unstable-core-do-not-import/http/contentTypeParsers.d.ts +0 -14
- package/dist/unstable-core-do-not-import/http/contentTypeParsers.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/http/contentTypeParsers.js +0 -14
- package/dist/unstable-core-do-not-import/http/contentTypeParsers.mjs +0 -12
- package/dist/unstable-core-do-not-import/http/formDataToObject.d.ts +0 -2
- package/dist/unstable-core-do-not-import/http/formDataToObject.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/http/formDataToObject.js +0 -40
- package/dist/unstable-core-do-not-import/http/formDataToObject.mjs +0 -38
- package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.d.ts +0 -10
- package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.js +0 -85
- package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.mjs +0 -78
- package/dist/unstable-core-do-not-import/http/parseConnectionParams.d.ts +0 -4
- package/dist/unstable-core-do-not-import/http/parseConnectionParams.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/http/parseConnectionParams.js +0 -42
- package/dist/unstable-core-do-not-import/http/parseConnectionParams.mjs +0 -39
- package/dist/unstable-core-do-not-import/http/resolveResponse.d.ts +0 -15
- package/dist/unstable-core-do-not-import/http/resolveResponse.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/http/resolveResponse.js +0 -572
- package/dist/unstable-core-do-not-import/http/resolveResponse.mjs +0 -570
- package/dist/unstable-core-do-not-import/http/types.d.ts +0 -138
- package/dist/unstable-core-do-not-import/http/types.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/initTRPC.d.ts +0 -94
- package/dist/unstable-core-do-not-import/initTRPC.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/initTRPC.js +0 -82
- package/dist/unstable-core-do-not-import/initTRPC.mjs +0 -80
- package/dist/unstable-core-do-not-import/middleware.d.ts +0 -107
- package/dist/unstable-core-do-not-import/middleware.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/middleware.js +0 -96
- package/dist/unstable-core-do-not-import/middleware.mjs +0 -90
- package/dist/unstable-core-do-not-import/parser.d.ts +0 -44
- package/dist/unstable-core-do-not-import/parser.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/parser.js +0 -54
- package/dist/unstable-core-do-not-import/parser.mjs +0 -52
- package/dist/unstable-core-do-not-import/procedure.d.ts +0 -77
- package/dist/unstable-core-do-not-import/procedure.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/procedure.js +0 -9
- package/dist/unstable-core-do-not-import/procedure.mjs +0 -7
- package/dist/unstable-core-do-not-import/procedureBuilder.d.ts +0 -161
- package/dist/unstable-core-do-not-import/procedureBuilder.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/procedureBuilder.js +0 -201
- package/dist/unstable-core-do-not-import/procedureBuilder.mjs +0 -199
- package/dist/unstable-core-do-not-import/rootConfig.d.ts +0 -98
- package/dist/unstable-core-do-not-import/rootConfig.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/rootConfig.js +0 -8
- package/dist/unstable-core-do-not-import/rootConfig.mjs +0 -6
- package/dist/unstable-core-do-not-import/router.d.ts +0 -98
- package/dist/unstable-core-do-not-import/router.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/router.js +0 -285
- package/dist/unstable-core-do-not-import/router.mjs +0 -278
- package/dist/unstable-core-do-not-import/rpc/codes.d.ts +0 -45
- package/dist/unstable-core-do-not-import/rpc/codes.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/rpc/codes.js +0 -69
- package/dist/unstable-core-do-not-import/rpc/codes.mjs +0 -65
- package/dist/unstable-core-do-not-import/rpc/envelopes.d.ts +0 -109
- package/dist/unstable-core-do-not-import/rpc/envelopes.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/rpc/parseTRPCMessage.d.ts +0 -5
- package/dist/unstable-core-do-not-import/rpc/parseTRPCMessage.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/rpc/parseTRPCMessage.js +0 -63
- package/dist/unstable-core-do-not-import/rpc/parseTRPCMessage.mjs +0 -61
- package/dist/unstable-core-do-not-import/stream/jsonl.d.ts +0 -119
- package/dist/unstable-core-do-not-import/stream/jsonl.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/stream/jsonl.js +0 -607
- package/dist/unstable-core-do-not-import/stream/jsonl.mjs +0 -603
- package/dist/unstable-core-do-not-import/stream/sse.d.ts +0 -108
- package/dist/unstable-core-do-not-import/stream/sse.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/stream/sse.js +0 -373
- package/dist/unstable-core-do-not-import/stream/sse.mjs +0 -369
- package/dist/unstable-core-do-not-import/stream/sse.types.d.ts +0 -31
- package/dist/unstable-core-do-not-import/stream/sse.types.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/stream/tracked.d.ts +0 -31
- package/dist/unstable-core-do-not-import/stream/tracked.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/stream/tracked.js +0 -29
- package/dist/unstable-core-do-not-import/stream/tracked.mjs +0 -25
- package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.d.ts +0 -17
- package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.js +0 -174
- package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.mjs +0 -170
- package/dist/unstable-core-do-not-import/stream/utils/createDeferred.d.ts +0 -7
- package/dist/unstable-core-do-not-import/stream/utils/createDeferred.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/stream/utils/createDeferred.js +0 -17
- package/dist/unstable-core-do-not-import/stream/utils/createDeferred.mjs +0 -15
- package/dist/unstable-core-do-not-import/stream/utils/disposable.d.ts +0 -17
- package/dist/unstable-core-do-not-import/stream/utils/disposable.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/stream/utils/disposable.js +0 -46
- package/dist/unstable-core-do-not-import/stream/utils/disposable.mjs +0 -43
- 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/mergeAsyncIterables.js +0 -241
- package/dist/unstable-core-do-not-import/stream/utils/mergeAsyncIterables.mjs +0 -239
- 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/readableStreamFrom.js +0 -25
- package/dist/unstable-core-do-not-import/stream/utils/readableStreamFrom.mjs +0 -23
- 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/timerResource.js +0 -26
- package/dist/unstable-core-do-not-import/stream/utils/timerResource.mjs +0 -23
- 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/stream/utils/withPing.js +0 -130
- package/dist/unstable-core-do-not-import/stream/utils/withPing.mjs +0 -127
- package/dist/unstable-core-do-not-import/transformer.d.ts +0 -99
- package/dist/unstable-core-do-not-import/transformer.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/transformer.js +0 -106
- package/dist/unstable-core-do-not-import/transformer.mjs +0 -101
- package/dist/unstable-core-do-not-import/types.d.ts +0 -127
- package/dist/unstable-core-do-not-import/types.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/utils.d.ts +0 -42
- package/dist/unstable-core-do-not-import/utils.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/utils.js +0 -96
- package/dist/unstable-core-do-not-import/utils.mjs +0 -83
- package/dist/unstable-core-do-not-import.d.ts +0 -47
- package/dist/unstable-core-do-not-import.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import.js +0 -109
- 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/cookie-es/set-cookie/split.js +0 -79
- package/dist/vendor/cookie-es/set-cookie/split.mjs +0 -77
- package/dist/vendor/standard-schema-v1/error.d.ts +0 -13
- package/dist/vendor/standard-schema-v1/error.d.ts.map +0 -1
- package/dist/vendor/standard-schema-v1/error.js +0 -28
- package/dist/vendor/standard-schema-v1/error.mjs +0 -26
- package/dist/vendor/standard-schema-v1/spec.d.ts +0 -60
- package/dist/vendor/standard-schema-v1/spec.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/vendor/unpromise/types.d.ts +0 -28
- package/dist/vendor/unpromise/types.d.ts.map +0 -1
- package/dist/vendor/unpromise/unpromise.d.ts +0 -121
- package/dist/vendor/unpromise/unpromise.d.ts.map +0 -1
- package/dist/vendor/unpromise/unpromise.js +0 -292
- package/dist/vendor/unpromise/unpromise.mjs +0 -289
- package/http/index.d.ts +0 -1
- package/http/index.js +0 -1
- package/observable/index.d.ts +0 -1
- package/observable/index.js +0 -1
- package/rpc/index.d.ts +0 -1
- package/rpc/index.js +0 -1
- package/shared/index.d.ts +0 -1
- package/shared/index.js +0 -1
- package/unstable-core-do-not-import/index.d.ts +0 -1
- package/unstable-core-do-not-import/index.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"standalone.d.ts","sourceRoot":"","sources":["../../src/adapters/standalone.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAGjD,OAAO,KAAK,EACV,8BAA8B,EAC9B,sBAAsB,EACtB,eAAe,EACf,gBAAgB,EACjB,MAAM,aAAa,CAAC;AAOrB,KAAK,wBAAwB,CAC3B,OAAO,SAAS,SAAS,EACzB,QAAQ,SAAS,eAAe,EAChC,SAAS,SAAS,gBAAgB,IAChC,sBAAsB,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,GAAG;IACzD;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAGF,MAAM,MAAM,wBAAwB,CAAC,OAAO,SAAS,SAAS,IAC5D,wBAAwB,CAAC,OAAO,EAAE,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;AAE/E,MAAM,MAAM,wBAAwB,GAAG,8BAA8B,CACnE,IAAI,CAAC,eAAe,EACpB,IAAI,CAAC,cAAc,CACpB,CAAC;AAsCF;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,SAAS,SAAS,EACzD,IAAI,EAAE,wBAAwB,CAAC,OAAO,CAAC,GACtC,IAAI,CAAC,eAAe,CAEtB;AAED,wBAAgB,gBAAgB,CAAC,OAAO,SAAS,SAAS,EACxD,IAAI,EAAE,wBAAwB,CAAC,OAAO,CAAC,wEAGxC;AAGD,MAAM,MAAM,yBAAyB,CAAC,OAAO,SAAS,SAAS,IAC7D,wBAAwB,CACtB,OAAO,EACP,KAAK,CAAC,kBAAkB,EACxB,KAAK,CAAC,mBAAmB,CAC1B,CAAC;AAEJ,MAAM,MAAM,yBAAyB,GAAG,8BAA8B,CACpE,KAAK,CAAC,kBAAkB,EACxB,KAAK,CAAC,mBAAmB,CAC1B,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,yBAAyB,CAAC,SAAS,CAAC,gGA1DvC,IAAI,CA4DzC"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var http = require('node:http');
|
|
4
|
-
require('../unstable-core-do-not-import/rpc/codes.js');
|
|
5
|
-
var utils = require('../unstable-core-do-not-import/utils.js');
|
|
6
|
-
require('../vendor/unpromise/unpromise.js');
|
|
7
|
-
require('../unstable-core-do-not-import/stream/utils/disposable.js');
|
|
8
|
-
require('../unstable-core-do-not-import/rootConfig.js');
|
|
9
|
-
var nodeHTTPRequestHandler = require('./node-http/nodeHTTPRequestHandler.js');
|
|
10
|
-
var incomingMessageToRequest = require('./node-http/incomingMessageToRequest.js');
|
|
11
|
-
|
|
12
|
-
function createHandler(opts) {
|
|
13
|
-
const basePath = opts.basePath ?? '/';
|
|
14
|
-
const sliceLength = basePath.length;
|
|
15
|
-
return (req, res)=>{
|
|
16
|
-
let path = '';
|
|
17
|
-
utils.run(async ()=>{
|
|
18
|
-
const url = incomingMessageToRequest.createURL(req);
|
|
19
|
-
// get procedure(s) path and remove the leading slash
|
|
20
|
-
path = url.pathname.slice(sliceLength);
|
|
21
|
-
await nodeHTTPRequestHandler.nodeHTTPRequestHandler({
|
|
22
|
-
...opts,
|
|
23
|
-
req,
|
|
24
|
-
res,
|
|
25
|
-
path
|
|
26
|
-
});
|
|
27
|
-
}).catch(nodeHTTPRequestHandler.internal_exceptionHandler({
|
|
28
|
-
req,
|
|
29
|
-
res,
|
|
30
|
-
path,
|
|
31
|
-
...opts
|
|
32
|
-
}));
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/ function createHTTPHandler(opts) {
|
|
38
|
-
return createHandler(opts);
|
|
39
|
-
}
|
|
40
|
-
function createHTTPServer(opts) {
|
|
41
|
-
return http.createServer(createHTTPHandler(opts));
|
|
42
|
-
}
|
|
43
|
-
function createHTTP2Handler(opts) {
|
|
44
|
-
return createHandler(opts);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
exports.createHTTP2Handler = createHTTP2Handler;
|
|
48
|
-
exports.createHTTPHandler = createHTTPHandler;
|
|
49
|
-
exports.createHTTPServer = createHTTPServer;
|
package/dist/adapters/ws.d.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { IncomingMessage } from 'http';
|
|
2
|
-
import type ws from 'ws';
|
|
3
|
-
import type { AnyRouter, CreateContextCallback, inferRouterContext } from '../@trpc/server';
|
|
4
|
-
import { type BaseHandlerOptions } from '../@trpc/server/http';
|
|
5
|
-
import { type MaybePromise } from '../unstable-core-do-not-import';
|
|
6
|
-
import { type NodeHTTPCreateContextFnOptions } from './node-http';
|
|
7
|
-
/**
|
|
8
|
-
* @public
|
|
9
|
-
*/
|
|
10
|
-
export type CreateWSSContextFnOptions = NodeHTTPCreateContextFnOptions<IncomingMessage, ws.WebSocket>;
|
|
11
|
-
/**
|
|
12
|
-
* @public
|
|
13
|
-
*/
|
|
14
|
-
export type CreateWSSContextFn<TRouter extends AnyRouter> = (opts: CreateWSSContextFnOptions) => MaybePromise<inferRouterContext<TRouter>>;
|
|
15
|
-
export type WSConnectionHandlerOptions<TRouter extends AnyRouter> = BaseHandlerOptions<TRouter, IncomingMessage> & CreateContextCallback<inferRouterContext<TRouter>, CreateWSSContextFn<TRouter>>;
|
|
16
|
-
/**
|
|
17
|
-
* Web socket server handler
|
|
18
|
-
*/
|
|
19
|
-
export type WSSHandlerOptions<TRouter extends AnyRouter> = WSConnectionHandlerOptions<TRouter> & {
|
|
20
|
-
wss: ws.WebSocketServer;
|
|
21
|
-
prefix?: string;
|
|
22
|
-
keepAlive?: {
|
|
23
|
-
/**
|
|
24
|
-
* Enable heartbeat messages
|
|
25
|
-
* @default false
|
|
26
|
-
*/
|
|
27
|
-
enabled: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Heartbeat interval in milliseconds
|
|
30
|
-
* @default 30_000
|
|
31
|
-
*/
|
|
32
|
-
pingMs?: number;
|
|
33
|
-
/**
|
|
34
|
-
* Terminate the WebSocket if no pong is received after this many milliseconds
|
|
35
|
-
* @default 5_000
|
|
36
|
-
*/
|
|
37
|
-
pongWaitMs?: number;
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* Disable responding to ping messages from the client
|
|
41
|
-
* **Not recommended** - this is mainly used for testing
|
|
42
|
-
* @default false
|
|
43
|
-
*/
|
|
44
|
-
dangerouslyDisablePong?: boolean;
|
|
45
|
-
};
|
|
46
|
-
export declare function getWSConnectionHandler<TRouter extends AnyRouter>(opts: WSSHandlerOptions<TRouter>): (client: ws.WebSocket, req: IncomingMessage) => void;
|
|
47
|
-
/**
|
|
48
|
-
* Handle WebSocket keep-alive messages
|
|
49
|
-
*/
|
|
50
|
-
export declare function handleKeepAlive(client: ws.WebSocket, pingMs?: number, pongWaitMs?: number): void;
|
|
51
|
-
export declare function applyWSSHandler<TRouter extends AnyRouter>(opts: WSSHandlerOptions<TRouter>): {
|
|
52
|
-
broadcastReconnectNotification: () => void;
|
|
53
|
-
};
|
|
54
|
-
//# sourceMappingURL=ws.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ws.d.ts","sourceRoot":"","sources":["../../src/adapters/ws.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAC5C,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,EACV,SAAS,EACT,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AASzB,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAa/D,OAAO,EAKL,KAAK,YAAY,EAClB,MAAM,gCAAgC,CAAC;AAMxC,OAAO,EAAa,KAAK,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAQ7E;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,8BAA8B,CACpE,eAAe,EACf,EAAE,CAAC,SAAS,CACb,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,CAAC,OAAO,SAAS,SAAS,IAAI,CAC1D,IAAI,EAAE,yBAAyB,KAC5B,YAAY,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC;AAE/C,MAAM,MAAM,0BAA0B,CAAC,OAAO,SAAS,SAAS,IAC9D,kBAAkB,CAAC,OAAO,EAAE,eAAe,CAAC,GAC1C,qBAAqB,CACnB,kBAAkB,CAAC,OAAO,CAAC,EAC3B,kBAAkB,CAAC,OAAO,CAAC,CAC5B,CAAC;AAEN;;GAEG;AACH,MAAM,MAAM,iBAAiB,CAAC,OAAO,SAAS,SAAS,IACrD,0BAA0B,CAAC,OAAO,CAAC,GAAG;IACpC,GAAG,EAAE,EAAE,CAAC,eAAe,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE;QACV;;;WAGG;QACH,OAAO,EAAE,OAAO,CAAC;QACjB;;;WAGG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB;;;WAGG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC,CAAC;AAEJ,wBAAgB,sBAAsB,CAAC,OAAO,SAAS,SAAS,EAC9D,IAAI,EAAE,iBAAiB,CAAC,OAAO,CAAC,IAKxB,QAAQ,EAAE,CAAC,SAAS,EAAE,KAAK,eAAe,UAyanD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,EAAE,CAAC,SAAS,EACpB,MAAM,SAAS,EACf,UAAU,SAAQ,QAiCnB;AAED,wBAAgB,eAAe,CAAC,OAAO,SAAS,SAAS,EACvD,IAAI,EAAE,iBAAiB,CAAC,OAAO,CAAC;;EAyBjC"}
|
package/dist/adapters/ws.js
DELETED
|
@@ -1,544 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var getErrorShape = require('../unstable-core-do-not-import/error/getErrorShape.js');
|
|
4
|
-
var TRPCError = require('../unstable-core-do-not-import/error/TRPCError.js');
|
|
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
|
-
require('../unstable-core-do-not-import/rpc/codes.js');
|
|
9
|
-
var parseTRPCMessage = require('../unstable-core-do-not-import/rpc/parseTRPCMessage.js');
|
|
10
|
-
var observable = require('../observable/observable.js');
|
|
11
|
-
var asyncIterable = require('../unstable-core-do-not-import/stream/utils/asyncIterable.js');
|
|
12
|
-
require('../unstable-core-do-not-import/stream/utils/disposable.js');
|
|
13
|
-
var unpromise = require('../vendor/unpromise/unpromise.js');
|
|
14
|
-
var tracked = require('../unstable-core-do-not-import/stream/tracked.js');
|
|
15
|
-
var transformer = require('../unstable-core-do-not-import/transformer.js');
|
|
16
|
-
require('../unstable-core-do-not-import/rootConfig.js');
|
|
17
|
-
var incomingMessageToRequest = require('./node-http/incomingMessageToRequest.js');
|
|
18
|
-
|
|
19
|
-
function _ts_add_disposable_resource(env, value, async) {
|
|
20
|
-
if (value !== null && value !== void 0) {
|
|
21
|
-
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
|
|
22
|
-
var dispose, inner;
|
|
23
|
-
{
|
|
24
|
-
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
25
|
-
dispose = value[Symbol.asyncDispose];
|
|
26
|
-
}
|
|
27
|
-
if (dispose === void 0) {
|
|
28
|
-
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
|
29
|
-
dispose = value[Symbol.dispose];
|
|
30
|
-
inner = dispose;
|
|
31
|
-
}
|
|
32
|
-
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
|
33
|
-
if (inner) dispose = function() {
|
|
34
|
-
try {
|
|
35
|
-
inner.call(this);
|
|
36
|
-
} catch (e) {
|
|
37
|
-
return Promise.reject(e);
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
env.stack.push({
|
|
41
|
-
value: value,
|
|
42
|
-
dispose: dispose,
|
|
43
|
-
async: async
|
|
44
|
-
});
|
|
45
|
-
} else {
|
|
46
|
-
env.stack.push({
|
|
47
|
-
async: true
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
return value;
|
|
51
|
-
}
|
|
52
|
-
function _ts_dispose_resources(env) {
|
|
53
|
-
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
54
|
-
var e = new Error(message);
|
|
55
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
56
|
-
};
|
|
57
|
-
return (_ts_dispose_resources = function _ts_dispose_resources(env) {
|
|
58
|
-
function fail(e) {
|
|
59
|
-
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
60
|
-
env.hasError = true;
|
|
61
|
-
}
|
|
62
|
-
var r, s = 0;
|
|
63
|
-
function next() {
|
|
64
|
-
while(r = env.stack.pop()){
|
|
65
|
-
try {
|
|
66
|
-
if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
|
|
67
|
-
if (r.dispose) {
|
|
68
|
-
var result = r.dispose.call(r.value);
|
|
69
|
-
if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) {
|
|
70
|
-
fail(e);
|
|
71
|
-
return next();
|
|
72
|
-
});
|
|
73
|
-
} else s |= 1;
|
|
74
|
-
} catch (e) {
|
|
75
|
-
fail(e);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
79
|
-
if (env.hasError) throw env.error;
|
|
80
|
-
}
|
|
81
|
-
return next();
|
|
82
|
-
})(env);
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Importing ws causes a build error
|
|
86
|
-
* @see https://github.com/trpc/trpc/pull/5279
|
|
87
|
-
*/ const WEBSOCKET_OPEN = 1; /* ws.WebSocket.OPEN */
|
|
88
|
-
function getWSConnectionHandler(opts) {
|
|
89
|
-
const { createContext, router: router$1 } = opts;
|
|
90
|
-
const { transformer: transformer$1 } = router$1._def._config;
|
|
91
|
-
return (client, req)=>{
|
|
92
|
-
const clientSubscriptions = new Map();
|
|
93
|
-
const abortController = new AbortController();
|
|
94
|
-
if (opts.keepAlive?.enabled) {
|
|
95
|
-
const { pingMs, pongWaitMs } = opts.keepAlive;
|
|
96
|
-
handleKeepAlive(client, pingMs, pongWaitMs);
|
|
97
|
-
}
|
|
98
|
-
function respond(untransformedJSON) {
|
|
99
|
-
client.send(JSON.stringify(transformer.transformTRPCResponse(router$1._def._config, untransformedJSON)));
|
|
100
|
-
}
|
|
101
|
-
async function createCtxPromise(getConnectionParams) {
|
|
102
|
-
try {
|
|
103
|
-
return await utils.run(async ()=>{
|
|
104
|
-
ctx = await createContext?.({
|
|
105
|
-
req,
|
|
106
|
-
res: client,
|
|
107
|
-
info: {
|
|
108
|
-
connectionParams: getConnectionParams(),
|
|
109
|
-
calls: [],
|
|
110
|
-
isBatchCall: false,
|
|
111
|
-
accept: null,
|
|
112
|
-
type: 'unknown',
|
|
113
|
-
signal: abortController.signal,
|
|
114
|
-
url: null
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
return {
|
|
118
|
-
ok: true,
|
|
119
|
-
value: ctx
|
|
120
|
-
};
|
|
121
|
-
});
|
|
122
|
-
} catch (cause) {
|
|
123
|
-
const error = TRPCError.getTRPCErrorFromUnknown(cause);
|
|
124
|
-
opts.onError?.({
|
|
125
|
-
error,
|
|
126
|
-
path: undefined,
|
|
127
|
-
type: 'unknown',
|
|
128
|
-
ctx,
|
|
129
|
-
req,
|
|
130
|
-
input: undefined
|
|
131
|
-
});
|
|
132
|
-
respond({
|
|
133
|
-
id: null,
|
|
134
|
-
error: getErrorShape.getErrorShape({
|
|
135
|
-
config: router$1._def._config,
|
|
136
|
-
error,
|
|
137
|
-
type: 'unknown',
|
|
138
|
-
path: undefined,
|
|
139
|
-
input: undefined,
|
|
140
|
-
ctx
|
|
141
|
-
})
|
|
142
|
-
});
|
|
143
|
-
// close in next tick
|
|
144
|
-
(globalThis.setImmediate ?? globalThis.setTimeout)(()=>{
|
|
145
|
-
client.close();
|
|
146
|
-
});
|
|
147
|
-
return {
|
|
148
|
-
ok: false,
|
|
149
|
-
error
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
let ctx = undefined;
|
|
154
|
-
/**
|
|
155
|
-
* promise for initializing the context
|
|
156
|
-
*
|
|
157
|
-
* - the context promise will be created immediately on connection if no connectionParams are expected
|
|
158
|
-
* - if connection params are expected, they will be created once received
|
|
159
|
-
*/ let ctxPromise = incomingMessageToRequest.createURL(req).searchParams.get('connectionParams') === '1' ? null : createCtxPromise(()=>null);
|
|
160
|
-
function handleRequest(msg) {
|
|
161
|
-
const { id, jsonrpc } = msg;
|
|
162
|
-
if (id === null) {
|
|
163
|
-
const error = TRPCError.getTRPCErrorFromUnknown(new TRPCError.TRPCError({
|
|
164
|
-
code: 'PARSE_ERROR',
|
|
165
|
-
message: '`id` is required'
|
|
166
|
-
}));
|
|
167
|
-
opts.onError?.({
|
|
168
|
-
error,
|
|
169
|
-
path: undefined,
|
|
170
|
-
type: 'unknown',
|
|
171
|
-
ctx,
|
|
172
|
-
req,
|
|
173
|
-
input: undefined
|
|
174
|
-
});
|
|
175
|
-
respond({
|
|
176
|
-
id,
|
|
177
|
-
jsonrpc,
|
|
178
|
-
error: getErrorShape.getErrorShape({
|
|
179
|
-
config: router$1._def._config,
|
|
180
|
-
error,
|
|
181
|
-
type: 'unknown',
|
|
182
|
-
path: undefined,
|
|
183
|
-
input: undefined,
|
|
184
|
-
ctx
|
|
185
|
-
})
|
|
186
|
-
});
|
|
187
|
-
return;
|
|
188
|
-
}
|
|
189
|
-
if (msg.method === 'subscription.stop') {
|
|
190
|
-
clientSubscriptions.get(id)?.abort();
|
|
191
|
-
return;
|
|
192
|
-
}
|
|
193
|
-
const { path, lastEventId } = msg.params;
|
|
194
|
-
let { input } = msg.params;
|
|
195
|
-
const type = msg.method;
|
|
196
|
-
if (lastEventId !== undefined) {
|
|
197
|
-
if (utils.isObject(input)) {
|
|
198
|
-
input = {
|
|
199
|
-
...input,
|
|
200
|
-
lastEventId: lastEventId
|
|
201
|
-
};
|
|
202
|
-
} else {
|
|
203
|
-
input ?? (input = {
|
|
204
|
-
lastEventId: lastEventId
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
utils.run(async ()=>{
|
|
209
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
210
|
-
const res = await ctxPromise; // asserts context has been set
|
|
211
|
-
if (!res.ok) {
|
|
212
|
-
throw res.error;
|
|
213
|
-
}
|
|
214
|
-
const abortController = new AbortController();
|
|
215
|
-
const result = await router.callProcedure({
|
|
216
|
-
router: router$1,
|
|
217
|
-
path,
|
|
218
|
-
getRawInput: async ()=>input,
|
|
219
|
-
ctx,
|
|
220
|
-
type,
|
|
221
|
-
signal: abortController.signal
|
|
222
|
-
});
|
|
223
|
-
const isIterableResult = utils.isAsyncIterable(result) || observable.isObservable(result);
|
|
224
|
-
if (type !== 'subscription') {
|
|
225
|
-
if (isIterableResult) {
|
|
226
|
-
throw new TRPCError.TRPCError({
|
|
227
|
-
code: 'UNSUPPORTED_MEDIA_TYPE',
|
|
228
|
-
message: `Cannot return an async iterable or observable from a ${type} procedure with WebSockets`
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
// send the value as data if the method is not a subscription
|
|
232
|
-
respond({
|
|
233
|
-
id,
|
|
234
|
-
jsonrpc,
|
|
235
|
-
result: {
|
|
236
|
-
type: 'data',
|
|
237
|
-
data: result
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
return;
|
|
241
|
-
}
|
|
242
|
-
if (!isIterableResult) {
|
|
243
|
-
throw new TRPCError.TRPCError({
|
|
244
|
-
message: `Subscription ${path} did not return an observable or a AsyncGenerator`,
|
|
245
|
-
code: 'INTERNAL_SERVER_ERROR'
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
/* istanbul ignore next -- @preserve */ if (client.readyState !== WEBSOCKET_OPEN) {
|
|
249
|
-
// if the client got disconnected whilst initializing the subscription
|
|
250
|
-
// no need to send stopped message if the client is disconnected
|
|
251
|
-
return;
|
|
252
|
-
}
|
|
253
|
-
/* istanbul ignore next -- @preserve */ if (clientSubscriptions.has(id)) {
|
|
254
|
-
// duplicate request ids for client
|
|
255
|
-
throw new TRPCError.TRPCError({
|
|
256
|
-
message: `Duplicate id ${id}`,
|
|
257
|
-
code: 'BAD_REQUEST'
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
|
-
const iterable = observable.isObservable(result) ? observable.observableToAsyncIterable(result, abortController.signal) : result;
|
|
261
|
-
utils.run(async ()=>{
|
|
262
|
-
const env = {
|
|
263
|
-
stack: [],
|
|
264
|
-
error: void 0,
|
|
265
|
-
hasError: false
|
|
266
|
-
};
|
|
267
|
-
try {
|
|
268
|
-
const iterator = _ts_add_disposable_resource(env, asyncIterable.iteratorResource(iterable), true);
|
|
269
|
-
;
|
|
270
|
-
const abortPromise = new Promise((resolve)=>{
|
|
271
|
-
abortController.signal.onabort = ()=>resolve('abort');
|
|
272
|
-
});
|
|
273
|
-
// We need those declarations outside the loop for garbage collection reasons. If they
|
|
274
|
-
// were declared inside, they would not be freed until the next value is present.
|
|
275
|
-
let next;
|
|
276
|
-
let result;
|
|
277
|
-
while(true){
|
|
278
|
-
next = await unpromise.Unpromise.race([
|
|
279
|
-
iterator.next().catch(TRPCError.getTRPCErrorFromUnknown),
|
|
280
|
-
abortPromise
|
|
281
|
-
]);
|
|
282
|
-
if (next === 'abort') {
|
|
283
|
-
await iterator.return?.();
|
|
284
|
-
break;
|
|
285
|
-
}
|
|
286
|
-
if (next instanceof Error) {
|
|
287
|
-
const error = TRPCError.getTRPCErrorFromUnknown(next);
|
|
288
|
-
opts.onError?.({
|
|
289
|
-
error,
|
|
290
|
-
path,
|
|
291
|
-
type,
|
|
292
|
-
ctx,
|
|
293
|
-
req,
|
|
294
|
-
input
|
|
295
|
-
});
|
|
296
|
-
respond({
|
|
297
|
-
id,
|
|
298
|
-
jsonrpc,
|
|
299
|
-
error: getErrorShape.getErrorShape({
|
|
300
|
-
config: router$1._def._config,
|
|
301
|
-
error,
|
|
302
|
-
type,
|
|
303
|
-
path,
|
|
304
|
-
input,
|
|
305
|
-
ctx
|
|
306
|
-
})
|
|
307
|
-
});
|
|
308
|
-
break;
|
|
309
|
-
}
|
|
310
|
-
if (next.done) {
|
|
311
|
-
break;
|
|
312
|
-
}
|
|
313
|
-
result = {
|
|
314
|
-
type: 'data',
|
|
315
|
-
data: next.value
|
|
316
|
-
};
|
|
317
|
-
if (tracked.isTrackedEnvelope(next.value)) {
|
|
318
|
-
const [id, data] = next.value;
|
|
319
|
-
result.id = id;
|
|
320
|
-
result.data = {
|
|
321
|
-
id,
|
|
322
|
-
data
|
|
323
|
-
};
|
|
324
|
-
}
|
|
325
|
-
respond({
|
|
326
|
-
id,
|
|
327
|
-
jsonrpc,
|
|
328
|
-
result
|
|
329
|
-
});
|
|
330
|
-
// free up references for garbage collection
|
|
331
|
-
next = null;
|
|
332
|
-
result = null;
|
|
333
|
-
}
|
|
334
|
-
respond({
|
|
335
|
-
id,
|
|
336
|
-
jsonrpc,
|
|
337
|
-
result: {
|
|
338
|
-
type: 'stopped'
|
|
339
|
-
}
|
|
340
|
-
});
|
|
341
|
-
clientSubscriptions.delete(id);
|
|
342
|
-
} catch (e) {
|
|
343
|
-
env.error = e;
|
|
344
|
-
env.hasError = true;
|
|
345
|
-
} finally{
|
|
346
|
-
const result = _ts_dispose_resources(env);
|
|
347
|
-
if (result) await result;
|
|
348
|
-
}
|
|
349
|
-
}).catch((cause)=>{
|
|
350
|
-
const error = TRPCError.getTRPCErrorFromUnknown(cause);
|
|
351
|
-
opts.onError?.({
|
|
352
|
-
error,
|
|
353
|
-
path,
|
|
354
|
-
type,
|
|
355
|
-
ctx,
|
|
356
|
-
req,
|
|
357
|
-
input
|
|
358
|
-
});
|
|
359
|
-
respond({
|
|
360
|
-
id,
|
|
361
|
-
jsonrpc,
|
|
362
|
-
error: getErrorShape.getErrorShape({
|
|
363
|
-
config: router$1._def._config,
|
|
364
|
-
error,
|
|
365
|
-
type,
|
|
366
|
-
path,
|
|
367
|
-
input,
|
|
368
|
-
ctx
|
|
369
|
-
})
|
|
370
|
-
});
|
|
371
|
-
abortController.abort();
|
|
372
|
-
});
|
|
373
|
-
clientSubscriptions.set(id, abortController);
|
|
374
|
-
respond({
|
|
375
|
-
id,
|
|
376
|
-
jsonrpc,
|
|
377
|
-
result: {
|
|
378
|
-
type: 'started'
|
|
379
|
-
}
|
|
380
|
-
});
|
|
381
|
-
}).catch((cause)=>{
|
|
382
|
-
// procedure threw an error
|
|
383
|
-
const error = TRPCError.getTRPCErrorFromUnknown(cause);
|
|
384
|
-
opts.onError?.({
|
|
385
|
-
error,
|
|
386
|
-
path,
|
|
387
|
-
type,
|
|
388
|
-
ctx,
|
|
389
|
-
req,
|
|
390
|
-
input
|
|
391
|
-
});
|
|
392
|
-
respond({
|
|
393
|
-
id,
|
|
394
|
-
jsonrpc,
|
|
395
|
-
error: getErrorShape.getErrorShape({
|
|
396
|
-
config: router$1._def._config,
|
|
397
|
-
error,
|
|
398
|
-
type,
|
|
399
|
-
path,
|
|
400
|
-
input,
|
|
401
|
-
ctx
|
|
402
|
-
})
|
|
403
|
-
});
|
|
404
|
-
});
|
|
405
|
-
}
|
|
406
|
-
client.on('message', (rawData)=>{
|
|
407
|
-
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
408
|
-
const msgStr = rawData.toString();
|
|
409
|
-
if (msgStr === 'PONG') {
|
|
410
|
-
return;
|
|
411
|
-
}
|
|
412
|
-
if (msgStr === 'PING') {
|
|
413
|
-
if (!opts.dangerouslyDisablePong) {
|
|
414
|
-
client.send('PONG');
|
|
415
|
-
}
|
|
416
|
-
return;
|
|
417
|
-
}
|
|
418
|
-
if (!ctxPromise) {
|
|
419
|
-
// If the ctxPromise wasn't created immediately, we're expecting the first message to be a TRPCConnectionParamsMessage
|
|
420
|
-
ctxPromise = createCtxPromise(()=>{
|
|
421
|
-
let msg;
|
|
422
|
-
try {
|
|
423
|
-
msg = JSON.parse(msgStr);
|
|
424
|
-
if (!utils.isObject(msg)) {
|
|
425
|
-
throw new Error('Message was not an object');
|
|
426
|
-
}
|
|
427
|
-
} catch (cause) {
|
|
428
|
-
throw new TRPCError.TRPCError({
|
|
429
|
-
code: 'PARSE_ERROR',
|
|
430
|
-
message: `Malformed TRPCConnectionParamsMessage`,
|
|
431
|
-
cause
|
|
432
|
-
});
|
|
433
|
-
}
|
|
434
|
-
const connectionParams = parseConnectionParams.parseConnectionParamsFromUnknown(msg.data);
|
|
435
|
-
return connectionParams;
|
|
436
|
-
});
|
|
437
|
-
return;
|
|
438
|
-
}
|
|
439
|
-
const parsedMsgs = utils.run(()=>{
|
|
440
|
-
try {
|
|
441
|
-
const msgJSON = JSON.parse(msgStr);
|
|
442
|
-
const msgs = Array.isArray(msgJSON) ? msgJSON : [
|
|
443
|
-
msgJSON
|
|
444
|
-
];
|
|
445
|
-
return msgs.map((raw)=>parseTRPCMessage.parseTRPCMessage(raw, transformer$1));
|
|
446
|
-
} catch (cause) {
|
|
447
|
-
const error = new TRPCError.TRPCError({
|
|
448
|
-
code: 'PARSE_ERROR',
|
|
449
|
-
cause
|
|
450
|
-
});
|
|
451
|
-
respond({
|
|
452
|
-
id: null,
|
|
453
|
-
error: getErrorShape.getErrorShape({
|
|
454
|
-
config: router$1._def._config,
|
|
455
|
-
error,
|
|
456
|
-
type: 'unknown',
|
|
457
|
-
path: undefined,
|
|
458
|
-
input: undefined,
|
|
459
|
-
ctx
|
|
460
|
-
})
|
|
461
|
-
});
|
|
462
|
-
return [];
|
|
463
|
-
}
|
|
464
|
-
});
|
|
465
|
-
parsedMsgs.map(handleRequest);
|
|
466
|
-
});
|
|
467
|
-
// WebSocket errors should be handled, as otherwise unhandled exceptions will crash Node.js.
|
|
468
|
-
// This line was introduced after the following error brought down production systems:
|
|
469
|
-
// "RangeError: Invalid WebSocket frame: RSV2 and RSV3 must be clear"
|
|
470
|
-
// Here is the relevant discussion: https://github.com/websockets/ws/issues/1354#issuecomment-774616962
|
|
471
|
-
client.on('error', (cause)=>{
|
|
472
|
-
opts.onError?.({
|
|
473
|
-
ctx,
|
|
474
|
-
error: TRPCError.getTRPCErrorFromUnknown(cause),
|
|
475
|
-
input: undefined,
|
|
476
|
-
path: undefined,
|
|
477
|
-
type: 'unknown',
|
|
478
|
-
req
|
|
479
|
-
});
|
|
480
|
-
});
|
|
481
|
-
client.once('close', ()=>{
|
|
482
|
-
for (const sub of clientSubscriptions.values()){
|
|
483
|
-
sub.abort();
|
|
484
|
-
}
|
|
485
|
-
clientSubscriptions.clear();
|
|
486
|
-
abortController.abort();
|
|
487
|
-
});
|
|
488
|
-
};
|
|
489
|
-
}
|
|
490
|
-
/**
|
|
491
|
-
* Handle WebSocket keep-alive messages
|
|
492
|
-
*/ function handleKeepAlive(client, pingMs = 30000, pongWaitMs = 5000) {
|
|
493
|
-
let timeout = undefined;
|
|
494
|
-
let ping = undefined;
|
|
495
|
-
const schedulePing = ()=>{
|
|
496
|
-
const scheduleTimeout = ()=>{
|
|
497
|
-
timeout = setTimeout(()=>{
|
|
498
|
-
client.terminate();
|
|
499
|
-
}, pongWaitMs);
|
|
500
|
-
};
|
|
501
|
-
ping = setTimeout(()=>{
|
|
502
|
-
client.send('PING');
|
|
503
|
-
scheduleTimeout();
|
|
504
|
-
}, pingMs);
|
|
505
|
-
};
|
|
506
|
-
const onMessage = ()=>{
|
|
507
|
-
clearTimeout(ping);
|
|
508
|
-
clearTimeout(timeout);
|
|
509
|
-
schedulePing();
|
|
510
|
-
};
|
|
511
|
-
client.on('message', onMessage);
|
|
512
|
-
client.on('close', ()=>{
|
|
513
|
-
clearTimeout(ping);
|
|
514
|
-
clearTimeout(timeout);
|
|
515
|
-
});
|
|
516
|
-
schedulePing();
|
|
517
|
-
}
|
|
518
|
-
function applyWSSHandler(opts) {
|
|
519
|
-
const onConnection = getWSConnectionHandler(opts);
|
|
520
|
-
opts.wss.on('connection', (client, req)=>{
|
|
521
|
-
if (opts.prefix && !req.url?.startsWith(opts.prefix)) {
|
|
522
|
-
return;
|
|
523
|
-
}
|
|
524
|
-
onConnection(client, req);
|
|
525
|
-
});
|
|
526
|
-
return {
|
|
527
|
-
broadcastReconnectNotification: ()=>{
|
|
528
|
-
const response = {
|
|
529
|
-
id: null,
|
|
530
|
-
method: 'reconnect'
|
|
531
|
-
};
|
|
532
|
-
const data = JSON.stringify(response);
|
|
533
|
-
for (const client of opts.wss.clients){
|
|
534
|
-
if (client.readyState === WEBSOCKET_OPEN) {
|
|
535
|
-
client.send(data);
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
};
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
exports.applyWSSHandler = applyWSSHandler;
|
|
543
|
-
exports.getWSConnectionHandler = getWSConnectionHandler;
|
|
544
|
-
exports.handleKeepAlive = handleKeepAlive;
|
package/dist/http.d.ts
DELETED
package/dist/http.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../src/http.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
package/dist/http.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var getHTTPStatusCode = require('./unstable-core-do-not-import/http/getHTTPStatusCode.js');
|
|
4
|
-
require('./unstable-core-do-not-import/rpc/codes.js');
|
|
5
|
-
var parseConnectionParams = require('./unstable-core-do-not-import/http/parseConnectionParams.js');
|
|
6
|
-
var contentTypeParsers = require('./unstable-core-do-not-import/http/contentTypeParsers.js');
|
|
7
|
-
var resolveResponse = require('./unstable-core-do-not-import/http/resolveResponse.js');
|
|
8
|
-
require('./unstable-core-do-not-import/rootConfig.js');
|
|
9
|
-
require('./vendor/unpromise/unpromise.js');
|
|
10
|
-
require('./unstable-core-do-not-import/stream/utils/disposable.js');
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
exports.getHTTPStatusCode = getHTTPStatusCode.getHTTPStatusCode;
|
|
15
|
-
exports.getHTTPStatusCodeFromError = getHTTPStatusCode.getHTTPStatusCodeFromError;
|
|
16
|
-
exports.parseConnectionParamsFromString = parseConnectionParams.parseConnectionParamsFromString;
|
|
17
|
-
exports.parseConnectionParamsFromUnknown = parseConnectionParams.parseConnectionParamsFromUnknown;
|
|
18
|
-
exports.octetInputParser = contentTypeParsers.octetInputParser;
|
|
19
|
-
exports.resolveResponse = resolveResponse.resolveResponse;
|