unshared-clientjs-sdk 1.0.3 → 1.0.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/dist/client.js +2 -2
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -36,13 +36,13 @@ class UnsharedLabsClient {
|
|
|
36
36
|
client_timestamp: clientTimestamp,
|
|
37
37
|
event_details: encryptedEventDetails,
|
|
38
38
|
};
|
|
39
|
-
const { data, error } = await this._UNSHAREDLABS_INTERNAL_CLIENT
|
|
39
|
+
const { status, statusText, data, error } = await this._UNSHAREDLABS_INTERNAL_CLIENT
|
|
40
40
|
.from(this._clientId)
|
|
41
41
|
.insert(body);
|
|
42
42
|
if (error) {
|
|
43
43
|
throw error;
|
|
44
44
|
}
|
|
45
|
-
return data;
|
|
45
|
+
return { status, statusText, data };
|
|
46
46
|
}
|
|
47
47
|
catch (error) {
|
|
48
48
|
throw new Error(`Failed to call UnsharedLabs API: ${error instanceof Error ? error.message : JSON.stringify(error)}`);
|