dbgate-api-premium 5.5.7-alpha.68 → 6.0.0
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-premium",
|
|
3
3
|
"main": "src/index.js",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "6.0.0",
|
|
5
5
|
"homepage": "https://dbgate.org/",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"compare-versions": "^3.6.0",
|
|
30
30
|
"cors": "^2.8.5",
|
|
31
31
|
"cross-env": "^6.0.3",
|
|
32
|
-
"dbgate-datalib": "^
|
|
32
|
+
"dbgate-datalib": "^6.0.0",
|
|
33
33
|
"dbgate-query-splitter": "^4.11.2",
|
|
34
|
-
"dbgate-sqltree": "^
|
|
35
|
-
"dbgate-tools": "^
|
|
34
|
+
"dbgate-sqltree": "^6.0.0",
|
|
35
|
+
"dbgate-tools": "^6.0.0",
|
|
36
36
|
"debug": "^4.3.4",
|
|
37
37
|
"diff": "^5.0.0",
|
|
38
38
|
"diff2html": "^3.4.13",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@types/fs-extra": "^9.0.11",
|
|
83
83
|
"@types/lodash": "^4.14.149",
|
|
84
|
-
"dbgate-types": "^
|
|
84
|
+
"dbgate-types": "^6.0.0",
|
|
85
85
|
"env-cmd": "^10.1.0",
|
|
86
86
|
"jsdoc-to-markdown": "^9.0.5",
|
|
87
87
|
"node-loader": "^1.0.2",
|
|
@@ -302,6 +302,9 @@ module.exports = {
|
|
|
302
302
|
},
|
|
303
303
|
|
|
304
304
|
async checkUnsavedConnectionsLimit() {
|
|
305
|
+
if (!this.datastore) {
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
305
308
|
const MAX_UNSAVED_CONNECTIONS = 5;
|
|
306
309
|
await this.datastore.transformAll(connections => {
|
|
307
310
|
const count = connections.filter(x => x.unsaved).length;
|
package/src/currentVersion.js
CHANGED
package/src/utility/authProxy.js
CHANGED
|
@@ -5,7 +5,7 @@ const { getLogger, extractErrorLogData } = require('dbgate-tools');
|
|
|
5
5
|
|
|
6
6
|
const logger = getLogger('authProxy');
|
|
7
7
|
|
|
8
|
-
const AUTH_PROXY_URL = process.env.DEVWEB ? 'https://auth-proxy.dbgate.udolni.net' : 'https://auth.dbgate.eu';
|
|
8
|
+
const AUTH_PROXY_URL = process.env.DEVWEB || process.env.DEVMODE ? 'https://auth-proxy.dbgate.udolni.net' : 'https://auth.dbgate.eu';
|
|
9
9
|
// const AUTH_PROXY_URL = 'https://auth-proxy.dbgate.udolni.net';
|
|
10
10
|
|
|
11
11
|
let licenseKey = null;
|
|
@@ -119,10 +119,10 @@ function checkLicenseKey(licenseKey) {
|
|
|
119
119
|
(platformInfo.isElectron && !licenseTypeObj.isForApp) ||
|
|
120
120
|
(!platformInfo.isElectron && !licenseTypeObj.isForWeb)
|
|
121
121
|
) {
|
|
122
|
-
logger.error(`Incorrect license type, found ${
|
|
122
|
+
logger.error(`Incorrect license type, found ${licenseTypeObj?.name ?? 'n/a'}`);
|
|
123
123
|
return {
|
|
124
124
|
status: 'error',
|
|
125
|
-
error: `Incorrect license type, found ${
|
|
125
|
+
error: `Incorrect license type, found ${licenseTypeObj?.name ?? 'n/a'}`,
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
128
|
|