@module-federation/bridge-vue3 0.0.0-next-20241106033151 → 0.0.0-next-20241106063644
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 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +16 -13
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
# @module-federation/bridge-vue3
|
|
2
2
|
|
|
3
|
-
## 0.0.0-next-
|
|
3
|
+
## 0.0.0-next-20241106063644
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
- @module-federation/
|
|
7
|
+
- Updated dependencies [6db4c5f]
|
|
8
|
+
- @module-federation/sdk@0.0.0-next-20241106063644
|
|
9
|
+
- @module-federation/bridge-shared@0.0.0-next-20241106063644
|
|
9
10
|
|
|
10
11
|
## 0.7.0
|
|
11
12
|
|
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),w=require("vue-router");function j(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,t.get?t:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const G=j(i),E=j(w);var $=Object.defineProperty,W=Object.getOwnPropertyDescriptor,U=Object.getOwnPropertyNames,T=Object.prototype.hasOwnProperty,k=(e,o)=>{for(var r in o)$(e,r,{get:o[r],enumerable:!0})},x=(e,o,r,t)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of U(o))!T.call(e,n)&&n!==r&&$(e,n,{get:()=>o[n],enumerable:!(t=W(o,n))||t.enumerable});return e},z=e=>x($({},"__esModule",{value:!0}),e),A={};k(A,{createLogger:()=>M,logger:()=>ne});var H=z(A),R=void 0,I=()=>{if(typeof R<"u")return R;try{
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),w=require("vue-router");function j(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,t.get?t:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const G=j(i),E=j(w);var $=Object.defineProperty,W=Object.getOwnPropertyDescriptor,U=Object.getOwnPropertyNames,T=Object.prototype.hasOwnProperty,k=(e,o)=>{for(var r in o)$(e,r,{get:o[r],enumerable:!0})},x=(e,o,r,t)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of U(o))!T.call(e,n)&&n!==r&&$(e,n,{get:()=>o[n],enumerable:!(t=W(o,n))||t.enumerable});return e},z=e=>x($({},"__esModule",{value:!0}),e),A={};k(A,{createLogger:()=>M,logger:()=>ne});var H=z(A),R=void 0,I=()=>{if(typeof R<"u")return R;try{const e="color test",o="color: red;",r=console.log;console.log=(...t)=>{t[0]===`%c${e}`&&t[1]===o&&(R=!0)},console.log(`%c${e}`,o),console.log=r}catch{R=!1}return R},h={bold:"font-weight: bold;",red:"color: red;",green:"color: green;",orange:"color: orange;",dodgerblue:"color: dodgerblue;",magenta:"color: magenta;",gray:"color: gray;"},v=e=>I()?o=>{if(Array.isArray(o)){const[r,t]=o;return[`%c${r.replace("%c","")}`,t?`${h[e]}${t}`:`${h[e]||""}`]}return[`%c${String(o).replace("%c","")}`,h[e]||""]}:o=>[String(o)],q=v("bold"),J=v("red"),S=v("green"),K=v("orange"),L=v("dodgerblue"),X=v("magenta");v("gray");function Y(e,o,r){let t=[""];return"label"in o&&(t=[r[e]||o.label||""],t=q(o.color?o.color(t):t[0])),t=t.filter(Boolean),t}function Q(e,o,r,t){e.length?Array.isArray(t)?console.log(...e,...t):console.log(...e,o):Array.isArray(t)?console.log(...t):console.log(o,...r)}var P={error:0,warn:1,info:2,log:3,verbose:4},Z=/at\s.*:\d+:\d+[\s\)]*$/,ee=/at\s.*\(<anonymous>\)$/,oe=e=>Z.test(e)||ee.test(e),re=(e={},{getLabel:o,handleError:r,finalLog:t,greet:n,LOG_TYPES:c})=>{let l=e.level||"log",a=e.labels||{},g=(s,u,...F)=>{if(P[c[s].level]>P[l])return;if(u==null)return console.log();let C=c[s],b="";const V=o(s,C,a);if(u instanceof Error)if(u.stack){let[y,..._]=u.stack.split(`
|
|
2
2
|
`);y.startsWith("Error: ")&&(y=y.slice(7)),b=`${y}
|
|
3
3
|
${r(_.join(`
|
|
4
4
|
`))}`}else b=u.message;else C.level==="error"&&typeof u=="string"?b=u.split(`
|
package/dist/index.es.js
CHANGED
|
@@ -2,15 +2,15 @@ import * as G from "vue";
|
|
|
2
2
|
import { defineComponent as V, ref as R, watch as W, onMounted as U, onBeforeUnmount as x, createVNode as k, defineAsyncComponent as z, h as T } from "vue";
|
|
3
3
|
import * as h from "vue-router";
|
|
4
4
|
import { useRoute as B } from "vue-router";
|
|
5
|
-
var
|
|
5
|
+
var $ = Object.defineProperty, H = Object.getOwnPropertyDescriptor, J = Object.getOwnPropertyNames, K = Object.prototype.hasOwnProperty, X = (e, o) => {
|
|
6
6
|
for (var r in o)
|
|
7
|
-
|
|
7
|
+
$(e, r, { get: o[r], enumerable: !0 });
|
|
8
8
|
}, Y = (e, o, r, t) => {
|
|
9
9
|
if (o && typeof o == "object" || typeof o == "function")
|
|
10
10
|
for (let n of J(o))
|
|
11
|
-
!K.call(e, n) && n !== r &&
|
|
11
|
+
!K.call(e, n) && n !== r && $(e, n, { get: () => o[n], enumerable: !(t = H(o, n)) || t.enumerable });
|
|
12
12
|
return e;
|
|
13
|
-
}, q = (e) => Y(
|
|
13
|
+
}, q = (e) => Y($({}, "__esModule", { value: !0 }), e), I = {};
|
|
14
14
|
X(I, {
|
|
15
15
|
createLogger: () => N,
|
|
16
16
|
logger: () => de
|
|
@@ -19,7 +19,10 @@ var Q = q(I), E = void 0, D = () => {
|
|
|
19
19
|
if (typeof E < "u")
|
|
20
20
|
return E;
|
|
21
21
|
try {
|
|
22
|
-
|
|
22
|
+
const e = "color test", o = "color: red;", r = console.log;
|
|
23
|
+
console.log = (...t) => {
|
|
24
|
+
t[0] === `%c${e}` && t[1] === o && (E = !0);
|
|
25
|
+
}, console.log(`%c${e}`, o), console.log = r;
|
|
23
26
|
} catch {
|
|
24
27
|
E = !1;
|
|
25
28
|
}
|
|
@@ -47,7 +50,7 @@ function te(e, o, r) {
|
|
|
47
50
|
function ne(e, o, r, t) {
|
|
48
51
|
e.length ? Array.isArray(t) ? console.log(...e, ...t) : console.log(...e, o) : Array.isArray(t) ? console.log(...t) : console.log(o, ...r);
|
|
49
52
|
}
|
|
50
|
-
var
|
|
53
|
+
var S = {
|
|
51
54
|
error: 0,
|
|
52
55
|
warn: 1,
|
|
53
56
|
info: 2,
|
|
@@ -55,12 +58,12 @@ var P = {
|
|
|
55
58
|
verbose: 4
|
|
56
59
|
}, ae = /at\s.*:\d+:\d+[\s\)]*$/, le = /at\s.*\(<anonymous>\)$/, ce = (e) => ae.test(e) || le.test(e), se = (e = {}, { getLabel: o, handleError: r, finalLog: t, greet: n, LOG_TYPES: c }) => {
|
|
57
60
|
let l = e.level || "log", a = e.labels || {}, i = (s, u, ...j) => {
|
|
58
|
-
if (
|
|
61
|
+
if (S[c[s].level] > S[l])
|
|
59
62
|
return;
|
|
60
63
|
if (u == null)
|
|
61
64
|
return console.log();
|
|
62
|
-
let
|
|
63
|
-
const F = o(s,
|
|
65
|
+
let O = c[s], v = "";
|
|
66
|
+
const F = o(s, O, a);
|
|
64
67
|
if (u instanceof Error)
|
|
65
68
|
if (u.stack) {
|
|
66
69
|
let [b, ...y] = u.stack.split(`
|
|
@@ -71,7 +74,7 @@ ${r(y.join(`
|
|
|
71
74
|
} else
|
|
72
75
|
v = u.message;
|
|
73
76
|
else
|
|
74
|
-
|
|
77
|
+
O.level === "error" && typeof u == "string" ? v = u.split(`
|
|
75
78
|
`).map((y) => ce(y) ? r(y) : y).join(`
|
|
76
79
|
`) : v = `${u}`;
|
|
77
80
|
t(F, v, j, u);
|
|
@@ -94,16 +97,16 @@ ${r(y.join(`
|
|
|
94
97
|
}), d.override = (s) => {
|
|
95
98
|
Object.assign(d, s);
|
|
96
99
|
}, d;
|
|
97
|
-
}, m = [189, 255, 243], w = [74, 194, 154],
|
|
100
|
+
}, m = [189, 255, 243], w = [74, 194, 154], P = (e) => !/[\s\n]/.test(e);
|
|
98
101
|
function A(e) {
|
|
99
102
|
if (!D())
|
|
100
103
|
return [e];
|
|
101
|
-
const o = [...e], r = o.filter(
|
|
104
|
+
const o = [...e], r = o.filter(P), t = r.length - 1;
|
|
102
105
|
if (t === 0)
|
|
103
106
|
return console.log(`%c${e}`, `color: rgb(${m.join(",")}); font-weight: bold;`), [e];
|
|
104
107
|
let n = "", c = [];
|
|
105
108
|
return o.forEach((l) => {
|
|
106
|
-
if (
|
|
109
|
+
if (P(l)) {
|
|
107
110
|
const a = r.indexOf(l) / t, i = Math.round(m[0] + (w[0] - m[0]) * a), d = Math.round(m[1] + (w[1] - m[1]) * a), s = Math.round(m[2] + (w[2] - m[2]) * a);
|
|
108
111
|
n += `%c${l}`, c.push(`color: rgb(${i},${d},${s}); font-weight: bold;`);
|
|
109
112
|
} else
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"url": "https://github.com/module-federation/core",
|
|
8
8
|
"directory": "packages/vue3-bridge"
|
|
9
9
|
},
|
|
10
|
-
"version": "0.0.0-next-
|
|
10
|
+
"version": "0.0.0-next-20241106063644",
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"access": "public"
|
|
13
13
|
},
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"vue-router": "=3"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@module-federation/bridge-shared": "0.0.0-next-
|
|
36
|
-
"@module-federation/sdk": "0.0.0-next-
|
|
35
|
+
"@module-federation/bridge-shared": "0.0.0-next-20241106063644",
|
|
36
|
+
"@module-federation/sdk": "0.0.0-next-20241106063644"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@vitejs/plugin-vue": "^5.0.4",
|