@highstate/designer 0.1.0 → 0.2.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/package.json +10 -8
- package/.output/nitro.json +0 -15
- package/.output/public/_nuxt/1jbH28Ud.js +0 -1
- package/.output/public/_nuxt/BAsjE6c8.js +0 -69
- package/.output/public/_nuxt/D4AvvZ3p.js +0 -1
- package/.output/public/_nuxt/DcSK-0AR.js +0 -1
- package/.output/public/_nuxt/builds/latest.json +0 -1
- package/.output/public/_nuxt/builds/meta/0ea9cf82-d280-4ae3-95c8-082f396c88c7.json +0 -1
- package/.output/public/_nuxt/entry.Df9XoxdB.css +0 -1
- package/.output/public/_nuxt/error-404.SWzu_puR.css +0 -1
- package/.output/public/_nuxt/error-500.Bkv_zTjr.css +0 -1
- package/.output/public/favicon.ico +0 -0
- package/.output/public/robots.txt +0 -1
- package/.output/server/chunks/_/error-500.mjs +0 -8
- package/.output/server/chunks/_/error-500.mjs.map +0 -1
- package/.output/server/chunks/_/index.mjs +0 -229
- package/.output/server/chunks/_/index.mjs.map +0 -1
- package/.output/server/chunks/build/ComponentIcon-styles.CVav5bPa.mjs +0 -6
- package/.output/server/chunks/build/ComponentIcon-styles.CVav5bPa.mjs.map +0 -1
- package/.output/server/chunks/build/ComponentIcon-styles.DJ59dQiL.mjs +0 -6
- package/.output/server/chunks/build/ComponentIcon-styles.DJ59dQiL.mjs.map +0 -1
- package/.output/server/chunks/build/ComponentNode-styles.5_iLK35r.mjs +0 -6
- package/.output/server/chunks/build/ComponentNode-styles.5_iLK35r.mjs.map +0 -1
- package/.output/server/chunks/build/ComponentNode-styles.7QJfF7h3.mjs +0 -6
- package/.output/server/chunks/build/ComponentNode-styles.7QJfF7h3.mjs.map +0 -1
- package/.output/server/chunks/build/ProjectCanvas-styles.B6yAk_TI.mjs +0 -7
- package/.output/server/chunks/build/ProjectCanvas-styles.B6yAk_TI.mjs.map +0 -1
- package/.output/server/chunks/build/ProjectCanvas-styles.BxP3nGl6.mjs +0 -6
- package/.output/server/chunks/build/ProjectCanvas-styles.BxP3nGl6.mjs.map +0 -1
- package/.output/server/chunks/build/ProjectCanvas-styles.CsOcKxeb.mjs +0 -6
- package/.output/server/chunks/build/ProjectCanvas-styles.CsOcKxeb.mjs.map +0 -1
- package/.output/server/chunks/build/VAppBar-styles.CaKoZ7v7.mjs +0 -6
- package/.output/server/chunks/build/VAppBar-styles.CaKoZ7v7.mjs.map +0 -1
- package/.output/server/chunks/build/VAvatar-styles.BloWs-NL.mjs +0 -6
- package/.output/server/chunks/build/VAvatar-styles.BloWs-NL.mjs.map +0 -1
- package/.output/server/chunks/build/VBtn-styles.5s8xLaPo.mjs +0 -6
- package/.output/server/chunks/build/VBtn-styles.5s8xLaPo.mjs.map +0 -1
- package/.output/server/chunks/build/VBtnGroup-styles.B8WSSc7t.mjs +0 -6
- package/.output/server/chunks/build/VBtnGroup-styles.B8WSSc7t.mjs.map +0 -1
- package/.output/server/chunks/build/VBtnToggle-styles.DRWSZkHZ.mjs +0 -6
- package/.output/server/chunks/build/VBtnToggle-styles.DRWSZkHZ.mjs.map +0 -1
- package/.output/server/chunks/build/VCard-styles.BpQql6F5.mjs +0 -6
- package/.output/server/chunks/build/VCard-styles.BpQql6F5.mjs.map +0 -1
- package/.output/server/chunks/build/VChip-styles.KvWWirvS.mjs +0 -6
- package/.output/server/chunks/build/VChip-styles.KvWWirvS.mjs.map +0 -1
- package/.output/server/chunks/build/VChipGroup-styles.SezSZY5I.mjs +0 -6
- package/.output/server/chunks/build/VChipGroup-styles.SezSZY5I.mjs.map +0 -1
- package/.output/server/chunks/build/VCounter-styles.DlbjDB7E.mjs +0 -6
- package/.output/server/chunks/build/VCounter-styles.DlbjDB7E.mjs.map +0 -1
- package/.output/server/chunks/build/VDivider-styles.B5vnnFG1.mjs +0 -6
- package/.output/server/chunks/build/VDivider-styles.B5vnnFG1.mjs.map +0 -1
- package/.output/server/chunks/build/VField-styles.DkgSx68C.mjs +0 -6
- package/.output/server/chunks/build/VField-styles.DkgSx68C.mjs.map +0 -1
- package/.output/server/chunks/build/VIcon-styles._8GsAkxR.mjs +0 -6
- package/.output/server/chunks/build/VIcon-styles._8GsAkxR.mjs.map +0 -1
- package/.output/server/chunks/build/VImg-styles.BQYU2VXD.mjs +0 -6
- package/.output/server/chunks/build/VImg-styles.BQYU2VXD.mjs.map +0 -1
- package/.output/server/chunks/build/VInput-styles.Cr1uxB2l.mjs +0 -6
- package/.output/server/chunks/build/VInput-styles.Cr1uxB2l.mjs.map +0 -1
- package/.output/server/chunks/build/VLabel-styles.OzbLNKaZ.mjs +0 -6
- package/.output/server/chunks/build/VLabel-styles.OzbLNKaZ.mjs.map +0 -1
- package/.output/server/chunks/build/VLayout-styles.DBbIk0kn.mjs +0 -6
- package/.output/server/chunks/build/VLayout-styles.DBbIk0kn.mjs.map +0 -1
- package/.output/server/chunks/build/VMain-styles.CI15Xs8y.mjs +0 -6
- package/.output/server/chunks/build/VMain-styles.CI15Xs8y.mjs.map +0 -1
- package/.output/server/chunks/build/VMessages-styles.C9dRMjf9.mjs +0 -6
- package/.output/server/chunks/build/VMessages-styles.C9dRMjf9.mjs.map +0 -1
- package/.output/server/chunks/build/VNavigationDrawer-styles.BcT_iIsk.mjs +0 -6
- package/.output/server/chunks/build/VNavigationDrawer-styles.BcT_iIsk.mjs.map +0 -1
- package/.output/server/chunks/build/VProgressCircular-styles.CWpXfZ6Q.mjs +0 -6
- package/.output/server/chunks/build/VProgressCircular-styles.CWpXfZ6Q.mjs.map +0 -1
- package/.output/server/chunks/build/VProgressLinear-styles.DjitzH7c.mjs +0 -6
- package/.output/server/chunks/build/VProgressLinear-styles.DjitzH7c.mjs.map +0 -1
- package/.output/server/chunks/build/VResponsive-styles.KUuswLet.mjs +0 -6
- package/.output/server/chunks/build/VResponsive-styles.KUuswLet.mjs.map +0 -1
- package/.output/server/chunks/build/VSlideGroup-styles.fT1UQTdA.mjs +0 -6
- package/.output/server/chunks/build/VSlideGroup-styles.fT1UQTdA.mjs.map +0 -1
- package/.output/server/chunks/build/VSpacer-styles.B_L0TU3-.mjs +0 -6
- package/.output/server/chunks/build/VSpacer-styles.B_L0TU3-.mjs.map +0 -1
- package/.output/server/chunks/build/VTextField-styles.e8Z3kCRA.mjs +0 -6
- package/.output/server/chunks/build/VTextField-styles.e8Z3kCRA.mjs.map +0 -1
- package/.output/server/chunks/build/VToolbar-styles.Bvr717Vh.mjs +0 -6
- package/.output/server/chunks/build/VToolbar-styles.Bvr717Vh.mjs.map +0 -1
- package/.output/server/chunks/build/app-styles.-ZJ3yGO7.mjs +0 -6
- package/.output/server/chunks/build/app-styles.-ZJ3yGO7.mjs.map +0 -1
- package/.output/server/chunks/build/app-styles.Ckjy6RrK.mjs +0 -6
- package/.output/server/chunks/build/app-styles.Ckjy6RrK.mjs.map +0 -1
- package/.output/server/chunks/build/client.manifest.mjs +0 -82
- package/.output/server/chunks/build/client.manifest.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-10.mjs-BpLi0qx6.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-10.mjs-BpLi0qx6.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-11.mjs-6TeH4I7w.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-11.mjs-6TeH4I7w.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-12.mjs-DU1igcRL.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-12.mjs-DU1igcRL.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-13.mjs-lZGUjhhD.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-13.mjs-lZGUjhhD.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-14.mjs-BRdr1-px.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-14.mjs-BRdr1-px.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-15.mjs-mUPL6Nc9.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-15.mjs-mUPL6Nc9.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-16.mjs-CPJMcIL1.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-16.mjs-CPJMcIL1.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-17.mjs-CQOORRn5.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-17.mjs-CQOORRn5.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-18.mjs-C7z1LTi9.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-18.mjs-C7z1LTi9.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-19.mjs-it-LBeIM.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-19.mjs-it-LBeIM.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-2.mjs-CIKbACDD.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-2.mjs-CIKbACDD.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-20.mjs-Igpd8vNA.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-20.mjs-Igpd8vNA.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-21.mjs-VGEW4cec.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-21.mjs-VGEW4cec.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-22.mjs-DLAUZ2Ss.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-22.mjs-DLAUZ2Ss.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-23.mjs-D6dUb4Q1.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-23.mjs-D6dUb4Q1.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-24.mjs-CR2CscOT.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-24.mjs-CR2CscOT.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-25.mjs-gcGnyYj1.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-25.mjs-gcGnyYj1.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-26.mjs-BGcP6LjH.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-26.mjs-BGcP6LjH.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-27.mjs-DKPK367G.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-27.mjs-DKPK367G.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-28.mjs-BxlgEOUH.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-28.mjs-BxlgEOUH.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-29.mjs-EoZxjH32.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-29.mjs-EoZxjH32.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-3.mjs-BZeC22He.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-3.mjs-BZeC22He.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-30.mjs-CoAZ885y.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-30.mjs-CoAZ885y.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-31.mjs-JYOGcJtH.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-31.mjs-JYOGcJtH.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-32.mjs-lT-SGbzA.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-32.mjs-lT-SGbzA.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-33.mjs-CGVyg8PA.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-33.mjs-CGVyg8PA.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-4.mjs-DZ0RUZ3Y.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-4.mjs-DZ0RUZ3Y.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-5.mjs-CWoX264H.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-5.mjs-CWoX264H.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-6.mjs-D97cocWn.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-6.mjs-D97cocWn.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-7.mjs-fDLOEPrI.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-7.mjs-fDLOEPrI.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-8.mjs-CogORmQT.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-8.mjs-CogORmQT.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-9.mjs-CIkuJriK.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-9.mjs-CIkuJriK.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles.CtA8hhgO.mjs +0 -39
- package/.output/server/chunks/build/entry-styles.CtA8hhgO.mjs.map +0 -1
- package/.output/server/chunks/build/error-404-BE32jcXw.mjs +0 -399
- package/.output/server/chunks/build/error-404-BE32jcXw.mjs.map +0 -1
- package/.output/server/chunks/build/error-404-styles-1.mjs-BnwklZPR.mjs +0 -4
- package/.output/server/chunks/build/error-404-styles-1.mjs-BnwklZPR.mjs.map +0 -1
- package/.output/server/chunks/build/error-404-styles.B5NDqGbJ.mjs +0 -6
- package/.output/server/chunks/build/error-404-styles.B5NDqGbJ.mjs.map +0 -1
- package/.output/server/chunks/build/error-404-styles.CeFcgbBS.mjs +0 -6
- package/.output/server/chunks/build/error-404-styles.CeFcgbBS.mjs.map +0 -1
- package/.output/server/chunks/build/error-500-B3vPuajn.mjs +0 -80
- package/.output/server/chunks/build/error-500-B3vPuajn.mjs.map +0 -1
- package/.output/server/chunks/build/error-500-styles-1.mjs-C2TN-owL.mjs +0 -4
- package/.output/server/chunks/build/error-500-styles-1.mjs-C2TN-owL.mjs.map +0 -1
- package/.output/server/chunks/build/error-500-styles.BE3GHqYY.mjs +0 -6
- package/.output/server/chunks/build/error-500-styles.BE3GHqYY.mjs.map +0 -1
- package/.output/server/chunks/build/error-500-styles.LQn8-gvg.mjs +0 -6
- package/.output/server/chunks/build/error-500-styles.LQn8-gvg.mjs.map +0 -1
- package/.output/server/chunks/build/index-C2merokO.mjs +0 -34
- package/.output/server/chunks/build/index-C2merokO.mjs.map +0 -1
- package/.output/server/chunks/build/index-styles.C7jmw0Wl.mjs +0 -6
- package/.output/server/chunks/build/index-styles.C7jmw0Wl.mjs.map +0 -1
- package/.output/server/chunks/build/server.mjs +0 -10495
- package/.output/server/chunks/build/server.mjs.map +0 -1
- package/.output/server/chunks/build/styles.mjs +0 -47
- package/.output/server/chunks/build/styles.mjs.map +0 -1
- package/.output/server/chunks/nitro/nitro.mjs +0 -6203
- package/.output/server/chunks/nitro/nitro.mjs.map +0 -1
- package/.output/server/chunks/routes/api/_trpc_.mjs +0 -209
- package/.output/server/chunks/routes/api/_trpc_.mjs.map +0 -1
- package/.output/server/chunks/routes/renderer.mjs +0 -391
- package/.output/server/chunks/routes/renderer.mjs.map +0 -1
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs +0 -4
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +0 -1
- package/.output/server/index.mjs +0 -7
- package/.output/server/index.mjs.map +0 -1
- package/.output/server/node_modules/@babel/parser/lib/index.js +0 -14023
- package/.output/server/node_modules/@babel/parser/package.json +0 -50
- package/.output/server/node_modules/@iconify/vue/dist/iconify.mjs +0 -1996
- package/.output/server/node_modules/@iconify/vue/package.json +0 -65
- package/.output/server/node_modules/@trpc/client/dist/TRPCClientError-38f9a32a.mjs +0 -59
- package/.output/server/node_modules/@trpc/client/dist/httpBatchLink-d0f9eac9.mjs +0 -248
- package/.output/server/node_modules/@trpc/client/dist/httpUtils-b9d0cb48.mjs +0 -144
- package/.output/server/node_modules/@trpc/client/dist/index.mjs +0 -365
- package/.output/server/node_modules/@trpc/client/dist/links/httpLink.mjs +0 -62
- package/.output/server/node_modules/@trpc/client/dist/links/loggerLink.mjs +0 -173
- package/.output/server/node_modules/@trpc/client/dist/links/wsLink.mjs +0 -278
- package/.output/server/node_modules/@trpc/client/dist/splitLink-4c75f7be.mjs +0 -45
- package/.output/server/node_modules/@trpc/client/dist/transformResult-ace864b8.mjs +0 -58
- package/.output/server/node_modules/@trpc/client/package.json +0 -101
- package/.output/server/node_modules/@trpc/server/dist/TRPCError-98d44758.mjs +0 -39
- package/.output/server/node_modules/@trpc/server/dist/batchStreamFormatter-fc1ffb26.mjs +0 -30
- package/.output/server/node_modules/@trpc/server/dist/codes-c924c3db.mjs +0 -44
- package/.output/server/node_modules/@trpc/server/dist/config-d5fdbd39.mjs +0 -196
- package/.output/server/node_modules/@trpc/server/dist/contentType-9fd995d3.mjs +0 -52
- package/.output/server/node_modules/@trpc/server/dist/getCauseFromUnknown-2d66414a.mjs +0 -33
- package/.output/server/node_modules/@trpc/server/dist/http/index.mjs +0 -9
- package/.output/server/node_modules/@trpc/server/dist/index-f91d720c.mjs +0 -97
- package/.output/server/node_modules/@trpc/server/dist/index.mjs +0 -871
- package/.output/server/node_modules/@trpc/server/dist/observable/index.mjs +0 -147
- package/.output/server/node_modules/@trpc/server/dist/observable-ade1bad8.mjs +0 -81
- package/.output/server/node_modules/@trpc/server/dist/resolveHTTPResponse-2fc435bb.mjs +0 -291
- package/.output/server/node_modules/@trpc/server/dist/shared/index.mjs +0 -4
- package/.output/server/node_modules/@trpc/server/dist/transformTRPCResponse-1153b421.mjs +0 -53
- package/.output/server/node_modules/@trpc/server/package.json +0 -177
- package/.output/server/node_modules/@unhead/dom/dist/index.mjs +0 -197
- package/.output/server/node_modules/@unhead/dom/package.json +0 -40
- package/.output/server/node_modules/@unhead/shared/dist/index.mjs +0 -731
- package/.output/server/node_modules/@unhead/shared/package.json +0 -47
- package/.output/server/node_modules/@unhead/ssr/dist/index.mjs +0 -95
- package/.output/server/node_modules/@unhead/ssr/package.json +0 -40
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +0 -6690
- package/.output/server/node_modules/@vue/compiler-core/package.json +0 -58
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +0 -686
- package/.output/server/node_modules/@vue/compiler-dom/package.json +0 -57
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +0 -1404
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +0 -34
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +0 -1789
- package/.output/server/node_modules/@vue/reactivity/package.json +0 -55
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +0 -6654
- package/.output/server/node_modules/@vue/runtime-core/package.json +0 -52
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +0 -1669
- package/.output/server/node_modules/@vue/runtime-dom/package.json +0 -60
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +0 -857
- package/.output/server/node_modules/@vue/server-renderer/package.json +0 -55
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +0 -594
- package/.output/server/node_modules/@vue/shared/package.json +0 -47
- package/.output/server/node_modules/@vue-flow/background/dist/vue-flow-background.mjs +0 -126
- package/.output/server/node_modules/@vue-flow/background/package.json +0 -73
- package/.output/server/node_modules/@vue-flow/core/dist/vue-flow-core.mjs +0 -9873
- package/.output/server/node_modules/@vue-flow/core/package.json +0 -92
- package/.output/server/node_modules/@vue-flow/minimap/dist/vue-flow-minimap.mjs +0 -2953
- package/.output/server/node_modules/@vue-flow/minimap/package.json +0 -80
- package/.output/server/node_modules/devalue/index.js +0 -3
- package/.output/server/node_modules/devalue/package.json +0 -34
- package/.output/server/node_modules/devalue/src/base64.js +0 -110
- package/.output/server/node_modules/devalue/src/constants.js +0 -6
- package/.output/server/node_modules/devalue/src/parse.js +0 -160
- package/.output/server/node_modules/devalue/src/stringify.js +0 -232
- package/.output/server/node_modules/devalue/src/uneval.js +0 -351
- package/.output/server/node_modules/devalue/src/utils.js +0 -113
- package/.output/server/node_modules/entities/lib/decode.js +0 -536
- package/.output/server/node_modules/entities/lib/decode_codepoint.js +0 -76
- package/.output/server/node_modules/entities/lib/generated/decode-data-html.js +0 -9
- package/.output/server/node_modules/entities/lib/generated/decode-data-xml.js +0 -9
- package/.output/server/node_modules/entities/package.json +0 -90
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +0 -344
- package/.output/server/node_modules/estree-walker/package.json +0 -37
- package/.output/server/node_modules/hookable/dist/index.mjs +0 -290
- package/.output/server/node_modules/hookable/package.json +0 -49
- package/.output/server/node_modules/nanoid/index.js +0 -46
- package/.output/server/node_modules/nanoid/package.json +0 -41
- package/.output/server/node_modules/nanoid/url-alphabet/index.js +0 -2
- package/.output/server/node_modules/pinia/dist/pinia.prod.cjs +0 -858
- package/.output/server/node_modules/pinia/package.json +0 -100
- package/.output/server/node_modules/source-map-js/lib/array-set.js +0 -121
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +0 -140
- package/.output/server/node_modules/source-map-js/lib/base64.js +0 -67
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +0 -111
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +0 -79
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +0 -132
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +0 -1188
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +0 -444
- package/.output/server/node_modules/source-map-js/lib/source-node.js +0 -413
- package/.output/server/node_modules/source-map-js/lib/util.js +0 -594
- package/.output/server/node_modules/source-map-js/package.json +0 -71
- package/.output/server/node_modules/source-map-js/source-map.js +0 -8
- package/.output/server/node_modules/ufo/dist/index.mjs +0 -630
- package/.output/server/node_modules/ufo/package.json +0 -47
- package/.output/server/node_modules/unhead/dist/index.mjs +0 -747
- package/.output/server/node_modules/unhead/package.json +0 -46
- package/.output/server/node_modules/vue/dist/vue.cjs.js +0 -80
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +0 -66
- package/.output/server/node_modules/vue/index.js +0 -7
- package/.output/server/node_modules/vue/index.mjs +0 -1
- package/.output/server/node_modules/vue/package.json +0 -112
- package/.output/server/node_modules/vue/server-renderer/index.mjs +0 -1
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +0 -196
- package/.output/server/node_modules/vue-bundle-renderer/package.json +0 -50
- package/.output/server/node_modules/vue-demi/lib/index.cjs +0 -29
- package/.output/server/node_modules/vue-demi/package.json +0 -47
- package/.output/server/node_modules/zod/lib/index.mjs +0 -4236
- package/.output/server/node_modules/zod/package.json +0 -119
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/Options.js +0 -31
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/Refs.js +0 -21
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +0 -14
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/index.js +0 -37
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/package.json +0 -1
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parseDef.js +0 -164
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +0 -3
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +0 -25
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +0 -49
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +0 -5
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +0 -4
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +0 -4
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +0 -46
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +0 -7
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +0 -6
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +0 -6
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +0 -52
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +0 -21
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +0 -25
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +0 -16
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +0 -5
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +0 -10
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +0 -33
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +0 -52
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +0 -45
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +0 -20
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +0 -20
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +0 -4
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +0 -4
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +0 -57
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +0 -20
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +0 -324
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +0 -32
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +0 -5
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +0 -80
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +0 -3
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +0 -59
- package/.output/server/node_modules/zod-to-json-schema/package.json +0 -89
- package/.output/server/package.json +0 -1
|
@@ -1,147 +0,0 @@
|
|
|
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 };
|
|
@@ -1,81 +0,0 @@
|
|
|
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 };
|
|
@@ -1,291 +0,0 @@
|
|
|
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 };
|
|
@@ -1,4 +0,0 @@
|
|
|
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';
|
|
@@ -1,53 +0,0 @@
|
|
|
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 };
|