db-crud-api 0.2.0 → 0.2.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.
package/CHANGELOG.md CHANGED
@@ -32,3 +32,6 @@
32
32
  - parameters position have been change for some api
33
33
  Added:
34
34
  - batch job that run multiple instructions
35
+ ## v0.2.1 (2024-12-05)
36
+
37
+ Refresh dependency
package/lib/mssql.js CHANGED
@@ -72,7 +72,8 @@ export async function query(connection, dbOpes) {
72
72
  let pool = pools[connection.id]; // Try to get an existing pool
73
73
  if (!pool) {
74
74
  pool = new sql.ConnectionPool(connection); // Create new pool
75
- await pool.connect(); // wait that connection are made
75
+ try { await pool.connect(); // wait that connection are made
76
+ } catch(err) { throw(err); } // using original error
76
77
  pools[connection.id] = pool; // add new pool to pools
77
78
  }
78
79
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "db-crud-api",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "description": "CRUD api for database tables",
6
6
  "main": "index.js",
@@ -10,8 +10,8 @@
10
10
  "author": "FF",
11
11
  "license": "MIT",
12
12
  "dependencies": {
13
- "mssql": "^10.0.2",
14
- "uuid": "^9.0.1"
13
+ "mssql": "^11.0.1",
14
+ "uuid": "^11.0.3"
15
15
  },
16
16
  "keywords":["db","crud","api"]
17
17
  }