@nocobase/server 1.3.54 → 1.3.55

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.
@@ -161,9 +161,7 @@ const _Gateway = class _Gateway extends import_events.EventEmitter {
161
161
  res.end(JSON.stringify({ error }));
162
162
  }
163
163
  responseErrorWithCode(code, res, options) {
164
- const log = this.getLogger(options.appName, res);
165
164
  const error = (0, import_errors.applyErrorWithArgs)((0, import_errors.getErrorWithCode)(code), options);
166
- log.error(error.message, { method: "responseErrorWithCode", error });
167
165
  this.responseError(res, error);
168
166
  }
169
167
  async requestHandler(req, res) {
@@ -206,14 +204,12 @@ const _Gateway = class _Gateway extends import_events.EventEmitter {
206
204
  });
207
205
  }
208
206
  const handleApp = await this.getRequestHandleAppName(req);
209
- const log = this.getLogger(handleApp, res);
210
207
  const hasApp = import_app_supervisor.AppSupervisor.getInstance().hasApp(handleApp);
211
208
  if (!hasApp) {
212
209
  void import_app_supervisor.AppSupervisor.getInstance().bootStrapApp(handleApp);
213
210
  }
214
211
  let appStatus = import_app_supervisor.AppSupervisor.getInstance().getAppStatus(handleApp, "initializing");
215
212
  if (appStatus === "not_found") {
216
- log.warn(`app not found`, { method: "requestHandler" });
217
213
  this.responseErrorWithCode("APP_NOT_FOUND", res, { appName: handleApp });
218
214
  return;
219
215
  }
@@ -228,7 +224,6 @@ const _Gateway = class _Gateway extends import_events.EventEmitter {
228
224
  }
229
225
  const app = await import_app_supervisor.AppSupervisor.getInstance().getApp(handleApp);
230
226
  if (appStatus !== "running") {
231
- log.warn(`app is not running`, { method: "requestHandler", status: appStatus });
232
227
  this.responseErrorWithCode(`${appStatus}`, res, { app, appName: handleApp });
233
228
  return;
234
229
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/server",
3
- "version": "1.3.54",
3
+ "version": "1.3.55",
4
4
  "main": "lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "license": "AGPL-3.0",
@@ -10,18 +10,18 @@
10
10
  "@koa/cors": "^3.1.0",
11
11
  "@koa/multer": "^3.0.2",
12
12
  "@koa/router": "^9.4.0",
13
- "@nocobase/acl": "1.3.54",
14
- "@nocobase/actions": "1.3.54",
15
- "@nocobase/auth": "1.3.54",
16
- "@nocobase/cache": "1.3.54",
17
- "@nocobase/data-source-manager": "1.3.54",
18
- "@nocobase/database": "1.3.54",
19
- "@nocobase/evaluators": "1.3.54",
20
- "@nocobase/logger": "1.3.54",
21
- "@nocobase/resourcer": "1.3.54",
22
- "@nocobase/sdk": "1.3.54",
23
- "@nocobase/telemetry": "1.3.54",
24
- "@nocobase/utils": "1.3.54",
13
+ "@nocobase/acl": "1.3.55",
14
+ "@nocobase/actions": "1.3.55",
15
+ "@nocobase/auth": "1.3.55",
16
+ "@nocobase/cache": "1.3.55",
17
+ "@nocobase/data-source-manager": "1.3.55",
18
+ "@nocobase/database": "1.3.55",
19
+ "@nocobase/evaluators": "1.3.55",
20
+ "@nocobase/logger": "1.3.55",
21
+ "@nocobase/resourcer": "1.3.55",
22
+ "@nocobase/sdk": "1.3.55",
23
+ "@nocobase/telemetry": "1.3.55",
24
+ "@nocobase/utils": "1.3.55",
25
25
  "@types/decompress": "4.2.7",
26
26
  "@types/ini": "^1.3.31",
27
27
  "@types/koa-send": "^4.1.3",
@@ -54,5 +54,5 @@
54
54
  "@types/serve-handler": "^6.1.1",
55
55
  "@types/ws": "^8.5.5"
56
56
  },
57
- "gitHead": "33b487952c467cbce819533b056de538728c3226"
57
+ "gitHead": "29126bb873bd07a9f40a7f2fee5ca1c396f09794"
58
58
  }