@jolibox/implement 1.1.24 → 1.1.25

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.
@@ -1,9 +1,9 @@
1
1
  Invoking: npm run clean && npm run build:esm && tsc
2
2
 
3
- > @jolibox/implement@1.1.24 clean
3
+ > @jolibox/implement@1.1.25 clean
4
4
  > rimraf ./dist
5
5
 
6
6
 
7
- > @jolibox/implement@1.1.24 build:esm
7
+ > @jolibox/implement@1.1.25 build:esm
8
8
  > BUILD_VERSION=$(node -p "require('./package.json').version") node esbuild.config.js --format=esm
9
9
 
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@jolibox/implement",
3
3
  "description": "This project is Jolibox JS-SDk implement for Native && H5",
4
- "version": "1.1.24",
4
+ "version": "1.1.25",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "@jolibox/common": "1.1.24",
10
- "@jolibox/types": "1.1.24",
11
- "@jolibox/native-bridge": "1.1.24",
12
- "@jolibox/ads": "1.1.24",
9
+ "@jolibox/common": "1.1.25",
10
+ "@jolibox/types": "1.1.25",
11
+ "@jolibox/native-bridge": "1.1.25",
12
+ "@jolibox/ads": "1.1.25",
13
13
  "localforage": "1.10.0",
14
14
  "@jolibox/ui": "1.0.0",
15
15
  "web-vitals": "4.2.4"
@@ -76,7 +76,8 @@ export abstract class TaskTracker {
76
76
  const deltaTime = currentTime - lastTime;
77
77
  if (deltaTime >= this.interval) {
78
78
  if (this.visible) {
79
- totalTime += deltaTime;
79
+ // Flutter WebView affects the execution of setInterval timing tasks. Here we do a simple handling. Each totalTime can accumulate at most this.interval + 1s
80
+ totalTime += Math.min(deltaTime, this.interval + 1000);
80
81
  callback(totalTime);
81
82
  }
82
83
  lastTime = currentTime;