insert-affiliate-react-native-sdk 1.1.1 → 1.1.2
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.
|
@@ -312,7 +312,7 @@ const DeepLinkIapProvider = ({ children, iapSkus, iapticAppId, iapticAppName, ia
|
|
|
312
312
|
try {
|
|
313
313
|
if (!referrerLink || !userId) {
|
|
314
314
|
console.warn("[Insert Affiliate] No affiliate identifier found. Please set one before tracking events.");
|
|
315
|
-
return;
|
|
315
|
+
return Promise.resolve();
|
|
316
316
|
}
|
|
317
317
|
const payload = {
|
|
318
318
|
eventName,
|
|
@@ -330,6 +330,7 @@ const DeepLinkIapProvider = ({ children, iapSkus, iapticAppId, iapticAppName, ia
|
|
|
330
330
|
}
|
|
331
331
|
catch (error) {
|
|
332
332
|
console.error("[Insert Affiliate] Error tracking event:", error);
|
|
333
|
+
return Promise.reject(error);
|
|
333
334
|
}
|
|
334
335
|
});
|
|
335
336
|
(0, react_1.useEffect)(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "insert-affiliate-react-native-sdk",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "A package that will give context having implementation of react-native-branch and react-native-iap and iaptic validate api.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -380,7 +380,7 @@ const DeepLinkIapProvider: React.FC<T_DEEPLINK_IAP_PROVIDER> = ({
|
|
|
380
380
|
console.warn(
|
|
381
381
|
"[Insert Affiliate] No affiliate identifier found. Please set one before tracking events."
|
|
382
382
|
);
|
|
383
|
-
return;
|
|
383
|
+
return Promise.resolve();
|
|
384
384
|
}
|
|
385
385
|
|
|
386
386
|
const payload = {
|
|
@@ -405,6 +405,7 @@ const DeepLinkIapProvider: React.FC<T_DEEPLINK_IAP_PROVIDER> = ({
|
|
|
405
405
|
}
|
|
406
406
|
} catch (error) {
|
|
407
407
|
console.error("[Insert Affiliate] Error tracking event:", error);
|
|
408
|
+
return Promise.reject(error);
|
|
408
409
|
}
|
|
409
410
|
};
|
|
410
411
|
|