dbgate-api 5.0.4-alpha.8 → 5.0.6-alpha.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.0.
|
|
4
|
+
"version": "5.0.6-alpha.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.0.
|
|
30
|
-
"dbgate-tools": "^5.0.
|
|
29
|
+
"dbgate-sqltree": "^5.0.6-alpha.2",
|
|
30
|
+
"dbgate-tools": "^5.0.6-alpha.2",
|
|
31
31
|
"diff": "^5.0.0",
|
|
32
32
|
"diff2html": "^3.4.13",
|
|
33
33
|
"eslint": "^6.8.0",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@types/fs-extra": "^9.0.11",
|
|
65
65
|
"@types/lodash": "^4.14.149",
|
|
66
|
-
"dbgate-types": "^5.0.
|
|
66
|
+
"dbgate-types": "^5.0.6-alpha.2",
|
|
67
67
|
"env-cmd": "^10.1.0",
|
|
68
68
|
"node-loader": "^1.0.2",
|
|
69
69
|
"nodemon": "^2.0.2",
|
|
@@ -166,9 +166,11 @@ module.exports = {
|
|
|
166
166
|
|
|
167
167
|
list_meta: true,
|
|
168
168
|
async list() {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
169
|
+
if (portalConnections) {
|
|
170
|
+
if (platformInfo.allowShellConnection) return portalConnections;
|
|
171
|
+
return portalConnections.map(maskConnection);
|
|
172
|
+
}
|
|
173
|
+
return this.datastore.find();
|
|
172
174
|
},
|
|
173
175
|
|
|
174
176
|
test_meta: true,
|
package/src/currentVersion.js
CHANGED
|
@@ -16,7 +16,9 @@ function requireEngineDriver(connection) {
|
|
|
16
16
|
if (engine.includes('@')) {
|
|
17
17
|
const [shortName, packageName] = engine.split('@');
|
|
18
18
|
const plugin = requirePlugin(packageName);
|
|
19
|
-
|
|
19
|
+
if (plugin.drivers) {
|
|
20
|
+
return plugin.drivers.find(x => x.engine == engine);
|
|
21
|
+
}
|
|
20
22
|
}
|
|
21
23
|
throw new Error(`Could not find engine driver ${engine}`);
|
|
22
24
|
}
|