dbgate-api 5.1.1 → 5.1.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dbgate-api",
3
3
  "main": "src/index.js",
4
- "version": "5.1.1",
4
+ "version": "5.1.2",
5
5
  "homepage": "https://dbgate.org/",
6
6
  "repository": {
7
7
  "type": "git",
@@ -26,8 +26,8 @@
26
26
  "cors": "^2.8.5",
27
27
  "cross-env": "^6.0.3",
28
28
  "dbgate-query-splitter": "^4.9.0",
29
- "dbgate-sqltree": "^5.1.1",
30
- "dbgate-tools": "^5.1.1",
29
+ "dbgate-sqltree": "^5.1.2",
30
+ "dbgate-tools": "^5.1.2",
31
31
  "debug": "^4.3.4",
32
32
  "diff": "^5.0.0",
33
33
  "diff2html": "^3.4.13",
@@ -65,7 +65,7 @@
65
65
  "devDependencies": {
66
66
  "@types/fs-extra": "^9.0.11",
67
67
  "@types/lodash": "^4.14.149",
68
- "dbgate-types": "^5.1.1",
68
+ "dbgate-types": "^5.1.2",
69
69
  "env-cmd": "^10.1.0",
70
70
  "node-loader": "^1.0.2",
71
71
  "nodemon": "^2.0.2",
@@ -1,5 +1,5 @@
1
1
 
2
2
  module.exports = {
3
- version: '5.1.1',
4
- buildTime: '2022-09-05T18:10:56.977Z'
3
+ version: '5.1.2',
4
+ buildTime: '2022-09-19T17:31:40.784Z'
5
5
  };
@@ -20,7 +20,9 @@ async function queryReader({
20
20
  const driver = requireEngineDriver(connection);
21
21
  const pool = await connectUtility(driver, connection, queryType == 'json' ? 'read' : 'script');
22
22
  console.log(`Connected.`);
23
- return queryType == 'json' ? await driver.readJsonQuery(pool, query) : await driver.readQuery(pool, query || sql);
23
+ const reader =
24
+ queryType == 'json' ? await driver.readJsonQuery(pool, query) : await driver.readQuery(pool, query || sql);
25
+ return reader;
24
26
  }
25
27
 
26
28
  module.exports = queryReader;