insert-affiliate-react-native-sdk 1.2.1 → 1.2.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.
package/package.json
CHANGED
|
@@ -211,12 +211,8 @@ const DeepLinkIapProvider: React.FC<T_DEEPLINK_IAP_PROVIDER> = ({
|
|
|
211
211
|
completion: (shortLink: string | null) => void
|
|
212
212
|
) => {
|
|
213
213
|
try {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
} catch (error) {
|
|
217
|
-
console.error("[Insert Affiliate] Error setting user ID:", error);
|
|
218
|
-
}
|
|
219
|
-
|
|
214
|
+
console.log("[Insert Affiliate] Setting affiliate identifier.");
|
|
215
|
+
generateThenSetUserID();
|
|
220
216
|
|
|
221
217
|
if (!referringLink) {
|
|
222
218
|
console.warn("[Insert Affiliate] Referring link is invalid.");
|
|
@@ -259,6 +255,7 @@ const DeepLinkIapProvider: React.FC<T_DEEPLINK_IAP_PROVIDER> = ({
|
|
|
259
255
|
|
|
260
256
|
// Create the request URL
|
|
261
257
|
const urlString = `https://api.insertaffiliate.com/V1/convert-deep-link-to-short-link?companyId=${companyCode}&deepLinkUrl=${encodedAffiliateLink}`;
|
|
258
|
+
console.log("[Insert Affiliate] urlString .", urlString);
|
|
262
259
|
const response = await axios.get(urlString, {
|
|
263
260
|
headers: {
|
|
264
261
|
"Content-Type": "application/json",
|