dbgate-api-premium 6.1.0 → 6.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-premium",
3
3
  "main": "src/index.js",
4
- "version": "6.1.0",
4
+ "version": "6.1.2",
5
5
  "homepage": "https://dbgate.org/",
6
6
  "repository": {
7
7
  "type": "git",
@@ -29,10 +29,10 @@
29
29
  "compare-versions": "^3.6.0",
30
30
  "cors": "^2.8.5",
31
31
  "cross-env": "^6.0.3",
32
- "dbgate-datalib": "^6.1.0",
32
+ "dbgate-datalib": "^6.1.2",
33
33
  "dbgate-query-splitter": "^4.11.2",
34
- "dbgate-sqltree": "^6.1.0",
35
- "dbgate-tools": "^6.1.0",
34
+ "dbgate-sqltree": "^6.1.2",
35
+ "dbgate-tools": "^6.1.2",
36
36
  "debug": "^4.3.4",
37
37
  "diff": "^5.0.0",
38
38
  "diff2html": "^3.4.13",
@@ -81,7 +81,7 @@
81
81
  "devDependencies": {
82
82
  "@types/fs-extra": "^9.0.11",
83
83
  "@types/lodash": "^4.14.149",
84
- "dbgate-types": "^6.1.0",
84
+ "dbgate-types": "^6.1.2",
85
85
  "env-cmd": "^10.1.0",
86
86
  "jsdoc-to-markdown": "^9.0.5",
87
87
  "node-loader": "^1.0.2",
@@ -237,7 +237,7 @@ module.exports = {
237
237
  }
238
238
  );
239
239
  pipeForkLogs(subprocess);
240
- subprocess.send({ connection, requestDbList });
240
+ subprocess.send({ ...connection, requestDbList });
241
241
  return new Promise(resolve => {
242
242
  subprocess.on('message', resp => {
243
243
  if (handleProcessCommunication(resp, subprocess)) return;
@@ -1,5 +1,5 @@
1
1
 
2
2
  module.exports = {
3
- version: '6.1.0',
4
- buildTime: '2024-12-18T09:39:57.332Z'
3
+ version: '6.1.2',
4
+ buildTime: '2024-12-26T07:06:47.031Z'
5
5
  };
@@ -16,9 +16,9 @@ Platform: ${process.platform}
16
16
 
17
17
  function start() {
18
18
  childProcessChecker();
19
- process.on('message', async args => {
19
+ process.on('message', async connection => {
20
20
  // @ts-ignore
21
- const { connection, requestDbList } = args;
21
+ const { requestDbList } = connection;
22
22
  if (handleProcessCommunication(connection)) return;
23
23
  try {
24
24
  const driver = requireEngineDriver(connection);
@@ -8,12 +8,15 @@ const logger = getLogger('tableReader');
8
8
  * @param {object} options
9
9
  * @param {connectionType} options.connection - connection object
10
10
  * @param {object} options.systemConnection - system connection (result of driver.connect). If not provided, new connection will be created
11
+ * @param {object} options.driver - driver object. If not provided, it will be loaded from connection
11
12
  * @param {string} options.pureName - table name
12
13
  * @param {string} options.schemaName - schema name
13
14
  * @returns {Promise<readerType>} - reader object
14
15
  */
15
- async function tableReader({ connection, systemConnection, pureName, schemaName }) {
16
- const driver = requireEngineDriver(connection);
16
+ async function tableReader({ connection, systemConnection, pureName, schemaName, driver }) {
17
+ if (!driver) {
18
+ driver = requireEngineDriver(connection);
19
+ }
17
20
  const dbhan = systemConnection || (await connectUtility(driver, connection, 'read'));
18
21
  logger.info(`Connected.`);
19
22