@blueking/bk-weweb 0.0.26-beta.4 → 0.0.26-beta.6

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.
@@ -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
 
@@ -371,6 +372,8 @@ function rewriteWindowFunction(fakeWindow) {
371
372
  }
372
373
 
373
374
  // src/context/sandbox.ts
375
+ var xxx = /* @__PURE__ */ new Map();
376
+ window.xxxx = xxx;
374
377
  var SandBox = class {
375
378
  constructor(app) {
376
379
  this.app = app;
@@ -407,8 +410,9 @@ var SandBox = class {
407
410
  return true;
408
411
  },
409
412
  get: (target, key) => {
410
- if (windowNativeFuncMap[key]) return rawWindow[key];
413
+ xxx.set(key, +xxx.get(key) + 1);
411
414
  if (key === Symbol.unscopables) return rawWindow[Symbol.unscopables];
415
+ if (windowNativeFuncMap[key]) return rawWindow[key];
412
416
  if (DEV_MICRO_APP_WINDOE_KEY_MAP[key]) return this.fakeWindow[key];
413
417
  if (WINDOW_ALIAS_LIST.includes(key)) return this.proxyWindow;
414
418
  if (key === "document") {
@@ -456,7 +460,7 @@ var SandBox = class {
456
460
  }
457
461
  return void 0;
458
462
  },
459
- has: (target, key) => windowNativeFuncMap[key] || !!target[key] || !!rawWindow[key],
463
+ has: (target, key) => windowNativeFuncMap[key] || key in target || key in rawWindow,
460
464
  // Object.getOwnPropertyNames(window)
461
465
  ownKeys: (target) => Array.from(new Set(Reflect.ownKeys(rawWindow).concat(Reflect.ownKeys(target)))),
462
466
  set: (target, key, value) => {