@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,16 +0,0 @@
|
|
|
1
|
-
export function parseNativeEnumDef(def) {
|
|
2
|
-
const object = def.values;
|
|
3
|
-
const actualKeys = Object.keys(def.values).filter((key) => {
|
|
4
|
-
return typeof object[object[key]] !== "number";
|
|
5
|
-
});
|
|
6
|
-
const actualValues = actualKeys.map((key) => object[key]);
|
|
7
|
-
const parsedTypes = Array.from(new Set(actualValues.map((values) => typeof values)));
|
|
8
|
-
return {
|
|
9
|
-
type: parsedTypes.length === 1
|
|
10
|
-
? parsedTypes[0] === "string"
|
|
11
|
-
? "string"
|
|
12
|
-
: "number"
|
|
13
|
-
: ["string", "number"],
|
|
14
|
-
enum: actualValues,
|
|
15
|
-
};
|
|
16
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { parseDef } from "../parseDef.js";
|
|
2
|
-
import { primitiveMappings } from "./union.js";
|
|
3
|
-
export function parseNullableDef(def, refs) {
|
|
4
|
-
if (["ZodString", "ZodNumber", "ZodBigInt", "ZodBoolean", "ZodNull"].includes(def.innerType._def.typeName) &&
|
|
5
|
-
(!def.innerType._def.checks || !def.innerType._def.checks.length)) {
|
|
6
|
-
if (refs.target === "openApi3") {
|
|
7
|
-
return {
|
|
8
|
-
type: primitiveMappings[def.innerType._def.typeName],
|
|
9
|
-
nullable: true,
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
return {
|
|
13
|
-
type: [
|
|
14
|
-
primitiveMappings[def.innerType._def.typeName],
|
|
15
|
-
"null",
|
|
16
|
-
],
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
if (refs.target === "openApi3") {
|
|
20
|
-
const base = parseDef(def.innerType._def, {
|
|
21
|
-
...refs,
|
|
22
|
-
currentPath: [...refs.currentPath],
|
|
23
|
-
});
|
|
24
|
-
if (base && '$ref' in base)
|
|
25
|
-
return { allOf: [base], nullable: true };
|
|
26
|
-
return base && { ...base, nullable: true };
|
|
27
|
-
}
|
|
28
|
-
const base = parseDef(def.innerType._def, {
|
|
29
|
-
...refs,
|
|
30
|
-
currentPath: [...refs.currentPath, "anyOf", "0"],
|
|
31
|
-
});
|
|
32
|
-
return base && { anyOf: [base, { type: "null" }] };
|
|
33
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { addErrorMessage, setResponseValueAndErrors, } from "../errorMessages.js";
|
|
2
|
-
export function parseNumberDef(def, refs) {
|
|
3
|
-
const res = {
|
|
4
|
-
type: "number",
|
|
5
|
-
};
|
|
6
|
-
if (!def.checks)
|
|
7
|
-
return res;
|
|
8
|
-
for (const check of def.checks) {
|
|
9
|
-
switch (check.kind) {
|
|
10
|
-
case "int":
|
|
11
|
-
res.type = "integer";
|
|
12
|
-
addErrorMessage(res, "type", check.message, refs);
|
|
13
|
-
break;
|
|
14
|
-
case "min":
|
|
15
|
-
if (refs.target === "jsonSchema7") {
|
|
16
|
-
if (check.inclusive) {
|
|
17
|
-
setResponseValueAndErrors(res, "minimum", check.value, check.message, refs);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
setResponseValueAndErrors(res, "exclusiveMinimum", check.value, check.message, refs);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
if (!check.inclusive) {
|
|
25
|
-
res.exclusiveMinimum = true;
|
|
26
|
-
}
|
|
27
|
-
setResponseValueAndErrors(res, "minimum", check.value, check.message, refs);
|
|
28
|
-
}
|
|
29
|
-
break;
|
|
30
|
-
case "max":
|
|
31
|
-
if (refs.target === "jsonSchema7") {
|
|
32
|
-
if (check.inclusive) {
|
|
33
|
-
setResponseValueAndErrors(res, "maximum", check.value, check.message, refs);
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
setResponseValueAndErrors(res, "exclusiveMaximum", check.value, check.message, refs);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
if (!check.inclusive) {
|
|
41
|
-
res.exclusiveMaximum = true;
|
|
42
|
-
}
|
|
43
|
-
setResponseValueAndErrors(res, "maximum", check.value, check.message, refs);
|
|
44
|
-
}
|
|
45
|
-
break;
|
|
46
|
-
case "multipleOf":
|
|
47
|
-
setResponseValueAndErrors(res, "multipleOf", check.value, check.message, refs);
|
|
48
|
-
break;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
return res;
|
|
52
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { parseDef } from "../parseDef.js";
|
|
2
|
-
function decideAdditionalProperties(def, refs) {
|
|
3
|
-
if (refs.removeAdditionalStrategy === "strict") {
|
|
4
|
-
return def.catchall._def.typeName === "ZodNever"
|
|
5
|
-
? def.unknownKeys !== "strict"
|
|
6
|
-
: parseDef(def.catchall._def, {
|
|
7
|
-
...refs,
|
|
8
|
-
currentPath: [...refs.currentPath, "additionalProperties"],
|
|
9
|
-
}) ?? true;
|
|
10
|
-
}
|
|
11
|
-
else {
|
|
12
|
-
return def.catchall._def.typeName === "ZodNever"
|
|
13
|
-
? def.unknownKeys === "passthrough"
|
|
14
|
-
: parseDef(def.catchall._def, {
|
|
15
|
-
...refs,
|
|
16
|
-
currentPath: [...refs.currentPath, "additionalProperties"],
|
|
17
|
-
}) ?? true;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
export function parseObjectDef(def, refs) {
|
|
21
|
-
const result = {
|
|
22
|
-
type: "object",
|
|
23
|
-
...Object.entries(def.shape()).reduce((acc, [propName, propDef]) => {
|
|
24
|
-
if (propDef === undefined || propDef._def === undefined)
|
|
25
|
-
return acc;
|
|
26
|
-
const parsedDef = parseDef(propDef._def, {
|
|
27
|
-
...refs,
|
|
28
|
-
currentPath: [...refs.currentPath, "properties", propName],
|
|
29
|
-
propertyPath: [...refs.currentPath, "properties", propName],
|
|
30
|
-
});
|
|
31
|
-
if (parsedDef === undefined)
|
|
32
|
-
return acc;
|
|
33
|
-
return {
|
|
34
|
-
properties: { ...acc.properties, [propName]: parsedDef },
|
|
35
|
-
required: propDef.isOptional()
|
|
36
|
-
? acc.required
|
|
37
|
-
: [...acc.required, propName],
|
|
38
|
-
};
|
|
39
|
-
}, { properties: {}, required: [] }),
|
|
40
|
-
additionalProperties: decideAdditionalProperties(def, refs),
|
|
41
|
-
};
|
|
42
|
-
if (!result.required.length)
|
|
43
|
-
delete result.required;
|
|
44
|
-
return result;
|
|
45
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { parseDef } from "../parseDef.js";
|
|
2
|
-
export const parseOptionalDef = (def, refs) => {
|
|
3
|
-
if (refs.currentPath.toString() === refs.propertyPath?.toString()) {
|
|
4
|
-
return parseDef(def.innerType._def, refs);
|
|
5
|
-
}
|
|
6
|
-
const innerSchema = parseDef(def.innerType._def, {
|
|
7
|
-
...refs,
|
|
8
|
-
currentPath: [...refs.currentPath, "anyOf", "1"],
|
|
9
|
-
});
|
|
10
|
-
return innerSchema
|
|
11
|
-
? {
|
|
12
|
-
anyOf: [
|
|
13
|
-
{
|
|
14
|
-
not: {},
|
|
15
|
-
},
|
|
16
|
-
innerSchema,
|
|
17
|
-
],
|
|
18
|
-
}
|
|
19
|
-
: {};
|
|
20
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { parseDef } from "../parseDef.js";
|
|
2
|
-
export const parsePipelineDef = (def, refs) => {
|
|
3
|
-
if (refs.pipeStrategy === "input") {
|
|
4
|
-
return parseDef(def.in._def, refs);
|
|
5
|
-
}
|
|
6
|
-
else if (refs.pipeStrategy === "output") {
|
|
7
|
-
return parseDef(def.out._def, refs);
|
|
8
|
-
}
|
|
9
|
-
const a = parseDef(def.in._def, {
|
|
10
|
-
...refs,
|
|
11
|
-
currentPath: [...refs.currentPath, "allOf", "0"],
|
|
12
|
-
});
|
|
13
|
-
const b = parseDef(def.out._def, {
|
|
14
|
-
...refs,
|
|
15
|
-
currentPath: [...refs.currentPath, "allOf", a ? "1" : "0"],
|
|
16
|
-
});
|
|
17
|
-
return {
|
|
18
|
-
allOf: [a, b].filter((x) => x !== undefined),
|
|
19
|
-
};
|
|
20
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { ZodFirstPartyTypeKind, } from "zod";
|
|
2
|
-
import { parseDef } from "../parseDef.js";
|
|
3
|
-
import { parseStringDef } from "./string.js";
|
|
4
|
-
import { parseBrandedDef } from "./branded.js";
|
|
5
|
-
export function parseRecordDef(def, refs) {
|
|
6
|
-
if (refs.target === "openApi3" &&
|
|
7
|
-
def.keyType?._def.typeName === ZodFirstPartyTypeKind.ZodEnum) {
|
|
8
|
-
return {
|
|
9
|
-
type: "object",
|
|
10
|
-
required: def.keyType._def.values,
|
|
11
|
-
properties: def.keyType._def.values.reduce((acc, key) => ({
|
|
12
|
-
...acc,
|
|
13
|
-
[key]: parseDef(def.valueType._def, {
|
|
14
|
-
...refs,
|
|
15
|
-
currentPath: [...refs.currentPath, "properties", key],
|
|
16
|
-
}) ?? {},
|
|
17
|
-
}), {}),
|
|
18
|
-
additionalProperties: false,
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
const schema = {
|
|
22
|
-
type: "object",
|
|
23
|
-
additionalProperties: parseDef(def.valueType._def, {
|
|
24
|
-
...refs,
|
|
25
|
-
currentPath: [...refs.currentPath, "additionalProperties"],
|
|
26
|
-
}) ?? {},
|
|
27
|
-
};
|
|
28
|
-
if (refs.target === "openApi3") {
|
|
29
|
-
return schema;
|
|
30
|
-
}
|
|
31
|
-
if (def.keyType?._def.typeName === ZodFirstPartyTypeKind.ZodString &&
|
|
32
|
-
def.keyType._def.checks?.length) {
|
|
33
|
-
const { type, ...keyType } = parseStringDef(def.keyType._def, refs);
|
|
34
|
-
return {
|
|
35
|
-
...schema,
|
|
36
|
-
propertyNames: keyType,
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
else if (def.keyType?._def.typeName === ZodFirstPartyTypeKind.ZodEnum) {
|
|
40
|
-
return {
|
|
41
|
-
...schema,
|
|
42
|
-
propertyNames: {
|
|
43
|
-
enum: def.keyType._def.values,
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
else if (def.keyType?._def.typeName === ZodFirstPartyTypeKind.ZodBranded &&
|
|
48
|
-
def.keyType._def.type._def.typeName === ZodFirstPartyTypeKind.ZodString &&
|
|
49
|
-
def.keyType._def.type._def.checks?.length) {
|
|
50
|
-
const { type, ...keyType } = parseBrandedDef(def.keyType._def, refs);
|
|
51
|
-
return {
|
|
52
|
-
...schema,
|
|
53
|
-
propertyNames: keyType,
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
return schema;
|
|
57
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { setResponseValueAndErrors } from "../errorMessages.js";
|
|
2
|
-
import { parseDef } from "../parseDef.js";
|
|
3
|
-
export function parseSetDef(def, refs) {
|
|
4
|
-
const items = parseDef(def.valueType._def, {
|
|
5
|
-
...refs,
|
|
6
|
-
currentPath: [...refs.currentPath, "items"],
|
|
7
|
-
});
|
|
8
|
-
const schema = {
|
|
9
|
-
type: "array",
|
|
10
|
-
uniqueItems: true,
|
|
11
|
-
items,
|
|
12
|
-
};
|
|
13
|
-
if (def.minSize) {
|
|
14
|
-
setResponseValueAndErrors(schema, "minItems", def.minSize.value, def.minSize.message, refs);
|
|
15
|
-
}
|
|
16
|
-
if (def.maxSize) {
|
|
17
|
-
setResponseValueAndErrors(schema, "maxItems", def.maxSize.value, def.maxSize.message, refs);
|
|
18
|
-
}
|
|
19
|
-
return schema;
|
|
20
|
-
}
|
|
@@ -1,324 +0,0 @@
|
|
|
1
|
-
import { setResponseValueAndErrors } from "../errorMessages.js";
|
|
2
|
-
let emojiRegex;
|
|
3
|
-
/**
|
|
4
|
-
* Generated from the regular expressions found here as of 2024-05-22:
|
|
5
|
-
* https://github.com/colinhacks/zod/blob/master/src/types.ts.
|
|
6
|
-
*
|
|
7
|
-
* Expressions with /i flag have been changed accordingly.
|
|
8
|
-
*/
|
|
9
|
-
export const zodPatterns = {
|
|
10
|
-
/**
|
|
11
|
-
* `c` was changed to `[cC]` to replicate /i flag
|
|
12
|
-
*/
|
|
13
|
-
cuid: /^[cC][^\s-]{8,}$/,
|
|
14
|
-
cuid2: /^[0-9a-z]+$/,
|
|
15
|
-
ulid: /^[0-9A-HJKMNP-TV-Z]{26}$/,
|
|
16
|
-
/**
|
|
17
|
-
* `a-z` was added to replicate /i flag
|
|
18
|
-
*/
|
|
19
|
-
email: /^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,
|
|
20
|
-
/**
|
|
21
|
-
* Constructed a valid Unicode RegExp
|
|
22
|
-
*
|
|
23
|
-
* Lazily instantiate since this type of regex isn't supported
|
|
24
|
-
* in all envs (e.g. React Native).
|
|
25
|
-
*
|
|
26
|
-
* See:
|
|
27
|
-
* https://github.com/colinhacks/zod/issues/2433
|
|
28
|
-
* Fix in Zod:
|
|
29
|
-
* https://github.com/colinhacks/zod/commit/9340fd51e48576a75adc919bff65dbc4a5d4c99b
|
|
30
|
-
*/
|
|
31
|
-
emoji: () => {
|
|
32
|
-
if (emojiRegex === undefined) {
|
|
33
|
-
emojiRegex = RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$", "u");
|
|
34
|
-
}
|
|
35
|
-
return emojiRegex;
|
|
36
|
-
},
|
|
37
|
-
/**
|
|
38
|
-
* Unused
|
|
39
|
-
*/
|
|
40
|
-
uuid: /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,
|
|
41
|
-
/**
|
|
42
|
-
* Unused
|
|
43
|
-
*/
|
|
44
|
-
ipv4: /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,
|
|
45
|
-
/**
|
|
46
|
-
* Unused
|
|
47
|
-
*/
|
|
48
|
-
ipv6: /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,
|
|
49
|
-
base64: /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,
|
|
50
|
-
nanoid: /^[a-zA-Z0-9_-]{21}$/,
|
|
51
|
-
};
|
|
52
|
-
export function parseStringDef(def, refs) {
|
|
53
|
-
const res = {
|
|
54
|
-
type: "string",
|
|
55
|
-
};
|
|
56
|
-
function processPattern(value) {
|
|
57
|
-
return refs.patternStrategy === "escape"
|
|
58
|
-
? escapeNonAlphaNumeric(value)
|
|
59
|
-
: value;
|
|
60
|
-
}
|
|
61
|
-
if (def.checks) {
|
|
62
|
-
for (const check of def.checks) {
|
|
63
|
-
switch (check.kind) {
|
|
64
|
-
case "min":
|
|
65
|
-
setResponseValueAndErrors(res, "minLength", typeof res.minLength === "number"
|
|
66
|
-
? Math.max(res.minLength, check.value)
|
|
67
|
-
: check.value, check.message, refs);
|
|
68
|
-
break;
|
|
69
|
-
case "max":
|
|
70
|
-
setResponseValueAndErrors(res, "maxLength", typeof res.maxLength === "number"
|
|
71
|
-
? Math.min(res.maxLength, check.value)
|
|
72
|
-
: check.value, check.message, refs);
|
|
73
|
-
break;
|
|
74
|
-
case "email":
|
|
75
|
-
switch (refs.emailStrategy) {
|
|
76
|
-
case "format:email":
|
|
77
|
-
addFormat(res, "email", check.message, refs);
|
|
78
|
-
break;
|
|
79
|
-
case "format:idn-email":
|
|
80
|
-
addFormat(res, "idn-email", check.message, refs);
|
|
81
|
-
break;
|
|
82
|
-
case "pattern:zod":
|
|
83
|
-
addPattern(res, zodPatterns.email, check.message, refs);
|
|
84
|
-
break;
|
|
85
|
-
}
|
|
86
|
-
break;
|
|
87
|
-
case "url":
|
|
88
|
-
addFormat(res, "uri", check.message, refs);
|
|
89
|
-
break;
|
|
90
|
-
case "uuid":
|
|
91
|
-
addFormat(res, "uuid", check.message, refs);
|
|
92
|
-
break;
|
|
93
|
-
case "regex":
|
|
94
|
-
addPattern(res, check.regex, check.message, refs);
|
|
95
|
-
break;
|
|
96
|
-
case "cuid":
|
|
97
|
-
addPattern(res, zodPatterns.cuid, check.message, refs);
|
|
98
|
-
break;
|
|
99
|
-
case "cuid2":
|
|
100
|
-
addPattern(res, zodPatterns.cuid2, check.message, refs);
|
|
101
|
-
break;
|
|
102
|
-
case "startsWith":
|
|
103
|
-
addPattern(res, RegExp(`^${processPattern(check.value)}`), check.message, refs);
|
|
104
|
-
break;
|
|
105
|
-
case "endsWith":
|
|
106
|
-
addPattern(res, RegExp(`${processPattern(check.value)}$`), check.message, refs);
|
|
107
|
-
break;
|
|
108
|
-
case "datetime":
|
|
109
|
-
addFormat(res, "date-time", check.message, refs);
|
|
110
|
-
break;
|
|
111
|
-
case "date":
|
|
112
|
-
addFormat(res, "date", check.message, refs);
|
|
113
|
-
break;
|
|
114
|
-
case "time":
|
|
115
|
-
addFormat(res, "time", check.message, refs);
|
|
116
|
-
break;
|
|
117
|
-
case "duration":
|
|
118
|
-
addFormat(res, "duration", check.message, refs);
|
|
119
|
-
break;
|
|
120
|
-
case "length":
|
|
121
|
-
setResponseValueAndErrors(res, "minLength", typeof res.minLength === "number"
|
|
122
|
-
? Math.max(res.minLength, check.value)
|
|
123
|
-
: check.value, check.message, refs);
|
|
124
|
-
setResponseValueAndErrors(res, "maxLength", typeof res.maxLength === "number"
|
|
125
|
-
? Math.min(res.maxLength, check.value)
|
|
126
|
-
: check.value, check.message, refs);
|
|
127
|
-
break;
|
|
128
|
-
case "includes": {
|
|
129
|
-
addPattern(res, RegExp(processPattern(check.value)), check.message, refs);
|
|
130
|
-
break;
|
|
131
|
-
}
|
|
132
|
-
case "ip": {
|
|
133
|
-
if (check.version !== "v6") {
|
|
134
|
-
addFormat(res, "ipv4", check.message, refs);
|
|
135
|
-
}
|
|
136
|
-
if (check.version !== "v4") {
|
|
137
|
-
addFormat(res, "ipv6", check.message, refs);
|
|
138
|
-
}
|
|
139
|
-
break;
|
|
140
|
-
}
|
|
141
|
-
case "emoji":
|
|
142
|
-
addPattern(res, zodPatterns.emoji, check.message, refs);
|
|
143
|
-
break;
|
|
144
|
-
case "ulid": {
|
|
145
|
-
addPattern(res, zodPatterns.ulid, check.message, refs);
|
|
146
|
-
break;
|
|
147
|
-
}
|
|
148
|
-
case "base64": {
|
|
149
|
-
switch (refs.base64Strategy) {
|
|
150
|
-
case "format:binary": {
|
|
151
|
-
addFormat(res, "binary", check.message, refs);
|
|
152
|
-
break;
|
|
153
|
-
}
|
|
154
|
-
case "contentEncoding:base64": {
|
|
155
|
-
setResponseValueAndErrors(res, "contentEncoding", "base64", check.message, refs);
|
|
156
|
-
break;
|
|
157
|
-
}
|
|
158
|
-
case "pattern:zod": {
|
|
159
|
-
addPattern(res, zodPatterns.base64, check.message, refs);
|
|
160
|
-
break;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
break;
|
|
164
|
-
}
|
|
165
|
-
case "nanoid": {
|
|
166
|
-
addPattern(res, zodPatterns.nanoid, check.message, refs);
|
|
167
|
-
}
|
|
168
|
-
case "toLowerCase":
|
|
169
|
-
case "toUpperCase":
|
|
170
|
-
case "trim":
|
|
171
|
-
break;
|
|
172
|
-
default:
|
|
173
|
-
/* c8 ignore next */
|
|
174
|
-
((_) => { })(check);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
return res;
|
|
179
|
-
}
|
|
180
|
-
const escapeNonAlphaNumeric = (value) => Array.from(value)
|
|
181
|
-
.map((c) => (/[a-zA-Z0-9]/.test(c) ? c : `\\${c}`))
|
|
182
|
-
.join("");
|
|
183
|
-
const addFormat = (schema, value, message, refs) => {
|
|
184
|
-
if (schema.format || schema.anyOf?.some((x) => x.format)) {
|
|
185
|
-
if (!schema.anyOf) {
|
|
186
|
-
schema.anyOf = [];
|
|
187
|
-
}
|
|
188
|
-
if (schema.format) {
|
|
189
|
-
schema.anyOf.push({
|
|
190
|
-
format: schema.format,
|
|
191
|
-
...(schema.errorMessage &&
|
|
192
|
-
refs.errorMessages && {
|
|
193
|
-
errorMessage: { format: schema.errorMessage.format },
|
|
194
|
-
}),
|
|
195
|
-
});
|
|
196
|
-
delete schema.format;
|
|
197
|
-
if (schema.errorMessage) {
|
|
198
|
-
delete schema.errorMessage.format;
|
|
199
|
-
if (Object.keys(schema.errorMessage).length === 0) {
|
|
200
|
-
delete schema.errorMessage;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
schema.anyOf.push({
|
|
205
|
-
format: value,
|
|
206
|
-
...(message &&
|
|
207
|
-
refs.errorMessages && { errorMessage: { format: message } }),
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
else {
|
|
211
|
-
setResponseValueAndErrors(schema, "format", value, message, refs);
|
|
212
|
-
}
|
|
213
|
-
};
|
|
214
|
-
const addPattern = (schema, regex, message, refs) => {
|
|
215
|
-
if (schema.pattern || schema.allOf?.some((x) => x.pattern)) {
|
|
216
|
-
if (!schema.allOf) {
|
|
217
|
-
schema.allOf = [];
|
|
218
|
-
}
|
|
219
|
-
if (schema.pattern) {
|
|
220
|
-
schema.allOf.push({
|
|
221
|
-
pattern: schema.pattern,
|
|
222
|
-
...(schema.errorMessage &&
|
|
223
|
-
refs.errorMessages && {
|
|
224
|
-
errorMessage: { pattern: schema.errorMessage.pattern },
|
|
225
|
-
}),
|
|
226
|
-
});
|
|
227
|
-
delete schema.pattern;
|
|
228
|
-
if (schema.errorMessage) {
|
|
229
|
-
delete schema.errorMessage.pattern;
|
|
230
|
-
if (Object.keys(schema.errorMessage).length === 0) {
|
|
231
|
-
delete schema.errorMessage;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
schema.allOf.push({
|
|
236
|
-
pattern: processRegExp(regex, refs),
|
|
237
|
-
...(message &&
|
|
238
|
-
refs.errorMessages && { errorMessage: { pattern: message } }),
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
else {
|
|
242
|
-
setResponseValueAndErrors(schema, "pattern", processRegExp(regex, refs), message, refs);
|
|
243
|
-
}
|
|
244
|
-
};
|
|
245
|
-
// Mutate z.string.regex() in a best attempt to accommodate for regex flags when applyRegexFlags is true
|
|
246
|
-
const processRegExp = (regexOrFunction, refs) => {
|
|
247
|
-
const regex = typeof regexOrFunction === "function" ? regexOrFunction() : regexOrFunction;
|
|
248
|
-
if (!refs.applyRegexFlags || !regex.flags)
|
|
249
|
-
return regex.source;
|
|
250
|
-
// Currently handled flags
|
|
251
|
-
const flags = {
|
|
252
|
-
i: regex.flags.includes("i"),
|
|
253
|
-
m: regex.flags.includes("m"),
|
|
254
|
-
s: regex.flags.includes("s"), // `.` matches newlines
|
|
255
|
-
};
|
|
256
|
-
// The general principle here is to step through each character, one at a time, applying mutations as flags require. We keep track when the current character is escaped, and when it's inside a group /like [this]/ or (also) a range like /[a-z]/. The following is fairly brittle imperative code; edit at your peril!
|
|
257
|
-
const source = flags.i ? regex.source.toLowerCase() : regex.source;
|
|
258
|
-
let pattern = "";
|
|
259
|
-
let isEscaped = false;
|
|
260
|
-
let inCharGroup = false;
|
|
261
|
-
let inCharRange = false;
|
|
262
|
-
for (let i = 0; i < source.length; i++) {
|
|
263
|
-
if (isEscaped) {
|
|
264
|
-
pattern += source[i];
|
|
265
|
-
isEscaped = false;
|
|
266
|
-
continue;
|
|
267
|
-
}
|
|
268
|
-
if (flags.i) {
|
|
269
|
-
if (inCharGroup) {
|
|
270
|
-
if (source[i].match(/[a-z]/)) {
|
|
271
|
-
if (inCharRange) {
|
|
272
|
-
pattern += source[i];
|
|
273
|
-
pattern += `${source[i - 2]}-${source[i]}`.toUpperCase();
|
|
274
|
-
inCharRange = false;
|
|
275
|
-
}
|
|
276
|
-
else if (source[i + 1] === "-" && source[i + 2]?.match(/[a-z]/)) {
|
|
277
|
-
pattern += source[i];
|
|
278
|
-
inCharRange = true;
|
|
279
|
-
}
|
|
280
|
-
else {
|
|
281
|
-
pattern += `${source[i]}${source[i].toUpperCase()}`;
|
|
282
|
-
}
|
|
283
|
-
continue;
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
else if (source[i].match(/[a-z]/)) {
|
|
287
|
-
pattern += `[${source[i]}${source[i].toUpperCase()}]`;
|
|
288
|
-
continue;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
if (flags.m) {
|
|
292
|
-
if (source[i] === "^") {
|
|
293
|
-
pattern += `(^|(?<=[\r\n]))`;
|
|
294
|
-
continue;
|
|
295
|
-
}
|
|
296
|
-
else if (source[i] === "$") {
|
|
297
|
-
pattern += `($|(?=[\r\n]))`;
|
|
298
|
-
continue;
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
if (flags.s && source[i] === ".") {
|
|
302
|
-
pattern += inCharGroup ? `${source[i]}\r\n` : `[${source[i]}\r\n]`;
|
|
303
|
-
continue;
|
|
304
|
-
}
|
|
305
|
-
pattern += source[i];
|
|
306
|
-
if (source[i] === "\\") {
|
|
307
|
-
isEscaped = true;
|
|
308
|
-
}
|
|
309
|
-
else if (inCharGroup && source[i] === "]") {
|
|
310
|
-
inCharGroup = false;
|
|
311
|
-
}
|
|
312
|
-
else if (!inCharGroup && source[i] === "[") {
|
|
313
|
-
inCharGroup = true;
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
try {
|
|
317
|
-
const regexTest = new RegExp(pattern);
|
|
318
|
-
}
|
|
319
|
-
catch {
|
|
320
|
-
console.warn(`Could not convert regex pattern at ${refs.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`);
|
|
321
|
-
return regex.source;
|
|
322
|
-
}
|
|
323
|
-
return pattern;
|
|
324
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { parseDef } from "../parseDef.js";
|
|
2
|
-
export function parseTupleDef(def, refs) {
|
|
3
|
-
if (def.rest) {
|
|
4
|
-
return {
|
|
5
|
-
type: "array",
|
|
6
|
-
minItems: def.items.length,
|
|
7
|
-
items: def.items
|
|
8
|
-
.map((x, i) => parseDef(x._def, {
|
|
9
|
-
...refs,
|
|
10
|
-
currentPath: [...refs.currentPath, "items", `${i}`],
|
|
11
|
-
}))
|
|
12
|
-
.reduce((acc, x) => (x === undefined ? acc : [...acc, x]), []),
|
|
13
|
-
additionalItems: parseDef(def.rest._def, {
|
|
14
|
-
...refs,
|
|
15
|
-
currentPath: [...refs.currentPath, "additionalItems"],
|
|
16
|
-
}),
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
return {
|
|
21
|
-
type: "array",
|
|
22
|
-
minItems: def.items.length,
|
|
23
|
-
maxItems: def.items.length,
|
|
24
|
-
items: def.items
|
|
25
|
-
.map((x, i) => parseDef(x._def, {
|
|
26
|
-
...refs,
|
|
27
|
-
currentPath: [...refs.currentPath, "items", `${i}`],
|
|
28
|
-
}))
|
|
29
|
-
.reduce((acc, x) => (x === undefined ? acc : [...acc, x]), []),
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
}
|