abler-api 1.0.20 → 1.0.21
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/README.md +4 -0
- package/dist/cjs/pp-util.js +4 -4
- package/package.json +47 -46
package/README.md
CHANGED
package/dist/cjs/pp-util.js
CHANGED
|
@@ -147,8 +147,8 @@ class preconditions$2 {
|
|
|
147
147
|
/**
|
|
148
148
|
* 初始化数据库连接
|
|
149
149
|
*/
|
|
150
|
-
static async initDb(
|
|
151
|
-
return await initDb(
|
|
150
|
+
static async initDb() {
|
|
151
|
+
return await initDb();
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
/**
|
|
@@ -228,9 +228,9 @@ async function checkRedis() {
|
|
|
228
228
|
// console.log(`checkRedis done:`);
|
|
229
229
|
// console.log(redis);
|
|
230
230
|
}
|
|
231
|
-
async function initDb(
|
|
231
|
+
async function initDb() {
|
|
232
232
|
try {
|
|
233
|
-
dbUtil$1.config(conf$3, err$1
|
|
233
|
+
dbUtil$1.config(conf$3, err$1);
|
|
234
234
|
} catch (e) {
|
|
235
235
|
if (e.reason === 'bad decrypt') {
|
|
236
236
|
e = new Error(t_f$3("解密数据库密码(%s)失败", conf$3.dbconn.dbpwd));
|
package/package.json
CHANGED
|
@@ -1,46 +1,47 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "abler-api",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "API服务相关工具",
|
|
5
|
-
"main": "./dist/cjs/pp-util.js",
|
|
6
|
-
"-module": "./dist/es/pp-util.js",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "npx rollup -c rollup.config.js",
|
|
9
|
-
"postbuild": "node ..\\postbuild.js",
|
|
10
|
-
"test": "echo \"Skip tests for this package\" && exit 0"
|
|
11
|
-
},
|
|
12
|
-
"files": [
|
|
13
|
-
"dist"
|
|
14
|
-
],
|
|
15
|
-
"author": "peng_peng",
|
|
16
|
-
"license": "ISC",
|
|
17
|
-
"dependencies": {
|
|
18
|
-
"abler-db": "^1.0.
|
|
19
|
-
"abler-i18n": "^1.0.2",
|
|
20
|
-
"abler-messenger": "^1.0.
|
|
21
|
-
"abler-net": "^1.0.
|
|
22
|
-
"abler-util": "^1.0.
|
|
23
|
-
"basic-auth": "^2.0.1",
|
|
24
|
-
"node-cron": "^3.0.1",
|
|
25
|
-
"proxy-agent": "6.5.0",
|
|
26
|
-
"q": "^1.5.1"
|
|
27
|
-
},
|
|
28
|
-
"devDependencies": {
|
|
29
|
-
"@babel/core": "^7.18.5",
|
|
30
|
-
"@babel/eslint-parser": "^7.18.2",
|
|
31
|
-
"@babel/plugin-transform-runtime": "^7.18.0",
|
|
32
|
-
"@babel/preset-env": "^7.18.2",
|
|
33
|
-
"@babel/runtime": "^7.18.0",
|
|
34
|
-
"@rollup/plugin-babel": "^5.3.1",
|
|
35
|
-
"@rollup/plugin-commonjs": "^22.0.0",
|
|
36
|
-
"@rollup/plugin-eslint": "^8.0.2",
|
|
37
|
-
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "^5.25.0",
|
|
39
|
-
"@typescript-eslint/parser": "^5.25.0",
|
|
40
|
-
"eslint": "^8.16.0",
|
|
41
|
-
"eslint-plugin-react": "^7.30.0",
|
|
42
|
-
"rollup-plugin-filesize": "^10.0.0",
|
|
43
|
-
"rollup-plugin-json": "^4.0.0",
|
|
44
|
-
"rollup-plugin-terser": "^7.0.2"
|
|
45
|
-
}
|
|
46
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "abler-api",
|
|
3
|
+
"version": "1.0.21",
|
|
4
|
+
"description": "API服务相关工具",
|
|
5
|
+
"main": "./dist/cjs/pp-util.js",
|
|
6
|
+
"-module": "./dist/es/pp-util.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "npx rollup -c rollup.config.js",
|
|
9
|
+
"postbuild": "node ..\\postbuild.js",
|
|
10
|
+
"test": "echo \"Skip tests for this package\" && exit 0"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"author": "peng_peng",
|
|
16
|
+
"license": "ISC",
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"abler-db": "^1.0.26",
|
|
19
|
+
"abler-i18n": "^1.0.2",
|
|
20
|
+
"abler-messenger": "^1.0.19",
|
|
21
|
+
"abler-net": "^1.0.6",
|
|
22
|
+
"abler-util": "^1.0.6",
|
|
23
|
+
"basic-auth": "^2.0.1",
|
|
24
|
+
"node-cron": "^3.0.1",
|
|
25
|
+
"proxy-agent": "6.5.0",
|
|
26
|
+
"q": "^1.5.1"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@babel/core": "^7.18.5",
|
|
30
|
+
"@babel/eslint-parser": "^7.18.2",
|
|
31
|
+
"@babel/plugin-transform-runtime": "^7.18.0",
|
|
32
|
+
"@babel/preset-env": "^7.18.2",
|
|
33
|
+
"@babel/runtime": "^7.18.0",
|
|
34
|
+
"@rollup/plugin-babel": "^5.3.1",
|
|
35
|
+
"@rollup/plugin-commonjs": "^22.0.0",
|
|
36
|
+
"@rollup/plugin-eslint": "^8.0.2",
|
|
37
|
+
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "^5.25.0",
|
|
39
|
+
"@typescript-eslint/parser": "^5.25.0",
|
|
40
|
+
"eslint": "^8.16.0",
|
|
41
|
+
"eslint-plugin-react": "^7.30.0",
|
|
42
|
+
"rollup-plugin-filesize": "^10.0.0",
|
|
43
|
+
"rollup-plugin-json": "^4.0.0",
|
|
44
|
+
"rollup-plugin-terser": "^7.0.2"
|
|
45
|
+
},
|
|
46
|
+
"gitHead": "c9cfc5958c15f1cf98938a11a8dedb91c7383cdb"
|
|
47
|
+
}
|