dbgate-api 5.1.4 → 5.1.5
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.
|
|
4
|
+
"version": "5.1.5",
|
|
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.2",
|
|
29
|
-
"dbgate-sqltree": "^5.1.
|
|
30
|
-
"dbgate-tools": "^5.1.
|
|
29
|
+
"dbgate-sqltree": "^5.1.5",
|
|
30
|
+
"dbgate-tools": "^5.1.5",
|
|
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.
|
|
68
|
+
"dbgate-types": "^5.1.5",
|
|
69
69
|
"env-cmd": "^10.1.0",
|
|
70
70
|
"node-loader": "^1.0.2",
|
|
71
71
|
"nodemon": "^2.0.2",
|
|
@@ -53,6 +53,8 @@ function getPortalCollections() {
|
|
|
53
53
|
databaseUrl: process.env[`URL_${id}`],
|
|
54
54
|
useDatabaseUrl: !!process.env[`URL_${id}`],
|
|
55
55
|
databaseFile: process.env[`FILE_${id}`],
|
|
56
|
+
socketPath: process.env[`SOCKET_PATH_${id}`],
|
|
57
|
+
authType: process.env[`AUTH_TYPE_${id}`] || (process.env[`SOCKET_PATH_${id}`] ? 'socket' : undefined),
|
|
56
58
|
defaultDatabase:
|
|
57
59
|
process.env[`DATABASE_${id}`] ||
|
|
58
60
|
(process.env[`FILE_${id}`] ? getDatabaseFileLabel(process.env[`FILE_${id}`]) : null),
|
package/src/currentVersion.js
CHANGED
|
@@ -177,7 +177,7 @@ async function handleQueryData({ msgid, sql }, skipReadonlyCheck = false) {
|
|
|
177
177
|
const res = await driver.query(systemConnection, sql);
|
|
178
178
|
process.send({ msgtype: 'response', msgid, ...res });
|
|
179
179
|
} catch (err) {
|
|
180
|
-
process.send({ msgtype: 'response', msgid, errorMessage: err.message });
|
|
180
|
+
process.send({ msgtype: 'response', msgid, errorMessage: err.message || 'Error executing SQL script' });
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
|