dbgate-api 4.6.1 → 4.6.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/.env-portal
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
DEVMODE=1
|
|
2
2
|
|
|
3
|
-
CONNECTIONS=mysql,postgres,mongo,mongo2,mysqlssh
|
|
3
|
+
CONNECTIONS=mysql,postgres,mongo,mongo2,mysqlssh,sqlite
|
|
4
4
|
|
|
5
5
|
LABEL_mysql=MySql localhost
|
|
6
6
|
SERVER_mysql=localhost
|
|
@@ -37,4 +37,8 @@ SSH_MODE_mysqlssh=userPassword
|
|
|
37
37
|
SSH_LOGIN_mysqlssh=root
|
|
38
38
|
SSH_PASSWORD_mysqlssh=xxx
|
|
39
39
|
|
|
40
|
+
LABEL_sqlite=sqlite
|
|
41
|
+
FILE_sqlite=/home/jena/dbgate-data/files/sqlite/feeds.sqlite
|
|
42
|
+
ENGINE_sqlite=sqlite@dbgate-plugin-sqlite
|
|
43
|
+
|
|
40
44
|
# docker run -p 3000:3000 -e CONNECTIONS=mongo -e URL_mongo=mongodb://localhost:27017 -e ENGINE_mongo=mongo@dbgate-plugin-mongo -e LABEL_mongo=mongo dbgate/dbgate:beta
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dbgate-api",
|
|
3
3
|
"main": "src/index.js",
|
|
4
|
-
"version": "4.6.
|
|
4
|
+
"version": "4.6.2",
|
|
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.6.
|
|
29
|
-
"dbgate-sqltree": "^4.6.
|
|
30
|
-
"dbgate-tools": "^4.6.
|
|
28
|
+
"dbgate-query-splitter": "^4.6.2",
|
|
29
|
+
"dbgate-sqltree": "^4.6.2",
|
|
30
|
+
"dbgate-tools": "^4.6.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": "^4.6.
|
|
66
|
+
"dbgate-types": "^4.6.2",
|
|
67
67
|
"env-cmd": "^10.1.0",
|
|
68
68
|
"node-loader": "^1.0.2",
|
|
69
69
|
"nodemon": "^2.0.2",
|
|
@@ -50,8 +50,10 @@ function getPortalCollections() {
|
|
|
50
50
|
databaseUrl: process.env[`URL_${id}`],
|
|
51
51
|
useDatabaseUrl: !!process.env[`URL_${id}`],
|
|
52
52
|
databaseFile: process.env[`FILE_${id}`],
|
|
53
|
-
defaultDatabase:
|
|
54
|
-
|
|
53
|
+
defaultDatabase:
|
|
54
|
+
process.env[`DATABASE_${id}`] ||
|
|
55
|
+
(process.env[`FILE_${id}`] ? getDatabaseFileLabel(process.env[`FILE_${id}`]) : null),
|
|
56
|
+
singleDatabase: !!process.env[`DATABASE_${id}`] || !!process.env[`FILE_${id}`],
|
|
55
57
|
displayName: process.env[`LABEL_${id}`],
|
|
56
58
|
|
|
57
59
|
// SSH tunnel
|
|
@@ -72,7 +72,8 @@ module.exports = {
|
|
|
72
72
|
|
|
73
73
|
const res = [];
|
|
74
74
|
for (const packageName of _.union(files1, files2)) {
|
|
75
|
-
if (
|
|
75
|
+
if (packageName == 'dist') continue;
|
|
76
|
+
// if (!/^dbgate-plugin-.*$/.test(packageName)) continue;
|
|
76
77
|
try {
|
|
77
78
|
if (packagedContent && packagedContent[packageName]) {
|
|
78
79
|
const manifest = {
|
package/src/currentVersion.js
CHANGED