dbgate-api-premium 7.1.9 → 7.1.10

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.9",
4
+ "version": "7.1.10",
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.9",
33
+ "dbgate-datalib": "7.1.10",
34
34
  "dbgate-query-splitter": "^4.12.0",
35
- "dbgate-rest": "7.1.9",
36
- "dbgate-sqltree": "7.1.9",
37
- "dbgate-tools": "7.1.9",
35
+ "dbgate-rest": "7.1.10",
36
+ "dbgate-sqltree": "7.1.10",
37
+ "dbgate-tools": "7.1.10",
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.9",
91
+ "dbgate-types": "7.1.10",
92
92
  "env-cmd": "^10.1.0",
93
93
  "jsdoc-to-markdown": "^9.0.5",
94
94
  "node-loader": "^1.0.2",
@@ -332,7 +332,9 @@ module.exports = {
332
332
  await this.checkFileReadAccess(existingFile, req);
333
333
  const loadedPermissions = await loadPermissionsFromRequest(req);
334
334
  if (!hasPermission(`all-team-files/create`, loadedPermissions)) {
335
- throw new Error('No permission to create team files');
335
+ if (!(await this.checkFolderCreateAccess(existingFile.team_folder_id, req, false))) {
336
+ throw new Error('No permission to create team files');
337
+ }
336
338
  }
337
339
  const userId = req?.user?.userId;
338
340
  const resp = await storageCopyFile(teamFileId, newName, userId);
@@ -1,5 +1,5 @@
1
1
 
2
2
  module.exports = {
3
- version: '7.1.9',
4
- buildTime: '2026-04-22T11:39:40.647Z'
3
+ version: '7.1.10',
4
+ buildTime: '2026-04-29T12:39:25.294Z'
5
5
  };
@@ -24,10 +24,10 @@ let promoWidgetDataLoaded = false;
24
24
  const DBGATE_IDENTITY_URL = process.env.LOCAL_DBGATE_IDENTITY
25
25
  ? 'http://localhost:3103'
26
26
  : process.env.PROD_DBGATE_IDENTITY
27
- ? 'https://identity.dbgate.io'
27
+ ? 'https://identity.dbgate.cloud'
28
28
  : process.env.DEVWEB || process.env.DEVMODE
29
29
  ? 'https://identity.dbgate.udolni.net'
30
- : 'https://identity.dbgate.io';
30
+ : 'https://identity.dbgate.cloud';
31
31
 
32
32
  const DBGATE_CLOUD_URL = process.env.LOCAL_DBGATE_CLOUD
33
33
  ? 'http://localhost:3110'
@@ -346,7 +346,7 @@ async function callCloudApiGet(endpoint, signinHolder = null, additionalHeaders
346
346
  }
347
347
  const signinHeaders = await getCloudSigninHeaders(signinHolder);
348
348
 
349
- const resp = await axios.default.get(`${DBGATE_CLOUD_URL}/${endpoint}`, {
349
+ const resp = await axios.default.get(`${DBGATE_PUBLIC_CLOUD_URL}/${endpoint}`, {
350
350
  headers: {
351
351
  ...getLicenseHttpHeaders(),
352
352
  ...signinHeaders,
@@ -386,7 +386,7 @@ async function callCloudApiPost(endpoint, body, signinHolder = null) {
386
386
  }
387
387
  const signinHeaders = await getCloudSigninHeaders(signinHolder);
388
388
 
389
- const resp = await axios.default.post(`${DBGATE_CLOUD_URL}/${endpoint}`, body, {
389
+ const resp = await axios.default.post(`${DBGATE_PUBLIC_CLOUD_URL}/${endpoint}`, body, {
390
390
  headers: {
391
391
  ...getLicenseHttpHeaders(),
392
392
  ...signinHeaders,
@@ -491,7 +491,7 @@ function removeCloudCachedConnection(folid, cntid) {
491
491
 
492
492
  async function getPublicIpInfo() {
493
493
  try {
494
- const resp = await axios.default.get(`${DBGATE_CLOUD_URL}/ipinfo`, stageAxiosConfig);
494
+ const resp = await axios.default.get(`${DBGATE_PUBLIC_CLOUD_URL}/ipinfo`, stageAxiosConfig);
495
495
  if (!resp.data?.ip) {
496
496
  return { ip: 'unknown-ip' };
497
497
  }