@kumori/aurora-backend-handler 1.1.28 → 1.1.30

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.
@@ -367,6 +367,7 @@ export const deployMarketplaceItem = async (item: MarketplaceService) => {
367
367
  "Content-Type": "application/json",
368
368
  },
369
369
  body: JSON.stringify(itemBody),
370
+ credentials: "include",
370
371
  });
371
372
 
372
373
  if (!response.ok) {
@@ -67,6 +67,7 @@ export const deployService = async (data: Service, token: string) => {
67
67
  const response = await fetch(url.toString(), {
68
68
  method: "POST",
69
69
  body: formData,
70
+ credentials: "include",
70
71
  });
71
72
  if (!response.ok) {
72
73
  const jsonResponse = await response.json();
@@ -122,6 +123,7 @@ export const redeployService = async (data: Service) => {
122
123
  const response = await fetch(url.toString(), {
123
124
  method: "POST",
124
125
  body: formData,
126
+ credentials: "include",
125
127
  });
126
128
 
127
129
  if (!response.ok) {
@@ -448,6 +450,7 @@ export const updateService = async (
448
450
  const response = await fetch(url.toString(), {
449
451
  method: "POST",
450
452
  body: formData,
453
+ credentials: "include",
451
454
  });
452
455
  if (!response.ok) {
453
456
  throw new Error(`HTTP error! status: ${response.status}`);
@@ -88,7 +88,9 @@ export class BackendHandler {
88
88
  globalEventHandler: any,
89
89
  baseUrl: string,
90
90
  apiVersion: string,
91
+ token: string,
91
92
  ) {
93
+ token = token;
92
94
  if (
93
95
  !globalEventHandler ||
94
96
  typeof globalEventHandler.subscribe !== "function"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kumori/aurora-backend-handler",
3
- "version": "1.1.28",
3
+ "version": "1.1.30",
4
4
  "description": "backend handler",
5
5
  "main": "backend-handler.ts",
6
6
  "scripts": {
@@ -264,7 +264,7 @@ export const initializeGlobalWebSocketClient = async (
264
264
  if (typeof window === "undefined") {
265
265
  wsConnection = new WebSocketClass(wsUrl, {
266
266
  headers: {
267
- // authorization: `Bearer ${token}`,
267
+ authorization: `Bearer ${token}`,
268
268
  },
269
269
  credentials: "include",
270
270
  });