dbgate-api 7.1.10 → 7.1.11
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": "7.1.
|
|
4
|
+
"version": "7.1.11",
|
|
5
5
|
"homepage": "https://www.dbgate.io/",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"compare-versions": "^3.6.0",
|
|
31
31
|
"cors": "^2.8.5",
|
|
32
32
|
"cross-env": "^6.0.3",
|
|
33
|
-
"dbgate-datalib": "7.1.
|
|
33
|
+
"dbgate-datalib": "7.1.11",
|
|
34
34
|
"dbgate-query-splitter": "^4.12.0",
|
|
35
|
-
"dbgate-rest": "7.1.
|
|
36
|
-
"dbgate-sqltree": "7.1.
|
|
37
|
-
"dbgate-tools": "7.1.
|
|
35
|
+
"dbgate-rest": "7.1.11",
|
|
36
|
+
"dbgate-sqltree": "7.1.11",
|
|
37
|
+
"dbgate-tools": "7.1.11",
|
|
38
38
|
"debug": "^4.3.4",
|
|
39
39
|
"diff": "^5.0.0",
|
|
40
40
|
"diff2html": "^3.4.13",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"devDependencies": {
|
|
89
89
|
"@types/fs-extra": "^9.0.11",
|
|
90
90
|
"@types/lodash": "^4.14.149",
|
|
91
|
-
"dbgate-types": "7.1.
|
|
91
|
+
"dbgate-types": "7.1.11",
|
|
92
92
|
"env-cmd": "^10.1.0",
|
|
93
93
|
"jsdoc-to-markdown": "^9.0.5",
|
|
94
94
|
"node-loader": "^1.0.2",
|
|
@@ -264,7 +264,7 @@ module.exports = {
|
|
|
264
264
|
try {
|
|
265
265
|
const fingerprint = await getPublicHardwareFingerprint();
|
|
266
266
|
|
|
267
|
-
const resp = await axios.default.post(
|
|
267
|
+
const resp = await axios.default.post(`https://api.dbgate.cloud/trial-license`, {
|
|
268
268
|
type: 'premium-trial',
|
|
269
269
|
days: 30,
|
|
270
270
|
fingerprint,
|
|
@@ -15,6 +15,7 @@ const {
|
|
|
15
15
|
getLogger,
|
|
16
16
|
extractErrorLogData,
|
|
17
17
|
filterStructureBySchema,
|
|
18
|
+
isCompositeDbName,
|
|
18
19
|
serializeJsTypesForJsonStringify,
|
|
19
20
|
} = require('dbgate-tools');
|
|
20
21
|
const { html, parse } = require('diff2html');
|
|
@@ -194,6 +195,8 @@ module.exports = {
|
|
|
194
195
|
);
|
|
195
196
|
pipeForkLogs(subprocess);
|
|
196
197
|
const lastClosed = this.closed[`${conid}/${database}`];
|
|
198
|
+
const initialStatusName =
|
|
199
|
+
!lastClosed && !(connection.useSeparateSchemas && !isCompositeDbName(database)) ? 'loadStructure' : 'pending';
|
|
197
200
|
const newOpened = {
|
|
198
201
|
conid,
|
|
199
202
|
database,
|
|
@@ -201,7 +204,7 @@ module.exports = {
|
|
|
201
204
|
structure: lastClosed ? lastClosed.structure : DatabaseAnalyser.createEmptyStructure(),
|
|
202
205
|
serverVersion: lastClosed ? lastClosed.serverVersion : null,
|
|
203
206
|
connection,
|
|
204
|
-
status: { name:
|
|
207
|
+
status: { name: initialStatusName },
|
|
205
208
|
};
|
|
206
209
|
this.opened.push(newOpened);
|
|
207
210
|
subprocess.on('message', message => {
|
package/src/currentVersion.js
CHANGED