@kumori/aurora-backend-handler 1.1.26 → 1.1.28

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.
@@ -76,10 +76,10 @@ export const deployMarketplaceItem = async (item: MarketplaceService) => {
76
76
  url.searchParams.append("wait", "30000");
77
77
  url.searchParams.append("validate", "true");
78
78
  url.searchParams.append("dsl", "true");
79
-
80
79
  const response = await fetch(url.toString(), {
81
80
  method: "POST",
82
81
  body: formData,
82
+ credentials: "include",
83
83
  });
84
84
 
85
85
  if (!response.ok) {
@@ -40,6 +40,7 @@ export const deployService = async (data: Service, token: string) => {
40
40
  const response = await fetch(url.toString(), {
41
41
  method: "POST",
42
42
  body: formData,
43
+ credentials: "include",
43
44
  });
44
45
  if (!response.ok) {
45
46
  throw new Error(`HTTP error! status: ${response.status}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kumori/aurora-backend-handler",
3
- "version": "1.1.26",
3
+ "version": "1.1.28",
4
4
  "description": "backend handler",
5
5
  "main": "backend-handler.ts",
6
6
  "scripts": {
@@ -264,8 +264,9 @@ 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
+ credentials: "include",
269
270
  });
270
271
  } else {
271
272
  wsConnection = new WebSocketClass(wsUrl);
@@ -2046,7 +2047,7 @@ export const fetchAndStoreMarketplaceSchema = async (
2046
2047
  const tenantsWithItem: string[] = [];
2047
2048
  tenantsMap.forEach((tenantEntry, tenantId) => {
2048
2049
  const hasItem = (tenantEntry.marketplaceItems || []).some(
2049
- (i) => i.name === item.name && i.domain === item.domain,
2050
+ (i) => i.name === item.name && i.domain === item.domain && i.artifact === item.artifact,
2050
2051
  );
2051
2052
  if (hasItem) tenantsWithItem.push(tenantId);
2052
2053
  });
@@ -2079,7 +2080,9 @@ export const fetchAndStoreMarketplaceSchema = async (
2079
2080
  const tenantEntry = tenantsMap.get(tenantId);
2080
2081
  if (tenantEntry) {
2081
2082
  tenantEntry.marketplaceItems = tenantEntry.marketplaceItems.map((i) =>
2082
- i.name === item.name && i.domain === item.domain ? { ...i, schema } : i,
2083
+ i.name === item.name && i.domain === item.domain && i.artifact === item.artifact
2084
+ ? { ...i, schema }
2085
+ : i,
2083
2086
  );
2084
2087
  tenantsMap.set(tenantId, tenantEntry);
2085
2088
  }