@azteam/express 1.2.133 → 1.2.134

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azteam/express",
3
- "version": "1.2.133",
3
+ "version": "1.2.134",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "repository": {
@@ -38,7 +38,7 @@ function omitItem(item, guard, allows) {
38
38
  }
39
39
 
40
40
 
41
- class ApiServer {
41
+ class Server {
42
42
  constructor(currentDir = '', options = {}) {
43
43
  this.options = options;
44
44
 
@@ -117,7 +117,7 @@ class ApiServer {
117
117
  }
118
118
 
119
119
 
120
- startAPI(port) {
120
+ startAPIServer(port) {
121
121
  if (!_.isEmpty(this.controllers)) {
122
122
 
123
123
  const WHITE_LIST = this.whiteList;
@@ -360,4 +360,4 @@ class ApiServer {
360
360
  }
361
361
  }
362
362
 
363
- export default ApiServer;
363
+ export default Server;
package/src/index.js CHANGED
@@ -1,5 +1,4 @@
1
- import ApiServer from './ApiServer';
2
- import SocketServer from './SocketServer';
1
+ import Server from './Server';
3
2
 
4
3
  import Controller from './Controller';
5
4
  import AdminController from './AdminController';
@@ -10,8 +9,7 @@ export * from './constant';
10
9
  export * from './validate';
11
10
 
12
11
  export {
13
- ApiServer,
14
- SocketServer,
12
+ Server,
15
13
 
16
14
  Controller,
17
15
  AdminController,