@entitlehub/react-native 0.1.5 → 0.1.6
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/CHANGELOG.md +7 -0
- package/dist/index.cjs +7 -1
- package/dist/index.js +7 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.6 — 2026-07-21
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- Reports `react-native/<version>` to EntitleHub on each call, so the dashboard can tell you when
|
|
7
|
+
your SDK is behind a release with fixes in it — rather than you finding out by hitting the bug.
|
|
8
|
+
Version only; no device or user data.
|
|
9
|
+
|
|
3
10
|
## 0.1.5 — 2026-07-21
|
|
4
11
|
|
|
5
12
|
### Fixed
|
package/dist/index.cjs
CHANGED
|
@@ -42,6 +42,7 @@ function iap() {
|
|
|
42
42
|
}
|
|
43
43
|
return _iap;
|
|
44
44
|
}
|
|
45
|
+
var RN_SDK_VERSION = "0.1.6";
|
|
45
46
|
var client;
|
|
46
47
|
function eh() {
|
|
47
48
|
if (!client) throw new Error("Call configureEntitleHub({ apiKey, appUserId }) before using EntitleHub.");
|
|
@@ -49,7 +50,12 @@ function eh() {
|
|
|
49
50
|
}
|
|
50
51
|
async function configureEntitleHub(opts) {
|
|
51
52
|
if (opts.iap) _iap = opts.iap;
|
|
52
|
-
client = new import_sdk.EntitleHub({
|
|
53
|
+
client = new import_sdk.EntitleHub({
|
|
54
|
+
apiKey: opts.apiKey,
|
|
55
|
+
appUserId: opts.appUserId,
|
|
56
|
+
baseUrl: opts.baseUrl,
|
|
57
|
+
client: `react-native/${RN_SDK_VERSION}`
|
|
58
|
+
});
|
|
53
59
|
try {
|
|
54
60
|
await iap().initConnection();
|
|
55
61
|
} catch {
|
package/dist/index.js
CHANGED
|
@@ -17,6 +17,7 @@ function iap() {
|
|
|
17
17
|
}
|
|
18
18
|
return _iap;
|
|
19
19
|
}
|
|
20
|
+
var RN_SDK_VERSION = "0.1.6";
|
|
20
21
|
var client;
|
|
21
22
|
function eh() {
|
|
22
23
|
if (!client) throw new Error("Call configureEntitleHub({ apiKey, appUserId }) before using EntitleHub.");
|
|
@@ -24,7 +25,12 @@ function eh() {
|
|
|
24
25
|
}
|
|
25
26
|
async function configureEntitleHub(opts) {
|
|
26
27
|
if (opts.iap) _iap = opts.iap;
|
|
27
|
-
client = new EntitleHub({
|
|
28
|
+
client = new EntitleHub({
|
|
29
|
+
apiKey: opts.apiKey,
|
|
30
|
+
appUserId: opts.appUserId,
|
|
31
|
+
baseUrl: opts.baseUrl,
|
|
32
|
+
client: `react-native/${RN_SDK_VERSION}`
|
|
33
|
+
});
|
|
28
34
|
try {
|
|
29
35
|
await iap().initConnection();
|
|
30
36
|
} catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entitlehub/react-native",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "EntitleHub for React Native & Expo — one call to purchase and unlock entitlements. Wraps expo-iap for the native store sheet and validates receipts via EntitleHub.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"entitlehub",
|