uranio 1.1.8 → 1.1.9

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.
@@ -33,6 +33,6 @@
33
33
  "mongodb": "^7.1.0",
34
34
  "mysql2": "^3.17.5",
35
35
  "pg": "^8.18.0",
36
- "uranio": "1.1.8"
36
+ "uranio": "1.1.9"
37
37
  }
38
38
  }
@@ -38,16 +38,16 @@ export class MongoDBClient {
38
38
  try {
39
39
  // Check if the client is already connected by pinging the database
40
40
  await this.client.db().command({ping: 1});
41
- log.trace('MongoDB is already connected.');
41
+ log.debug('MongoDB is already connected.');
42
42
  } catch (error) {
43
43
  log.trace('Connecting to MongoDB...');
44
44
  await this.client.connect();
45
- log.trace('MongoDB connected.');
45
+ log.debug('MongoDB connected.');
46
46
  }
47
47
  }
48
48
  public async disconnect() {
49
- log.trace('Disconnecting...');
49
+ log.trace('Disconnecting from MongoDB...');
50
50
  await this.client.close();
51
- log.trace('Disconnected.');
51
+ log.debug('MongoDB disconnected.');
52
52
  }
53
53
  }
@@ -43,7 +43,7 @@ export class MySQLClient {
43
43
  typeof values !== 'undefined'
44
44
  ? ` with values [${Object.entries(values)}]`
45
45
  : '';
46
- log.trace(`Excuting query '${sql}'${with_values}`);
46
+ log.debug(`Excuting query '${sql}'${with_values}`);
47
47
  if (this.pool) {
48
48
  return await this._execute_from_pool_connection(sql, values);
49
49
  }
@@ -42,7 +42,7 @@ export class PostgreSQLClient {
42
42
  typeof paramValues !== 'undefined' && paramValues.length > 0
43
43
  ? ` with values [${paramValues}]`
44
44
  : '';
45
- log.trace(`Excuting query '${query}'${with_values}`);
45
+ log.debug(`Excuting query '${query}'${with_values}`);
46
46
  if (this.pool) {
47
47
  return await this._execute_from_pool_connection(query, paramValues);
48
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uranio",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "Uranio is a type-safe ODM for MongoDB",
5
5
  "main": "dist/index.js",
6
6
  "repository": {