@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/dist/index.mjs
CHANGED
|
@@ -107,7 +107,8 @@ var require_device = __commonJS({
|
|
|
107
107
|
err.response = errorData;
|
|
108
108
|
throw err;
|
|
109
109
|
}
|
|
110
|
-
|
|
110
|
+
const json = await response.json();
|
|
111
|
+
return json.data || json;
|
|
111
112
|
}
|
|
112
113
|
function startHeartbeat(fingerprint, intervalMs = 6e4, options = {}) {
|
|
113
114
|
if (!fingerprint) {
|