@jolibox/implement 1.2.7 → 1.2.8

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.2.7 clean
3
+ > @jolibox/implement@1.2.8 clean
4
4
  > rimraf ./dist
5
5
 
6
6
 
7
- > @jolibox/implement@1.2.7 build:esm
7
+ > @jolibox/implement@1.2.8 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.2.7",
4
+ "version": "1.2.8",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "@jolibox/common": "1.2.7",
10
- "@jolibox/types": "1.2.7",
11
- "@jolibox/native-bridge": "1.2.7",
12
- "@jolibox/ads": "1.2.7",
9
+ "@jolibox/common": "1.2.8",
10
+ "@jolibox/types": "1.2.8",
11
+ "@jolibox/native-bridge": "1.2.8",
12
+ "@jolibox/ads": "1.2.8",
13
13
  "localforage": "1.10.0",
14
14
  "@jolibox/ui": "1.0.0",
15
15
  "web-vitals": "4.2.4"
@@ -28,6 +28,20 @@ const priority = () => {
28
28
  };
29
29
  };
30
30
 
31
+ const DefaultSupportedHostMethods = [
32
+ 'openJolicoinGuide',
33
+ {
34
+ method: 'getABTest',
35
+ platforms: ['android'],
36
+ nativeVersionCode: 1050100
37
+ },
38
+ 'userTrackAsync',
39
+ {
40
+ method: 'openMiniapp',
41
+ nativeVersionCode: 1050100
42
+ }
43
+ ];
44
+
31
45
  const sortRewards = (rewardsTypes: RewardType[]): RewardType[] => {
32
46
  if (!rewardsTypes.length) return ['ADS'];
33
47
 
@@ -138,7 +152,8 @@ export const createCachedRewardFrequencyConfigFetcher = (rewardsHelper: RewardsH
138
152
  hostEmitter.emit('onGlobalConfigChanged', {
139
153
  globalConfig: {
140
154
  joliCoinUseAndCharge: DefaltJoliCoinUseAndCharge,
141
- loginGuide: DefaltLoginGuide
155
+ loginGuide: DefaltLoginGuide,
156
+ supportedHostMethods: DefaultSupportedHostMethods
142
157
  }
143
158
  });
144
159
  return {
@@ -82,7 +82,7 @@ export const createCommonSubscriptionHandler = (
82
82
  handleSubFailed?.(params);
83
83
  return false;
84
84
  } finally {
85
- unlockOptionsHandler.clearCache();
85
+ // unlockOptionsHandler.clearCache();
86
86
  }
87
87
  };
88
88
  };