imean-service-engine 1.8.0 → 1.8.1

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/dist/mod.cjs CHANGED
@@ -884,7 +884,6 @@ var Microservice = class {
884
884
  };
885
885
  this.cache = this.options.cacheAdapter;
886
886
  this.fetch = this.app.request;
887
- this.waitingInitialization = this.initialize();
888
887
  ServiceContext.service = this;
889
888
  }
890
889
  async initialize() {
@@ -1114,7 +1113,7 @@ var Microservice = class {
1114
1113
  * 启动服务
1115
1114
  */
1116
1115
  async start(port = 3e3, silent = false) {
1117
- await this.waitingInitialization;
1116
+ await this.init();
1118
1117
  const prefix = this.options.prefix ?? "/api";
1119
1118
  this.abortController = new AbortController();
1120
1119
  !silent && console.log("");
@@ -1427,6 +1426,7 @@ Received SIGTERM signal`);
1427
1426
  }
1428
1427
  }
1429
1428
  async init() {
1429
+ this.waitingInitialization = this.initialize();
1430
1430
  await this.waitingInitialization;
1431
1431
  }
1432
1432
  };
package/dist/mod.js CHANGED
@@ -875,7 +875,6 @@ var Microservice = class {
875
875
  };
876
876
  this.cache = this.options.cacheAdapter;
877
877
  this.fetch = this.app.request;
878
- this.waitingInitialization = this.initialize();
879
878
  ServiceContext.service = this;
880
879
  }
881
880
  async initialize() {
@@ -1105,7 +1104,7 @@ var Microservice = class {
1105
1104
  * 启动服务
1106
1105
  */
1107
1106
  async start(port = 3e3, silent = false) {
1108
- await this.waitingInitialization;
1107
+ await this.init();
1109
1108
  const prefix = this.options.prefix ?? "/api";
1110
1109
  this.abortController = new AbortController();
1111
1110
  !silent && console.log("");
@@ -1418,6 +1417,7 @@ Received SIGTERM signal`);
1418
1417
  }
1419
1418
  }
1420
1419
  async init() {
1420
+ this.waitingInitialization = this.initialize();
1421
1421
  await this.waitingInitialization;
1422
1422
  }
1423
1423
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imean-service-engine",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "microservice engine",
5
5
  "keywords": [
6
6
  "microservice",