dbgate-api-premium 6.4.2 → 6.4.3-alpha.1
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": "6.4.
|
|
4
|
+
"version": "6.4.3-alpha.1",
|
|
5
5
|
"homepage": "https://dbgate.org/",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"compare-versions": "^3.6.0",
|
|
31
31
|
"cors": "^2.8.5",
|
|
32
32
|
"cross-env": "^6.0.3",
|
|
33
|
-
"dbgate-datalib": "^6.4.
|
|
33
|
+
"dbgate-datalib": "^6.4.3-alpha.1",
|
|
34
34
|
"dbgate-query-splitter": "^4.11.5",
|
|
35
|
-
"dbgate-sqltree": "^6.4.
|
|
36
|
-
"dbgate-tools": "^6.4.
|
|
35
|
+
"dbgate-sqltree": "^6.4.3-alpha.1",
|
|
36
|
+
"dbgate-tools": "^6.4.3-alpha.1",
|
|
37
37
|
"debug": "^4.3.4",
|
|
38
38
|
"diff": "^5.0.0",
|
|
39
39
|
"diff2html": "^3.4.13",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@types/fs-extra": "^9.0.11",
|
|
87
87
|
"@types/lodash": "^4.14.149",
|
|
88
|
-
"dbgate-types": "^6.4.
|
|
88
|
+
"dbgate-types": "^6.4.3-alpha.1",
|
|
89
89
|
"env-cmd": "^10.1.0",
|
|
90
90
|
"jsdoc-to-markdown": "^9.0.5",
|
|
91
91
|
"node-loader": "^1.0.2",
|
package/src/currentVersion.js
CHANGED
|
@@ -52,7 +52,10 @@ async function generateDeploySql({
|
|
|
52
52
|
dbdiffOptionsExtra?.['schemaMode'] !== 'ignore' &&
|
|
53
53
|
dbdiffOptionsExtra?.['schemaMode'] !== 'ignoreImplicit'
|
|
54
54
|
) {
|
|
55
|
-
|
|
55
|
+
if (!driver?.dialect?.defaultSchemaName) {
|
|
56
|
+
throw new Error('targetSchema is required for databases with multiple schemas');
|
|
57
|
+
}
|
|
58
|
+
targetSchema = driver.dialect.defaultSchemaName;
|
|
56
59
|
}
|
|
57
60
|
|
|
58
61
|
try {
|
package/src/utility/authProxy.js
CHANGED
|
@@ -41,6 +41,16 @@ function getAxiosParamsWithLicense() {
|
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
function getExternalParamsWithLicense() {
|
|
45
|
+
return {
|
|
46
|
+
headers: {
|
|
47
|
+
'Content-Type': 'application/json',
|
|
48
|
+
Authorization: `Bearer ${licenseKey ?? process.env.DBGATE_LICENSE}`,
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
44
54
|
async function authProxyGetRedirectUrl({ client, type, state, redirectUri }) {
|
|
45
55
|
const respSession = await axios.default.post(
|
|
46
56
|
`${AUTH_PROXY_URL}/create-session`,
|
|
@@ -281,4 +291,5 @@ module.exports = {
|
|
|
281
291
|
callTextToSqlApi,
|
|
282
292
|
callCompleteOnCursorApi,
|
|
283
293
|
callRefactorSqlQueryApi,
|
|
294
|
+
getExternalParamsWithLicense,
|
|
284
295
|
};
|