@highstate/designer 0.20.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +4 -4
- package/.output/public/_nuxt/{BkNNRtnm.js → -aI73seg.js} +1 -1
- package/.output/public/_nuxt/32ctXXKs.js +1 -0
- package/.output/public/_nuxt/39D0VL7r.js +1 -0
- package/.output/public/_nuxt/{ByBNG4eo.js → 3T5CmBSF.js} +1 -1
- package/.output/public/_nuxt/4R6BJ3GI.js +1 -0
- package/.output/public/_nuxt/77UvFSdd.js +18 -0
- package/.output/public/_nuxt/{G13IRnB2.js → B0E2rEnI.js} +1 -1
- package/.output/public/_nuxt/B1x03f8R.js +1 -0
- package/.output/public/_nuxt/B2CVdECd.js +1 -0
- package/.output/public/_nuxt/{DWQRqdcR.js → B2_u9ZKl.js} +1 -1
- package/.output/public/_nuxt/{DCR009rv.js → B8uKU-iG.js} +1 -1
- package/.output/public/_nuxt/{CxEW7TG8.js → B9BJCsIg.js} +1 -1
- package/.output/public/_nuxt/BA47KaF1.js +1 -0
- package/.output/public/_nuxt/{DRfxs3PN.js → BBmoak6l.js} +1 -1
- package/.output/public/_nuxt/BEOSfHJT.js +1 -0
- package/.output/public/_nuxt/{D2aToa54.js → BJV0IIsR.js} +1 -1
- package/.output/public/_nuxt/{DCBCRx0O.js → BKaSp7fy.js} +1 -1
- package/.output/public/_nuxt/BN7gUcg9.js +1 -0
- package/.output/public/_nuxt/{DiTMzCP2.js → BOujskTX.js} +1 -1
- package/.output/public/_nuxt/{DJN0y8jO.js → BPboW4rx.js} +1 -1
- package/.output/public/_nuxt/{DzWdbJvx.js → BR4jrf3-.js} +1 -1
- package/.output/public/_nuxt/{9I37tBe7.js → BSRetNRl.js} +1 -1
- package/.output/public/_nuxt/{C1FLL1Qz.js → Ba9NwIJp.js} +1 -1
- package/.output/public/_nuxt/{DCinzvm1.js → BbWhHw7B.js} +1 -1
- package/.output/public/_nuxt/Bcyj9glE.js +6 -0
- package/.output/public/_nuxt/{xA6NntuA.js → Be4ezMZK.js} +1 -1
- package/.output/public/_nuxt/BeH2EWoN.js +1 -0
- package/.output/public/_nuxt/{CudFwYib.js → BgvYz3Nr.js} +1 -1
- package/.output/public/_nuxt/BlGDdimO.js +1 -0
- package/.output/public/_nuxt/{ZbicA1ry.js → Bn5R9WlL.js} +1 -1
- package/.output/public/_nuxt/{ChaZkl1J.js → BqJDg8iS.js} +1 -1
- package/.output/public/_nuxt/BxD6MFcJ.js +1 -0
- package/.output/public/_nuxt/{D27ZAKIj.js → BxvmPvww.js} +1 -1
- package/.output/public/_nuxt/{BEEt8Am7.js → By1Fxx6d.js} +1 -1
- package/.output/public/_nuxt/{xdsXwj_J.js → ByBXn3Vz.js} +1 -1
- package/.output/public/_nuxt/C1bzPMRu.js +14 -0
- package/.output/public/_nuxt/{CV5MeYf9.js → C29gnYT3.js} +1 -1
- package/.output/public/_nuxt/C5BYcBs_.js +1 -0
- package/.output/public/_nuxt/{ziXKbM2N.js → C5DRPdxC.js} +1 -1
- package/.output/public/_nuxt/{BJK6uMxG.js → C794qwo0.js} +1 -1
- package/.output/public/_nuxt/{RCBWmVHz.js → C9OJ0gQB.js} +1 -1
- package/.output/public/_nuxt/{B13uiJCv.js → C9n5vGW7.js} +1 -1
- package/.output/public/_nuxt/{rcFevLEP.js → CCBTuGSI.js} +2 -2
- package/.output/public/_nuxt/CENFIVCM.js +1 -0
- package/.output/public/_nuxt/{CzSiA7V6.js → CGLWlIpJ.js} +1 -1
- package/.output/public/_nuxt/CI40hKzv.js +2 -0
- package/.output/public/_nuxt/{CcOKGYBt.js → CLsyMJ1X.js} +1 -1
- package/.output/public/_nuxt/{CaJ-zn_Z.js → CNWyx-82.js} +1 -1
- package/.output/public/_nuxt/CRZrAKrA.js +2 -0
- package/.output/public/_nuxt/{BxaP9l2T.js → CRb2z3Pg.js} +1 -1
- package/.output/public/_nuxt/{BDAHnC4j.js → CWA5Cfde.js} +1 -1
- package/.output/public/_nuxt/CYpkKp66.js +1 -0
- package/.output/public/_nuxt/{n0RAZLbO.js → C_yayEmb.js} +1 -1
- package/.output/public/_nuxt/{rgN_MdZl.js → CaZj7sno.js} +1 -1
- package/.output/public/_nuxt/{CGscLIrv.js → CgK0fS9t.js} +1 -1
- package/.output/public/_nuxt/CiaugisX.js +1 -0
- package/.output/public/_nuxt/Cjs5trkS.js +1 -0
- package/.output/public/_nuxt/Cn-bp-IR.js +1 -0
- package/.output/public/_nuxt/CoqwalnO.js +2 -0
- package/.output/public/_nuxt/{d-NZQb9b.js → CscXh7Vy.js} +1 -1
- package/.output/public/_nuxt/{DQHHT9y-.js → CwWsKBf5.js} +1 -1
- package/.output/public/_nuxt/Cwefpg1x.js +1 -0
- package/.output/public/_nuxt/CxoCegAs.js +13 -0
- package/.output/public/_nuxt/{8MSfy8uY.js → CyFj-Mv9.js} +1 -1
- package/.output/public/_nuxt/Cz2AlsmD.js +1 -0
- package/.output/public/_nuxt/{tsyQDnRt.js → D1BdWMiq.js} +1 -1
- package/.output/public/_nuxt/D1yXAE_w.js +1 -0
- package/.output/public/_nuxt/{xp27HhqZ.js → D2lHwbtX.js} +1 -1
- package/.output/public/_nuxt/{DKhcu7kD.js → D46u9gXN.js} +1 -1
- package/.output/public/_nuxt/{CJWmG4YP.js → D4H6aUyZ.js} +7 -7
- package/.output/public/_nuxt/{Dg5xB15N.js → D82vCrfD.js} +1 -1
- package/.output/public/_nuxt/D8l8udqQ.js +1 -0
- package/.output/public/_nuxt/D9ITfHnZ.js +269 -0
- package/.output/public/_nuxt/{RNghxpo_.js → DDvzSYfr.js} +1 -1
- package/.output/public/_nuxt/{Aopv2gwH.js → DFwfZeyL.js} +1 -1
- package/.output/public/_nuxt/{GgtqCdye.js → DMM9kDc1.js} +1 -1
- package/.output/public/_nuxt/{DOPqH6_T.js → DNVXBFXP.js} +1 -1
- package/.output/public/_nuxt/DPOp833l.js +1 -0
- package/.output/public/_nuxt/{D2obegTF.js → DPQHj1GW.js} +1 -1
- package/.output/public/_nuxt/DRJZaHtK.js +1 -0
- package/.output/public/_nuxt/{BlfjmxyP.js → DRTFVhVr.js} +1 -1
- package/.output/public/_nuxt/{TsXTqZ29.js → DSeZwD4N.js} +1 -1
- package/.output/public/_nuxt/{C8lm7lgC.js → DTYY2tCY.js} +1 -1
- package/.output/public/_nuxt/{DWa2aw6r.js → DVKmRHSk.js} +1 -1
- package/.output/public/_nuxt/DYE7WIF3.js +1 -0
- package/.output/public/_nuxt/{D-wGZMZP.js → DYYyOkJe.js} +1 -1
- package/.output/public/_nuxt/{BCVaR2pQ.js → DcV32yum.js} +1 -1
- package/.output/public/_nuxt/DdhYQ3Tv.js +1 -0
- package/.output/public/_nuxt/DgsIRcX7.js +1 -0
- package/.output/public/_nuxt/{BtvRca6l.js → DjAJT7YJ.js} +1 -1
- package/.output/public/_nuxt/DmMgvbsF.js +1 -0
- package/.output/public/_nuxt/{pxXmJ8QX.js → DrQCNsTo.js} +1 -1
- package/.output/public/_nuxt/{DNqd6Nek.js → DvCXikgN.js} +1 -1
- package/.output/public/_nuxt/DzQULtcW.js +1 -0
- package/.output/public/_nuxt/{Cm-2nZ05.js → DzowYWbi.js} +1 -1
- package/.output/public/_nuxt/{DQwYQDb2.js → FtFNcQmh.js} +1 -1
- package/.output/public/_nuxt/{BPcwi1q2.js → I4u-TRO-.js} +1 -1
- package/.output/public/_nuxt/{D5z-4QVk.js → O3nsZ-Uz.js} +1 -1
- package/.output/public/_nuxt/Qj4UhtaN.js +1 -0
- package/.output/public/_nuxt/{BA0jw7CM.js → VF7GAmoY.js} +1 -1
- package/.output/public/_nuxt/Ve4PFQV2.js +1 -0
- package/.output/public/_nuxt/{xrNU8mHG.js → YpnHruhZ.js} +1 -1
- package/.output/public/_nuxt/_H4v1dQx.js +1 -0
- package/.output/public/_nuxt/_pageId_.C5KTkEfy.css +1 -0
- package/.output/public/_nuxt/_panelId_.CKSHyLNC.css +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/53add2c3-4d7c-4a4f-a116-e73c3787cf98.json +1 -0
- package/.output/public/_nuxt/components.a-P9dVi2.css +1 -0
- package/.output/public/_nuxt/{entry.Bc0aTA0K.css → entry.DsBbjDm-.css} +1 -1
- package/.output/public/_nuxt/eo99z4R2.js +1 -0
- package/.output/public/_nuxt/error-404.DnBTUElh.css +1 -0
- package/.output/public/_nuxt/error-500.BNyYF0qG.css +1 -0
- package/.output/public/_nuxt/{BUNf2Yb8.js → fbfpKHgl.js} +1 -1
- package/.output/public/_nuxt/{BDs6uo3D.js → fxmP1KZw.js} +1 -1
- package/.output/public/_nuxt/graph-resolver-DhjyrFRu.js +180 -0
- package/.output/public/_nuxt/{mUFnM-_q.js → hunqYsQf.js} +1 -1
- package/.output/public/_nuxt/iJghVVcV.js +1 -0
- package/.output/public/_nuxt/{DyMmfYiE.js → m4Sxwg8n.js} +1 -1
- package/.output/public/_nuxt/monaco-editor.DOXZIHvr.css +1 -0
- package/.output/public/_nuxt/oH_c3LbQ.js +1 -0
- package/.output/public/_nuxt/rZm6bMo-.js +1 -0
- package/.output/public/_nuxt/{DOMRsNpU.js → rpHuDh4d.js} +1 -1
- package/.output/public/_nuxt/{vuetify.BzdWZaIq.css → vuetify.DtnS3-VQ.css} +1 -1
- package/.output/public/_nuxt/{yaml.worker-C1Cl1y5J.js → yaml.worker-CYOhFCVP.js} +248 -252
- package/.output/server/index.mjs +3272 -7573
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/node_modules/@babel/parser/lib/index.js +1 -1
- package/.output/server/node_modules/@babel/parser/package.json +1 -1
- package/.output/server/node_modules/@trpc/server/dist/adapters/fetch/index.cjs +57 -0
- package/.output/server/node_modules/@trpc/server/dist/adapters/fetch/index.mjs +2 -2
- package/.output/server/node_modules/@trpc/server/dist/codes-BfZsPdy-.cjs +222 -0
- package/.output/server/node_modules/@trpc/server/dist/{contentTypeParsers-SN4WL9ze.mjs → contentTypeParsers-iAFF_pJG.cjs} +7 -2
- package/.output/server/node_modules/@trpc/server/dist/getErrorShape-MR4DZeb7.cjs +341 -0
- package/.output/server/node_modules/@trpc/server/dist/http.cjs +14 -0
- package/.output/server/node_modules/@trpc/server/dist/index.cjs +22 -0
- package/.output/server/node_modules/@trpc/server/dist/index.mjs +2 -2
- package/.output/server/node_modules/@trpc/server/dist/{initTRPC-RoZMIBeA.mjs → initTRPC-B1ggxyJl.mjs} +2 -2
- package/.output/server/node_modules/@trpc/server/dist/initTRPC-BXPPV9Tx.cjs +416 -0
- package/.output/server/node_modules/@trpc/server/dist/observable/index.cjs +13 -0
- package/.output/server/node_modules/@trpc/server/dist/observable-B1Nk6r1H.cjs +181 -0
- package/.output/server/node_modules/@trpc/server/dist/{observable-CUiPknO-.mjs → observable-BVzLuBs6.cjs} +42 -8
- package/.output/server/node_modules/@trpc/server/dist/{parseTRPCMessage-CTow-umk.mjs → parseTRPCMessage-7Ltmq-Fb.cjs} +14 -4
- package/.output/server/node_modules/@trpc/server/dist/resolveResponse-B0CCg8nq.cjs +2365 -0
- package/.output/server/node_modules/@trpc/server/dist/{resolveResponse-BVDlNZwN.mjs → resolveResponse-C5I6V_wc.mjs} +67 -18
- package/.output/server/node_modules/@trpc/server/dist/rpc.cjs +6 -0
- package/.output/server/node_modules/@trpc/server/dist/{tracked-Bjtgv3wJ.mjs → tracked-DiE3uR1B.mjs} +12 -3
- package/.output/server/node_modules/@trpc/server/dist/tracked-Dj_dpOJE.cjs +486 -0
- package/.output/server/node_modules/@trpc/server/package.json +15 -5
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +2 -2
- package/.output/server/node_modules/@vue/compiler-core/package.json +3 -3
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +1 -1
- package/.output/server/node_modules/@vue/compiler-dom/package.json +3 -3
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1 -1
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +3 -3
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +31 -13
- package/.output/server/node_modules/@vue/reactivity/package.json +2 -2
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +144 -81
- package/.output/server/node_modules/@vue/runtime-core/package.json +3 -3
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +70 -9
- package/.output/server/node_modules/@vue/runtime-dom/package.json +4 -4
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +6 -2
- package/.output/server/node_modules/@vue/server-renderer/package.json +4 -4
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +1 -1
- package/.output/server/node_modules/@vue/shared/package.json +1 -1
- package/.output/server/node_modules/devalue/package.json +5 -2
- package/.output/server/node_modules/devalue/src/base64.js +46 -96
- package/.output/server/node_modules/devalue/src/parse.js +32 -10
- package/.output/server/node_modules/devalue/src/stringify.js +13 -28
- package/.output/server/node_modules/devalue/src/uneval.js +117 -55
- package/.output/server/node_modules/devalue/src/utils.js +3 -7
- package/.output/server/node_modules/hookable/dist/index.mjs +5 -14
- package/.output/server/node_modules/hookable/package.json +24 -23
- package/.output/server/node_modules/trpc-bun-adapter/dist/index.js +406 -0
- package/.output/server/node_modules/trpc-bun-adapter/package.json +44 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +3 -3
- package/.output/server/node_modules/unhead/dist/server.mjs +2 -2
- package/.output/server/node_modules/unhead/dist/shared/{unhead.eK9_7LaY.mjs → unhead.B5FWS6X0.mjs} +22 -13
- package/.output/server/node_modules/unhead/dist/shared/{unhead.BFfcxOoW.mjs → unhead.Ct24BOby.mjs} +4 -2
- package/.output/server/node_modules/unhead/dist/shared/unhead.D4vSFytZ.mjs +236 -0
- package/.output/server/node_modules/unhead/dist/shared/{unhead.ckV6dpEQ.mjs → unhead.TxTMM7cM.mjs} +1 -1
- package/.output/server/node_modules/unhead/dist/utils.mjs +1 -1
- package/.output/server/node_modules/unhead/package.json +1 -1
- package/.output/server/node_modules/vue/dist/vue.cjs.js +1 -1
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +1 -1
- package/.output/server/node_modules/vue/package.json +7 -7
- package/.output/server/node_modules/ws/lib/permessage-deflate.js +6 -6
- package/.output/server/node_modules/ws/lib/websocket-server.js +5 -5
- package/.output/server/node_modules/ws/lib/websocket.js +6 -6
- package/.output/server/node_modules/ws/package.json +4 -3
- package/.output/server/node_modules/ws/wrapper.mjs +14 -1
- package/.output/server/package.json +17 -16
- package/package.json +20 -14
- package/.output/public/_nuxt/57B6Rca8.js +0 -1
- package/.output/public/_nuxt/83L43bj1.js +0 -1
- package/.output/public/_nuxt/B8nw2aST.js +0 -2
- package/.output/public/_nuxt/B93PlW-d.js +0 -1
- package/.output/public/_nuxt/BDa1f6PF.js +0 -2
- package/.output/public/_nuxt/BE_Meo09.js +0 -269
- package/.output/public/_nuxt/BLF3u89x.js +0 -1
- package/.output/public/_nuxt/Ba13S78F.js +0 -1
- package/.output/public/_nuxt/BhRPY-oY.js +0 -1
- package/.output/public/_nuxt/Bhrxn6JZ.js +0 -1
- package/.output/public/_nuxt/Bo8jzlL1.js +0 -18
- package/.output/public/_nuxt/BpkvlDNi.js +0 -1
- package/.output/public/_nuxt/BrzmwbiE.js +0 -1
- package/.output/public/_nuxt/BuJgCY_C.js +0 -1
- package/.output/public/_nuxt/C-sUppwS.js +0 -1
- package/.output/public/_nuxt/C47S-Tmv.js +0 -1
- package/.output/public/_nuxt/CMjwMIkn.js +0 -1
- package/.output/public/_nuxt/CPZSvMBB.js +0 -1
- package/.output/public/_nuxt/CPpO8vcZ.js +0 -1
- package/.output/public/_nuxt/CQ8jqdy-.js +0 -1
- package/.output/public/_nuxt/CjoLj4QM.js +0 -1
- package/.output/public/_nuxt/D6fh7rEe.js +0 -2
- package/.output/public/_nuxt/D91rOou-.js +0 -13
- package/.output/public/_nuxt/DMwsHuHA.js +0 -1
- package/.output/public/_nuxt/DYoxhk2S.js +0 -1
- package/.output/public/_nuxt/Dbwml2gB.js +0 -1
- package/.output/public/_nuxt/DsS90Fp6.js +0 -1
- package/.output/public/_nuxt/Dv7Oe6Be.js +0 -1
- package/.output/public/_nuxt/DxERyYWQ.js +0 -1
- package/.output/public/_nuxt/GDxZ_Nvm.js +0 -14
- package/.output/public/_nuxt/VCDPK7BO.js +0 -1
- package/.output/public/_nuxt/builds/meta/a1fec520-0c95-4ae0-af5e-964780fad341.json +0 -1
- package/.output/public/_nuxt/components.CIe9upZ4.css +0 -1
- package/.output/public/_nuxt/error-404.X7H_YhdC.css +0 -1
- package/.output/public/_nuxt/error-500.BOQe1fsk.css +0 -1
- package/.output/public/_nuxt/f3TOpYbw.js +0 -1
- package/.output/public/_nuxt/graph-resolver-DKNtntr2.js +0 -180
- package/.output/public/_nuxt/monaco-editor.D_J4ItrK.css +0 -1
- package/.output/public/_nuxt/o_m1mZtJ.js +0 -6
- package/.output/server/node_modules/@trpc/server/dist/adapters/ws.mjs +0 -15
- package/.output/server/node_modules/@trpc/server/dist/node-http-DtA2iLK9.mjs +0 -224
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import-9NNw8uQM.mjs +0 -31
- package/.output/server/node_modules/@trpc/server/dist/ws-CJgZE7Hg.mjs +0 -460
- package/.output/server/node_modules/unhead/dist/shared/unhead.CApf5sj3.mjs +0 -148
- package/LICENSE +0 -21
- /package/.output/public/_nuxt/{XEA9GSJd.js → B69Z0Xk1.js} +0 -0
- /package/.output/server/node_modules/@trpc/server/dist/{http-CWyjOa1l.mjs → http-DXy3XyhL.cjs} +0 -0
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { u as unpackMeta } from './unhead.DQc16pHI.mjs';
|
|
2
|
-
|
|
3
|
-
function defineHeadPlugin(plugin) {
|
|
4
|
-
return plugin;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
const FlatMetaPlugin = /* @__PURE__ */ defineHeadPlugin({
|
|
8
|
-
key: "flatMeta",
|
|
9
|
-
hooks: {
|
|
10
|
-
"entries:normalize": (ctx) => {
|
|
11
|
-
const tagsToAdd = [];
|
|
12
|
-
ctx.tags = ctx.tags.map((t) => {
|
|
13
|
-
if (t.tag !== "_flatMeta") {
|
|
14
|
-
return t;
|
|
15
|
-
}
|
|
16
|
-
tagsToAdd.push(unpackMeta(t.props).map((p) => ({
|
|
17
|
-
...t,
|
|
18
|
-
tag: "meta",
|
|
19
|
-
props: p
|
|
20
|
-
})));
|
|
21
|
-
return false;
|
|
22
|
-
}).filter(Boolean).concat(...tagsToAdd);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
const WhitelistAttributes = {
|
|
28
|
-
htmlAttrs: /* @__PURE__ */ new Set(["class", "style", "lang", "dir"]),
|
|
29
|
-
bodyAttrs: /* @__PURE__ */ new Set(["class", "style"]),
|
|
30
|
-
meta: /* @__PURE__ */ new Set(["name", "property", "charset", "content", "media"]),
|
|
31
|
-
noscript: /* @__PURE__ */ new Set(["textContent"]),
|
|
32
|
-
style: /* @__PURE__ */ new Set(["media", "textContent", "nonce", "title", "blocking"]),
|
|
33
|
-
script: /* @__PURE__ */ new Set(["type", "textContent", "nonce", "blocking"]),
|
|
34
|
-
link: /* @__PURE__ */ new Set(["color", "crossorigin", "fetchpriority", "href", "hreflang", "imagesrcset", "imagesizes", "integrity", "media", "referrerpolicy", "rel", "sizes", "type"])
|
|
35
|
-
};
|
|
36
|
-
function acceptDataAttrs(value) {
|
|
37
|
-
return Object.fromEntries(
|
|
38
|
-
Object.entries(value || {}).filter(([key]) => key === "id" || key.startsWith("data-"))
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
function makeTagSafe(tag) {
|
|
42
|
-
let next = {};
|
|
43
|
-
const { tag: type, props: prev } = tag;
|
|
44
|
-
switch (type) {
|
|
45
|
-
// always safe
|
|
46
|
-
case "title":
|
|
47
|
-
case "titleTemplate":
|
|
48
|
-
case "templateParams":
|
|
49
|
-
next = prev;
|
|
50
|
-
break;
|
|
51
|
-
case "htmlAttrs":
|
|
52
|
-
case "bodyAttrs":
|
|
53
|
-
WhitelistAttributes[type].forEach((attr) => {
|
|
54
|
-
if (prev[attr]) {
|
|
55
|
-
next[attr] = prev[attr];
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
break;
|
|
59
|
-
case "style":
|
|
60
|
-
next = acceptDataAttrs(prev);
|
|
61
|
-
WhitelistAttributes.style.forEach((key) => {
|
|
62
|
-
if (prev[key]) {
|
|
63
|
-
next[key] = prev[key];
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
break;
|
|
67
|
-
// meta is safe, except for http-equiv
|
|
68
|
-
case "meta":
|
|
69
|
-
WhitelistAttributes.meta.forEach((key) => {
|
|
70
|
-
if (prev[key]) {
|
|
71
|
-
next[key] = prev[key];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
break;
|
|
75
|
-
// link tags we don't allow stylesheets, scripts, preloading, prerendering, prefetching, etc
|
|
76
|
-
case "link":
|
|
77
|
-
WhitelistAttributes.link.forEach((key) => {
|
|
78
|
-
const val = prev[key];
|
|
79
|
-
if (!val) {
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
if (key === "rel" && (val === "canonical" || val === "modulepreload" || val === "prerender" || val === "preload" || val === "prefetch")) {
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
if (key === "href") {
|
|
86
|
-
if (val.includes("javascript:") || val.includes("data:")) {
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
next[key] = val;
|
|
90
|
-
} else if (val) {
|
|
91
|
-
next[key] = val;
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
if (!next.href && !next.imagesrcset || !next.rel) {
|
|
95
|
-
return false;
|
|
96
|
-
}
|
|
97
|
-
break;
|
|
98
|
-
case "noscript":
|
|
99
|
-
WhitelistAttributes.noscript.forEach((key) => {
|
|
100
|
-
if (prev[key]) {
|
|
101
|
-
next[key] = prev[key];
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
break;
|
|
105
|
-
// we only allow JSON in scripts
|
|
106
|
-
case "script":
|
|
107
|
-
if (!tag.textContent || !prev.type?.endsWith("json")) {
|
|
108
|
-
return false;
|
|
109
|
-
}
|
|
110
|
-
WhitelistAttributes.script.forEach((s) => {
|
|
111
|
-
if (prev[s] === "textContent") {
|
|
112
|
-
try {
|
|
113
|
-
const jsonVal = typeof prev[s] === "string" ? JSON.parse(prev[s]) : prev[s];
|
|
114
|
-
next[s] = JSON.stringify(jsonVal, null, 0);
|
|
115
|
-
} catch {
|
|
116
|
-
}
|
|
117
|
-
} else if (prev[s]) {
|
|
118
|
-
next[s] = prev[s];
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
break;
|
|
122
|
-
}
|
|
123
|
-
if (!Object.keys(next).length && !tag.tag.endsWith("Attrs")) {
|
|
124
|
-
return false;
|
|
125
|
-
}
|
|
126
|
-
tag.props = { ...acceptDataAttrs(prev), ...next };
|
|
127
|
-
return tag;
|
|
128
|
-
}
|
|
129
|
-
const SafeInputPlugin = (
|
|
130
|
-
/* @PURE */
|
|
131
|
-
defineHeadPlugin({
|
|
132
|
-
key: "safe",
|
|
133
|
-
hooks: {
|
|
134
|
-
"entries:normalize": (ctx) => {
|
|
135
|
-
if (ctx.entry.options?._safe) {
|
|
136
|
-
ctx.tags = ctx.tags.reduce((acc, tag) => {
|
|
137
|
-
const safeTag = makeTagSafe(tag);
|
|
138
|
-
if (safeTag)
|
|
139
|
-
acc.push(safeTag);
|
|
140
|
-
return acc;
|
|
141
|
-
}, []);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
})
|
|
146
|
-
);
|
|
147
|
-
|
|
148
|
-
export { FlatMetaPlugin as F, SafeInputPlugin as S, defineHeadPlugin as d };
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Exeteres
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
File without changes
|
/package/.output/server/node_modules/@trpc/server/dist/{http-CWyjOa1l.mjs → http-DXy3XyhL.cjs}
RENAMED
|
File without changes
|