gomarketme-react-native 1.0.2 → 1.0.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.
package/dist/index.js CHANGED
@@ -336,7 +336,6 @@ var GoMarketMe = /** @class */ (function () {
336
336
  };
337
337
  GoMarketMe.prototype.getLanguageCode = function () {
338
338
  var locales = RNLocalize.getLocales();
339
- // Check if there are any locales available and return the first one or default to 'en-US'
340
339
  return locales.length > 0 ? locales[0].languageTag : 'en-US';
341
340
  };
342
341
  GoMarketMe.prototype.fetchPurchases = function (purchaseDetailsList, apiKey) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gomarketme-react-native",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Affiliate Marketing for React Native-Based iOS and Android Apps.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,11 +15,15 @@
15
15
  "gomarketme",
16
16
  "sdk"
17
17
  ],
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/GoMarketMe/gomarketme-react-native.git"
21
+ },
18
22
  "author": "GoMarketMe",
19
23
  "license": "MIT",
20
24
  "dependencies": {
21
25
  "@react-native-async-storage/async-storage": "^1.15.6",
22
- "axios": "^0.21.1",
26
+ "axios": "^1.7.7",
23
27
  "react-native-device-info": "^14.0.0",
24
28
  "react-native-iap": "^7.0.0",
25
29
  "react-native-localize": "^3.2.1"
@@ -27,7 +31,7 @@
27
31
  "devDependencies": {
28
32
  "@types/node": "^15.12.5",
29
33
  "@types/react-native": "^0.64.12",
30
- "typescript": "^4.3.5"
34
+ "typescript": "^4.9.5"
31
35
  },
32
36
  "peerDependencies": {
33
37
  "react": "*",
package/src/index.tsx CHANGED
@@ -2,7 +2,7 @@ import { Platform, Dimensions, PixelRatio } from 'react-native';
2
2
  import DeviceInfo from 'react-native-device-info';
3
3
  import * as RNLocalize from 'react-native-localize';
4
4
  import AsyncStorage from '@react-native-async-storage/async-storage';
5
- import InAppPurchase, { Purchase, Product, ProductPurchase } from 'react-native-iap';
5
+ import InAppPurchase, { Purchase, Product } from 'react-native-iap';
6
6
  import axios from 'axios';
7
7
 
8
8
  class GoMarketMe {
@@ -152,8 +152,7 @@ class GoMarketMe {
152
152
 
153
153
  private getLanguageCode(): string {
154
154
  const locales = RNLocalize.getLocales();
155
- // Check if there are any locales available and return the first one or default to 'en-US'
156
- return locales.length > 0 ? locales[0].languageTag : 'en-US';
155
+ return locales.length > 0 ? locales[0].languageTag : 'en-US';
157
156
  }
158
157
 
159
158
  private async fetchPurchases(purchaseDetailsList: Purchase[], apiKey: string): Promise<string[]> {