@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,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@iconify/vue",
|
|
3
|
+
"description": "Iconify icon component for Vue 3.",
|
|
4
|
+
"author": "Vjacheslav Trushkin",
|
|
5
|
+
"version": "4.1.2",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"bugs": "https://github.com/iconify/iconify/issues",
|
|
8
|
+
"homepage": "https://iconify.design/",
|
|
9
|
+
"funding": "https://github.com/sponsors/cyberalien",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/iconify/iconify.git",
|
|
13
|
+
"directory": "components/vue"
|
|
14
|
+
},
|
|
15
|
+
"main": "dist/iconify.js",
|
|
16
|
+
"module": "dist/iconify.mjs",
|
|
17
|
+
"types": "dist/iconify.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
"./*": "./*",
|
|
20
|
+
".": {
|
|
21
|
+
"import": "./dist/iconify.mjs",
|
|
22
|
+
"types": "./dist/iconify.d.ts",
|
|
23
|
+
"default": "./dist/iconify.js"
|
|
24
|
+
},
|
|
25
|
+
"./offline": {
|
|
26
|
+
"import": "./dist/offline.mjs",
|
|
27
|
+
"types": "./dist/offline.d.ts",
|
|
28
|
+
"default": "./dist/offline.js"
|
|
29
|
+
},
|
|
30
|
+
"./dist/offline": {
|
|
31
|
+
"import": "./dist/offline.mjs",
|
|
32
|
+
"types": "./dist/offline.d.ts",
|
|
33
|
+
"default": "./dist/offline.js"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@iconify/types": "^2.0.0"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@babel/preset-env": "^7.24.4",
|
|
41
|
+
"@microsoft/api-extractor": "^7.43.1",
|
|
42
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
43
|
+
"@types/jest": "^29.5.12",
|
|
44
|
+
"@vitejs/plugin-vue": "^4.6.2",
|
|
45
|
+
"@vue/test-utils": "^2.4.5",
|
|
46
|
+
"jsdom": "^21.1.2",
|
|
47
|
+
"rollup": "^3.29.4",
|
|
48
|
+
"typescript": "^5.4.5",
|
|
49
|
+
"vitest": "^0.29.8",
|
|
50
|
+
"vue": "^3.4.21",
|
|
51
|
+
"@iconify/core": "^2.0.2",
|
|
52
|
+
"@iconify/utils": "^2.1.23"
|
|
53
|
+
},
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"vue": ">=3"
|
|
56
|
+
},
|
|
57
|
+
"scripts": {
|
|
58
|
+
"build": "node build",
|
|
59
|
+
"build:lib": "tsc -b",
|
|
60
|
+
"build:dist": "rollup -c rollup.config.mjs",
|
|
61
|
+
"prebuild:api": "api-extractor run --local --verbose --config api-extractor.offline.json",
|
|
62
|
+
"build:api": "api-extractor run --local --verbose --config api-extractor.iconify.json",
|
|
63
|
+
"test": "vitest"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { getCauseFromUnknown } from '@trpc/server/shared';
|
|
2
|
+
import { i as isObject } from './transformResult-ace864b8.mjs';
|
|
3
|
+
|
|
4
|
+
function isTRPCClientError(cause) {
|
|
5
|
+
return cause instanceof TRPCClientError || /**
|
|
6
|
+
* @deprecated
|
|
7
|
+
* Delete in next major
|
|
8
|
+
*/ cause instanceof Error && cause.name === 'TRPCClientError';
|
|
9
|
+
}
|
|
10
|
+
function isTRPCErrorResponse(obj) {
|
|
11
|
+
return isObject(obj) && isObject(obj.error) && typeof obj.error.code === 'number' && typeof obj.error.message === 'string';
|
|
12
|
+
}
|
|
13
|
+
class TRPCClientError extends Error {
|
|
14
|
+
static from(_cause, opts = {}) {
|
|
15
|
+
const cause = _cause;
|
|
16
|
+
if (isTRPCClientError(cause)) {
|
|
17
|
+
if (opts.meta) {
|
|
18
|
+
// Decorate with meta error data
|
|
19
|
+
cause.meta = {
|
|
20
|
+
...cause.meta,
|
|
21
|
+
...opts.meta
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
return cause;
|
|
25
|
+
}
|
|
26
|
+
if (isTRPCErrorResponse(cause)) {
|
|
27
|
+
return new TRPCClientError(cause.error.message, {
|
|
28
|
+
...opts,
|
|
29
|
+
result: cause
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
if (!(cause instanceof Error)) {
|
|
33
|
+
return new TRPCClientError('Unknown error', {
|
|
34
|
+
...opts,
|
|
35
|
+
cause: cause
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
return new TRPCClientError(cause.message, {
|
|
39
|
+
...opts,
|
|
40
|
+
cause: getCauseFromUnknown(cause)
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
constructor(message, opts){
|
|
44
|
+
const cause = opts?.cause;
|
|
45
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
46
|
+
// @ts-ignore https://github.com/tc39/proposal-error-cause
|
|
47
|
+
super(message, {
|
|
48
|
+
cause
|
|
49
|
+
});
|
|
50
|
+
this.meta = opts?.meta;
|
|
51
|
+
this.cause = cause;
|
|
52
|
+
this.shape = opts?.result?.error;
|
|
53
|
+
this.data = opts?.result?.error.data;
|
|
54
|
+
this.name = 'TRPCClientError';
|
|
55
|
+
Object.setPrototypeOf(this, TRPCClientError.prototype);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export { TRPCClientError as T };
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { observable } from '@trpc/server/observable';
|
|
2
|
+
import { t as transformResult } from './transformResult-ace864b8.mjs';
|
|
3
|
+
import { T as TRPCClientError } from './TRPCClientError-38f9a32a.mjs';
|
|
4
|
+
import { r as resolveHTTPLinkOptions, g as getUrl, j as jsonHttpRequester } from './httpUtils-b9d0cb48.mjs';
|
|
5
|
+
|
|
6
|
+
/* eslint-disable @typescript-eslint/no-non-null-assertion */ /**
|
|
7
|
+
* A function that should never be called unless we messed something up.
|
|
8
|
+
*/ const throwFatalError = ()=>{
|
|
9
|
+
throw new Error('Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new');
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Dataloader that's very inspired by https://github.com/graphql/dataloader
|
|
13
|
+
* Less configuration, no caching, and allows you to cancel requests
|
|
14
|
+
* When cancelling a single fetch the whole batch will be cancelled only when _all_ items are cancelled
|
|
15
|
+
*/ function dataLoader(batchLoader) {
|
|
16
|
+
let pendingItems = null;
|
|
17
|
+
let dispatchTimer = null;
|
|
18
|
+
const destroyTimerAndPendingItems = ()=>{
|
|
19
|
+
clearTimeout(dispatchTimer);
|
|
20
|
+
dispatchTimer = null;
|
|
21
|
+
pendingItems = null;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Iterate through the items and split them into groups based on the `batchLoader`'s validate function
|
|
25
|
+
*/ function groupItems(items) {
|
|
26
|
+
const groupedItems = [
|
|
27
|
+
[]
|
|
28
|
+
];
|
|
29
|
+
let index = 0;
|
|
30
|
+
while(true){
|
|
31
|
+
const item = items[index];
|
|
32
|
+
if (!item) {
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
const lastGroup = groupedItems[groupedItems.length - 1];
|
|
36
|
+
if (item.aborted) {
|
|
37
|
+
// Item was aborted before it was dispatched
|
|
38
|
+
item.reject?.(new Error('Aborted'));
|
|
39
|
+
index++;
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
const isValid = batchLoader.validate(lastGroup.concat(item).map((it)=>it.key));
|
|
43
|
+
if (isValid) {
|
|
44
|
+
lastGroup.push(item);
|
|
45
|
+
index++;
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
if (lastGroup.length === 0) {
|
|
49
|
+
item.reject?.(new Error('Input is too big for a single dispatch'));
|
|
50
|
+
index++;
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
// Create new group, next iteration will try to add the item to that
|
|
54
|
+
groupedItems.push([]);
|
|
55
|
+
}
|
|
56
|
+
return groupedItems;
|
|
57
|
+
}
|
|
58
|
+
function dispatch() {
|
|
59
|
+
const groupedItems = groupItems(pendingItems);
|
|
60
|
+
destroyTimerAndPendingItems();
|
|
61
|
+
// Create batches for each group of items
|
|
62
|
+
for (const items of groupedItems){
|
|
63
|
+
if (!items.length) {
|
|
64
|
+
continue;
|
|
65
|
+
}
|
|
66
|
+
const batch = {
|
|
67
|
+
items,
|
|
68
|
+
cancel: throwFatalError
|
|
69
|
+
};
|
|
70
|
+
for (const item of items){
|
|
71
|
+
item.batch = batch;
|
|
72
|
+
}
|
|
73
|
+
const unitResolver = (index, value)=>{
|
|
74
|
+
const item = batch.items[index];
|
|
75
|
+
item.resolve?.(value);
|
|
76
|
+
item.batch = null;
|
|
77
|
+
item.reject = null;
|
|
78
|
+
item.resolve = null;
|
|
79
|
+
};
|
|
80
|
+
const { promise , cancel } = batchLoader.fetch(batch.items.map((_item)=>_item.key), unitResolver);
|
|
81
|
+
batch.cancel = cancel;
|
|
82
|
+
promise.then((result)=>{
|
|
83
|
+
for(let i = 0; i < result.length; i++){
|
|
84
|
+
const value = result[i];
|
|
85
|
+
unitResolver(i, value);
|
|
86
|
+
}
|
|
87
|
+
for (const item of batch.items){
|
|
88
|
+
item.reject?.(new Error('Missing result'));
|
|
89
|
+
item.batch = null;
|
|
90
|
+
}
|
|
91
|
+
}).catch((cause)=>{
|
|
92
|
+
for (const item of batch.items){
|
|
93
|
+
item.reject?.(cause);
|
|
94
|
+
item.batch = null;
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
function load(key) {
|
|
100
|
+
const item = {
|
|
101
|
+
aborted: false,
|
|
102
|
+
key,
|
|
103
|
+
batch: null,
|
|
104
|
+
resolve: throwFatalError,
|
|
105
|
+
reject: throwFatalError
|
|
106
|
+
};
|
|
107
|
+
const promise = new Promise((resolve, reject)=>{
|
|
108
|
+
item.reject = reject;
|
|
109
|
+
item.resolve = resolve;
|
|
110
|
+
if (!pendingItems) {
|
|
111
|
+
pendingItems = [];
|
|
112
|
+
}
|
|
113
|
+
pendingItems.push(item);
|
|
114
|
+
});
|
|
115
|
+
if (!dispatchTimer) {
|
|
116
|
+
dispatchTimer = setTimeout(dispatch);
|
|
117
|
+
}
|
|
118
|
+
const cancel = ()=>{
|
|
119
|
+
item.aborted = true;
|
|
120
|
+
if (item.batch?.items.every((item)=>item.aborted)) {
|
|
121
|
+
// All items in the batch have been cancelled
|
|
122
|
+
item.batch.cancel();
|
|
123
|
+
item.batch = null;
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
return {
|
|
127
|
+
promise,
|
|
128
|
+
cancel
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
return {
|
|
132
|
+
load
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* @internal
|
|
138
|
+
*/ function createHTTPBatchLink(requester) {
|
|
139
|
+
return function httpBatchLink(opts) {
|
|
140
|
+
const resolvedOpts = resolveHTTPLinkOptions(opts);
|
|
141
|
+
const maxURLLength = opts.maxURLLength ?? Infinity;
|
|
142
|
+
// initialized config
|
|
143
|
+
return (runtime)=>{
|
|
144
|
+
const batchLoader = (type)=>{
|
|
145
|
+
const validate = (batchOps)=>{
|
|
146
|
+
if (maxURLLength === Infinity) {
|
|
147
|
+
// escape hatch for quick calcs
|
|
148
|
+
return true;
|
|
149
|
+
}
|
|
150
|
+
const path = batchOps.map((op)=>op.path).join(',');
|
|
151
|
+
const inputs = batchOps.map((op)=>op.input);
|
|
152
|
+
const url = getUrl({
|
|
153
|
+
...resolvedOpts,
|
|
154
|
+
runtime,
|
|
155
|
+
type,
|
|
156
|
+
path,
|
|
157
|
+
inputs
|
|
158
|
+
});
|
|
159
|
+
return url.length <= maxURLLength;
|
|
160
|
+
};
|
|
161
|
+
const fetch = requester({
|
|
162
|
+
...resolvedOpts,
|
|
163
|
+
runtime,
|
|
164
|
+
type,
|
|
165
|
+
opts
|
|
166
|
+
});
|
|
167
|
+
return {
|
|
168
|
+
validate,
|
|
169
|
+
fetch
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
const query = dataLoader(batchLoader('query'));
|
|
173
|
+
const mutation = dataLoader(batchLoader('mutation'));
|
|
174
|
+
const subscription = dataLoader(batchLoader('subscription'));
|
|
175
|
+
const loaders = {
|
|
176
|
+
query,
|
|
177
|
+
subscription,
|
|
178
|
+
mutation
|
|
179
|
+
};
|
|
180
|
+
return ({ op })=>{
|
|
181
|
+
return observable((observer)=>{
|
|
182
|
+
const loader = loaders[op.type];
|
|
183
|
+
const { promise , cancel } = loader.load(op);
|
|
184
|
+
let _res = undefined;
|
|
185
|
+
promise.then((res)=>{
|
|
186
|
+
_res = res;
|
|
187
|
+
const transformed = transformResult(res.json, runtime);
|
|
188
|
+
if (!transformed.ok) {
|
|
189
|
+
observer.error(TRPCClientError.from(transformed.error, {
|
|
190
|
+
meta: res.meta
|
|
191
|
+
}));
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
observer.next({
|
|
195
|
+
context: res.meta,
|
|
196
|
+
result: transformed.result
|
|
197
|
+
});
|
|
198
|
+
observer.complete();
|
|
199
|
+
}).catch((err)=>{
|
|
200
|
+
observer.error(TRPCClientError.from(err, {
|
|
201
|
+
meta: _res?.meta
|
|
202
|
+
}));
|
|
203
|
+
});
|
|
204
|
+
return ()=>{
|
|
205
|
+
cancel();
|
|
206
|
+
};
|
|
207
|
+
});
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
const batchRequester = (requesterOpts)=>{
|
|
214
|
+
return (batchOps)=>{
|
|
215
|
+
const path = batchOps.map((op)=>op.path).join(',');
|
|
216
|
+
const inputs = batchOps.map((op)=>op.input);
|
|
217
|
+
const { promise , cancel } = jsonHttpRequester({
|
|
218
|
+
...requesterOpts,
|
|
219
|
+
path,
|
|
220
|
+
inputs,
|
|
221
|
+
headers () {
|
|
222
|
+
if (!requesterOpts.opts.headers) {
|
|
223
|
+
return {};
|
|
224
|
+
}
|
|
225
|
+
if (typeof requesterOpts.opts.headers === 'function') {
|
|
226
|
+
return requesterOpts.opts.headers({
|
|
227
|
+
opList: batchOps
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
return requesterOpts.opts.headers;
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
return {
|
|
234
|
+
promise: promise.then((res)=>{
|
|
235
|
+
const resJSON = Array.isArray(res.json) ? res.json : batchOps.map(()=>res.json);
|
|
236
|
+
const result = resJSON.map((item)=>({
|
|
237
|
+
meta: res.meta,
|
|
238
|
+
json: item
|
|
239
|
+
}));
|
|
240
|
+
return result;
|
|
241
|
+
}),
|
|
242
|
+
cancel
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
const httpBatchLink = createHTTPBatchLink(batchRequester);
|
|
247
|
+
|
|
248
|
+
export { createHTTPBatchLink as c, httpBatchLink as h };
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { T as TRPCClientError } from './TRPCClientError-38f9a32a.mjs';
|
|
2
|
+
|
|
3
|
+
const isFunction = (fn)=>typeof fn === 'function';
|
|
4
|
+
function getFetch(customFetchImpl) {
|
|
5
|
+
if (customFetchImpl) {
|
|
6
|
+
return customFetchImpl;
|
|
7
|
+
}
|
|
8
|
+
if (typeof window !== 'undefined' && isFunction(window.fetch)) {
|
|
9
|
+
return window.fetch;
|
|
10
|
+
}
|
|
11
|
+
if (typeof globalThis !== 'undefined' && isFunction(globalThis.fetch)) {
|
|
12
|
+
return globalThis.fetch;
|
|
13
|
+
}
|
|
14
|
+
throw new Error('No fetch implementation found');
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function getAbortController(customAbortControllerImpl) {
|
|
18
|
+
if (customAbortControllerImpl) {
|
|
19
|
+
return customAbortControllerImpl;
|
|
20
|
+
}
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
22
|
+
if (typeof window !== 'undefined' && window.AbortController) {
|
|
23
|
+
return window.AbortController;
|
|
24
|
+
}
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
26
|
+
if (typeof globalThis !== 'undefined' && globalThis.AbortController) {
|
|
27
|
+
return globalThis.AbortController;
|
|
28
|
+
}
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function resolveHTTPLinkOptions(opts) {
|
|
33
|
+
return {
|
|
34
|
+
url: opts.url.toString().replace(/\/$/, ''),
|
|
35
|
+
fetch: opts.fetch,
|
|
36
|
+
AbortController: getAbortController(opts.AbortController)
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
// https://github.com/trpc/trpc/pull/669
|
|
40
|
+
function arrayToDict(array) {
|
|
41
|
+
const dict = {};
|
|
42
|
+
for(let index = 0; index < array.length; index++){
|
|
43
|
+
const element = array[index];
|
|
44
|
+
dict[index] = element;
|
|
45
|
+
}
|
|
46
|
+
return dict;
|
|
47
|
+
}
|
|
48
|
+
const METHOD = {
|
|
49
|
+
query: 'GET',
|
|
50
|
+
mutation: 'POST'
|
|
51
|
+
};
|
|
52
|
+
function getInput(opts) {
|
|
53
|
+
return 'input' in opts ? opts.runtime.transformer.serialize(opts.input) : arrayToDict(opts.inputs.map((_input)=>opts.runtime.transformer.serialize(_input)));
|
|
54
|
+
}
|
|
55
|
+
const getUrl = (opts)=>{
|
|
56
|
+
let url = opts.url + '/' + opts.path;
|
|
57
|
+
const queryParts = [];
|
|
58
|
+
if ('inputs' in opts) {
|
|
59
|
+
queryParts.push('batch=1');
|
|
60
|
+
}
|
|
61
|
+
if (opts.type === 'query') {
|
|
62
|
+
const input = getInput(opts);
|
|
63
|
+
if (input !== undefined) {
|
|
64
|
+
queryParts.push(`input=${encodeURIComponent(JSON.stringify(input))}`);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
if (queryParts.length) {
|
|
68
|
+
url += '?' + queryParts.join('&');
|
|
69
|
+
}
|
|
70
|
+
return url;
|
|
71
|
+
};
|
|
72
|
+
const getBody = (opts)=>{
|
|
73
|
+
if (opts.type === 'query') {
|
|
74
|
+
return undefined;
|
|
75
|
+
}
|
|
76
|
+
const input = getInput(opts);
|
|
77
|
+
return input !== undefined ? JSON.stringify(input) : undefined;
|
|
78
|
+
};
|
|
79
|
+
const jsonHttpRequester = (opts)=>{
|
|
80
|
+
return httpRequest({
|
|
81
|
+
...opts,
|
|
82
|
+
contentTypeHeader: 'application/json',
|
|
83
|
+
getUrl,
|
|
84
|
+
getBody
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
async function fetchHTTPResponse(opts, ac) {
|
|
88
|
+
const url = opts.getUrl(opts);
|
|
89
|
+
const body = opts.getBody(opts);
|
|
90
|
+
const { type } = opts;
|
|
91
|
+
const resolvedHeaders = await opts.headers();
|
|
92
|
+
/* istanbul ignore if -- @preserve */ if (type === 'subscription') {
|
|
93
|
+
throw new Error('Subscriptions should use wsLink');
|
|
94
|
+
}
|
|
95
|
+
const headers = {
|
|
96
|
+
...opts.contentTypeHeader ? {
|
|
97
|
+
'content-type': opts.contentTypeHeader
|
|
98
|
+
} : {},
|
|
99
|
+
...opts.batchModeHeader ? {
|
|
100
|
+
'trpc-batch-mode': opts.batchModeHeader
|
|
101
|
+
} : {},
|
|
102
|
+
...resolvedHeaders
|
|
103
|
+
};
|
|
104
|
+
return getFetch(opts.fetch)(url, {
|
|
105
|
+
method: METHOD[type],
|
|
106
|
+
signal: ac?.signal,
|
|
107
|
+
body: body,
|
|
108
|
+
headers
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
function httpRequest(opts) {
|
|
112
|
+
const ac = opts.AbortController ? new opts.AbortController() : null;
|
|
113
|
+
const meta = {};
|
|
114
|
+
let done = false;
|
|
115
|
+
const promise = new Promise((resolve, reject)=>{
|
|
116
|
+
fetchHTTPResponse(opts, ac).then((_res)=>{
|
|
117
|
+
meta.response = _res;
|
|
118
|
+
done = true;
|
|
119
|
+
return _res.json();
|
|
120
|
+
}).then((json)=>{
|
|
121
|
+
meta.responseJSON = json;
|
|
122
|
+
resolve({
|
|
123
|
+
json: json,
|
|
124
|
+
meta
|
|
125
|
+
});
|
|
126
|
+
}).catch((err)=>{
|
|
127
|
+
done = true;
|
|
128
|
+
reject(TRPCClientError.from(err, {
|
|
129
|
+
meta
|
|
130
|
+
}));
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
const cancel = ()=>{
|
|
134
|
+
if (!done) {
|
|
135
|
+
ac?.abort();
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
return {
|
|
139
|
+
promise,
|
|
140
|
+
cancel
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export { getBody as a, getFetch as b, fetchHTTPResponse as f, getUrl as g, httpRequest as h, jsonHttpRequester as j, resolveHTTPLinkOptions as r };
|