@pi-r/postgres 0.10.3 → 0.11.1

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 +1 -1
  2. package/package.json +3 -3
package/client/index.js CHANGED
@@ -133,7 +133,7 @@ function setCredential(item) {
133
133
  .parent = POOL_STATE;
134
134
  }
135
135
  async function executeQuery(item, options) {
136
- return (await executeBatchQuery.call(this, [item], options))[0] || [];
136
+ return (await executeBatchQuery.call(this, [item], options)).at(0) || [];
137
137
  }
138
138
  async function executeBatchQuery(batch, options = '', outResult) {
139
139
  const length = batch.length;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-r/postgres",
3
- "version": "0.10.3",
3
+ "version": "0.11.1",
4
4
  "description": "PostgreSQL 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.12.7",
24
- "@e-mc/types": "^0.12.7",
23
+ "@e-mc/db": "^0.13.5",
24
+ "@e-mc/types": "^0.13.5",
25
25
  "pg": "^8.16.3",
26
26
  "pg-connection-string": "^2.9.1",
27
27
  "pg-query-stream": "^4.10.3"