satyamark-react 0.0.15 → 0.0.16

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.js CHANGED
@@ -194,7 +194,7 @@ function clearSession() {
194
194
  }
195
195
 
196
196
  // src/core/connectionManager.ts
197
- var isDev = true;
197
+ var isDev = false;
198
198
  var context = null;
199
199
  var socketClient = null;
200
200
  var isConnecting = false;
@@ -248,7 +248,7 @@ async function connect() {
248
248
  clearSession();
249
249
  socketClient == null ? void 0 : socketClient.close();
250
250
  }
251
- return;
251
+ throw new Error(data.msg);
252
252
  }
253
253
  if (data.clientId === (context == null ? void 0 : context.user_id)) {
254
254
  emitMessage(data);
package/dist/index.mjs CHANGED
@@ -166,7 +166,7 @@ function clearSession() {
166
166
  }
167
167
 
168
168
  // src/core/connectionManager.ts
169
- var isDev = true;
169
+ var isDev = false;
170
170
  var context = null;
171
171
  var socketClient = null;
172
172
  var isConnecting = false;
@@ -220,7 +220,7 @@ async function connect() {
220
220
  clearSession();
221
221
  socketClient == null ? void 0 : socketClient.close();
222
222
  }
223
- return;
223
+ throw new Error(data.msg);
224
224
  }
225
225
  if (data.clientId === (context == null ? void 0 : context.user_id)) {
226
226
  emitMessage(data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "satyamark-react",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "description": "Official React SDK for SatyaMark — a lightweight UI library to embed transparent content verification marks, confidence indicators, and trust signals into React applications.",
5
5
  "license": "MIT",
6
6
  "author": "DK",