@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,65 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
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 };
|
|
@@ -1,248 +0,0 @@
|
|
|
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 };
|
|
@@ -1,144 +0,0 @@
|
|
|
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 };
|