rn-prodeeplinks 0.0.7 → 0.0.9
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/README.md +1 -1
- package/lib/api.js +2 -3
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> ⚠️ **License Required**: This package requires a valid license key purchased from our portal. Without a license key, the package will not function.
|
|
6
6
|
|
|
7
|
-
> ℹ️ **Versioning**: Current version is 0.0.
|
|
7
|
+
> ℹ️ **Versioning**: Current version is 0.0.9 (in-progress). It will move to 1.x after stable.
|
|
8
8
|
|
|
9
9
|
## Features
|
|
10
10
|
|
package/lib/api.js
CHANGED
|
@@ -7,15 +7,14 @@ exports.validateLicenseInit = validateLicenseInit;
|
|
|
7
7
|
exports.matchFingerprintCustom = matchFingerprintCustom;
|
|
8
8
|
exports.trackCustomDeepLinkEvent = trackCustomDeepLinkEvent;
|
|
9
9
|
const license_1 = require("./license");
|
|
10
|
-
const BASE_API_URL = 'https://api.
|
|
11
|
-
const DEFAULT_API_ENDPOINT = `${BASE_API_URL}/v1/deeplink`;
|
|
10
|
+
const BASE_API_URL = 'https://api.prodeeplink.com';
|
|
12
11
|
const ANALYTICS_ENDPOINT = `${BASE_API_URL}/custom-deep-link/track/event`;
|
|
13
12
|
/**
|
|
14
13
|
* Call API to get deep link URL
|
|
15
14
|
* This function sends device fingerprint and license key to server
|
|
16
15
|
*/
|
|
17
16
|
async function fetchDeepLinkUrl(licenseKey, fingerprint, apiEndpoint, timeout = 10000) {
|
|
18
|
-
const endpoint = apiEndpoint ||
|
|
17
|
+
const endpoint = apiEndpoint || BASE_API_URL;
|
|
19
18
|
try {
|
|
20
19
|
// Validate license key format first
|
|
21
20
|
const validation = (0, license_1.validateLicenseKeyFormat)(licenseKey);
|
package/lib/index.js
CHANGED
|
@@ -13,7 +13,7 @@ const react_native_1 = require("react-native");
|
|
|
13
13
|
// Global state to store license key and configuration
|
|
14
14
|
let storedLicenseKey = null;
|
|
15
15
|
let isInitialized = false;
|
|
16
|
-
const DEFAULT_API_ENDPOINT = 'https://api.
|
|
16
|
+
const DEFAULT_API_ENDPOINT = 'https://api.prodeeplink.com/v1/deeplink';
|
|
17
17
|
/**
|
|
18
18
|
* Initialize the deep link package with license key
|
|
19
19
|
* This must be called before using getDeepLink()
|
package/package.json
CHANGED