@domain.js/main 0.4.15 → 0.4.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.
@@ -6,6 +6,7 @@ export interface Cnf {
6
6
  bodyMaxBytes?: number;
7
7
  apisRoute?: string;
8
8
  socket?: boolean;
9
+ fileUploadMultiple?: boolean;
9
10
  [propName: string]: any;
10
11
  }
11
12
  export interface Profile {
@@ -32,7 +32,8 @@ function Main(cnf, deps) {
32
32
  server.use(restify.plugins.queryParser());
33
33
  server.use(restify.plugins.bodyParser({
34
34
  keepExtensions: true,
35
- maxFieldsSize: cnf.bodyMaxBytes || 2 * 1024 * 1024, // 参数最大容量 2MB
35
+ maxFieldsSize: cnf.bodyMaxBytes || 2 * 1024 * 1024,
36
+ multiples: cnf.fileUploadMultiple || false, // 是否支持多文件上传
36
37
  }));
37
38
  const router = (0, router_1.Router)({
38
39
  utils,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domain.js/main",
3
- "version": "0.4.15",
3
+ "version": "0.4.16",
4
4
  "description": "DDD framework",
5
5
  "main": "dist/index.js",
6
6
  "bin": {