@highstate/designer 0.1.0
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/.output/nitro.json +15 -0
- package/.output/public/_nuxt/1jbH28Ud.js +1 -0
- package/.output/public/_nuxt/BAsjE6c8.js +69 -0
- package/.output/public/_nuxt/D4AvvZ3p.js +1 -0
- package/.output/public/_nuxt/DcSK-0AR.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/0ea9cf82-d280-4ae3-95c8-082f396c88c7.json +1 -0
- package/.output/public/_nuxt/entry.Df9XoxdB.css +1 -0
- package/.output/public/_nuxt/error-404.SWzu_puR.css +1 -0
- package/.output/public/_nuxt/error-500.Bkv_zTjr.css +1 -0
- package/.output/public/favicon.ico +0 -0
- package/.output/public/robots.txt +1 -0
- package/.output/server/chunks/_/error-500.mjs +8 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/.output/server/chunks/_/index.mjs +229 -0
- package/.output/server/chunks/_/index.mjs.map +1 -0
- package/.output/server/chunks/build/ComponentIcon-styles.CVav5bPa.mjs +6 -0
- package/.output/server/chunks/build/ComponentIcon-styles.CVav5bPa.mjs.map +1 -0
- package/.output/server/chunks/build/ComponentIcon-styles.DJ59dQiL.mjs +6 -0
- package/.output/server/chunks/build/ComponentIcon-styles.DJ59dQiL.mjs.map +1 -0
- package/.output/server/chunks/build/ComponentNode-styles.5_iLK35r.mjs +6 -0
- package/.output/server/chunks/build/ComponentNode-styles.5_iLK35r.mjs.map +1 -0
- package/.output/server/chunks/build/ComponentNode-styles.7QJfF7h3.mjs +6 -0
- package/.output/server/chunks/build/ComponentNode-styles.7QJfF7h3.mjs.map +1 -0
- package/.output/server/chunks/build/ProjectCanvas-styles.B6yAk_TI.mjs +7 -0
- package/.output/server/chunks/build/ProjectCanvas-styles.B6yAk_TI.mjs.map +1 -0
- package/.output/server/chunks/build/ProjectCanvas-styles.BxP3nGl6.mjs +6 -0
- package/.output/server/chunks/build/ProjectCanvas-styles.BxP3nGl6.mjs.map +1 -0
- package/.output/server/chunks/build/ProjectCanvas-styles.CsOcKxeb.mjs +6 -0
- package/.output/server/chunks/build/ProjectCanvas-styles.CsOcKxeb.mjs.map +1 -0
- package/.output/server/chunks/build/VAppBar-styles.CaKoZ7v7.mjs +6 -0
- package/.output/server/chunks/build/VAppBar-styles.CaKoZ7v7.mjs.map +1 -0
- package/.output/server/chunks/build/VAvatar-styles.BloWs-NL.mjs +6 -0
- package/.output/server/chunks/build/VAvatar-styles.BloWs-NL.mjs.map +1 -0
- package/.output/server/chunks/build/VBtn-styles.5s8xLaPo.mjs +6 -0
- package/.output/server/chunks/build/VBtn-styles.5s8xLaPo.mjs.map +1 -0
- package/.output/server/chunks/build/VBtnGroup-styles.B8WSSc7t.mjs +6 -0
- package/.output/server/chunks/build/VBtnGroup-styles.B8WSSc7t.mjs.map +1 -0
- package/.output/server/chunks/build/VBtnToggle-styles.DRWSZkHZ.mjs +6 -0
- package/.output/server/chunks/build/VBtnToggle-styles.DRWSZkHZ.mjs.map +1 -0
- package/.output/server/chunks/build/VCard-styles.BpQql6F5.mjs +6 -0
- package/.output/server/chunks/build/VCard-styles.BpQql6F5.mjs.map +1 -0
- package/.output/server/chunks/build/VChip-styles.KvWWirvS.mjs +6 -0
- package/.output/server/chunks/build/VChip-styles.KvWWirvS.mjs.map +1 -0
- package/.output/server/chunks/build/VChipGroup-styles.SezSZY5I.mjs +6 -0
- package/.output/server/chunks/build/VChipGroup-styles.SezSZY5I.mjs.map +1 -0
- package/.output/server/chunks/build/VCounter-styles.DlbjDB7E.mjs +6 -0
- package/.output/server/chunks/build/VCounter-styles.DlbjDB7E.mjs.map +1 -0
- package/.output/server/chunks/build/VDivider-styles.B5vnnFG1.mjs +6 -0
- package/.output/server/chunks/build/VDivider-styles.B5vnnFG1.mjs.map +1 -0
- package/.output/server/chunks/build/VField-styles.DkgSx68C.mjs +6 -0
- package/.output/server/chunks/build/VField-styles.DkgSx68C.mjs.map +1 -0
- package/.output/server/chunks/build/VIcon-styles._8GsAkxR.mjs +6 -0
- package/.output/server/chunks/build/VIcon-styles._8GsAkxR.mjs.map +1 -0
- package/.output/server/chunks/build/VImg-styles.BQYU2VXD.mjs +6 -0
- package/.output/server/chunks/build/VImg-styles.BQYU2VXD.mjs.map +1 -0
- package/.output/server/chunks/build/VInput-styles.Cr1uxB2l.mjs +6 -0
- package/.output/server/chunks/build/VInput-styles.Cr1uxB2l.mjs.map +1 -0
- package/.output/server/chunks/build/VLabel-styles.OzbLNKaZ.mjs +6 -0
- package/.output/server/chunks/build/VLabel-styles.OzbLNKaZ.mjs.map +1 -0
- package/.output/server/chunks/build/VLayout-styles.DBbIk0kn.mjs +6 -0
- package/.output/server/chunks/build/VLayout-styles.DBbIk0kn.mjs.map +1 -0
- package/.output/server/chunks/build/VMain-styles.CI15Xs8y.mjs +6 -0
- package/.output/server/chunks/build/VMain-styles.CI15Xs8y.mjs.map +1 -0
- package/.output/server/chunks/build/VMessages-styles.C9dRMjf9.mjs +6 -0
- package/.output/server/chunks/build/VMessages-styles.C9dRMjf9.mjs.map +1 -0
- package/.output/server/chunks/build/VNavigationDrawer-styles.BcT_iIsk.mjs +6 -0
- package/.output/server/chunks/build/VNavigationDrawer-styles.BcT_iIsk.mjs.map +1 -0
- package/.output/server/chunks/build/VProgressCircular-styles.CWpXfZ6Q.mjs +6 -0
- package/.output/server/chunks/build/VProgressCircular-styles.CWpXfZ6Q.mjs.map +1 -0
- package/.output/server/chunks/build/VProgressLinear-styles.DjitzH7c.mjs +6 -0
- package/.output/server/chunks/build/VProgressLinear-styles.DjitzH7c.mjs.map +1 -0
- package/.output/server/chunks/build/VResponsive-styles.KUuswLet.mjs +6 -0
- package/.output/server/chunks/build/VResponsive-styles.KUuswLet.mjs.map +1 -0
- package/.output/server/chunks/build/VSlideGroup-styles.fT1UQTdA.mjs +6 -0
- package/.output/server/chunks/build/VSlideGroup-styles.fT1UQTdA.mjs.map +1 -0
- package/.output/server/chunks/build/VSpacer-styles.B_L0TU3-.mjs +6 -0
- package/.output/server/chunks/build/VSpacer-styles.B_L0TU3-.mjs.map +1 -0
- package/.output/server/chunks/build/VTextField-styles.e8Z3kCRA.mjs +6 -0
- package/.output/server/chunks/build/VTextField-styles.e8Z3kCRA.mjs.map +1 -0
- package/.output/server/chunks/build/VToolbar-styles.Bvr717Vh.mjs +6 -0
- package/.output/server/chunks/build/VToolbar-styles.Bvr717Vh.mjs.map +1 -0
- package/.output/server/chunks/build/app-styles.-ZJ3yGO7.mjs +6 -0
- package/.output/server/chunks/build/app-styles.-ZJ3yGO7.mjs.map +1 -0
- package/.output/server/chunks/build/app-styles.Ckjy6RrK.mjs +6 -0
- package/.output/server/chunks/build/app-styles.Ckjy6RrK.mjs.map +1 -0
- package/.output/server/chunks/build/client.manifest.mjs +82 -0
- package/.output/server/chunks/build/client.manifest.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-10.mjs-BpLi0qx6.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-10.mjs-BpLi0qx6.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-11.mjs-6TeH4I7w.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-11.mjs-6TeH4I7w.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-12.mjs-DU1igcRL.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-12.mjs-DU1igcRL.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-13.mjs-lZGUjhhD.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-13.mjs-lZGUjhhD.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-14.mjs-BRdr1-px.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-14.mjs-BRdr1-px.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-15.mjs-mUPL6Nc9.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-15.mjs-mUPL6Nc9.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-16.mjs-CPJMcIL1.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-16.mjs-CPJMcIL1.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-17.mjs-CQOORRn5.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-17.mjs-CQOORRn5.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-18.mjs-C7z1LTi9.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-18.mjs-C7z1LTi9.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-19.mjs-it-LBeIM.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-19.mjs-it-LBeIM.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-2.mjs-CIKbACDD.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-2.mjs-CIKbACDD.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-20.mjs-Igpd8vNA.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-20.mjs-Igpd8vNA.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-21.mjs-VGEW4cec.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-21.mjs-VGEW4cec.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-22.mjs-DLAUZ2Ss.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-22.mjs-DLAUZ2Ss.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-23.mjs-D6dUb4Q1.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-23.mjs-D6dUb4Q1.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-24.mjs-CR2CscOT.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-24.mjs-CR2CscOT.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-25.mjs-gcGnyYj1.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-25.mjs-gcGnyYj1.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-26.mjs-BGcP6LjH.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-26.mjs-BGcP6LjH.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-27.mjs-DKPK367G.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-27.mjs-DKPK367G.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-28.mjs-BxlgEOUH.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-28.mjs-BxlgEOUH.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-29.mjs-EoZxjH32.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-29.mjs-EoZxjH32.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-3.mjs-BZeC22He.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-3.mjs-BZeC22He.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-30.mjs-CoAZ885y.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-30.mjs-CoAZ885y.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-31.mjs-JYOGcJtH.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-31.mjs-JYOGcJtH.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-32.mjs-lT-SGbzA.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-32.mjs-lT-SGbzA.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-33.mjs-CGVyg8PA.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-33.mjs-CGVyg8PA.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-4.mjs-DZ0RUZ3Y.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-4.mjs-DZ0RUZ3Y.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-5.mjs-CWoX264H.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-5.mjs-CWoX264H.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-6.mjs-D97cocWn.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-6.mjs-D97cocWn.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-7.mjs-fDLOEPrI.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-7.mjs-fDLOEPrI.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-8.mjs-CogORmQT.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-8.mjs-CogORmQT.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles-9.mjs-CIkuJriK.mjs +4 -0
- package/.output/server/chunks/build/entry-styles-9.mjs-CIkuJriK.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles.CtA8hhgO.mjs +39 -0
- package/.output/server/chunks/build/entry-styles.CtA8hhgO.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-BE32jcXw.mjs +399 -0
- package/.output/server/chunks/build/error-404-BE32jcXw.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-styles-1.mjs-BnwklZPR.mjs +4 -0
- package/.output/server/chunks/build/error-404-styles-1.mjs-BnwklZPR.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-styles.B5NDqGbJ.mjs +6 -0
- package/.output/server/chunks/build/error-404-styles.B5NDqGbJ.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-styles.CeFcgbBS.mjs +6 -0
- package/.output/server/chunks/build/error-404-styles.CeFcgbBS.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-B3vPuajn.mjs +80 -0
- package/.output/server/chunks/build/error-500-B3vPuajn.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-styles-1.mjs-C2TN-owL.mjs +4 -0
- package/.output/server/chunks/build/error-500-styles-1.mjs-C2TN-owL.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-styles.BE3GHqYY.mjs +6 -0
- package/.output/server/chunks/build/error-500-styles.BE3GHqYY.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-styles.LQn8-gvg.mjs +6 -0
- package/.output/server/chunks/build/error-500-styles.LQn8-gvg.mjs.map +1 -0
- package/.output/server/chunks/build/index-C2merokO.mjs +34 -0
- package/.output/server/chunks/build/index-C2merokO.mjs.map +1 -0
- package/.output/server/chunks/build/index-styles.C7jmw0Wl.mjs +6 -0
- package/.output/server/chunks/build/index-styles.C7jmw0Wl.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +10495 -0
- package/.output/server/chunks/build/server.mjs.map +1 -0
- package/.output/server/chunks/build/styles.mjs +47 -0
- package/.output/server/chunks/build/styles.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +6203 -0
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
- package/.output/server/chunks/routes/api/_trpc_.mjs +209 -0
- package/.output/server/chunks/routes/api/_trpc_.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +391 -0
- package/.output/server/chunks/routes/renderer.mjs.map +1 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
- package/.output/server/index.mjs +7 -0
- package/.output/server/index.mjs.map +1 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14023 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@iconify/vue/dist/iconify.mjs +1996 -0
- package/.output/server/node_modules/@iconify/vue/package.json +65 -0
- package/.output/server/node_modules/@trpc/client/dist/TRPCClientError-38f9a32a.mjs +59 -0
- package/.output/server/node_modules/@trpc/client/dist/httpBatchLink-d0f9eac9.mjs +248 -0
- package/.output/server/node_modules/@trpc/client/dist/httpUtils-b9d0cb48.mjs +144 -0
- package/.output/server/node_modules/@trpc/client/dist/index.mjs +365 -0
- package/.output/server/node_modules/@trpc/client/dist/links/httpLink.mjs +62 -0
- package/.output/server/node_modules/@trpc/client/dist/links/loggerLink.mjs +173 -0
- package/.output/server/node_modules/@trpc/client/dist/links/wsLink.mjs +278 -0
- package/.output/server/node_modules/@trpc/client/dist/splitLink-4c75f7be.mjs +45 -0
- package/.output/server/node_modules/@trpc/client/dist/transformResult-ace864b8.mjs +58 -0
- package/.output/server/node_modules/@trpc/client/package.json +101 -0
- package/.output/server/node_modules/@trpc/server/dist/TRPCError-98d44758.mjs +39 -0
- package/.output/server/node_modules/@trpc/server/dist/batchStreamFormatter-fc1ffb26.mjs +30 -0
- package/.output/server/node_modules/@trpc/server/dist/codes-c924c3db.mjs +44 -0
- package/.output/server/node_modules/@trpc/server/dist/config-d5fdbd39.mjs +196 -0
- package/.output/server/node_modules/@trpc/server/dist/contentType-9fd995d3.mjs +52 -0
- package/.output/server/node_modules/@trpc/server/dist/getCauseFromUnknown-2d66414a.mjs +33 -0
- package/.output/server/node_modules/@trpc/server/dist/http/index.mjs +9 -0
- package/.output/server/node_modules/@trpc/server/dist/index-f91d720c.mjs +97 -0
- package/.output/server/node_modules/@trpc/server/dist/index.mjs +871 -0
- package/.output/server/node_modules/@trpc/server/dist/observable/index.mjs +147 -0
- package/.output/server/node_modules/@trpc/server/dist/observable-ade1bad8.mjs +81 -0
- package/.output/server/node_modules/@trpc/server/dist/resolveHTTPResponse-2fc435bb.mjs +291 -0
- package/.output/server/node_modules/@trpc/server/dist/shared/index.mjs +4 -0
- package/.output/server/node_modules/@trpc/server/dist/transformTRPCResponse-1153b421.mjs +53 -0
- package/.output/server/node_modules/@trpc/server/package.json +177 -0
- package/.output/server/node_modules/@unhead/dom/dist/index.mjs +197 -0
- package/.output/server/node_modules/@unhead/dom/package.json +40 -0
- package/.output/server/node_modules/@unhead/shared/dist/index.mjs +731 -0
- package/.output/server/node_modules/@unhead/shared/package.json +47 -0
- package/.output/server/node_modules/@unhead/ssr/dist/index.mjs +95 -0
- package/.output/server/node_modules/@unhead/ssr/package.json +40 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6690 -0
- package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +686 -0
- package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1404 -0
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1789 -0
- package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6654 -0
- package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1669 -0
- package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +857 -0
- package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +594 -0
- package/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/.output/server/node_modules/@vue-flow/background/dist/vue-flow-background.mjs +126 -0
- package/.output/server/node_modules/@vue-flow/background/package.json +73 -0
- package/.output/server/node_modules/@vue-flow/core/dist/vue-flow-core.mjs +9873 -0
- package/.output/server/node_modules/@vue-flow/core/package.json +92 -0
- package/.output/server/node_modules/@vue-flow/minimap/dist/vue-flow-minimap.mjs +2953 -0
- package/.output/server/node_modules/@vue-flow/minimap/package.json +80 -0
- package/.output/server/node_modules/devalue/index.js +3 -0
- package/.output/server/node_modules/devalue/package.json +34 -0
- package/.output/server/node_modules/devalue/src/base64.js +110 -0
- package/.output/server/node_modules/devalue/src/constants.js +6 -0
- package/.output/server/node_modules/devalue/src/parse.js +160 -0
- package/.output/server/node_modules/devalue/src/stringify.js +232 -0
- package/.output/server/node_modules/devalue/src/uneval.js +351 -0
- package/.output/server/node_modules/devalue/src/utils.js +113 -0
- package/.output/server/node_modules/entities/lib/decode.js +536 -0
- package/.output/server/node_modules/entities/lib/decode_codepoint.js +76 -0
- package/.output/server/node_modules/entities/lib/generated/decode-data-html.js +9 -0
- package/.output/server/node_modules/entities/lib/generated/decode-data-xml.js +9 -0
- package/.output/server/node_modules/entities/package.json +90 -0
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/.output/server/node_modules/estree-walker/package.json +37 -0
- package/.output/server/node_modules/hookable/dist/index.mjs +290 -0
- package/.output/server/node_modules/hookable/package.json +49 -0
- package/.output/server/node_modules/nanoid/index.js +46 -0
- package/.output/server/node_modules/nanoid/package.json +41 -0
- package/.output/server/node_modules/nanoid/url-alphabet/index.js +2 -0
- package/.output/server/node_modules/pinia/dist/pinia.prod.cjs +858 -0
- package/.output/server/node_modules/pinia/package.json +100 -0
- package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/.output/server/node_modules/source-map-js/package.json +71 -0
- package/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/.output/server/node_modules/ufo/dist/index.mjs +630 -0
- package/.output/server/node_modules/ufo/package.json +47 -0
- package/.output/server/node_modules/unhead/dist/index.mjs +747 -0
- package/.output/server/node_modules/unhead/package.json +46 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/vue/index.js +7 -0
- package/.output/server/node_modules/vue/index.mjs +1 -0
- package/.output/server/node_modules/vue/package.json +112 -0
- package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +196 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +50 -0
- package/.output/server/node_modules/vue-demi/lib/index.cjs +29 -0
- package/.output/server/node_modules/vue-demi/package.json +47 -0
- package/.output/server/node_modules/zod/lib/index.mjs +4236 -0
- package/.output/server/node_modules/zod/package.json +119 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/Options.js +31 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/Refs.js +21 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +14 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/index.js +37 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/package.json +1 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parseDef.js +164 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +3 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +25 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +49 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +5 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +4 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +4 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +46 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +7 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +6 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +6 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +52 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +21 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +25 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +16 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +5 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +10 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +33 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +52 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +45 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +20 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +20 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +4 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +4 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +57 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +20 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +324 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +32 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +5 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +80 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +3 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +59 -0
- package/.output/server/node_modules/zod-to-json-schema/package.json +89 -0
- package/.output/server/package.json +1 -0
- package/package.json +41 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
export { i as isObservable, o as observable } from '../observable-ade1bad8.mjs';
|
|
2
|
+
|
|
3
|
+
function share(_opts) {
|
|
4
|
+
return (originalObserver)=>{
|
|
5
|
+
let refCount = 0;
|
|
6
|
+
let subscription = null;
|
|
7
|
+
const observers = [];
|
|
8
|
+
function startIfNeeded() {
|
|
9
|
+
if (subscription) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
subscription = originalObserver.subscribe({
|
|
13
|
+
next (value) {
|
|
14
|
+
for (const observer of observers){
|
|
15
|
+
observer.next?.(value);
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
error (error) {
|
|
19
|
+
for (const observer of observers){
|
|
20
|
+
observer.error?.(error);
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
complete () {
|
|
24
|
+
for (const observer of observers){
|
|
25
|
+
observer.complete?.();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function resetIfNeeded() {
|
|
31
|
+
// "resetOnRefCountZero"
|
|
32
|
+
if (refCount === 0 && subscription) {
|
|
33
|
+
const _sub = subscription;
|
|
34
|
+
subscription = null;
|
|
35
|
+
_sub.unsubscribe();
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
subscribe (observer) {
|
|
40
|
+
refCount++;
|
|
41
|
+
observers.push(observer);
|
|
42
|
+
startIfNeeded();
|
|
43
|
+
return {
|
|
44
|
+
unsubscribe () {
|
|
45
|
+
refCount--;
|
|
46
|
+
resetIfNeeded();
|
|
47
|
+
const index = observers.findIndex((v)=>v === observer);
|
|
48
|
+
if (index > -1) {
|
|
49
|
+
observers.splice(index, 1);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function map(project) {
|
|
59
|
+
return (originalObserver)=>{
|
|
60
|
+
return {
|
|
61
|
+
subscribe (observer) {
|
|
62
|
+
let index = 0;
|
|
63
|
+
const subscription = originalObserver.subscribe({
|
|
64
|
+
next (value) {
|
|
65
|
+
observer.next?.(project(value, index++));
|
|
66
|
+
},
|
|
67
|
+
error (error) {
|
|
68
|
+
observer.error?.(error);
|
|
69
|
+
},
|
|
70
|
+
complete () {
|
|
71
|
+
observer.complete?.();
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
return subscription;
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function tap(observer) {
|
|
81
|
+
return (originalObserver)=>{
|
|
82
|
+
return {
|
|
83
|
+
subscribe (observer2) {
|
|
84
|
+
return originalObserver.subscribe({
|
|
85
|
+
next (v) {
|
|
86
|
+
observer.next?.(v);
|
|
87
|
+
observer2.next?.(v);
|
|
88
|
+
},
|
|
89
|
+
error (v) {
|
|
90
|
+
observer.error?.(v);
|
|
91
|
+
observer2.error?.(v);
|
|
92
|
+
},
|
|
93
|
+
complete () {
|
|
94
|
+
observer.complete?.();
|
|
95
|
+
observer2.complete?.();
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
class ObservableAbortError extends Error {
|
|
104
|
+
constructor(message){
|
|
105
|
+
super(message);
|
|
106
|
+
this.name = 'ObservableAbortError';
|
|
107
|
+
Object.setPrototypeOf(this, ObservableAbortError.prototype);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
/** @internal */ function observableToPromise(observable) {
|
|
111
|
+
let abort;
|
|
112
|
+
const promise = new Promise((resolve, reject)=>{
|
|
113
|
+
let isDone = false;
|
|
114
|
+
function onDone() {
|
|
115
|
+
if (isDone) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
isDone = true;
|
|
119
|
+
reject(new ObservableAbortError('This operation was aborted.'));
|
|
120
|
+
obs$.unsubscribe();
|
|
121
|
+
}
|
|
122
|
+
const obs$ = observable.subscribe({
|
|
123
|
+
next (data) {
|
|
124
|
+
isDone = true;
|
|
125
|
+
resolve(data);
|
|
126
|
+
onDone();
|
|
127
|
+
},
|
|
128
|
+
error (data) {
|
|
129
|
+
isDone = true;
|
|
130
|
+
reject(data);
|
|
131
|
+
onDone();
|
|
132
|
+
},
|
|
133
|
+
complete () {
|
|
134
|
+
isDone = true;
|
|
135
|
+
onDone();
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
abort = onDone;
|
|
139
|
+
});
|
|
140
|
+
return {
|
|
141
|
+
promise,
|
|
142
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
143
|
+
abort: abort
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export { map, observableToPromise, share, tap };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
function identity(x) {
|
|
2
|
+
return x;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
/** @internal */ function pipeFromArray(fns) {
|
|
6
|
+
if (fns.length === 0) {
|
|
7
|
+
return identity;
|
|
8
|
+
}
|
|
9
|
+
if (fns.length === 1) {
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
11
|
+
return fns[0];
|
|
12
|
+
}
|
|
13
|
+
return function piped(input) {
|
|
14
|
+
return fns.reduce((prev, fn)=>fn(prev), input);
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function isObservable(x) {
|
|
19
|
+
return typeof x === 'object' && x !== null && 'subscribe' in x;
|
|
20
|
+
}
|
|
21
|
+
function observable(subscribe) {
|
|
22
|
+
const self = {
|
|
23
|
+
subscribe (observer) {
|
|
24
|
+
let teardownRef = null;
|
|
25
|
+
let isDone = false;
|
|
26
|
+
let unsubscribed = false;
|
|
27
|
+
let teardownImmediately = false;
|
|
28
|
+
function unsubscribe() {
|
|
29
|
+
if (teardownRef === null) {
|
|
30
|
+
teardownImmediately = true;
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
if (unsubscribed) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
unsubscribed = true;
|
|
37
|
+
if (typeof teardownRef === 'function') {
|
|
38
|
+
teardownRef();
|
|
39
|
+
} else if (teardownRef) {
|
|
40
|
+
teardownRef.unsubscribe();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
teardownRef = subscribe({
|
|
44
|
+
next (value) {
|
|
45
|
+
if (isDone) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
observer.next?.(value);
|
|
49
|
+
},
|
|
50
|
+
error (err) {
|
|
51
|
+
if (isDone) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
isDone = true;
|
|
55
|
+
observer.error?.(err);
|
|
56
|
+
unsubscribe();
|
|
57
|
+
},
|
|
58
|
+
complete () {
|
|
59
|
+
if (isDone) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
isDone = true;
|
|
63
|
+
observer.complete?.();
|
|
64
|
+
unsubscribe();
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
if (teardownImmediately) {
|
|
68
|
+
unsubscribe();
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
unsubscribe
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
pipe (...operations) {
|
|
75
|
+
return pipeFromArray(operations)(self);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
return self;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export { isObservable as i, observable as o };
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import { e as callProcedure } from './config-d5fdbd39.mjs';
|
|
2
|
+
import { T as TRPCError, g as getTRPCErrorFromUnknown } from './TRPCError-98d44758.mjs';
|
|
3
|
+
import { t as transformTRPCResponse, g as getErrorShape } from './transformTRPCResponse-1153b421.mjs';
|
|
4
|
+
import { g as getJsonContentTypeInputs } from './contentType-9fd995d3.mjs';
|
|
5
|
+
import { b as getHTTPStatusCode } from './index-f91d720c.mjs';
|
|
6
|
+
|
|
7
|
+
const HTTP_METHOD_PROCEDURE_TYPE_MAP = {
|
|
8
|
+
GET: 'query',
|
|
9
|
+
POST: 'mutation'
|
|
10
|
+
};
|
|
11
|
+
const fallbackContentTypeHandler = {
|
|
12
|
+
getInputs: getJsonContentTypeInputs
|
|
13
|
+
};
|
|
14
|
+
function initResponse(initOpts) {
|
|
15
|
+
const { ctx , paths , type , responseMeta , untransformedJSON , errors =[] , } = initOpts;
|
|
16
|
+
let status = untransformedJSON ? getHTTPStatusCode(untransformedJSON) : 200;
|
|
17
|
+
const headers = {
|
|
18
|
+
'Content-Type': 'application/json'
|
|
19
|
+
};
|
|
20
|
+
const eagerGeneration = !untransformedJSON;
|
|
21
|
+
const data = eagerGeneration ? [] : Array.isArray(untransformedJSON) ? untransformedJSON : [
|
|
22
|
+
untransformedJSON
|
|
23
|
+
];
|
|
24
|
+
const meta = responseMeta?.({
|
|
25
|
+
ctx,
|
|
26
|
+
paths,
|
|
27
|
+
type,
|
|
28
|
+
data,
|
|
29
|
+
errors,
|
|
30
|
+
eagerGeneration
|
|
31
|
+
}) ?? {};
|
|
32
|
+
for (const [key, value] of Object.entries(meta.headers ?? {})){
|
|
33
|
+
headers[key] = value;
|
|
34
|
+
}
|
|
35
|
+
if (meta.status) {
|
|
36
|
+
status = meta.status;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
status,
|
|
40
|
+
headers
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
async function inputToProcedureCall(procedureOpts) {
|
|
44
|
+
const { opts , ctx , type , input , path } = procedureOpts;
|
|
45
|
+
try {
|
|
46
|
+
const data = await callProcedure({
|
|
47
|
+
procedures: opts.router._def.procedures,
|
|
48
|
+
path,
|
|
49
|
+
rawInput: input,
|
|
50
|
+
ctx,
|
|
51
|
+
type
|
|
52
|
+
});
|
|
53
|
+
return {
|
|
54
|
+
result: {
|
|
55
|
+
data
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
} catch (cause) {
|
|
59
|
+
const error = getTRPCErrorFromUnknown(cause);
|
|
60
|
+
opts.onError?.({
|
|
61
|
+
error,
|
|
62
|
+
path,
|
|
63
|
+
input,
|
|
64
|
+
ctx,
|
|
65
|
+
type: type,
|
|
66
|
+
req: opts.req
|
|
67
|
+
});
|
|
68
|
+
return {
|
|
69
|
+
error: getErrorShape({
|
|
70
|
+
config: opts.router._def._config,
|
|
71
|
+
error,
|
|
72
|
+
type,
|
|
73
|
+
path,
|
|
74
|
+
input,
|
|
75
|
+
ctx
|
|
76
|
+
})
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
function caughtErrorToData(cause, errorOpts) {
|
|
81
|
+
const { router , req , onError } = errorOpts.opts;
|
|
82
|
+
const error = getTRPCErrorFromUnknown(cause);
|
|
83
|
+
onError?.({
|
|
84
|
+
error,
|
|
85
|
+
path: errorOpts.path,
|
|
86
|
+
input: errorOpts.input,
|
|
87
|
+
ctx: errorOpts.ctx,
|
|
88
|
+
type: errorOpts.type,
|
|
89
|
+
req
|
|
90
|
+
});
|
|
91
|
+
const untransformedJSON = {
|
|
92
|
+
error: getErrorShape({
|
|
93
|
+
config: router._def._config,
|
|
94
|
+
error,
|
|
95
|
+
type: errorOpts.type,
|
|
96
|
+
path: errorOpts.path,
|
|
97
|
+
input: errorOpts.input,
|
|
98
|
+
ctx: errorOpts.ctx
|
|
99
|
+
})
|
|
100
|
+
};
|
|
101
|
+
const transformedJSON = transformTRPCResponse(router._def._config, untransformedJSON);
|
|
102
|
+
const body = JSON.stringify(transformedJSON);
|
|
103
|
+
return {
|
|
104
|
+
error,
|
|
105
|
+
untransformedJSON,
|
|
106
|
+
body
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
// implementation
|
|
110
|
+
async function resolveHTTPResponse(opts) {
|
|
111
|
+
const { router , req , unstable_onHead , unstable_onChunk } = opts;
|
|
112
|
+
if (req.method === 'HEAD') {
|
|
113
|
+
// can be used for lambda warmup
|
|
114
|
+
const headResponse = {
|
|
115
|
+
status: 204
|
|
116
|
+
};
|
|
117
|
+
unstable_onHead?.(headResponse, false);
|
|
118
|
+
unstable_onChunk?.([
|
|
119
|
+
-1,
|
|
120
|
+
''
|
|
121
|
+
]);
|
|
122
|
+
return headResponse;
|
|
123
|
+
}
|
|
124
|
+
const contentTypeHandler = opts.contentTypeHandler ?? fallbackContentTypeHandler;
|
|
125
|
+
const batchingEnabled = opts.batching?.enabled ?? true;
|
|
126
|
+
const type = HTTP_METHOD_PROCEDURE_TYPE_MAP[req.method] ?? 'unknown';
|
|
127
|
+
let ctx = undefined;
|
|
128
|
+
let paths;
|
|
129
|
+
const isBatchCall = !!req.query.get('batch');
|
|
130
|
+
const isStreamCall = isBatchCall && unstable_onHead && unstable_onChunk && req.headers['trpc-batch-mode'] === 'stream';
|
|
131
|
+
try {
|
|
132
|
+
// we create context first so that (unless `createContext()` throws)
|
|
133
|
+
// error handler may access context information
|
|
134
|
+
//
|
|
135
|
+
// this way even if the client sends malformed input that might cause an exception:
|
|
136
|
+
// - `opts.error` has value,
|
|
137
|
+
// - batching is not enabled,
|
|
138
|
+
// - `type` is unknown,
|
|
139
|
+
// - `getInputs` throws because of malformed JSON,
|
|
140
|
+
// context value is still available to the error handler
|
|
141
|
+
ctx = await opts.createContext();
|
|
142
|
+
if (opts.error) {
|
|
143
|
+
throw opts.error;
|
|
144
|
+
}
|
|
145
|
+
if (isBatchCall && !batchingEnabled) {
|
|
146
|
+
throw new Error(`Batching is not enabled on the server`);
|
|
147
|
+
}
|
|
148
|
+
/* istanbul ignore if -- @preserve */ if (type === 'subscription') {
|
|
149
|
+
throw new TRPCError({
|
|
150
|
+
message: 'Subscriptions should use wsLink',
|
|
151
|
+
code: 'METHOD_NOT_SUPPORTED'
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
if (type === 'unknown') {
|
|
155
|
+
throw new TRPCError({
|
|
156
|
+
message: `Unexpected request method ${req.method}`,
|
|
157
|
+
code: 'METHOD_NOT_SUPPORTED'
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
const inputs = await contentTypeHandler.getInputs({
|
|
161
|
+
isBatchCall,
|
|
162
|
+
req,
|
|
163
|
+
router,
|
|
164
|
+
preprocessedBody: opts.preprocessedBody ?? false
|
|
165
|
+
});
|
|
166
|
+
paths = isBatchCall ? decodeURIComponent(opts.path).split(',') : [
|
|
167
|
+
opts.path
|
|
168
|
+
];
|
|
169
|
+
const promises = paths.map((path, index)=>inputToProcedureCall({
|
|
170
|
+
opts,
|
|
171
|
+
ctx,
|
|
172
|
+
type,
|
|
173
|
+
input: inputs[index],
|
|
174
|
+
path
|
|
175
|
+
}));
|
|
176
|
+
if (!isStreamCall) {
|
|
177
|
+
/**
|
|
178
|
+
* Non-streaming response:
|
|
179
|
+
* - await all responses in parallel, blocking on the slowest one
|
|
180
|
+
* - create headers with known response body
|
|
181
|
+
* - return a complete HTTPResponse
|
|
182
|
+
*/ const untransformedJSON = await Promise.all(promises);
|
|
183
|
+
const errors = untransformedJSON.flatMap((response)=>'error' in response ? [
|
|
184
|
+
response.error
|
|
185
|
+
] : []);
|
|
186
|
+
const headResponse1 = initResponse({
|
|
187
|
+
ctx,
|
|
188
|
+
paths,
|
|
189
|
+
type,
|
|
190
|
+
responseMeta: opts.responseMeta,
|
|
191
|
+
untransformedJSON,
|
|
192
|
+
errors
|
|
193
|
+
});
|
|
194
|
+
unstable_onHead?.(headResponse1, false);
|
|
195
|
+
// return body stuff
|
|
196
|
+
const result = isBatchCall ? untransformedJSON : untransformedJSON[0]; // eslint-disable-line @typescript-eslint/no-non-null-assertion -- `untransformedJSON` should be the length of `paths` which should be at least 1 otherwise there wouldn't be a request at all
|
|
197
|
+
const transformedJSON = transformTRPCResponse(router._def._config, result);
|
|
198
|
+
const body = JSON.stringify(transformedJSON);
|
|
199
|
+
unstable_onChunk?.([
|
|
200
|
+
-1,
|
|
201
|
+
body
|
|
202
|
+
]);
|
|
203
|
+
return {
|
|
204
|
+
status: headResponse1.status,
|
|
205
|
+
headers: headResponse1.headers,
|
|
206
|
+
body
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Streaming response:
|
|
211
|
+
* - block on none, call `onChunk` as soon as each response is ready
|
|
212
|
+
* - create headers with minimal data (cannot know the response body in advance)
|
|
213
|
+
* - return void
|
|
214
|
+
*/ const headResponse2 = initResponse({
|
|
215
|
+
ctx,
|
|
216
|
+
paths,
|
|
217
|
+
type,
|
|
218
|
+
responseMeta: opts.responseMeta
|
|
219
|
+
});
|
|
220
|
+
unstable_onHead(headResponse2, true);
|
|
221
|
+
const indexedPromises = new Map(promises.map((promise, index)=>[
|
|
222
|
+
index,
|
|
223
|
+
promise.then((r)=>[
|
|
224
|
+
index,
|
|
225
|
+
r
|
|
226
|
+
])
|
|
227
|
+
]));
|
|
228
|
+
for (const _ of paths){
|
|
229
|
+
const [index, untransformedJSON1] = await Promise.race(indexedPromises.values());
|
|
230
|
+
indexedPromises.delete(index);
|
|
231
|
+
try {
|
|
232
|
+
const transformedJSON1 = transformTRPCResponse(router._def._config, untransformedJSON1);
|
|
233
|
+
const body1 = JSON.stringify(transformedJSON1);
|
|
234
|
+
unstable_onChunk([
|
|
235
|
+
index,
|
|
236
|
+
body1
|
|
237
|
+
]);
|
|
238
|
+
} catch (cause) {
|
|
239
|
+
const path = paths[index];
|
|
240
|
+
const input = inputs[index];
|
|
241
|
+
const { body: body2 } = caughtErrorToData(cause, {
|
|
242
|
+
opts,
|
|
243
|
+
ctx,
|
|
244
|
+
type,
|
|
245
|
+
path,
|
|
246
|
+
input
|
|
247
|
+
});
|
|
248
|
+
unstable_onChunk([
|
|
249
|
+
index,
|
|
250
|
+
body2
|
|
251
|
+
]);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
return;
|
|
255
|
+
} catch (cause1) {
|
|
256
|
+
// we get here if
|
|
257
|
+
// - batching is called when it's not enabled
|
|
258
|
+
// - `createContext()` throws
|
|
259
|
+
// - `router._def._config.transformer.output.serialize()` throws
|
|
260
|
+
// - post body is too large
|
|
261
|
+
// - input deserialization fails
|
|
262
|
+
// - `errorFormatter` return value is malformed
|
|
263
|
+
const { error , untransformedJSON: untransformedJSON2 , body: body3 } = caughtErrorToData(cause1, {
|
|
264
|
+
opts,
|
|
265
|
+
ctx,
|
|
266
|
+
type
|
|
267
|
+
});
|
|
268
|
+
const headResponse3 = initResponse({
|
|
269
|
+
ctx,
|
|
270
|
+
paths,
|
|
271
|
+
type,
|
|
272
|
+
responseMeta: opts.responseMeta,
|
|
273
|
+
untransformedJSON: untransformedJSON2,
|
|
274
|
+
errors: [
|
|
275
|
+
error
|
|
276
|
+
]
|
|
277
|
+
});
|
|
278
|
+
unstable_onHead?.(headResponse3, false);
|
|
279
|
+
unstable_onChunk?.([
|
|
280
|
+
-1,
|
|
281
|
+
body3
|
|
282
|
+
]);
|
|
283
|
+
return {
|
|
284
|
+
status: headResponse3.status,
|
|
285
|
+
headers: headResponse3.headers,
|
|
286
|
+
body: body3
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export { resolveHTTPResponse as r };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { c as createFlatProxy, a as createRecursiveProxy } from '../index-f91d720c.mjs';
|
|
2
|
+
export { g as getErrorShape, t as transformTRPCResponse } from '../transformTRPCResponse-1153b421.mjs';
|
|
3
|
+
export { g as getCauseFromUnknown } from '../getCauseFromUnknown-2d66414a.mjs';
|
|
4
|
+
import '../codes-c924c3db.mjs';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { g as getHTTPStatusCodeFromError } from './index-f91d720c.mjs';
|
|
2
|
+
import { T as TRPC_ERROR_CODES_BY_KEY } from './codes-c924c3db.mjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/ function getErrorShape(opts) {
|
|
7
|
+
const { path , error , config } = opts;
|
|
8
|
+
const { code } = opts.error;
|
|
9
|
+
const shape = {
|
|
10
|
+
message: error.message,
|
|
11
|
+
code: TRPC_ERROR_CODES_BY_KEY[code],
|
|
12
|
+
data: {
|
|
13
|
+
code,
|
|
14
|
+
httpStatus: getHTTPStatusCodeFromError(error)
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
if (config.isDev && typeof opts.error.stack === 'string') {
|
|
18
|
+
shape.data.stack = opts.error.stack;
|
|
19
|
+
}
|
|
20
|
+
if (typeof path === 'string') {
|
|
21
|
+
shape.data.path = path;
|
|
22
|
+
}
|
|
23
|
+
return config.errorFormatter({
|
|
24
|
+
...opts,
|
|
25
|
+
shape
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function transformTRPCResponseItem(config, item) {
|
|
30
|
+
if ('error' in item) {
|
|
31
|
+
return {
|
|
32
|
+
...item,
|
|
33
|
+
error: config.transformer.output.serialize(item.error)
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
if ('data' in item.result) {
|
|
37
|
+
return {
|
|
38
|
+
...item,
|
|
39
|
+
result: {
|
|
40
|
+
...item.result,
|
|
41
|
+
data: config.transformer.output.serialize(item.result.data)
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
return item;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Takes a unserialized `TRPCResponse` and serializes it with the router's transformers
|
|
49
|
+
**/ function transformTRPCResponse(config, itemOrItems) {
|
|
50
|
+
return Array.isArray(itemOrItems) ? itemOrItems.map((item)=>transformTRPCResponseItem(config, item)) : transformTRPCResponseItem(config, itemOrItems);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export { getErrorShape as g, transformTRPCResponse as t };
|