Comparing version 1.2.1 to 1.2.2
{ | ||
"name": "highsql", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "High level MySQL utility", | ||
@@ -16,7 +16,3 @@ "main": "./src/index.js", | ||
"mysql2": "^3.10.1" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.14.9", | ||
"typescript": "^5.5.2" | ||
} | ||
} |
@@ -30,3 +30,3 @@ /** | ||
async query(sql, values) { | ||
const connection = await this.pool.getConnection(); | ||
const connection = this.pool; | ||
try { | ||
@@ -33,0 +33,0 @@ const [rows] = await connection.query(sql, values); |
@@ -51,3 +51,3 @@ /** | ||
): Promise<T> { | ||
const connection = await this.pool.getConnection(); | ||
const connection = this.pool | ||
try { | ||
@@ -54,0 +54,0 @@ const [rows] = await connection.query(sql, values); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
0
15213