@pi-r/mssql 0.11.0 → 0.11.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/client/index.js CHANGED
@@ -244,7 +244,7 @@ function setCredential(item) {
244
244
  .parent = POOL_STATE;
245
245
  }
246
246
  async function executeQuery(item, options) {
247
- return (await executeBatchQuery.call(this, [item], options))[0] || [];
247
+ return (await executeBatchQuery.call(this, [item], options)).at(0) || [];
248
248
  }
249
249
  async function executeBatchQuery(batch, options = '', outResult) {
250
250
  const length = batch.length;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-r/mssql",
3
- "version": "0.11.0",
3
+ "version": "0.11.2",
4
4
  "description": "MSSQL client driver for E-mc.",
5
5
  "main": "client/index.js",
6
6
  "types": "client/index.d.ts",
@@ -20,9 +20,9 @@
20
20
  "license": "MIT",
21
21
  "homepage": "https://github.com/anpham6/pi-r#readme",
22
22
  "dependencies": {
23
- "@e-mc/db": "^0.13.0",
24
- "@e-mc/types": "^0.13.0",
25
- "tedious": "^18.6.1",
23
+ "@e-mc/db": "^0.13.9",
24
+ "@e-mc/types": "^0.13.9",
25
+ "tedious": "^18.6.2",
26
26
  "tedious-connection-pool2": "^2.1.0"
27
27
  }
28
28
  }
package/types/pool.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { Connection, ConnectionConfiguration } from 'tedious';
2
2
 
3
- import type * as EventEmitter from 'events';
3
+ import EventEmitter from 'node:events';
4
4
 
5
5
  declare class Pool extends EventEmitter {
6
6
  /**