baja-lite 1.7.4 → 1.7.5
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 +10 -10
- package/sql.js +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "baja-lite",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.5",
|
|
4
4
|
"description": "some util for self",
|
|
5
5
|
"homepage": "https://github.com/void-soul/baja-lite",
|
|
6
6
|
"repository": {
|
|
@@ -55,17 +55,17 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/better-sqlite3": "7.6.13",
|
|
57
57
|
"@types/mustache": "4.2.6",
|
|
58
|
-
"@types/node": "25.
|
|
58
|
+
"@types/node": "25.5.0",
|
|
59
59
|
"@types/shelljs": "0.10.0",
|
|
60
60
|
"@types/sqlstring": "2.3.2",
|
|
61
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
62
|
-
"@typescript-eslint/parser": "8.
|
|
63
|
-
"better-sqlite3": "12.
|
|
64
|
-
"ioredis": "5.10.
|
|
65
|
-
"mongodb": "7.1.
|
|
66
|
-
"mysql2": "3.
|
|
67
|
-
"pg": "8.
|
|
68
|
-
"pg-pool": "3.
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "8.57.2",
|
|
62
|
+
"@typescript-eslint/parser": "8.57.2",
|
|
63
|
+
"better-sqlite3": "12.8.0",
|
|
64
|
+
"ioredis": "5.10.1",
|
|
65
|
+
"mongodb": "7.1.1",
|
|
66
|
+
"mysql2": "3.20.0",
|
|
67
|
+
"pg": "8.20.0",
|
|
68
|
+
"pg-pool": "3.13.0",
|
|
69
69
|
"redlock": "5.0.0-beta.2",
|
|
70
70
|
"shelljs": "0.10.0",
|
|
71
71
|
"typescript": "5.9.3"
|
package/sql.js
CHANGED
|
@@ -404,6 +404,7 @@ _b = _inTransaction;
|
|
|
404
404
|
export class Mysql {
|
|
405
405
|
constructor(pool) {
|
|
406
406
|
this[_daoDB] = pool;
|
|
407
|
+
this.keepAlive();
|
|
407
408
|
}
|
|
408
409
|
async keepAlive() {
|
|
409
410
|
const connection = await this[_daoDB].getConnection();
|
|
@@ -703,6 +704,7 @@ _c = _inTransaction;
|
|
|
703
704
|
export class Postgresql {
|
|
704
705
|
constructor(pool) {
|
|
705
706
|
this[_daoDB] = pool;
|
|
707
|
+
this.keepAlive();
|
|
706
708
|
}
|
|
707
709
|
async keepAlive() {
|
|
708
710
|
const connection = await this[_daoDB].connect();
|