@geode/opengeodeweb-front 10.27.0-rc.9 → 10.27.1-rc.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.
@@ -32,6 +32,9 @@ async function deleteFolderRecursive(folderPath) {
32
32
  console.log("Retrying delete folder");
33
33
  }
34
34
  }
35
+ throw new Error(
36
+ `Failed to delete folder ${folderPath} after ${MAX_DELETE_FOLDER_RETRIES} retries`,
37
+ );
35
38
  }
36
39
 
37
40
  function killHttpMicroservice(microservice) {
@@ -102,7 +105,7 @@ function killWebsocketMicroservice(microservice) {
102
105
  });
103
106
  }
104
107
 
105
- async function killMicroservice(microservice, microservices) {
108
+ async function killMicroservice(microservice) {
106
109
  if (microservice.type === "back") {
107
110
  await killHttpMicroservice(microservice);
108
111
  } else if (microservice.type === "viewer") {
@@ -110,20 +113,18 @@ async function killMicroservice(microservice, microservices) {
110
113
  } else {
111
114
  throw new Error(`Unknown microservice type: ${microservice.type}`);
112
115
  }
113
-
114
- if (microservices) {
115
- const index = microservices.indexOf(microservice);
116
- if (index !== -1) {
117
- microservices.splice(index, 1);
118
- }
119
- }
120
116
  }
121
117
 
122
- function killMicroservices(microservices) {
118
+ async function killMicroservices(microservices) {
123
119
  console.log("killMicroservices", { microservices });
124
- return Promise.all(
125
- microservices.map((microservice) => killMicroservice(microservice, microservices)),
120
+ const results = await Promise.allSettled(
121
+ microservices.map((microservice) => killMicroservice(microservice)),
126
122
  );
123
+ const killed = microservices.filter((_, index) => results[index].status === "fulfilled");
124
+ for (let i = 0; i < killed.length; i += 1) {
125
+ const microservice = microservices[i];
126
+ microservices.splice(microservices.indexOf(microservice), 1);
127
+ }
127
128
  }
128
129
 
129
130
  function projectMicroservices(projectFolderPath) {
@@ -68,7 +68,7 @@ async function runBack(execName, execPath, args = {}) {
68
68
  projectFolderPath,
69
69
  "--upload_folder_path",
70
70
  uploadFolderPath,
71
- "--allowed_origin",
71
+ "--allowed_origins",
72
72
  "http://localhost:*",
73
73
  "--timeout",
74
74
  "0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geode/opengeodeweb-front",
3
- "version": "10.27.0-rc.9",
3
+ "version": "10.27.1-rc.1",
4
4
  "description": "OpenSource Vue/Nuxt/Pinia/Vuetify framework for web applications",
5
5
  "homepage": "https://github.com/Geode-solutions/OpenGeodeWeb-Front",
6
6
  "bugs": {