dbgate-api-premium 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-premium",
|
|
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
package/src/utility/authProxy.js
CHANGED
|
@@ -21,7 +21,7 @@ const AI_GATEWAY_URL = process.env.LOCAL_AI_GATEWAY
|
|
|
21
21
|
? 'http://localhost:3110'
|
|
22
22
|
: process.env.DEVWEB || process.env.DEVMODE
|
|
23
23
|
? 'https://aigw.dbgate.udolni.net'
|
|
24
|
-
: 'https://
|
|
24
|
+
: 'https://api.dbgate.cloud';
|
|
25
25
|
|
|
26
26
|
const DBGATE_API_URL = process.env.LOCAL_DBGATE_API
|
|
27
27
|
? 'http://localhost:3115'
|
|
@@ -177,7 +177,7 @@ async function obtainRefreshedLicense() {
|
|
|
177
177
|
|
|
178
178
|
try {
|
|
179
179
|
const respToken = await axios.default.post(
|
|
180
|
-
|
|
180
|
+
`https://api.dbgate.cloud/refresh-license`,
|
|
181
181
|
{},
|
|
182
182
|
{
|
|
183
183
|
headers: {
|
|
@@ -199,7 +199,7 @@ async function obtainRefreshedLicense() {
|
|
|
199
199
|
async function tryToGetRefreshedLicense(oldLicenseKey) {
|
|
200
200
|
try {
|
|
201
201
|
const respToken = await axios.default.post(
|
|
202
|
-
|
|
202
|
+
`https://api.dbgate.cloud/refresh-license`,
|
|
203
203
|
{},
|
|
204
204
|
{
|
|
205
205
|
headers: {
|