@nocobase/server 1.9.0-beta.15 → 1.9.0-beta.16
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/lib/application.js
CHANGED
|
@@ -948,7 +948,7 @@ const _Application = class _Application extends import_koa.default {
|
|
|
948
948
|
}
|
|
949
949
|
}
|
|
950
950
|
});
|
|
951
|
-
this._dataSourceManager.use(this._authManager.middleware(), { tag: "auth" });
|
|
951
|
+
this._dataSourceManager.use(this._authManager.middleware(), { tag: "auth", before: "default" });
|
|
952
952
|
this._dataSourceManager.use(import_validate_filter_params.default, { tag: "validate-filter-params", before: ["auth"] });
|
|
953
953
|
this._dataSourceManager.use(import_middlewares.parseVariables, {
|
|
954
954
|
group: "parseVariables",
|
package/lib/gateway/index.js
CHANGED
|
@@ -202,7 +202,15 @@ const _Gateway = class _Gateway extends import_events.EventEmitter {
|
|
|
202
202
|
res.end(JSON.stringify({ error }));
|
|
203
203
|
}
|
|
204
204
|
responseErrorWithCode(code, res, options) {
|
|
205
|
+
const log = this.getLogger(options.appName, res);
|
|
205
206
|
const error = (0, import_errors.applyErrorWithArgs)((0, import_errors.getErrorWithCode)(code), options);
|
|
207
|
+
log.error(error.message, {
|
|
208
|
+
method: "responseErrorWithCode",
|
|
209
|
+
code,
|
|
210
|
+
error,
|
|
211
|
+
statusCode: res.statusCode,
|
|
212
|
+
appName: options.appName
|
|
213
|
+
});
|
|
206
214
|
this.responseError(res, error);
|
|
207
215
|
}
|
|
208
216
|
async requestHandler(req, res) {
|
|
@@ -90,7 +90,7 @@ const _PluginManager = class _PluginManager {
|
|
|
90
90
|
namespace: "core/pm",
|
|
91
91
|
directory: (0, import_path.resolve)(__dirname, "../migrations")
|
|
92
92
|
});
|
|
93
|
-
this.app.
|
|
93
|
+
this.app.resourceManager.use(import_middleware.uploadMiddleware, { tag: "upload", after: "acl" });
|
|
94
94
|
}
|
|
95
95
|
/**
|
|
96
96
|
* @internal
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/server",
|
|
3
|
-
"version": "1.9.0-beta.
|
|
3
|
+
"version": "1.9.0-beta.16",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
@@ -10,20 +10,20 @@
|
|
|
10
10
|
"@koa/cors": "^5.0.0",
|
|
11
11
|
"@koa/multer": "^3.1.0",
|
|
12
12
|
"@koa/router": "^13.1.0",
|
|
13
|
-
"@nocobase/acl": "1.9.0-beta.
|
|
14
|
-
"@nocobase/actions": "1.9.0-beta.
|
|
15
|
-
"@nocobase/auth": "1.9.0-beta.
|
|
16
|
-
"@nocobase/cache": "1.9.0-beta.
|
|
17
|
-
"@nocobase/data-source-manager": "1.9.0-beta.
|
|
18
|
-
"@nocobase/database": "1.9.0-beta.
|
|
19
|
-
"@nocobase/evaluators": "1.9.0-beta.
|
|
20
|
-
"@nocobase/lock-manager": "1.9.0-beta.
|
|
21
|
-
"@nocobase/logger": "1.9.0-beta.
|
|
22
|
-
"@nocobase/resourcer": "1.9.0-beta.
|
|
23
|
-
"@nocobase/sdk": "1.9.0-beta.
|
|
24
|
-
"@nocobase/snowflake-id": "1.9.0-beta.
|
|
25
|
-
"@nocobase/telemetry": "1.9.0-beta.
|
|
26
|
-
"@nocobase/utils": "1.9.0-beta.
|
|
13
|
+
"@nocobase/acl": "1.9.0-beta.16",
|
|
14
|
+
"@nocobase/actions": "1.9.0-beta.16",
|
|
15
|
+
"@nocobase/auth": "1.9.0-beta.16",
|
|
16
|
+
"@nocobase/cache": "1.9.0-beta.16",
|
|
17
|
+
"@nocobase/data-source-manager": "1.9.0-beta.16",
|
|
18
|
+
"@nocobase/database": "1.9.0-beta.16",
|
|
19
|
+
"@nocobase/evaluators": "1.9.0-beta.16",
|
|
20
|
+
"@nocobase/lock-manager": "1.9.0-beta.16",
|
|
21
|
+
"@nocobase/logger": "1.9.0-beta.16",
|
|
22
|
+
"@nocobase/resourcer": "1.9.0-beta.16",
|
|
23
|
+
"@nocobase/sdk": "1.9.0-beta.16",
|
|
24
|
+
"@nocobase/snowflake-id": "1.9.0-beta.16",
|
|
25
|
+
"@nocobase/telemetry": "1.9.0-beta.16",
|
|
26
|
+
"@nocobase/utils": "1.9.0-beta.16",
|
|
27
27
|
"@types/decompress": "4.2.7",
|
|
28
28
|
"@types/ini": "^1.3.31",
|
|
29
29
|
"@types/koa-send": "^4.1.3",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"@types/serve-handler": "^6.1.1",
|
|
60
60
|
"@types/ws": "^8.5.5"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "ff9b917d27840cc08e3f60d02384504ae0e35995"
|
|
63
63
|
}
|