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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "insert-affiliate-react-native-sdk",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "A package for connecting with the Insert Affiliate Platform to add app based affiliate marketing.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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
- try {
215
- generateThenSetUserID();
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",