abler-api 1.0.1 → 1.0.2

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.
@@ -35,10 +35,10 @@ const {
35
35
  dbUtil: dbUtil$1,
36
36
  ppRedis,
37
37
  kvStorage: kvStorage$1,
38
- redisSimulator
38
+ redisSimulator,
39
+ DbVersionManager
39
40
  } = require$$4__default["default"];
40
41
  let conf$3, err$1;
41
- // const dbCheck = require('../dbupdate/dd-version');
42
42
 
43
43
  /**
44
44
  * API服务启动时前置条件检查
@@ -150,13 +150,11 @@ class preconditions$2 {
150
150
  static async initKvStorage(dbSql) {
151
151
  return await initKvStorage(dbSql);
152
152
  }
153
-
154
- // /**
155
- // * 数据库可用性及业务数据版本版本检查
156
- // */
157
- // static async checkDatabase() {
158
- // return await checkDatabase();
159
- // }
153
+ static async checkAppDbVersion() {
154
+ const dbVersionManager = new DbVersionManager();
155
+ const updateInfo = await dbVersionManager.checkAppDbVersion();
156
+ return updateInfo.updateMessage;
157
+ }
160
158
  }
161
159
  async function createEnvSettingFile(fileName, lastEnvSettingEx) {
162
160
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abler-api",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "API服务相关工具",
5
5
  "main": "./dist/cjs/pp-util.js",
6
6
  "-module": "./dist/es/pp-util.js",
@@ -15,11 +15,11 @@
15
15
  "author": "peng_peng",
16
16
  "license": "ISC",
17
17
  "dependencies": {
18
- "abler-db": "^1.0.1",
18
+ "abler-db": "^1.0.2",
19
19
  "abler-i18n": "^1.0.1",
20
- "abler-messenger": "^1.0.1",
21
- "abler-net": "^1.0.1",
22
- "abler-util": "^1.0.1",
20
+ "abler-messenger": "^1.0.2",
21
+ "abler-net": "^1.0.2",
22
+ "abler-util": "^1.0.2",
23
23
  "basic-auth": "^2.0.1",
24
24
  "node-cron": "^3.0.1",
25
25
  "q": "^1.5.1"
@@ -42,5 +42,5 @@
42
42
  "rollup-plugin-json": "^4.0.0",
43
43
  "rollup-plugin-terser": "^7.0.2"
44
44
  },
45
- "gitHead": "39ef23cc8a94e51adf8a76fe5ec0566270e4e39d"
45
+ "gitHead": "985e0ce8a13250f5ebe2ccbb61ab819f4ee7d455"
46
46
  }