dbgate-api 5.0.4-alpha.7 → 5.0.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.0.
|
|
4
|
+
"version": "5.0.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.0",
|
|
29
|
-
"dbgate-sqltree": "^5.0.
|
|
30
|
-
"dbgate-tools": "^5.0.
|
|
29
|
+
"dbgate-sqltree": "^5.0.5",
|
|
30
|
+
"dbgate-tools": "^5.0.5",
|
|
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.5",
|
|
67
67
|
"env-cmd": "^10.1.0",
|
|
68
68
|
"node-loader": "^1.0.2",
|
|
69
69
|
"nodemon": "^2.0.2",
|
package/src/currentVersion.js
CHANGED
|
@@ -39,8 +39,8 @@ const platformInfo = {
|
|
|
39
39
|
environment: process.env.NODE_ENV,
|
|
40
40
|
platform,
|
|
41
41
|
runningInWebpack: !!process.env.WEBPACK_DEV_SERVER_URL,
|
|
42
|
-
allowShellConnection: !!process.env.SHELL_CONNECTION || !!isElectron(),
|
|
43
|
-
allowShellScripting: !!process.env.SHELL_SCRIPTING || !!isElectron(),
|
|
42
|
+
allowShellConnection: !processArgs.listenApiChild || !!process.env.SHELL_CONNECTION || !!isElectron(),
|
|
43
|
+
allowShellScripting: !processArgs.listenApiChild || !!process.env.SHELL_SCRIPTING || !!isElectron(),
|
|
44
44
|
defaultKeyfile: path.join(os.homedir(), '.ssh/id_rsa'),
|
|
45
45
|
};
|
|
46
46
|
|
|
@@ -12,6 +12,7 @@ const isForkedApi = process.argv.includes('--is-forked-api');
|
|
|
12
12
|
const pluginsDir = getNamedArg('--plugins-dir');
|
|
13
13
|
const workspaceDir = getNamedArg('--workspace-dir');
|
|
14
14
|
const listenApi = process.argv.includes('--listen-api');
|
|
15
|
+
const listenApiChild = process.argv.includes('--listen-api-child') || listenApi;
|
|
15
16
|
|
|
16
17
|
function getPassArgs() {
|
|
17
18
|
const res = [];
|
|
@@ -21,6 +22,9 @@ function getPassArgs() {
|
|
|
21
22
|
if (global['PLUGINS_DIR']) {
|
|
22
23
|
res.push('--plugins-dir', global['PLUGINS_DIR']);
|
|
23
24
|
}
|
|
25
|
+
if (listenApiChild) {
|
|
26
|
+
res.push('listen-api-child');
|
|
27
|
+
}
|
|
24
28
|
return res;
|
|
25
29
|
}
|
|
26
30
|
|
|
@@ -32,4 +36,5 @@ module.exports = {
|
|
|
32
36
|
pluginsDir,
|
|
33
37
|
workspaceDir,
|
|
34
38
|
listenApi,
|
|
39
|
+
listenApiChild,
|
|
35
40
|
};
|