xvai-loi 0.1.1 → 0.1.3
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/co.txt +1 -1
- package/nap.js +2 -1
- package/package.json +1 -1
- package/xvai-loi.js +54 -6
package/co.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
xvaiLoi091058
|
package/nap.js
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
export const PHIEN_BAN = 'nap-1';
|
|
3
3
|
export async function khoiDong(c) {
|
|
4
4
|
const G = globalThis;
|
|
5
|
-
|
|
5
|
+
// 09/10 VD-205: chỉ nhận Flow THẬT (không nhận Proxy của lõi khác khi nạp qua cầu của lõi) — Proxy ghi vào __xvaiFlow sẽ tự đọc chính nó → đệ quy vô hạn.
|
|
6
|
+
if (c && c.React) { G.__xvaiReact = c.React; G.__xvaiReactDOM = c.ReactDOM; if (c.Flow && !c.Flow.__xvaiProxy) G.__xvaiFlow = c.Flow; }
|
|
6
7
|
const m = await import('./xvai-loi.js');
|
|
7
8
|
return m.khoiDong(c);
|
|
8
9
|
}
|