baja-lite 1.7.6 → 1.7.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/sql.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baja-lite",
3
- "version": "1.7.6",
3
+ "version": "1.7.7",
4
4
  "description": "some util for self",
5
5
  "homepage": "https://github.com/void-soul/baja-lite",
6
6
  "repository": {
package/sql.js CHANGED
@@ -409,7 +409,8 @@ export class Mysql {
409
409
  }
410
410
  async keepAlive() {
411
411
  const connection = await this.createConnection(SyncMode.Async);
412
- await connection?.query(SyncMode.Async, 'SELECT 1 FROM DUAL');
412
+ const data = await connection?.query(SyncMode.Async, 'SELECT 1 FROM DUAL');
413
+ globalThis[_LoggerService].debug?.('keepAlive->', data?.[0]?.[1]);
413
414
  setTimeout(() => this.keepAlive(), globalThis[_MysqlKeepAliveTime] ?? 30000);
414
415
  }
415
416
  createConnection(sync) {