@vc-shell/framework 1.1.12 → 1.1.13
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/CHANGELOG.md +4 -0
- package/core/plugins/modularity/loader.ts +3 -54
- package/dist/core/plugins/modularity/loader.d.ts +0 -1
- package/dist/core/plugins/modularity/loader.d.ts.map +1 -1
- package/dist/framework.js +1 -1
- package/dist/{index-PqzeY6cl.js → index-3A2Hnqrq.js} +1 -1
- package/dist/{index-DLtYfyEa.js → index-B3iU8-A1.js} +1 -1
- package/dist/{index-CANk6jcp.js → index-BISLgAEB.js} +1 -1
- package/dist/{index-CCnqVZt-.js → index-BWbFkDa0.js} +1 -1
- package/dist/{index-BvC1hXTW.js → index-CBQlnj-B.js} +1 -1
- package/dist/{index-B1lnp8dm.js → index-CQo65M-u.js} +16825 -16852
- package/dist/{index-DZB1EwT4.js → index-ChjkjQKO.js} +1 -1
- package/dist/{index-B8MhEsjP.js → index-CzDc-mia.js} +1 -1
- package/dist/{index-SUpxIx98.js → index-DGCGoJoH.js} +1 -1
- package/dist/{index-YjAGn3zb.js → index-DNbY7P_u.js} +1 -1
- package/dist/{index-DC17QrkG.js → index-DakkJ0Cz.js} +1 -1
- package/dist/{index-DaqdMz5G.js → index-DlPhVze5.js} +1 -1
- package/dist/{index-D1UBvTmB.js → index-DqBypt_Z.js} +1 -1
- package/dist/{index-BfyO90TH.js → index-co8q_PFD.js} +1 -1
- package/dist/{index-BihUGqBD.js → index-gSGyS2U2.js} +1 -1
- package/dist/{index-QV_Z9Gd1.js → index-rcb9yEYF.js} +1 -1
- package/dist/{index-CSPYdG5c.js → index-vztMiylq.js} +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -69,7 +69,7 @@ class VersionCompatibilityError extends Error {
|
|
|
69
69
|
details: {
|
|
70
70
|
required: string;
|
|
71
71
|
current: string;
|
|
72
|
-
type: "framework" | "module"
|
|
72
|
+
type: "framework" | "module";
|
|
73
73
|
dependencyName?: string;
|
|
74
74
|
};
|
|
75
75
|
|
|
@@ -78,7 +78,7 @@ class VersionCompatibilityError extends Error {
|
|
|
78
78
|
details: {
|
|
79
79
|
required: string;
|
|
80
80
|
current: string;
|
|
81
|
-
type: "framework" | "module"
|
|
81
|
+
type: "framework" | "module";
|
|
82
82
|
dependencyName?: string;
|
|
83
83
|
},
|
|
84
84
|
) {
|
|
@@ -88,7 +88,7 @@ class VersionCompatibilityError extends Error {
|
|
|
88
88
|
} else if (details.type === "module") {
|
|
89
89
|
message = `Module ${moduleId} requires ${details.dependencyName} version ${details.required}, but current is ${details.current}`;
|
|
90
90
|
} else {
|
|
91
|
-
message = `Module ${moduleId}
|
|
91
|
+
message = `Module ${moduleId} encountered an unknown compatibility issue.`;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
super(message);
|
|
@@ -129,7 +129,6 @@ interface ModuleConfig {
|
|
|
129
129
|
entryPointKey: string;
|
|
130
130
|
frameworkVersion: string;
|
|
131
131
|
skipVersionCheck?: boolean;
|
|
132
|
-
appVersion?: string;
|
|
133
132
|
}
|
|
134
133
|
|
|
135
134
|
const DEFAULT_CONFIG: Partial<ModuleConfig> = {
|
|
@@ -139,50 +138,11 @@ const DEFAULT_CONFIG: Partial<ModuleConfig> = {
|
|
|
139
138
|
frameworkVersion: "1.1.0",
|
|
140
139
|
};
|
|
141
140
|
|
|
142
|
-
function checkAppCompatibility(moduleId: string, versionInfo: VersionInfo, appName: string, appVersion?: string): void {
|
|
143
|
-
if (!versionInfo.appCompatibility) return;
|
|
144
|
-
|
|
145
|
-
if (versionInfo.appCompatibility["*"]) return;
|
|
146
|
-
|
|
147
|
-
const appPattern = versionInfo.appCompatibility[appName];
|
|
148
|
-
|
|
149
|
-
if (!appPattern) {
|
|
150
|
-
const compatibleApps = Object.keys(versionInfo.appCompatibility).join(", ");
|
|
151
|
-
|
|
152
|
-
notification.error(
|
|
153
|
-
`Module ${moduleId} is not compatible with application ${appName}. Required apps: ${compatibleApps}`,
|
|
154
|
-
);
|
|
155
|
-
|
|
156
|
-
throw new VersionCompatibilityError(moduleId, {
|
|
157
|
-
required: compatibleApps || "none",
|
|
158
|
-
current: appName,
|
|
159
|
-
type: "app",
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
if (appPattern !== "*" && appVersion) {
|
|
164
|
-
if (!semver.satisfies(appVersion, appPattern)) {
|
|
165
|
-
notification.error(
|
|
166
|
-
`Module ${moduleId} is not compatible with application ${appName} v${appVersion}. Required apps: ${appPattern}`,
|
|
167
|
-
);
|
|
168
|
-
|
|
169
|
-
throw new VersionCompatibilityError(moduleId, {
|
|
170
|
-
required: appPattern,
|
|
171
|
-
current: appVersion,
|
|
172
|
-
type: "app",
|
|
173
|
-
dependencyName: appName,
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
141
|
function checkVersionCompatibility(
|
|
180
142
|
moduleId: string,
|
|
181
143
|
moduleVersion: VersionInfo | undefined,
|
|
182
144
|
frameworkVersion: string,
|
|
183
145
|
loadedModulesWithVersions: Map<string, string>,
|
|
184
|
-
appName: string,
|
|
185
|
-
appVersion?: string,
|
|
186
146
|
): void {
|
|
187
147
|
if (!moduleVersion) return;
|
|
188
148
|
|
|
@@ -203,8 +163,6 @@ function checkVersionCompatibility(
|
|
|
203
163
|
});
|
|
204
164
|
}
|
|
205
165
|
|
|
206
|
-
checkAppCompatibility(moduleId, moduleVersion, appName, appVersion);
|
|
207
|
-
|
|
208
166
|
if (moduleVersion.compatibleWith.modules) {
|
|
209
167
|
for (const [depModuleId, versionRange] of Object.entries(moduleVersion.compatibleWith.modules)) {
|
|
210
168
|
const loadedDepVersion = loadedModulesWithVersions.get(depModuleId);
|
|
@@ -344,21 +302,12 @@ export function useDynamicModules(
|
|
|
344
302
|
versionInfo,
|
|
345
303
|
finalConfig.frameworkVersion || "0.0.0",
|
|
346
304
|
loadedModulesWithVersions,
|
|
347
|
-
appName,
|
|
348
|
-
finalConfig.appVersion,
|
|
349
305
|
);
|
|
350
306
|
|
|
351
307
|
loadedModulesWithVersions.set(moduleId, versionInfo.version);
|
|
352
308
|
} catch (versionError) {
|
|
353
309
|
if (versionError instanceof VersionCompatibilityError) {
|
|
354
310
|
console.error(`Version compatibility error: ${versionError.message}`);
|
|
355
|
-
if (versionError.details.type === "app") {
|
|
356
|
-
console.error(
|
|
357
|
-
`Module ${moduleId} is not compatible with application ${appName}${
|
|
358
|
-
finalConfig.appVersion ? ` v${finalConfig.appVersion}` : ""
|
|
359
|
-
}. This module supports only: ${versionError.details.required || "none"}`,
|
|
360
|
-
);
|
|
361
|
-
}
|
|
362
311
|
console.error(`Skipping installation of incompatible module: ${moduleId}`);
|
|
363
312
|
return;
|
|
364
313
|
} else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../../core/plugins/modularity/loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAU,MAAM,KAAK,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AA4HpC,UAAU,YAAY;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../../core/plugins/modularity/loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAU,MAAM,KAAK,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AA4HpC,UAAU,YAAY;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AA6DD,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,GAAG,EACR,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EACxD,MAAM,GAAE,OAAO,CAAC,YAAY,CAAM;;;;EA0KnC"}
|
package/dist/framework.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "vue-router";
|
|
2
|
-
import { de as o, H as n, F as c, bW as r, R as d, bX as l, bY as u, bK as p, U as b, X as g, dn as y, dq as S, dp as m, bI as V, bL as I, z as h, Y as C, B as D, d5 as P, bM as A, bZ as R, b_ as L, dO as M, e1 as f, b$ as B, c0 as v, c1 as T, c2 as w, Z as E, $ as O, a0 as N, a1 as U, a2 as K, c3 as W, c4 as x, c5 as F, a3 as k, D as q, dZ as z, bN as j, c6 as H, a4 as J, a5 as _, dY as G, dw as Q, dv as X, A as Y, c7 as Z, d6 as $, bO as aa, c8 as sa, c9 as ea, ca as ta, cb as ia, cc as oa, cd as na, ce as ca, d8 as ra, cf as da, cg as la, ch as ua, d7 as pa, ci as ba, dI as ga, dV as ya, bJ as Sa, cj as ma, dk as Va, a6 as Ia, dX as ha, G as Ca, a7 as Da, ck as Pa, cl as Aa, d_ as Ra, cm as La, bP as Ma, cn as fa, d9 as Ba, co as va, cp as Ta, dP as wa, cq as Ea, cr as Oa, cs as Na, ct as Ua, bQ as Ka, cu as Wa, d$ as xa, cv as Fa, cw as ka, a8 as qa, a9 as za, M as ja, aa as Ha, cx as Ja, cy as _a, cz as Ga, cA as Qa, bR as Xa, dE as Ya, dR as Za, dS as $a, y as as, cB as ss, cC as es, bS as ts, cD as is, da as os, ab as ns, cE as cs, cF as rs, cG as ds, db as ls, ac as us, ad as ps, cH as bs, cI as gs, ae as ys, af as Ss, ag as ms, cJ as Vs, cK as Is, dc as hs, cL as Cs, bT as Ds, cM as Ps, cN as As, e0 as Rs, cO as Ls, cP as Ms, cQ as fs, cR as Bs, ah as vs, bU as Ts, cS as ws, cT as Es, bV as Os, cU as Ns, ai as Us, dW as Ks, S as Ws, dm as xs, aj as Fs, dT as ks, cV as qs, cW as zs, cX as js, dd as Hs, cY as Js, cZ as _s, T as Gs, dU as Qs, c_ as Xs, c$ as Ys, dQ as Zs, d0 as $s, d1 as ae, d2 as se, d3 as ee, aP as te, dx as ie, _ as oe, aQ as ne, dC as ce, dB as re, ax as de, J as le, V as ue, aM as pe, K as be, O as ge, aR as ye, ay as Se, aK as me, aA as Ve, az as Ie, aS as he, P as Ce, Q as De, al as Pe, aB as Ae, aC as Re, aN as Le, am as Me, an as fe, ao as Be, aT as ve, aJ as Te, aE as we, aU as Ee, dL as Oe, dK as Ne, ap as Ue, aL as Ke, aF as We, aq as xe, aG as Fe, aw as ke, aH as qe, ar as ze, as as je, aO as He, aV as Je, aI as _e, aD as Ge, av as Qe, at as Xe, au as Ye, d4 as Ze, ak as $e, W as at, bk as st, b6 as et, bn as tt, bx as it, bq as ot, bw as nt, by as ct, dA as rt, df as dt, di as lt, dy as ut, bA as pt, dr as bt, bD as gt, bz as yt, w as St, bC as mt, bv as Vt, dj as It, dN as ht, bt as Ct, dg as Dt, dh as Pt, dl as At, br as Rt, bu as Lt, bs as Mt, x as ft, dH as Bt, bH as vt, dJ as Tt, bi as wt, bf as Et, b4 as Ot, bl as Nt, bc as Ut, bh as Kt, bE as Wt, be as xt, bG as Ft, bF as kt, b0 as qt, bj as zt, ba as jt, dz as Ht, b3 as Jt, a$ as _t, b7 as Gt, dD as Qt, b9 as Xt, dF as Yt, bg as Zt, dt as $t, bB as ai, bp as si, ds as ei, b2 as ti, aW as ii, dG as oi, b8 as ni, du as ci, b1 as ri, b5 as di, aY as li, a_ as ui, dM as pi, aZ as bi, bm as gi, bb as yi, bo as Si, aX as mi, bd as Vi } from "./index-
|
|
2
|
+
import { de as o, H as n, F as c, bW as r, R as d, bX as l, bY as u, bK as p, U as b, X as g, dn as y, dq as S, dp as m, bI as V, bL as I, z as h, Y as C, B as D, d5 as P, bM as A, bZ as R, b_ as L, dO as M, e1 as f, b$ as B, c0 as v, c1 as T, c2 as w, Z as E, $ as O, a0 as N, a1 as U, a2 as K, c3 as W, c4 as x, c5 as F, a3 as k, D as q, dZ as z, bN as j, c6 as H, a4 as J, a5 as _, dY as G, dw as Q, dv as X, A as Y, c7 as Z, d6 as $, bO as aa, c8 as sa, c9 as ea, ca as ta, cb as ia, cc as oa, cd as na, ce as ca, d8 as ra, cf as da, cg as la, ch as ua, d7 as pa, ci as ba, dI as ga, dV as ya, bJ as Sa, cj as ma, dk as Va, a6 as Ia, dX as ha, G as Ca, a7 as Da, ck as Pa, cl as Aa, d_ as Ra, cm as La, bP as Ma, cn as fa, d9 as Ba, co as va, cp as Ta, dP as wa, cq as Ea, cr as Oa, cs as Na, ct as Ua, bQ as Ka, cu as Wa, d$ as xa, cv as Fa, cw as ka, a8 as qa, a9 as za, M as ja, aa as Ha, cx as Ja, cy as _a, cz as Ga, cA as Qa, bR as Xa, dE as Ya, dR as Za, dS as $a, y as as, cB as ss, cC as es, bS as ts, cD as is, da as os, ab as ns, cE as cs, cF as rs, cG as ds, db as ls, ac as us, ad as ps, cH as bs, cI as gs, ae as ys, af as Ss, ag as ms, cJ as Vs, cK as Is, dc as hs, cL as Cs, bT as Ds, cM as Ps, cN as As, e0 as Rs, cO as Ls, cP as Ms, cQ as fs, cR as Bs, ah as vs, bU as Ts, cS as ws, cT as Es, bV as Os, cU as Ns, ai as Us, dW as Ks, S as Ws, dm as xs, aj as Fs, dT as ks, cV as qs, cW as zs, cX as js, dd as Hs, cY as Js, cZ as _s, T as Gs, dU as Qs, c_ as Xs, c$ as Ys, dQ as Zs, d0 as $s, d1 as ae, d2 as se, d3 as ee, aP as te, dx as ie, _ as oe, aQ as ne, dC as ce, dB as re, ax as de, J as le, V as ue, aM as pe, K as be, O as ge, aR as ye, ay as Se, aK as me, aA as Ve, az as Ie, aS as he, P as Ce, Q as De, al as Pe, aB as Ae, aC as Re, aN as Le, am as Me, an as fe, ao as Be, aT as ve, aJ as Te, aE as we, aU as Ee, dL as Oe, dK as Ne, ap as Ue, aL as Ke, aF as We, aq as xe, aG as Fe, aw as ke, aH as qe, ar as ze, as as je, aO as He, aV as Je, aI as _e, aD as Ge, av as Qe, at as Xe, au as Ye, d4 as Ze, ak as $e, W as at, bk as st, b6 as et, bn as tt, bx as it, bq as ot, bw as nt, by as ct, dA as rt, df as dt, di as lt, dy as ut, bA as pt, dr as bt, bD as gt, bz as yt, w as St, bC as mt, bv as Vt, dj as It, dN as ht, bt as Ct, dg as Dt, dh as Pt, dl as At, br as Rt, bu as Lt, bs as Mt, x as ft, dH as Bt, bH as vt, dJ as Tt, bi as wt, bf as Et, b4 as Ot, bl as Nt, bc as Ut, bh as Kt, bE as Wt, be as xt, bG as Ft, bF as kt, b0 as qt, bj as zt, ba as jt, dz as Ht, b3 as Jt, a$ as _t, b7 as Gt, dD as Qt, b9 as Xt, dF as Yt, bg as Zt, dt as $t, bB as ai, bp as si, ds as ei, b2 as ti, aW as ii, dG as oi, b8 as ni, du as ci, b1 as ri, b5 as di, aY as li, a_ as ui, dM as pi, aZ as bi, bm as gi, bb as yi, bo as Si, aX as mi, bd as Vi } from "./index-CQo65M-u.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
import "vee-validate";
|
|
5
5
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as W, E as i, s as U, C as B, t as n, a as C, L as b, r as E, i as u, f as M, h as v, k as N } from "./index-
|
|
1
|
+
import { b as W, E as i, s as U, C as B, t as n, a as C, L as b, r as E, i as u, f as M, h as v, k as N } from "./index-CQo65M-u.js";
|
|
2
2
|
const c = 63, D = 64, j = 1, A = 2, y = 3, H = 4, Z = 5, F = 6, I = 7, z = 65, K = 66, J = 8, OO = 9, eO = 10, aO = 11, rO = 12, V = 13, tO = 19, nO = 20, oO = 29, PO = 33, QO = 34, sO = 47, lO = 0, T = 1, g = 2, d = 3, m = 4;
|
|
3
3
|
class s {
|
|
4
4
|
constructor(e, a, r) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as r, s as e, t as O, a as s, L as X, i as l, f as Y, c as $, h as S, j as o, k as t } from "./index-
|
|
1
|
+
import { b as r, s as e, t as O, a as s, L as X, i as l, f as Y, c as $, h as S, j as o, k as t } from "./index-CQo65M-u.js";
|
|
2
2
|
const Z = e({
|
|
3
3
|
null: O.null,
|
|
4
4
|
instanceof: O.operatorKeyword,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as s, s as n, t as r, a as o, L as P, i as Q, f as i, c as a, k as c } from "./index-
|
|
1
|
+
import { b as s, s as n, t as r, a as o, L as P, i as Q, f as i, c as a, k as c } from "./index-CQo65M-u.js";
|
|
2
2
|
const g = n({
|
|
3
3
|
String: r.string,
|
|
4
4
|
Number: r.number,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as r, a as i, L as n, b as $, i as y, f as P, c as X, k as m, E as S, s as c, t as O } from "./index-
|
|
1
|
+
import { n as r, a as i, L as n, b as $, i as y, f as P, c as X, k as m, E as S, s as c, t as O } from "./index-CQo65M-u.js";
|
|
2
2
|
const s = 110, l = 1, f = 2, t = [
|
|
3
3
|
9,
|
|
4
4
|
10,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as G, E as A, s as N, C as I, t as p, o as Y, a as j, L as U, g as k, q as Z, i as B, f as D, u as M } from "./index-
|
|
1
|
+
import { b as G, E as A, s as N, C as I, t as p, o as Y, a as j, L as U, g as k, q as Z, i as B, f as D, u as M } from "./index-CQo65M-u.js";
|
|
2
2
|
const h = 1, F = 2, L = 3, K = 4, H = 5, J = 36, ee = 37, te = 38, Oe = 11, oe = 13;
|
|
3
3
|
function re(e) {
|
|
4
4
|
return e == 45 || e == 46 || e == 58 || e >= 65 && e <= 90 || e == 95 || e >= 97 && e <= 122 || e >= 161;
|