@pi-r/mysql 0.11.1 → 0.11.3

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/client/index.js +2 -2
  2. package/package.json +4 -4
package/client/index.js CHANGED
@@ -303,7 +303,7 @@ async function executeBatchQuery(batch, options = '', outResult) {
303
303
  mysql2Credential = credential;
304
304
  }
305
305
  commandType = this.commandType.SELECT;
306
- client[prepared && connectOnce && !parallel ? 'execute' : 'query'](query, params)
306
+ (prepared && connectOnce && !parallel ? client.execute(query, params) : client.query(query, params))
307
307
  .on('result', row => {
308
308
  if (processRow) {
309
309
  const err = processRow(row);
@@ -334,7 +334,7 @@ async function executeBatchQuery(batch, options = '', outResult) {
334
334
  mysqlClient = undefined;
335
335
  }
336
336
  commandType = this.commandType.SELECT;
337
- const [rows] = await client[prepared && connectOnce && !parallel ? 'execute' : 'query'](query, params);
337
+ const [rows] = await (prepared && connectOnce && !parallel ? client.execute(query, params) : client.query(query, params));
338
338
  this.add(item, 4);
339
339
  if ((0, types_1.isArray)(rows)) {
340
340
  const [row1, row2] = rows;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-r/mysql",
3
- "version": "0.11.1",
3
+ "version": "0.11.3",
4
4
  "description": "MySQL client driver for E-mc.",
5
5
  "main": "client/index.js",
6
6
  "types": "client/index.d.ts",
@@ -20,8 +20,8 @@
20
20
  "license": "MIT",
21
21
  "homepage": "https://github.com/anpham6/pi-r#readme",
22
22
  "dependencies": {
23
- "@e-mc/db": "^0.13.5",
24
- "@e-mc/types": "^0.13.5",
25
- "mysql2": "^3.16.0"
23
+ "@e-mc/db": "^0.13.10",
24
+ "@e-mc/types": "^0.13.10",
25
+ "mysql2": "^3.22.2"
26
26
  }
27
27
  }