@blueking/bk-weweb 0.0.26-beta.4 → 0.0.26-beta.5
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/dist/index.esm.js
CHANGED
|
@@ -13,6 +13,7 @@ var collectNativeWindowFunc = () => {
|
|
|
13
13
|
windowNativeFuncMap[key] = true;
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
+
windowNativeFuncMap.Math = true;
|
|
16
17
|
};
|
|
17
18
|
collectNativeWindowFunc();
|
|
18
19
|
|
|
@@ -415,8 +416,8 @@ var SandBox = class {
|
|
|
415
416
|
return true;
|
|
416
417
|
},
|
|
417
418
|
get: (target, key) => {
|
|
418
|
-
if (windowNativeFuncMap[key]) return rawWindow[key];
|
|
419
419
|
if (key === Symbol.unscopables) return rawWindow[Symbol.unscopables];
|
|
420
|
+
if (windowNativeFuncMap[key]) return rawWindow[key];
|
|
420
421
|
if (DEV_MICRO_APP_WINDOE_KEY_MAP[key]) return this.fakeWindow[key];
|
|
421
422
|
if (WINDOW_ALIAS_LIST.includes(key)) return this.proxyWindow;
|
|
422
423
|
if (key === "document") {
|
|
@@ -464,7 +465,7 @@ var SandBox = class {
|
|
|
464
465
|
}
|
|
465
466
|
return void 0;
|
|
466
467
|
},
|
|
467
|
-
has: (target, key) => windowNativeFuncMap[key] ||
|
|
468
|
+
has: (target, key) => windowNativeFuncMap[key] || key in target || key in rawWindow,
|
|
468
469
|
// Object.getOwnPropertyNames(window)
|
|
469
470
|
ownKeys: (target) => Array.from(new Set(Reflect.ownKeys(rawWindow).concat(Reflect.ownKeys(target)))),
|
|
470
471
|
set: (target, key, value) => {
|