insert-affiliate-react-native-sdk 1.2.2 → 1.2.4
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.
|
@@ -174,12 +174,9 @@ const DeepLinkIapProvider = ({ children, }) => {
|
|
|
174
174
|
// MARK: Insert Affiliate Identifier
|
|
175
175
|
const setInsertAffiliateIdentifier = (referringLink, completion) => __awaiter(void 0, void 0, void 0, function* () {
|
|
176
176
|
try {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
catch (error) {
|
|
181
|
-
console.error("[Insert Affiliate] Error setting user ID:", error);
|
|
182
|
-
}
|
|
177
|
+
console.log("[Insert Affiliate] Setting affiliate identifier.");
|
|
178
|
+
generateThenSetUserID();
|
|
179
|
+
console.log("[Insert Affiliate] Completed generateThenSetUserID within setInsertAffiliateIdentifier.");
|
|
183
180
|
if (!referringLink) {
|
|
184
181
|
console.warn("[Insert Affiliate] Referring link is invalid.");
|
|
185
182
|
storeInsertAffiliateIdentifier({ link: referringLink });
|
|
@@ -214,6 +211,7 @@ const DeepLinkIapProvider = ({ children, }) => {
|
|
|
214
211
|
}
|
|
215
212
|
// Create the request URL
|
|
216
213
|
const urlString = `https://api.insertaffiliate.com/V1/convert-deep-link-to-short-link?companyId=${companyCode}&deepLinkUrl=${encodedAffiliateLink}`;
|
|
214
|
+
console.log("[Insert Affiliate] urlString .", urlString);
|
|
217
215
|
const response = yield axios_1.default.get(urlString, {
|
|
218
216
|
headers: {
|
|
219
217
|
"Content-Type": "application/json",
|
package/package.json
CHANGED
|
@@ -214,6 +214,8 @@ const DeepLinkIapProvider: React.FC<T_DEEPLINK_IAP_PROVIDER> = ({
|
|
|
214
214
|
console.log("[Insert Affiliate] Setting affiliate identifier.");
|
|
215
215
|
generateThenSetUserID();
|
|
216
216
|
|
|
217
|
+
console.log("[Insert Affiliate] Completed generateThenSetUserID within setInsertAffiliateIdentifier.");
|
|
218
|
+
|
|
217
219
|
if (!referringLink) {
|
|
218
220
|
console.warn("[Insert Affiliate] Referring link is invalid.");
|
|
219
221
|
storeInsertAffiliateIdentifier({ link: referringLink });
|