@wallavi/widget 1.4.0 → 1.4.1

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
@@ -150,7 +150,7 @@ function useChat({
150
150
  try {
151
151
  const isPrivate = Boolean(workspaceId);
152
152
  const token = isPrivate && typeof window !== "undefined" ? await window.Clerk?.session?.getToken() : null;
153
- const url = isPrivate ? `${API_URL}/api/threads/${threadId}/stream` : `${API_URL}/api/public/chat/stream`;
153
+ const url = isPrivate ? `${API_URL}/api/threads/${threadId}/stream` : `${API_URL}/api/chat/stream`;
154
154
  const res = await fetch(url, {
155
155
  method: "POST",
156
156
  headers: {
package/dist/index.mjs CHANGED
@@ -124,7 +124,7 @@ function useChat({
124
124
  try {
125
125
  const isPrivate = Boolean(workspaceId);
126
126
  const token = isPrivate && typeof window !== "undefined" ? await window.Clerk?.session?.getToken() : null;
127
- const url = isPrivate ? `${API_URL}/api/threads/${threadId}/stream` : `${API_URL}/api/public/chat/stream`;
127
+ const url = isPrivate ? `${API_URL}/api/threads/${threadId}/stream` : `${API_URL}/api/chat/stream`;
128
128
  const res = await fetch(url, {
129
129
  method: "POST",
130
130
  headers: {
package/package.json CHANGED
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "private": false,
35
35
  "types": "./dist/index.d.ts",
36
- "version": "1.4.0",
36
+ "version": "1.4.1",
37
37
  "scripts": {
38
38
  "build": "tsup",
39
39
  "typecheck": "tsc --noEmit"