@highstate/designer 0.20.0 → 0.21.1
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/{f3TOpYbw.js → -OnKOwAh.js} +1 -1
- package/.output/public/_nuxt/32ctXXKs.js +1 -0
- package/.output/public/_nuxt/{DCR009rv.js → 5gjbd9sK.js} +1 -1
- package/.output/public/_nuxt/{DQHHT9y-.js → 9OHRRPkh.js} +1 -1
- package/.output/public/_nuxt/{Dbwml2gB.js → B-dJABhs.js} +1 -1
- package/.output/public/_nuxt/{rcFevLEP.js → B2SoM2pd.js} +1 -1
- package/.output/public/_nuxt/{G13IRnB2.js → B4FDp1sn.js} +1 -1
- package/.output/public/_nuxt/{BxaP9l2T.js → B7RpoNQl.js} +1 -1
- package/.output/public/_nuxt/BA47KaF1.js +1 -0
- package/.output/public/_nuxt/{Cm-2nZ05.js → BArXRmKu.js} +1 -1
- package/.output/public/_nuxt/{ziXKbM2N.js → BCJKqJxW.js} +1 -1
- package/.output/public/_nuxt/{BDs6uo3D.js → BD_Kvn-W.js} +1 -1
- package/.output/public/_nuxt/{CV5MeYf9.js → BIPWeF69.js} +1 -1
- package/.output/public/_nuxt/{DxERyYWQ.js → BKIVPvZX.js} +1 -1
- package/.output/public/_nuxt/BN7gUcg9.js +1 -0
- package/.output/public/_nuxt/{CcOKGYBt.js → BTd2ZN65.js} +1 -1
- package/.output/public/_nuxt/{D6fh7rEe.js → BXphdu9w.js} +1 -1
- package/.output/public/_nuxt/{BuJgCY_C.js → BYmSxWA_.js} +1 -1
- package/.output/public/_nuxt/{BkNNRtnm.js → BdRuKvw2.js} +1 -1
- package/.output/public/_nuxt/{BA0jw7CM.js → Bdd5S2WL.js} +1 -1
- package/.output/public/_nuxt/BeH2EWoN.js +1 -0
- package/.output/public/_nuxt/{CPZSvMBB.js → BhozkjGO.js} +1 -1
- package/.output/public/_nuxt/{xp27HhqZ.js → Bl_Sz9PU.js} +1 -1
- package/.output/public/_nuxt/{ChaZkl1J.js → Bs8TB6Bu.js} +1 -1
- package/.output/public/_nuxt/{DsS90Fp6.js → BtrNScOx.js} +1 -1
- package/.output/public/_nuxt/{DyMmfYiE.js → Bu1xs0Fv.js} +1 -1
- package/.output/public/_nuxt/{o_m1mZtJ.js → BupMEc6X.js} +1 -1
- package/.output/public/_nuxt/{GDxZ_Nvm.js → Bv_vOb-Y.js} +1 -1
- package/.output/public/_nuxt/{rgN_MdZl.js → BwKAHWnp.js} +1 -1
- package/.output/public/_nuxt/{CaJ-zn_Z.js → ByE1aAlg.js} +1 -1
- package/.output/public/_nuxt/{BDAHnC4j.js → BzhaMbyl.js} +1 -1
- package/.output/public/_nuxt/{Aopv2gwH.js → C2zyO9uX.js} +1 -1
- package/.output/public/_nuxt/{DOMRsNpU.js → C4XpvUuq.js} +1 -1
- package/.output/public/_nuxt/C5BYcBs_.js +1 -0
- package/.output/public/_nuxt/{tsyQDnRt.js → C973_vs5.js} +1 -1
- package/.output/public/_nuxt/{BlfjmxyP.js → CBIEPWAA.js} +1 -1
- package/.output/public/_nuxt/{BUNf2Yb8.js → CBVcjGJL.js} +1 -1
- package/.output/public/_nuxt/CENFIVCM.js +1 -0
- package/.output/public/_nuxt/{DCinzvm1.js → CJN4g-3R.js} +1 -1
- package/.output/public/_nuxt/{DCBCRx0O.js → CPsHsqGU.js} +1 -1
- package/.output/public/_nuxt/{DWQRqdcR.js → CTRkBkra.js} +1 -1
- package/.output/public/_nuxt/{BLF3u89x.js → CYL3VlR9.js} +1 -1
- package/.output/public/_nuxt/CYpkKp66.js +1 -0
- package/.output/public/_nuxt/{D27ZAKIj.js → CaehGOgh.js} +1 -1
- package/.output/public/_nuxt/{CxEW7TG8.js → CemiMtCX.js} +1 -1
- package/.output/public/_nuxt/{CGscLIrv.js → CgK0fS9t.js} +1 -1
- package/.output/public/_nuxt/{n0RAZLbO.js → CmJE87KM.js} +1 -1
- package/.output/public/_nuxt/Cn-bp-IR.js +1 -0
- package/.output/public/_nuxt/{xdsXwj_J.js → CnhVSb6R.js} +1 -1
- package/.output/public/_nuxt/{9I37tBe7.js → CpGRan2R.js} +1 -1
- package/.output/public/_nuxt/{C1FLL1Qz.js → CqQg8Ldy.js} +1 -1
- package/.output/public/_nuxt/{BJK6uMxG.js → Cs-GjQ8R.js} +1 -1
- package/.output/public/_nuxt/{BPcwi1q2.js → CtbC3i8L.js} +1 -1
- package/.output/public/_nuxt/{xA6NntuA.js → CvSiusML.js} +1 -1
- package/.output/public/_nuxt/CxoCegAs.js +13 -0
- package/.output/public/_nuxt/{BpkvlDNi.js → Cz-197mS.js} +1 -1
- package/.output/public/_nuxt/Cz2AlsmD.js +1 -0
- package/.output/public/_nuxt/{CJWmG4YP.js → D-7HtdRe.js} +1 -1
- package/.output/public/_nuxt/{Dg5xB15N.js → D82vCrfD.js} +1 -1
- package/.output/public/_nuxt/D8l8udqQ.js +1 -0
- package/.output/public/_nuxt/{mUFnM-_q.js → DCK6hB22.js} +1 -1
- package/.output/public/_nuxt/{RNghxpo_.js → DDvzSYfr.js} +1 -1
- package/.output/public/_nuxt/{BEEt8Am7.js → DEtIJe2u.js} +1 -1
- package/.output/public/_nuxt/{BDa1f6PF.js → DHJ62FKo.js} +1 -1
- package/.output/public/_nuxt/{DiTMzCP2.js → DKWXhhCy.js} +1 -1
- package/.output/public/_nuxt/DPOp833l.js +1 -0
- package/.output/public/_nuxt/DRJZaHtK.js +1 -0
- package/.output/public/_nuxt/{RCBWmVHz.js → DSDbyhpJ.js} +1 -1
- package/.output/public/_nuxt/{TsXTqZ29.js → DSeZwD4N.js} +1 -1
- package/.output/public/_nuxt/{DNqd6Nek.js → DSpiceQe.js} +1 -1
- package/.output/public/_nuxt/{CzSiA7V6.js → DTPYfUid.js} +1 -1
- package/.output/public/_nuxt/{BCVaR2pQ.js → DUHba1vY.js} +1 -1
- package/.output/public/_nuxt/{D2obegTF.js → DXyfavJr.js} +1 -1
- package/.output/public/_nuxt/DYE7WIF3.js +1 -0
- package/.output/public/_nuxt/{ZbicA1ry.js → D_wY_uke.js} +1 -1
- package/.output/public/_nuxt/{DKhcu7kD.js → Dahes9VH.js} +1 -1
- package/.output/public/_nuxt/{D-wGZMZP.js → DdvHdmGh.js} +1 -1
- package/.output/public/_nuxt/DgsIRcX7.js +1 -0
- package/.output/public/_nuxt/{BtvRca6l.js → DjAJT7YJ.js} +1 -1
- package/.output/public/_nuxt/{DzWdbJvx.js → Djg8J2AC.js} +1 -1
- package/.output/public/_nuxt/{CudFwYib.js → DkkrdwgN.js} +1 -1
- package/.output/public/_nuxt/{pxXmJ8QX.js → DnpKvmH_.js} +1 -1
- package/.output/public/_nuxt/{B8nw2aST.js → DrWe3t51.js} +1 -1
- package/.output/public/_nuxt/{D2aToa54.js → DsG1SoRB.js} +1 -1
- package/.output/public/_nuxt/{8MSfy8uY.js → DtBrxin9.js} +1 -1
- package/.output/public/_nuxt/{B13uiJCv.js → EnN6XTXK.js} +1 -1
- package/.output/public/_nuxt/{DJN0y8jO.js → Fcs-0n6A.js} +1 -1
- package/.output/public/_nuxt/{DQwYQDb2.js → FtFNcQmh.js} +1 -1
- package/.output/public/_nuxt/{C8lm7lgC.js → GXzlut8R.js} +1 -1
- package/.output/public/_nuxt/{xrNU8mHG.js → Lks7C8cK.js} +1 -1
- package/.output/public/_nuxt/M0WOzN-S.js +269 -0
- package/.output/public/_nuxt/{d-NZQb9b.js → OuCcJFrZ.js} +1 -1
- package/.output/public/_nuxt/{GgtqCdye.js → UD_auLNX.js} +1 -1
- package/.output/public/_nuxt/Ve4PFQV2.js +1 -0
- package/.output/public/_nuxt/{57B6Rca8.js → ZpmLW6rw.js} +1 -1
- package/.output/public/_nuxt/_H4v1dQx.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/d356de5d-6230-4e66-aba2-c48f455ae207.json +1 -0
- package/.output/public/_nuxt/builds/meta/ed797280-2bf0-44e6-a601-2ff2462bfbbc.json +1 -0
- package/.output/public/_nuxt/{CPpO8vcZ.js → c6k-jVO-.js} +1 -1
- package/.output/public/_nuxt/eo99z4R2.js +1 -0
- package/.output/public/_nuxt/error-404.iOXvqd5J.css +1 -0
- package/.output/public/_nuxt/error-500.D0BgXBui.css +1 -0
- package/.output/public/_nuxt/graph-resolver-E9RSC1Ga.js +180 -0
- package/.output/public/_nuxt/{DWa2aw6r.js → hAFXcJ2_.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/{ByBNG4eo.js → rscZxuQ2.js} +1 -1
- package/.output/public/_nuxt/sB5TSp0H.js +18 -0
- package/.output/public/_nuxt/{DOPqH6_T.js → wCosSBIO.js} +1 -1
- package/.output/public/_nuxt/{DRfxs3PN.js → xnReCuE4.js} +1 -1
- package/.output/public/_nuxt/{D5z-4QVk.js → y0GN4iGv.js} +1 -1
- package/.output/public/_nuxt/{yaml.worker-C1Cl1y5J.js → yaml.worker-CYOhFCVP.js} +248 -252
- package/.output/server/index.mjs +3959 -9221
- 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/package.json +16 -16
- package/package.json +20 -14
- package/.output/public/_nuxt/83L43bj1.js +0 -1
- package/.output/public/_nuxt/B93PlW-d.js +0 -1
- package/.output/public/_nuxt/BE_Meo09.js +0 -269
- 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/BrzmwbiE.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/CQ8jqdy-.js +0 -1
- package/.output/public/_nuxt/CjoLj4QM.js +0 -1
- 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/Dv7Oe6Be.js +0 -1
- 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/error-404.X7H_YhdC.css +0 -1
- package/.output/public/_nuxt/error-500.BOQe1fsk.css +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/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/.output/server/node_modules/ws/lib/buffer-util.js +0 -131
- package/.output/server/node_modules/ws/lib/constants.js +0 -19
- package/.output/server/node_modules/ws/lib/event-target.js +0 -292
- package/.output/server/node_modules/ws/lib/extension.js +0 -203
- package/.output/server/node_modules/ws/lib/limiter.js +0 -55
- package/.output/server/node_modules/ws/lib/permessage-deflate.js +0 -528
- package/.output/server/node_modules/ws/lib/receiver.js +0 -706
- package/.output/server/node_modules/ws/lib/sender.js +0 -602
- package/.output/server/node_modules/ws/lib/stream.js +0 -161
- package/.output/server/node_modules/ws/lib/subprotocol.js +0 -62
- package/.output/server/node_modules/ws/lib/validation.js +0 -152
- package/.output/server/node_modules/ws/lib/websocket-server.js +0 -554
- package/.output/server/node_modules/ws/lib/websocket.js +0 -1393
- package/.output/server/node_modules/ws/package.json +0 -69
- package/.output/server/node_modules/ws/wrapper.mjs +0 -8
- 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
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
//#region rolldown:runtime
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __commonJS = (cb, mod) => function() {
|
|
9
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
13
|
+
key = keys[i];
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
|
+
get: ((k) => from[k]).bind(null, key),
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
22
|
+
value: mod,
|
|
23
|
+
enumerable: true
|
|
24
|
+
}) : target, mod));
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
const require_codes = require('./codes-BfZsPdy-.cjs');
|
|
28
|
+
|
|
29
|
+
//#region src/unstable-core-do-not-import/createProxy.ts
|
|
30
|
+
const noop = () => {};
|
|
31
|
+
const freezeIfAvailable = (obj) => {
|
|
32
|
+
if (Object.freeze) Object.freeze(obj);
|
|
33
|
+
};
|
|
34
|
+
function createInnerProxy(callback, path, memo) {
|
|
35
|
+
var _memo$cacheKey;
|
|
36
|
+
const cacheKey = path.join(".");
|
|
37
|
+
(_memo$cacheKey = memo[cacheKey]) !== null && _memo$cacheKey !== void 0 || (memo[cacheKey] = new Proxy(noop, {
|
|
38
|
+
get(_obj, key) {
|
|
39
|
+
if (typeof key !== "string" || key === "then") return void 0;
|
|
40
|
+
return createInnerProxy(callback, [...path, key], memo);
|
|
41
|
+
},
|
|
42
|
+
apply(_1, _2, args) {
|
|
43
|
+
const lastOfPath = path[path.length - 1];
|
|
44
|
+
let opts = {
|
|
45
|
+
args,
|
|
46
|
+
path
|
|
47
|
+
};
|
|
48
|
+
if (lastOfPath === "call") opts = {
|
|
49
|
+
args: args.length >= 2 ? [args[1]] : [],
|
|
50
|
+
path: path.slice(0, -1)
|
|
51
|
+
};
|
|
52
|
+
else if (lastOfPath === "apply") opts = {
|
|
53
|
+
args: args.length >= 2 ? args[1] : [],
|
|
54
|
+
path: path.slice(0, -1)
|
|
55
|
+
};
|
|
56
|
+
freezeIfAvailable(opts.args);
|
|
57
|
+
freezeIfAvailable(opts.path);
|
|
58
|
+
return callback(opts);
|
|
59
|
+
}
|
|
60
|
+
}));
|
|
61
|
+
return memo[cacheKey];
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Creates a proxy that calls the callback with the path and arguments
|
|
65
|
+
*
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
const createRecursiveProxy = (callback) => createInnerProxy(callback, [], require_codes.emptyObject());
|
|
69
|
+
/**
|
|
70
|
+
* Used in place of `new Proxy` where each handler will map 1 level deep to another value.
|
|
71
|
+
*
|
|
72
|
+
* @internal
|
|
73
|
+
*/
|
|
74
|
+
const createFlatProxy = (callback) => {
|
|
75
|
+
return new Proxy(noop, { get(_obj, name) {
|
|
76
|
+
if (name === "then") return void 0;
|
|
77
|
+
return callback(name);
|
|
78
|
+
} });
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region src/unstable-core-do-not-import/http/getHTTPStatusCode.ts
|
|
83
|
+
const JSONRPC2_TO_HTTP_CODE = {
|
|
84
|
+
PARSE_ERROR: 400,
|
|
85
|
+
BAD_REQUEST: 400,
|
|
86
|
+
UNAUTHORIZED: 401,
|
|
87
|
+
PAYMENT_REQUIRED: 402,
|
|
88
|
+
FORBIDDEN: 403,
|
|
89
|
+
NOT_FOUND: 404,
|
|
90
|
+
METHOD_NOT_SUPPORTED: 405,
|
|
91
|
+
TIMEOUT: 408,
|
|
92
|
+
CONFLICT: 409,
|
|
93
|
+
PRECONDITION_FAILED: 412,
|
|
94
|
+
PAYLOAD_TOO_LARGE: 413,
|
|
95
|
+
UNSUPPORTED_MEDIA_TYPE: 415,
|
|
96
|
+
UNPROCESSABLE_CONTENT: 422,
|
|
97
|
+
PRECONDITION_REQUIRED: 428,
|
|
98
|
+
TOO_MANY_REQUESTS: 429,
|
|
99
|
+
CLIENT_CLOSED_REQUEST: 499,
|
|
100
|
+
INTERNAL_SERVER_ERROR: 500,
|
|
101
|
+
NOT_IMPLEMENTED: 501,
|
|
102
|
+
BAD_GATEWAY: 502,
|
|
103
|
+
SERVICE_UNAVAILABLE: 503,
|
|
104
|
+
GATEWAY_TIMEOUT: 504
|
|
105
|
+
};
|
|
106
|
+
const HTTP_CODE_TO_JSONRPC2 = {
|
|
107
|
+
400: "BAD_REQUEST",
|
|
108
|
+
401: "UNAUTHORIZED",
|
|
109
|
+
402: "PAYMENT_REQUIRED",
|
|
110
|
+
403: "FORBIDDEN",
|
|
111
|
+
404: "NOT_FOUND",
|
|
112
|
+
405: "METHOD_NOT_SUPPORTED",
|
|
113
|
+
408: "TIMEOUT",
|
|
114
|
+
409: "CONFLICT",
|
|
115
|
+
412: "PRECONDITION_FAILED",
|
|
116
|
+
413: "PAYLOAD_TOO_LARGE",
|
|
117
|
+
415: "UNSUPPORTED_MEDIA_TYPE",
|
|
118
|
+
422: "UNPROCESSABLE_CONTENT",
|
|
119
|
+
428: "PRECONDITION_REQUIRED",
|
|
120
|
+
429: "TOO_MANY_REQUESTS",
|
|
121
|
+
499: "CLIENT_CLOSED_REQUEST",
|
|
122
|
+
500: "INTERNAL_SERVER_ERROR",
|
|
123
|
+
501: "NOT_IMPLEMENTED",
|
|
124
|
+
502: "BAD_GATEWAY",
|
|
125
|
+
503: "SERVICE_UNAVAILABLE",
|
|
126
|
+
504: "GATEWAY_TIMEOUT"
|
|
127
|
+
};
|
|
128
|
+
function getStatusCodeFromKey(code) {
|
|
129
|
+
var _JSONRPC2_TO_HTTP_COD;
|
|
130
|
+
return (_JSONRPC2_TO_HTTP_COD = JSONRPC2_TO_HTTP_CODE[code]) !== null && _JSONRPC2_TO_HTTP_COD !== void 0 ? _JSONRPC2_TO_HTTP_COD : 500;
|
|
131
|
+
}
|
|
132
|
+
function getStatusKeyFromCode(code) {
|
|
133
|
+
var _HTTP_CODE_TO_JSONRPC;
|
|
134
|
+
return (_HTTP_CODE_TO_JSONRPC = HTTP_CODE_TO_JSONRPC2[code]) !== null && _HTTP_CODE_TO_JSONRPC !== void 0 ? _HTTP_CODE_TO_JSONRPC : "INTERNAL_SERVER_ERROR";
|
|
135
|
+
}
|
|
136
|
+
function getHTTPStatusCode(json) {
|
|
137
|
+
const arr = Array.isArray(json) ? json : [json];
|
|
138
|
+
const httpStatuses = new Set(arr.map((res) => {
|
|
139
|
+
if ("error" in res && require_codes.isObject(res.error.data)) {
|
|
140
|
+
var _res$error$data;
|
|
141
|
+
if (typeof ((_res$error$data = res.error.data) === null || _res$error$data === void 0 ? void 0 : _res$error$data["httpStatus"]) === "number") return res.error.data["httpStatus"];
|
|
142
|
+
const code = require_codes.TRPC_ERROR_CODES_BY_NUMBER[res.error.code];
|
|
143
|
+
return getStatusCodeFromKey(code);
|
|
144
|
+
}
|
|
145
|
+
return 200;
|
|
146
|
+
}));
|
|
147
|
+
if (httpStatuses.size !== 1) return 207;
|
|
148
|
+
const httpStatus = httpStatuses.values().next().value;
|
|
149
|
+
return httpStatus;
|
|
150
|
+
}
|
|
151
|
+
function getHTTPStatusCodeFromError(error) {
|
|
152
|
+
return getStatusCodeFromKey(error.code);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
//#endregion
|
|
156
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js
|
|
157
|
+
var require_typeof = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(exports, module) {
|
|
158
|
+
function _typeof$2(o) {
|
|
159
|
+
"@babel/helpers - typeof";
|
|
160
|
+
return module.exports = _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
|
|
161
|
+
return typeof o$1;
|
|
162
|
+
} : function(o$1) {
|
|
163
|
+
return o$1 && "function" == typeof Symbol && o$1.constructor === Symbol && o$1 !== Symbol.prototype ? "symbol" : typeof o$1;
|
|
164
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof$2(o);
|
|
165
|
+
}
|
|
166
|
+
module.exports = _typeof$2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
167
|
+
} });
|
|
168
|
+
|
|
169
|
+
//#endregion
|
|
170
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js
|
|
171
|
+
var require_toPrimitive = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(exports, module) {
|
|
172
|
+
var _typeof$1 = require_typeof()["default"];
|
|
173
|
+
function toPrimitive$1(t, r) {
|
|
174
|
+
if ("object" != _typeof$1(t) || !t) return t;
|
|
175
|
+
var e = t[Symbol.toPrimitive];
|
|
176
|
+
if (void 0 !== e) {
|
|
177
|
+
var i = e.call(t, r || "default");
|
|
178
|
+
if ("object" != _typeof$1(i)) return i;
|
|
179
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
180
|
+
}
|
|
181
|
+
return ("string" === r ? String : Number)(t);
|
|
182
|
+
}
|
|
183
|
+
module.exports = toPrimitive$1, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
184
|
+
} });
|
|
185
|
+
|
|
186
|
+
//#endregion
|
|
187
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js
|
|
188
|
+
var require_toPropertyKey = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(exports, module) {
|
|
189
|
+
var _typeof = require_typeof()["default"];
|
|
190
|
+
var toPrimitive = require_toPrimitive();
|
|
191
|
+
function toPropertyKey$1(t) {
|
|
192
|
+
var i = toPrimitive(t, "string");
|
|
193
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
194
|
+
}
|
|
195
|
+
module.exports = toPropertyKey$1, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
196
|
+
} });
|
|
197
|
+
|
|
198
|
+
//#endregion
|
|
199
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js
|
|
200
|
+
var require_defineProperty = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(exports, module) {
|
|
201
|
+
var toPropertyKey = require_toPropertyKey();
|
|
202
|
+
function _defineProperty(e, r, t) {
|
|
203
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
204
|
+
value: t,
|
|
205
|
+
enumerable: !0,
|
|
206
|
+
configurable: !0,
|
|
207
|
+
writable: !0
|
|
208
|
+
}) : e[r] = t, e;
|
|
209
|
+
}
|
|
210
|
+
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
211
|
+
} });
|
|
212
|
+
|
|
213
|
+
//#endregion
|
|
214
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js
|
|
215
|
+
var require_objectSpread2 = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(exports, module) {
|
|
216
|
+
var defineProperty = require_defineProperty();
|
|
217
|
+
function ownKeys(e, r) {
|
|
218
|
+
var t = Object.keys(e);
|
|
219
|
+
if (Object.getOwnPropertySymbols) {
|
|
220
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
221
|
+
r && (o = o.filter(function(r$1) {
|
|
222
|
+
return Object.getOwnPropertyDescriptor(e, r$1).enumerable;
|
|
223
|
+
})), t.push.apply(t, o);
|
|
224
|
+
}
|
|
225
|
+
return t;
|
|
226
|
+
}
|
|
227
|
+
function _objectSpread2(e) {
|
|
228
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
229
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
230
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function(r$1) {
|
|
231
|
+
defineProperty(e, r$1, t[r$1]);
|
|
232
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r$1) {
|
|
233
|
+
Object.defineProperty(e, r$1, Object.getOwnPropertyDescriptor(t, r$1));
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
return e;
|
|
237
|
+
}
|
|
238
|
+
module.exports = _objectSpread2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
239
|
+
} });
|
|
240
|
+
|
|
241
|
+
//#endregion
|
|
242
|
+
//#region src/unstable-core-do-not-import/error/getErrorShape.ts
|
|
243
|
+
var import_objectSpread2 = __toESM(require_objectSpread2(), 1);
|
|
244
|
+
/**
|
|
245
|
+
* @internal
|
|
246
|
+
*/
|
|
247
|
+
function getErrorShape(opts) {
|
|
248
|
+
const { path, error, config } = opts;
|
|
249
|
+
const { code } = opts.error;
|
|
250
|
+
const shape = {
|
|
251
|
+
message: error.message,
|
|
252
|
+
code: require_codes.TRPC_ERROR_CODES_BY_KEY[code],
|
|
253
|
+
data: {
|
|
254
|
+
code,
|
|
255
|
+
httpStatus: getHTTPStatusCodeFromError(error)
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
if (config.isDev && typeof opts.error.stack === "string") shape.data.stack = opts.error.stack;
|
|
259
|
+
if (typeof path === "string") shape.data.path = path;
|
|
260
|
+
return config.errorFormatter((0, import_objectSpread2.default)((0, import_objectSpread2.default)({}, opts), {}, { shape }));
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
//#endregion
|
|
264
|
+
Object.defineProperty(exports, 'HTTP_CODE_TO_JSONRPC2', {
|
|
265
|
+
enumerable: true,
|
|
266
|
+
get: function () {
|
|
267
|
+
return HTTP_CODE_TO_JSONRPC2;
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
Object.defineProperty(exports, 'JSONRPC2_TO_HTTP_CODE', {
|
|
271
|
+
enumerable: true,
|
|
272
|
+
get: function () {
|
|
273
|
+
return JSONRPC2_TO_HTTP_CODE;
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
Object.defineProperty(exports, '__commonJS', {
|
|
277
|
+
enumerable: true,
|
|
278
|
+
get: function () {
|
|
279
|
+
return __commonJS;
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
Object.defineProperty(exports, '__toESM', {
|
|
283
|
+
enumerable: true,
|
|
284
|
+
get: function () {
|
|
285
|
+
return __toESM;
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
Object.defineProperty(exports, 'createFlatProxy', {
|
|
289
|
+
enumerable: true,
|
|
290
|
+
get: function () {
|
|
291
|
+
return createFlatProxy;
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
Object.defineProperty(exports, 'createRecursiveProxy', {
|
|
295
|
+
enumerable: true,
|
|
296
|
+
get: function () {
|
|
297
|
+
return createRecursiveProxy;
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
Object.defineProperty(exports, 'getErrorShape', {
|
|
301
|
+
enumerable: true,
|
|
302
|
+
get: function () {
|
|
303
|
+
return getErrorShape;
|
|
304
|
+
}
|
|
305
|
+
});
|
|
306
|
+
Object.defineProperty(exports, 'getHTTPStatusCode', {
|
|
307
|
+
enumerable: true,
|
|
308
|
+
get: function () {
|
|
309
|
+
return getHTTPStatusCode;
|
|
310
|
+
}
|
|
311
|
+
});
|
|
312
|
+
Object.defineProperty(exports, 'getHTTPStatusCodeFromError', {
|
|
313
|
+
enumerable: true,
|
|
314
|
+
get: function () {
|
|
315
|
+
return getHTTPStatusCodeFromError;
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
Object.defineProperty(exports, 'getStatusCodeFromKey', {
|
|
319
|
+
enumerable: true,
|
|
320
|
+
get: function () {
|
|
321
|
+
return getStatusCodeFromKey;
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
Object.defineProperty(exports, 'getStatusKeyFromCode', {
|
|
325
|
+
enumerable: true,
|
|
326
|
+
get: function () {
|
|
327
|
+
return getStatusKeyFromCode;
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
Object.defineProperty(exports, 'require_defineProperty', {
|
|
331
|
+
enumerable: true,
|
|
332
|
+
get: function () {
|
|
333
|
+
return require_defineProperty;
|
|
334
|
+
}
|
|
335
|
+
});
|
|
336
|
+
Object.defineProperty(exports, 'require_objectSpread2', {
|
|
337
|
+
enumerable: true,
|
|
338
|
+
get: function () {
|
|
339
|
+
return require_objectSpread2;
|
|
340
|
+
}
|
|
341
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const require_getErrorShape = require('./getErrorShape-MR4DZeb7.cjs');
|
|
2
|
+
require('./codes-BfZsPdy-.cjs');
|
|
3
|
+
require('./tracked-Dj_dpOJE.cjs');
|
|
4
|
+
const require_resolveResponse = require('./resolveResponse-B0CCg8nq.cjs');
|
|
5
|
+
const require_contentTypeParsers = require('./contentTypeParsers-iAFF_pJG.cjs');
|
|
6
|
+
require('./observable-B1Nk6r1H.cjs');
|
|
7
|
+
require('./http-DXy3XyhL.cjs');
|
|
8
|
+
|
|
9
|
+
exports.getHTTPStatusCode = require_getErrorShape.getHTTPStatusCode;
|
|
10
|
+
exports.getHTTPStatusCodeFromError = require_getErrorShape.getHTTPStatusCodeFromError;
|
|
11
|
+
exports.octetInputParser = require_contentTypeParsers.octetInputParser;
|
|
12
|
+
exports.parseConnectionParamsFromString = require_resolveResponse.parseConnectionParamsFromString;
|
|
13
|
+
exports.parseConnectionParamsFromUnknown = require_resolveResponse.parseConnectionParamsFromUnknown;
|
|
14
|
+
exports.resolveResponse = require_resolveResponse.resolveResponse;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const require_getErrorShape = require('./getErrorShape-MR4DZeb7.cjs');
|
|
2
|
+
require('./codes-BfZsPdy-.cjs');
|
|
3
|
+
const require_tracked = require('./tracked-Dj_dpOJE.cjs');
|
|
4
|
+
const require_initTRPC = require('./initTRPC-BXPPV9Tx.cjs');
|
|
5
|
+
|
|
6
|
+
exports.StandardSchemaV1Error = require_initTRPC.StandardSchemaV1Error;
|
|
7
|
+
exports.TRPCError = require_tracked.TRPCError;
|
|
8
|
+
exports.callTRPCProcedure = require_tracked.callProcedure;
|
|
9
|
+
exports.createTRPCFlatProxy = require_getErrorShape.createFlatProxy;
|
|
10
|
+
exports.createTRPCRecursiveProxy = require_getErrorShape.createRecursiveProxy;
|
|
11
|
+
exports.experimental_lazy = require_tracked.lazy;
|
|
12
|
+
exports.experimental_standaloneMiddleware = require_initTRPC.experimental_standaloneMiddleware;
|
|
13
|
+
exports.experimental_trpcMiddleware = require_initTRPC.experimental_standaloneMiddleware;
|
|
14
|
+
exports.getErrorShape = require_getErrorShape.getErrorShape;
|
|
15
|
+
exports.getTRPCErrorFromUnknown = require_tracked.getTRPCErrorFromUnknown;
|
|
16
|
+
exports.getTRPCErrorShape = require_getErrorShape.getErrorShape;
|
|
17
|
+
exports.initTRPC = require_initTRPC.initTRPC;
|
|
18
|
+
exports.isTrackedEnvelope = require_tracked.isTrackedEnvelope;
|
|
19
|
+
exports.lazy = require_tracked.lazy;
|
|
20
|
+
exports.sse = require_tracked.sse;
|
|
21
|
+
exports.tracked = require_tracked.tracked;
|
|
22
|
+
exports.transformTRPCResponse = require_tracked.transformTRPCResponse;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createFlatProxy, createRecursiveProxy, getErrorShape } from "./getErrorShape-vC8mUXJD.mjs";
|
|
2
2
|
import "./codes-DagpWZLc.mjs";
|
|
3
|
-
import { TRPCError, callProcedure, getTRPCErrorFromUnknown, isTrackedEnvelope, lazy, sse, tracked, transformTRPCResponse } from "./tracked-
|
|
4
|
-
import { StandardSchemaV1Error, experimental_standaloneMiddleware, initTRPC } from "./initTRPC-
|
|
3
|
+
import { TRPCError, callProcedure, getTRPCErrorFromUnknown, isTrackedEnvelope, lazy, sse, tracked, transformTRPCResponse } from "./tracked-DiE3uR1B.mjs";
|
|
4
|
+
import { StandardSchemaV1Error, experimental_standaloneMiddleware, initTRPC } from "./initTRPC-B1ggxyJl.mjs";
|
|
5
5
|
|
|
6
6
|
export { StandardSchemaV1Error, TRPCError, callProcedure as callTRPCProcedure, createFlatProxy as createTRPCFlatProxy, createRecursiveProxy as createTRPCRecursiveProxy, lazy as experimental_lazy, experimental_standaloneMiddleware, experimental_standaloneMiddleware as experimental_trpcMiddleware, getErrorShape, getTRPCErrorFromUnknown, getErrorShape as getTRPCErrorShape, initTRPC, isTrackedEnvelope, lazy, sse, tracked, transformTRPCResponse };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __commonJS, __toESM, require_defineProperty, require_objectSpread2 } from "./getErrorShape-vC8mUXJD.mjs";
|
|
2
2
|
import { isObject, mergeWithoutOverrides } from "./codes-DagpWZLc.mjs";
|
|
3
|
-
import { TRPCError, createCallerFactory, createRouterFactory, defaultFormatter, defaultTransformer, getDataTransformer, getTRPCErrorFromUnknown, mergeRouters } from "./tracked-
|
|
3
|
+
import { TRPCError, createCallerFactory, createRouterFactory, defaultFormatter, defaultTransformer, getDataTransformer, getTRPCErrorFromUnknown, mergeRouters } from "./tracked-DiE3uR1B.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/unstable-core-do-not-import/middleware.ts
|
|
6
6
|
var import_objectSpread2$2 = __toESM(require_objectSpread2(), 1);
|
|
@@ -355,4 +355,4 @@ const initTRPC = new TRPCBuilder();
|
|
|
355
355
|
|
|
356
356
|
//#endregion
|
|
357
357
|
export { StandardSchemaV1Error, createBuilder, createInputMiddleware, createMiddlewareFactory, createOutputMiddleware, experimental_standaloneMiddleware, getParseFn, initTRPC, isServerDefault, middlewareMarker };
|
|
358
|
-
//# sourceMappingURL=initTRPC-
|
|
358
|
+
//# sourceMappingURL=initTRPC-B1ggxyJl.mjs.map
|