@nocobase/server 1.8.8 → 1.8.10
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/helper.d.ts +1 -0
- package/lib/helper.js +7 -1
- package/package.json +15 -15
package/lib/helper.d.ts
CHANGED
|
@@ -16,3 +16,4 @@ export declare const createAppProxy: (app: Application) => Application<import(".
|
|
|
16
16
|
export declare const getCommandFullName: (command: Command) => string;
|
|
17
17
|
export declare const tsxRerunning: () => Promise<void>;
|
|
18
18
|
export declare const enablePerfHooks: (app: Application) => void;
|
|
19
|
+
export declare function getBodyLimit(): string;
|
package/lib/helper.js
CHANGED
|
@@ -41,6 +41,7 @@ __export(helper_exports, {
|
|
|
41
41
|
createI18n: () => createI18n,
|
|
42
42
|
createResourcer: () => createResourcer,
|
|
43
43
|
enablePerfHooks: () => enablePerfHooks,
|
|
44
|
+
getBodyLimit: () => getBodyLimit,
|
|
44
45
|
getCommandFullName: () => getCommandFullName,
|
|
45
46
|
registerMiddlewares: () => registerMiddlewares,
|
|
46
47
|
tsxRerunning: () => tsxRerunning
|
|
@@ -99,7 +100,7 @@ function registerMiddlewares(app, options) {
|
|
|
99
100
|
}
|
|
100
101
|
);
|
|
101
102
|
if (options.bodyParser !== false) {
|
|
102
|
-
const bodyLimit =
|
|
103
|
+
const bodyLimit = getBodyLimit();
|
|
103
104
|
app.use(
|
|
104
105
|
(0, import_koa_bodyparser.default)({
|
|
105
106
|
jsonLimit: bodyLimit,
|
|
@@ -188,12 +189,17 @@ const enablePerfHooks = /* @__PURE__ */ __name((app) => {
|
|
|
188
189
|
});
|
|
189
190
|
app.acl.allow("perf", "*", "public");
|
|
190
191
|
}, "enablePerfHooks");
|
|
192
|
+
function getBodyLimit() {
|
|
193
|
+
return process.env.REQUEST_BODY_LIMIT || "10mb";
|
|
194
|
+
}
|
|
195
|
+
__name(getBodyLimit, "getBodyLimit");
|
|
191
196
|
// Annotate the CommonJS export names for ESM import in node:
|
|
192
197
|
0 && (module.exports = {
|
|
193
198
|
createAppProxy,
|
|
194
199
|
createI18n,
|
|
195
200
|
createResourcer,
|
|
196
201
|
enablePerfHooks,
|
|
202
|
+
getBodyLimit,
|
|
197
203
|
getCommandFullName,
|
|
198
204
|
registerMiddlewares,
|
|
199
205
|
tsxRerunning
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/server",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.10",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
@@ -10,19 +10,19 @@
|
|
|
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.8.
|
|
14
|
-
"@nocobase/actions": "1.8.
|
|
15
|
-
"@nocobase/auth": "1.8.
|
|
16
|
-
"@nocobase/cache": "1.8.
|
|
17
|
-
"@nocobase/data-source-manager": "1.8.
|
|
18
|
-
"@nocobase/database": "1.8.
|
|
19
|
-
"@nocobase/evaluators": "1.8.
|
|
20
|
-
"@nocobase/lock-manager": "1.8.
|
|
21
|
-
"@nocobase/logger": "1.8.
|
|
22
|
-
"@nocobase/resourcer": "1.8.
|
|
23
|
-
"@nocobase/sdk": "1.8.
|
|
24
|
-
"@nocobase/telemetry": "1.8.
|
|
25
|
-
"@nocobase/utils": "1.8.
|
|
13
|
+
"@nocobase/acl": "1.8.10",
|
|
14
|
+
"@nocobase/actions": "1.8.10",
|
|
15
|
+
"@nocobase/auth": "1.8.10",
|
|
16
|
+
"@nocobase/cache": "1.8.10",
|
|
17
|
+
"@nocobase/data-source-manager": "1.8.10",
|
|
18
|
+
"@nocobase/database": "1.8.10",
|
|
19
|
+
"@nocobase/evaluators": "1.8.10",
|
|
20
|
+
"@nocobase/lock-manager": "1.8.10",
|
|
21
|
+
"@nocobase/logger": "1.8.10",
|
|
22
|
+
"@nocobase/resourcer": "1.8.10",
|
|
23
|
+
"@nocobase/sdk": "1.8.10",
|
|
24
|
+
"@nocobase/telemetry": "1.8.10",
|
|
25
|
+
"@nocobase/utils": "1.8.10",
|
|
26
26
|
"@types/decompress": "4.2.7",
|
|
27
27
|
"@types/ini": "^1.3.31",
|
|
28
28
|
"@types/koa-send": "^4.1.3",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"@types/serve-handler": "^6.1.1",
|
|
58
58
|
"@types/ws": "^8.5.5"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "47fd4ef9bff0e1e779154b004d93387ea05b21e9"
|
|
61
61
|
}
|