dbgate-api 4.7.4-alpha.12 → 4.7.4-alpha.14
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": "4.7.4-alpha.
|
|
4
|
+
"version": "4.7.4-alpha.14",
|
|
5
5
|
"homepage": "https://dbgate.org/",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"compare-versions": "^3.6.0",
|
|
26
26
|
"cors": "^2.8.5",
|
|
27
27
|
"cross-env": "^6.0.3",
|
|
28
|
-
"dbgate-query-splitter": "^4.7.4-alpha.
|
|
29
|
-
"dbgate-sqltree": "^4.7.4-alpha.
|
|
30
|
-
"dbgate-tools": "^4.7.4-alpha.
|
|
28
|
+
"dbgate-query-splitter": "^4.7.4-alpha.14",
|
|
29
|
+
"dbgate-sqltree": "^4.7.4-alpha.14",
|
|
30
|
+
"dbgate-tools": "^4.7.4-alpha.14",
|
|
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": "^4.7.4-alpha.
|
|
66
|
+
"dbgate-types": "^4.7.4-alpha.14",
|
|
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
|
@@ -3,6 +3,7 @@ const path = require('path');
|
|
|
3
3
|
const fs = require('fs');
|
|
4
4
|
const cleanDirectory = require('./cleanDirectory');
|
|
5
5
|
const platformInfo = require('./platformInfo');
|
|
6
|
+
const processArgs = require('./processArgs');
|
|
6
7
|
|
|
7
8
|
const createDirectories = {};
|
|
8
9
|
const ensureDirectory = (dir, clean) => {
|
|
@@ -56,6 +57,9 @@ function packagedPluginsDir() {
|
|
|
56
57
|
// node_modules
|
|
57
58
|
return global['PLUGINS_DIR'];
|
|
58
59
|
}
|
|
60
|
+
if (processArgs.pluginsDir) {
|
|
61
|
+
return processArgs.pluginsDir;
|
|
62
|
+
}
|
|
59
63
|
if (platformInfo.isElectronBundle) {
|
|
60
64
|
return path.resolve(__dirname, '../../plugins');
|
|
61
65
|
|
|
@@ -9,10 +9,17 @@ function getNamedArg(name) {
|
|
|
9
9
|
const checkParent = process.argv.includes('--checkParent');
|
|
10
10
|
const startProcess = getNamedArg('--start-process');
|
|
11
11
|
const isForkedApi = process.argv.includes('--is-forked-api');
|
|
12
|
+
const pluginsDir = getNamedArg('--plugins-dir');
|
|
12
13
|
|
|
13
14
|
function getPassArgs() {
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
const res = [];
|
|
16
|
+
if (global['NATIVE_MODULES']) {
|
|
17
|
+
res.push('--native-modules', global['NATIVE_MODULES']);
|
|
18
|
+
}
|
|
19
|
+
if (global['PLUGINS_DIR']) {
|
|
20
|
+
res.push('--plugins-dir', global['PLUGINS_DIR']);
|
|
21
|
+
}
|
|
22
|
+
return res;
|
|
16
23
|
}
|
|
17
24
|
|
|
18
25
|
module.exports = {
|
|
@@ -20,4 +27,5 @@ module.exports = {
|
|
|
20
27
|
startProcess,
|
|
21
28
|
isForkedApi,
|
|
22
29
|
getPassArgs,
|
|
30
|
+
pluginsDir,
|
|
23
31
|
};
|