adsparkle-react-native 0.1.3 → 0.1.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/LICENSE +1 -1
- package/README.md +2 -2
- package/dist/deeplink.d.ts +1 -1
- package/dist/deeplink.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -4
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# adsparkle-react-native
|
|
2
2
|
|
|
3
|
-
React Native client SDK for the
|
|
3
|
+
React Native client SDK for the AdSparkle affiliate attribution platform.
|
|
4
4
|
Sends postback events to the tracking API and handles deep link click_id attribution.
|
|
5
5
|
|
|
6
6
|
---
|
|
@@ -121,7 +121,7 @@ The SDK looks for the `click_id` query parameter in the URL:
|
|
|
121
121
|
|
|
122
122
|
```
|
|
123
123
|
myapp://open?click_id=abc-123-uuid
|
|
124
|
-
https://example.com/promo?click_id=abc-123-uuid&utm_source=
|
|
124
|
+
https://example.com/promo?click_id=abc-123-uuid&utm_source=adsparkle
|
|
125
125
|
```
|
|
126
126
|
|
|
127
127
|
Up to **10** unique click IDs are stored in a chain; duplicates are silently ignored.
|
package/dist/deeplink.d.ts
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* Handles all common RN deep link schemes:
|
|
14
14
|
* myapp://launch?click_id=abc123
|
|
15
|
-
* https://example.com/promo?click_id=abc123&utm_source=
|
|
15
|
+
* https://example.com/promo?click_id=abc123&utm_source=adsparkle
|
|
16
16
|
*/
|
|
17
17
|
export declare function extractClickId(url: string): string | null;
|
|
18
18
|
//# sourceMappingURL=deeplink.d.ts.map
|
package/dist/deeplink.js
CHANGED
|
@@ -21,7 +21,7 @@ const UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
|
|
|
21
21
|
*
|
|
22
22
|
* Handles all common RN deep link schemes:
|
|
23
23
|
* myapp://launch?click_id=abc123
|
|
24
|
-
* https://example.com/promo?click_id=abc123&utm_source=
|
|
24
|
+
* https://example.com/promo?click_id=abc123&utm_source=adsparkle
|
|
25
25
|
*/
|
|
26
26
|
function extractClickId(url) {
|
|
27
27
|
if (!url || typeof url !== 'string')
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adsparkle-react-native",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.4",
|
|
4
|
+
"description": "AdSparkle affiliate attribution SDK for React Native",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -25,12 +25,11 @@
|
|
|
25
25
|
"typescript": "^5.9.3"
|
|
26
26
|
},
|
|
27
27
|
"keywords": [
|
|
28
|
+
"adsparkle",
|
|
28
29
|
"react-native",
|
|
29
30
|
"affiliate",
|
|
30
31
|
"tracking",
|
|
31
32
|
"attribution",
|
|
32
|
-
"viralif",
|
|
33
|
-
"adbird",
|
|
34
33
|
"sdk"
|
|
35
34
|
],
|
|
36
35
|
"license": "MIT",
|