insert-affiliate-react-native-sdk 1.3.3 → 1.3.5
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.
|
@@ -186,7 +186,7 @@ const DeepLinkIapProvider = ({ children, }) => {
|
|
|
186
186
|
yield storeInsertAffiliateIdentifier({ link: referringLink });
|
|
187
187
|
return;
|
|
188
188
|
}
|
|
189
|
-
if (!companyCode || companyCode.trim() === "") {
|
|
189
|
+
if (!companyCode || companyCode.trim() === "" && companyCode !== null) {
|
|
190
190
|
let companyCodeFromStorage = yield getValueFromAsync(ASYNC_KEYS.COMPANY_CODE);
|
|
191
191
|
if (companyCodeFromStorage !== null) {
|
|
192
192
|
setCompanyCode(companyCodeFromStorage);
|
package/package.json
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "insert-affiliate-react-native-sdk",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
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",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "tsc"
|
|
9
|
-
"postinstall": "patch-package"
|
|
8
|
+
"build": "tsc"
|
|
10
9
|
},
|
|
11
10
|
"keywords": [
|
|
12
11
|
"react-native",
|
|
13
12
|
"react-native-branch",
|
|
14
|
-
"react-native-iap",
|
|
15
13
|
"iaptic"
|
|
16
14
|
],
|
|
17
|
-
"author": "
|
|
15
|
+
"author": "Michael Butler",
|
|
18
16
|
"license": "MIT",
|
|
19
17
|
"devDependencies": {
|
|
20
18
|
"@jeremybarbet/apple-api-types": "^1.4.1",
|
|
@@ -25,10 +23,6 @@
|
|
|
25
23
|
"react": "^18.3.1",
|
|
26
24
|
"react-native": "^0.76.1",
|
|
27
25
|
"react-native-branch": "^6.4.0",
|
|
28
|
-
"react-native-iap": "^12.15.7",
|
|
29
26
|
"typescript": "^5.6.3"
|
|
30
|
-
},
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"patch-package": "^8.0.0"
|
|
33
27
|
}
|
|
34
28
|
}
|
package/readme.md
CHANGED
|
@@ -229,6 +229,8 @@ import { useDeepLinkIapProvider } from 'insert-affiliate-react-native-sdk';
|
|
|
229
229
|
const {setInsertAffiliateIdentifier, returnInsertAffiliateIdentifier} = useDeepLinkIapProvider();
|
|
230
230
|
|
|
231
231
|
useEffect(() => {
|
|
232
|
+
if (!isInitialized) return;
|
|
233
|
+
|
|
232
234
|
const branchSubscription = branch.subscribe(async ({error, params}) => {
|
|
233
235
|
if (error) {
|
|
234
236
|
console.error('Error from Branch:', error);
|
|
@@ -217,7 +217,7 @@ const DeepLinkIapProvider: React.FC<T_DEEPLINK_IAP_PROVIDER> = ({
|
|
|
217
217
|
return;
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
-
if (!companyCode || companyCode.trim() === "") {
|
|
220
|
+
if (!companyCode || companyCode.trim() === "" && companyCode !== null) {
|
|
221
221
|
let companyCodeFromStorage = await getValueFromAsync(ASYNC_KEYS.COMPANY_CODE);
|
|
222
222
|
|
|
223
223
|
if (companyCodeFromStorage !== null) {
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
diff --git a/node_modules/react-native-iap/src/types/index.ts b/node_modules/react-native-iap/src/types/index.ts
|
|
2
|
-
index 46f0603..773e4d9 100644
|
|
3
|
-
--- a/node_modules/react-native-iap/src/types/index.ts
|
|
4
|
-
+++ b/node_modules/react-native-iap/src/types/index.ts
|
|
5
|
-
@@ -271,9 +271,9 @@ export type RequestSubscription =
|
|
6
|
-
|
|
7
|
-
declare module 'react-native' {
|
|
8
|
-
interface NativeModulesStatic {
|
|
9
|
-
- RNIapIos: IosModuleProps;
|
|
10
|
-
- RNIapIosSk2: IosModulePropsSk2;
|
|
11
|
-
- RNIapModule: AndroidModuleProps;
|
|
12
|
-
- RNIapAmazonModule: AmazonModuleProps;
|
|
13
|
-
+ // RNIapIos: IosModuleProps;
|
|
14
|
-
+ // RNIapIosSk2: IosModulePropsSk2;
|
|
15
|
-
+ // RNIapModule: AndroidModuleProps;
|
|
16
|
-
+ // RNIapAmazonModule: AmazonModuleProps;
|
|
17
|
-
}
|
|
18
|
-
}
|