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.
Files changed (2) hide show
  1. package/dist/client.js +2 -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)}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unshared-clientjs-sdk",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "types": "dist/client.d.ts",