@azteam/express 1.2.134 → 1.2.137
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 +2 -2
- package/src/Server.js +11 -2
- package/src/index.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azteam/express",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.137",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@azteam/crypto": "1.0.17",
|
|
27
27
|
"@azteam/error": "1.0.15",
|
|
28
|
-
"@azteam/http-client": "1.0.
|
|
28
|
+
"@azteam/http-client": "1.0.83",
|
|
29
29
|
"body-parser": "1.19.0",
|
|
30
30
|
"cookie-parser": "1.4.4",
|
|
31
31
|
"cors": "2.8.4",
|
package/src/Server.js
CHANGED
|
@@ -117,7 +117,7 @@ class Server {
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
|
|
120
|
-
|
|
120
|
+
startAPI(port) {
|
|
121
121
|
if (!_.isEmpty(this.controllers)) {
|
|
122
122
|
|
|
123
123
|
const WHITE_LIST = this.whiteList;
|
|
@@ -341,7 +341,16 @@ class Server {
|
|
|
341
341
|
return server;
|
|
342
342
|
|
|
343
343
|
} else {
|
|
344
|
-
throw Error('No controllers in use');
|
|
344
|
+
throw Error('No controllers in use API');
|
|
345
|
+
}
|
|
346
|
+
return this;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
startSocket(port) {
|
|
350
|
+
if (!_.isEmpty(this.controllers)) {
|
|
351
|
+
|
|
352
|
+
} else {
|
|
353
|
+
throw Error('No controllers in use SOCKET');
|
|
345
354
|
}
|
|
346
355
|
return this;
|
|
347
356
|
}
|