dbgate-api 7.1.1 → 7.1.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",
|
|
3
3
|
"main": "src/index.js",
|
|
4
|
-
"version": "7.1.1",
|
|
4
|
+
"version": "7.1.3-alpha.1",
|
|
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": "
|
|
33
|
+
"dbgate-datalib": "7.1.3-alpha.1",
|
|
34
34
|
"dbgate-query-splitter": "^4.12.0",
|
|
35
|
-
"dbgate-rest": "
|
|
36
|
-
"dbgate-sqltree": "
|
|
37
|
-
"dbgate-tools": "
|
|
35
|
+
"dbgate-rest": "7.1.3-alpha.1",
|
|
36
|
+
"dbgate-sqltree": "7.1.3-alpha.1",
|
|
37
|
+
"dbgate-tools": "7.1.3-alpha.1",
|
|
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": "
|
|
91
|
+
"dbgate-types": "7.1.3-alpha.1",
|
|
92
92
|
"env-cmd": "^10.1.0",
|
|
93
93
|
"jsdoc-to-markdown": "^9.0.5",
|
|
94
94
|
"node-loader": "^1.0.2",
|
package/src/controllers/files.js
CHANGED
|
@@ -257,6 +257,13 @@ module.exports = {
|
|
|
257
257
|
return true;
|
|
258
258
|
},
|
|
259
259
|
|
|
260
|
+
exportDiagramPng_meta: true,
|
|
261
|
+
async exportDiagramPng({ filePath, pngBase64 }) {
|
|
262
|
+
const base64 = pngBase64.replace(/^data:image\/png;base64,/, '');
|
|
263
|
+
await fs.writeFile(filePath, Buffer.from(base64, 'base64'));
|
|
264
|
+
return true;
|
|
265
|
+
},
|
|
266
|
+
|
|
260
267
|
getFileRealPath_meta: true,
|
|
261
268
|
async getFileRealPath({ folder, file }, req) {
|
|
262
269
|
const loadedPermissions = await loadPermissionsFromRequest(req);
|
package/src/currentVersion.js
CHANGED