@trillboards/connect 1.1.2 → 1.1.3
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
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.1.3 (2026-03-23)
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
- **Device registration** — `registerDevice()` now unwraps the API response `data` envelope, fixing `undefined` fingerprint/screen_id/embed_url that broke heartbeats for partner SDK integrations
|
|
8
|
+
|
|
3
9
|
## 1.0.0 (2026-02-19)
|
|
4
10
|
|
|
5
11
|
Initial public release.
|
package/dist/index.js
CHANGED
|
@@ -109,7 +109,8 @@ var require_device = __commonJS({
|
|
|
109
109
|
err.response = errorData;
|
|
110
110
|
throw err;
|
|
111
111
|
}
|
|
112
|
-
|
|
112
|
+
const json = await response.json();
|
|
113
|
+
return json.data || json;
|
|
113
114
|
}
|
|
114
115
|
function startHeartbeat(fingerprint, intervalMs = 6e4, options = {}) {
|
|
115
116
|
if (!fingerprint) {
|