dbgate-api 4.7.3-alpha.2 → 4.7.3

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.
File without changes
File without changes
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.3-alpha.2",
4
+ "version": "4.7.3",
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.3-alpha.2",
29
- "dbgate-sqltree": "^4.7.3-alpha.2",
30
- "dbgate-tools": "^4.7.3-alpha.2",
28
+ "dbgate-query-splitter": "^4.7.3",
29
+ "dbgate-sqltree": "^4.7.3",
30
+ "dbgate-tools": "^4.7.3",
31
31
  "diff": "^5.0.0",
32
32
  "diff2html": "^3.4.13",
33
33
  "eslint": "^6.8.0",
@@ -53,8 +53,8 @@
53
53
  },
54
54
  "scripts": {
55
55
  "start": "env-cmd node src/index.js",
56
- "start:portal": "env-cmd -f .env-portal node src/index.js",
57
- "start:singledb": "env-cmd -f .env-singledb node src/index.js",
56
+ "start:portal": "env-cmd -f env/portal/.env node src/index.js",
57
+ "start:singledb": "env-cmd -f env/singledb/.env node src/index.js",
58
58
  "start:filedb": "env-cmd node src/index.js /home/jena/test/chinook/Chinook.db",
59
59
  "start:singleconn": "env-cmd node src/index.js --server localhost --user root --port 3307 --engine mysql@dbgate-plugin-mysql --password test",
60
60
  "ts": "tsc",
@@ -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.3-alpha.2",
66
+ "dbgate-types": "^4.7.3",
67
67
  "env-cmd": "^10.1.0",
68
68
  "node-loader": "^1.0.2",
69
69
  "nodemon": "^2.0.2",
@@ -89,6 +89,12 @@ module.exports = {
89
89
  encoding: 'utf-8',
90
90
  })
91
91
  .then(x => JSON.parse(x));
92
+ if (!manifest.keywords) {
93
+ continue;
94
+ }
95
+ if (!manifest.keywords.includes('dbgateplugin')) {
96
+ continue;
97
+ }
92
98
  const readmeFile = path.join(isPackaged ? packagedPluginsDir() : pluginsdir(), packageName, 'README.md');
93
99
  // @ts-ignore
94
100
  if (await fs.exists(readmeFile)) {
@@ -1,5 +1,5 @@
1
1
 
2
2
  module.exports = {
3
- version: '4.7.3-alpha.2',
4
- buildTime: '2022-03-13T15:52:44.332Z'
3
+ version: '4.7.3',
4
+ buildTime: '2022-03-14T19:11:28.854Z'
5
5
  };
package/src/main.js CHANGED
@@ -95,7 +95,12 @@ function start() {
95
95
 
96
96
  if (platformInfo.isNpmDist) {
97
97
  app.use(getExpressPath('/'), express.static(path.join(__dirname, '../../dbgate-web/public')));
98
- getPort({ port: 5000 }).then(port => {
98
+ getPort({
99
+ port: parseInt(
100
+ // @ts-ignore
101
+ process.env.PORT || 3000
102
+ ),
103
+ }).then(port => {
99
104
  server.listen(port, () => {
100
105
  console.log(`DbGate API listening on port ${port}`);
101
106
  });