@blumessage/react-chat 1.0.3 → 1.0.5

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.
@@ -153,7 +153,7 @@ export var BlumessageChat = function (_a) {
153
153
  return [4 /*yield*/, fetch("https://api.blumessage.com/api/v1/conversations/session/".concat(convId), {
154
154
  method: 'GET',
155
155
  headers: {
156
- 'Authorization': apiKey,
156
+ 'Authorization': "Bearer ".concat(apiKey),
157
157
  },
158
158
  })];
159
159
  case 1:
@@ -215,7 +215,7 @@ export var BlumessageChat = function (_a) {
215
215
  })];
216
216
  case 1:
217
217
  response = _a.sent();
218
- if (!(response.status === 201)) return [3 /*break*/, 7];
218
+ if (!response.ok) return [3 /*break*/, 7];
219
219
  console.log("Blumessage chat initialized successfully");
220
220
  setIsInitialized(true);
221
221
  setError(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blumessage/react-chat",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "A React TypeScript chat widget component with floating button, theming, and Blumessage API integration",
5
5
  "license": "MIT",
6
6
  "author": "Blumessage <contact@blumessage.com>",