gomarketme-react-native 1.0.16 → 1.0.18
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.js +4 -4
- package/package.json +3 -8
- package/src/index.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g =
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -349,7 +349,7 @@ var GoMarketMe = /** @class */ (function () {
|
|
|
349
349
|
switch (_a.label) {
|
|
350
350
|
case 0:
|
|
351
351
|
_a.trys.push([0, 9, , 10]);
|
|
352
|
-
return [4 /*yield*/, react_native_iap_1.default.getProducts(productIds)];
|
|
352
|
+
return [4 /*yield*/, react_native_iap_1.default.getProducts({ skus: productIds })];
|
|
353
353
|
case 1:
|
|
354
354
|
products = _a.sent();
|
|
355
355
|
if (!(products.length > 0)) return [3 /*break*/, 6];
|
|
@@ -422,7 +422,7 @@ var GoMarketMe = /** @class */ (function () {
|
|
|
422
422
|
purchaseID: purchase.transactionId || '',
|
|
423
423
|
transactionDate: purchase.transactionDate || '',
|
|
424
424
|
status: react_native_1.Platform.select({
|
|
425
|
-
ios: purchase.transactionStateIOS,
|
|
425
|
+
ios: purchase.transactionStateIOS, // Removed non-existent properties
|
|
426
426
|
android: purchase.purchaseStateAndroid,
|
|
427
427
|
}),
|
|
428
428
|
verificationData: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gomarketme-react-native",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18",
|
|
4
4
|
"description": "Affiliate Marketing for React Native-Based iOS and Android Apps.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,15 +20,10 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"axios": "^1.7.7",
|
|
22
22
|
"react-native-device-info": "^14.0.0",
|
|
23
|
-
"react-native-iap": "
|
|
24
|
-
},
|
|
25
|
-
"devDependencies": {
|
|
26
|
-
"@types/node": "^15.12.5",
|
|
27
|
-
"@types/react-native": "^0.64.12",
|
|
28
|
-
"typescript": "^4.3.5"
|
|
23
|
+
"react-native-iap": ">=7.0.0"
|
|
29
24
|
},
|
|
30
25
|
"peerDependencies": {
|
|
31
|
-
"react": "
|
|
26
|
+
"react": "^18.3.1",
|
|
32
27
|
"react-native": "*"
|
|
33
28
|
}
|
|
34
29
|
}
|
package/src/index.tsx
CHANGED
|
@@ -169,7 +169,7 @@ class GoMarketMe {
|
|
|
169
169
|
|
|
170
170
|
private async fetchPurchaseProducts(productIds: string[], apiKey: string): Promise<void> {
|
|
171
171
|
try {
|
|
172
|
-
const products = await InAppPurchase.getProducts(productIds);
|
|
172
|
+
const products = await InAppPurchase.getProducts({skus:productIds});
|
|
173
173
|
if (products.length > 0) {
|
|
174
174
|
for (const product of products) {
|
|
175
175
|
await this.sendEventToServer(JSON.stringify(this.serializeProductDetails(product)), 'product', apiKey);
|