@jolibox/implement 1.2.9-beta.9 → 1.3.0
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/.rush/temp/package-deps_build.json +4 -4
- package/dist/index.js +9 -9
- package/dist/index.native.js +3 -3
- package/implement.build.log +2 -2
- package/package.json +5 -5
- package/src/common/rewards/registers/utils/subscription/sub-handler.ts +0 -1
- package/src/native/api/payment.ts +5 -6
- package/src/native/payment/payment-service.ts +1 -1
package/implement.build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Invoking: npm run clean && npm run build:esm && tsc
|
|
2
2
|
|
|
3
|
-
> @jolibox/implement@1.
|
|
3
|
+
> @jolibox/implement@1.3.0 clean
|
|
4
4
|
> rimraf ./dist
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
> @jolibox/implement@1.
|
|
7
|
+
> @jolibox/implement@1.3.0 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.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@jolibox/common": "1.
|
|
10
|
-
"@jolibox/types": "1.
|
|
11
|
-
"@jolibox/native-bridge": "1.
|
|
12
|
-
"@jolibox/ads": "1.
|
|
9
|
+
"@jolibox/common": "1.3.0",
|
|
10
|
+
"@jolibox/types": "1.3.0",
|
|
11
|
+
"@jolibox/native-bridge": "1.3.0",
|
|
12
|
+
"@jolibox/ads": "1.3.0",
|
|
13
13
|
"localforage": "1.10.0",
|
|
14
14
|
"@jolibox/ui": "1.0.0",
|
|
15
15
|
"web-vitals": "4.2.4"
|
|
@@ -110,22 +110,21 @@ commands.registerCommand('PaymentSDK.subscribe', subscribe);
|
|
|
110
110
|
commands.registerCommand('PaymentSDK.flushSubInfoCache', flushSubInfoCache);
|
|
111
111
|
|
|
112
112
|
registerCanIUse('payment.purchaseGem', {
|
|
113
|
-
version: '1.2.
|
|
113
|
+
version: '1.2.9'
|
|
114
114
|
});
|
|
115
115
|
|
|
116
116
|
registerCanIUse('payment.getGemProducts', {
|
|
117
|
-
version: '1.2.
|
|
117
|
+
version: '1.2.9'
|
|
118
118
|
});
|
|
119
119
|
|
|
120
|
-
// for test, correct version is 1.3.0
|
|
121
120
|
registerCanIUse('payment.getSubscriptionPlans', {
|
|
122
|
-
version: '1.2.
|
|
121
|
+
version: '1.2.9'
|
|
123
122
|
});
|
|
124
123
|
|
|
125
124
|
registerCanIUse('payment.subscribe', {
|
|
126
|
-
version: '1.2.
|
|
125
|
+
version: '1.2.9'
|
|
127
126
|
});
|
|
128
127
|
|
|
129
128
|
registerCanIUse('payment.flushSubInfoCache', {
|
|
130
|
-
version: '1.2.
|
|
129
|
+
version: '1.2.9'
|
|
131
130
|
});
|
|
@@ -51,7 +51,7 @@ class PaymentRequestAdapter
|
|
|
51
51
|
{
|
|
52
52
|
// applyNative 的缓存
|
|
53
53
|
private static nativePriceCache = new Map<string, { [appStoreProductId: string]: { price: string } }>();
|
|
54
|
-
private static readonly NATIVE_PRICE_CACHE_DURATION =
|
|
54
|
+
private static readonly NATIVE_PRICE_CACHE_DURATION = 10 * 60 * 1000; // 10 minutes
|
|
55
55
|
private static nativePriceCacheTimestamp = new Map<string, number>();
|
|
56
56
|
|
|
57
57
|
async execute(endpoint: string, _options?: PaymentRequest): Promise<PaymentResponse> {
|