dbgate-tools 4.7.3-alpha.5 → 4.7.4-alpha.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/lib/ScriptWriter.d.ts +36 -0
- package/lib/ScriptWriter.js +151 -0
- package/lib/createBulkInsertStreamBase.js +1 -1
- package/lib/driverBase.d.ts +3 -0
- package/lib/driverBase.js +62 -2
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/stringTools.d.ts +1 -0
- package/lib/stringTools.js +26 -1
- package/lib/testPermission.d.ts +10 -2
- package/lib/testPermission.js +47 -7
- package/package.json +4 -3
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare class ScriptWriter {
|
|
2
|
+
s: string;
|
|
3
|
+
packageNames: string[];
|
|
4
|
+
varCount: number;
|
|
5
|
+
constructor(varCount?: string);
|
|
6
|
+
allocVariable(prefix?: string): string;
|
|
7
|
+
_put(s?: string): void;
|
|
8
|
+
endLine(): void;
|
|
9
|
+
assignCore(variableName: any, functionName: any, props: any): void;
|
|
10
|
+
assign(variableName: any, functionName: any, props: any): void;
|
|
11
|
+
assignValue(variableName: any, jsonValue: any): void;
|
|
12
|
+
requirePackage(packageName: any): void;
|
|
13
|
+
copyStream(sourceVar: any, targetVar: any, colmapVar?: any): void;
|
|
14
|
+
comment(s: any): void;
|
|
15
|
+
getScript(schedule?: any): string;
|
|
16
|
+
}
|
|
17
|
+
export declare class ScriptWriterJson {
|
|
18
|
+
s: string;
|
|
19
|
+
packageNames: string[];
|
|
20
|
+
varCount: number;
|
|
21
|
+
commands: any[];
|
|
22
|
+
constructor(varCount?: string);
|
|
23
|
+
allocVariable(prefix?: string): string;
|
|
24
|
+
endLine(): void;
|
|
25
|
+
assign(variableName: any, functionName: any, props: any): void;
|
|
26
|
+
assignValue(variableName: any, jsonValue: any): void;
|
|
27
|
+
copyStream(sourceVar: any, targetVar: any, colmapVar?: any): void;
|
|
28
|
+
comment(text: any): void;
|
|
29
|
+
getScript(schedule?: any): {
|
|
30
|
+
type: string;
|
|
31
|
+
schedule: any;
|
|
32
|
+
commands: any[];
|
|
33
|
+
packageNames: string[];
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export declare function jsonScriptToJavascript(json: any): string;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.jsonScriptToJavascript = exports.ScriptWriterJson = exports.ScriptWriter = void 0;
|
|
7
|
+
const uniq_1 = __importDefault(require("lodash/uniq"));
|
|
8
|
+
const packageTools_1 = require("./packageTools");
|
|
9
|
+
class ScriptWriter {
|
|
10
|
+
constructor(varCount = '0') {
|
|
11
|
+
this.s = '';
|
|
12
|
+
this.packageNames = [];
|
|
13
|
+
this.varCount = 0;
|
|
14
|
+
this.varCount = parseInt(varCount) || 0;
|
|
15
|
+
}
|
|
16
|
+
allocVariable(prefix = 'var') {
|
|
17
|
+
this.varCount += 1;
|
|
18
|
+
return `${prefix}${this.varCount}`;
|
|
19
|
+
}
|
|
20
|
+
_put(s = '') {
|
|
21
|
+
this.s += s;
|
|
22
|
+
this.s += '\n';
|
|
23
|
+
}
|
|
24
|
+
endLine() {
|
|
25
|
+
this._put();
|
|
26
|
+
}
|
|
27
|
+
assignCore(variableName, functionName, props) {
|
|
28
|
+
this._put(`const ${variableName} = await ${functionName}(${JSON.stringify(props)});`);
|
|
29
|
+
}
|
|
30
|
+
assign(variableName, functionName, props) {
|
|
31
|
+
this.assignCore(variableName, (0, packageTools_1.extractShellApiFunctionName)(functionName), props);
|
|
32
|
+
this.packageNames.push(...(0, packageTools_1.extractShellApiPlugins)(functionName, props));
|
|
33
|
+
}
|
|
34
|
+
assignValue(variableName, jsonValue) {
|
|
35
|
+
this._put(`const ${variableName} = ${JSON.stringify(jsonValue)};`);
|
|
36
|
+
}
|
|
37
|
+
requirePackage(packageName) {
|
|
38
|
+
this.packageNames.push(packageName);
|
|
39
|
+
}
|
|
40
|
+
copyStream(sourceVar, targetVar, colmapVar = null) {
|
|
41
|
+
if (colmapVar) {
|
|
42
|
+
this._put(`await dbgateApi.copyStream(${sourceVar}, ${targetVar}, {columns: ${colmapVar}});`);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
this._put(`await dbgateApi.copyStream(${sourceVar}, ${targetVar});`);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
comment(s) {
|
|
49
|
+
this._put(`// ${s}`);
|
|
50
|
+
}
|
|
51
|
+
getScript(schedule = null) {
|
|
52
|
+
const packageNames = this.packageNames;
|
|
53
|
+
let prefix = (0, uniq_1.default)(packageNames)
|
|
54
|
+
.map(packageName => `// @require ${packageName}\n`)
|
|
55
|
+
.join('');
|
|
56
|
+
if (schedule)
|
|
57
|
+
prefix += `// @schedule ${schedule}`;
|
|
58
|
+
if (prefix)
|
|
59
|
+
prefix += '\n';
|
|
60
|
+
return prefix + this.s;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.ScriptWriter = ScriptWriter;
|
|
64
|
+
class ScriptWriterJson {
|
|
65
|
+
constructor(varCount = '0') {
|
|
66
|
+
this.s = '';
|
|
67
|
+
this.packageNames = [];
|
|
68
|
+
this.varCount = 0;
|
|
69
|
+
this.commands = [];
|
|
70
|
+
this.varCount = parseInt(varCount) || 0;
|
|
71
|
+
}
|
|
72
|
+
allocVariable(prefix = 'var') {
|
|
73
|
+
this.varCount += 1;
|
|
74
|
+
return `${prefix}${this.varCount}`;
|
|
75
|
+
}
|
|
76
|
+
endLine() {
|
|
77
|
+
this.commands.push({
|
|
78
|
+
type: 'endline',
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
assign(variableName, functionName, props) {
|
|
82
|
+
this.commands.push({
|
|
83
|
+
type: 'assign',
|
|
84
|
+
variableName,
|
|
85
|
+
functionName: (0, packageTools_1.extractShellApiFunctionName)(functionName),
|
|
86
|
+
props,
|
|
87
|
+
});
|
|
88
|
+
this.packageNames.push(...(0, packageTools_1.extractShellApiPlugins)(functionName, props));
|
|
89
|
+
}
|
|
90
|
+
assignValue(variableName, jsonValue) {
|
|
91
|
+
this.commands.push({
|
|
92
|
+
type: 'assignValue',
|
|
93
|
+
variableName,
|
|
94
|
+
jsonValue,
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
copyStream(sourceVar, targetVar, colmapVar = null) {
|
|
98
|
+
this.commands.push({
|
|
99
|
+
type: 'copyStream',
|
|
100
|
+
sourceVar,
|
|
101
|
+
targetVar,
|
|
102
|
+
colmapVar,
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
comment(text) {
|
|
106
|
+
this.commands.push({
|
|
107
|
+
type: 'comment',
|
|
108
|
+
text,
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
getScript(schedule = null) {
|
|
112
|
+
return {
|
|
113
|
+
type: 'json',
|
|
114
|
+
schedule,
|
|
115
|
+
commands: this.commands,
|
|
116
|
+
packageNames: this.packageNames,
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
exports.ScriptWriterJson = ScriptWriterJson;
|
|
121
|
+
function jsonScriptToJavascript(json) {
|
|
122
|
+
const { schedule, commands, packageNames } = json;
|
|
123
|
+
const script = new ScriptWriter();
|
|
124
|
+
for (const packageName of packageNames) {
|
|
125
|
+
if (!/^dbgate-plugin-.*$/.test(packageName)) {
|
|
126
|
+
throw new Error('Unallowed package name:' + packageName);
|
|
127
|
+
}
|
|
128
|
+
script.packageNames.push(packageName);
|
|
129
|
+
}
|
|
130
|
+
for (const cmd of commands) {
|
|
131
|
+
switch (cmd.type) {
|
|
132
|
+
case 'assign':
|
|
133
|
+
script.assignCore(cmd.variableName, cmd.functionName, cmd.props);
|
|
134
|
+
break;
|
|
135
|
+
case 'assignValue':
|
|
136
|
+
script.assignValue(cmd.variableName, cmd.jsonValue);
|
|
137
|
+
break;
|
|
138
|
+
case 'copyStream':
|
|
139
|
+
script.copyStream(cmd.sourceVar, cmd.targetVar, cmd.colmapVar);
|
|
140
|
+
break;
|
|
141
|
+
case 'endLine':
|
|
142
|
+
script.endLine();
|
|
143
|
+
break;
|
|
144
|
+
case 'comment':
|
|
145
|
+
script.comment(cmd.text);
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return script.getScript(schedule);
|
|
150
|
+
}
|
|
151
|
+
exports.jsonScriptToJavascript = jsonScriptToJavascript;
|
|
@@ -25,7 +25,7 @@ function createBulkInsertStreamBase(driver, stream, pool, name, options) {
|
|
|
25
25
|
writable.buffer = [];
|
|
26
26
|
writable.structure = null;
|
|
27
27
|
writable.columnNames = null;
|
|
28
|
-
writable.requireFixedStructure =
|
|
28
|
+
writable.requireFixedStructure = driver.databaseEngineTypes.includes('sql');
|
|
29
29
|
writable.addRow = (row) => __awaiter(this, void 0, void 0, function* () {
|
|
30
30
|
if (writable.structure) {
|
|
31
31
|
writable.buffer.push(row);
|
package/lib/driverBase.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export declare const driverBase: {
|
|
|
14
14
|
isPersisted: boolean;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
+
databaseEngineTypes: string[];
|
|
17
18
|
analyseFull(pool: any, version: any): Promise<any>;
|
|
18
19
|
analyseSingleObject(pool: any, name: any, typeField?: string): Promise<any>;
|
|
19
20
|
analyseSingleTable(pool: any, name: any): any;
|
|
@@ -24,4 +25,6 @@ export declare const driverBase: {
|
|
|
24
25
|
label: string;
|
|
25
26
|
sql: string;
|
|
26
27
|
}[];
|
|
28
|
+
loadFieldValues(pool: any, name: any, columnName: any, search: any): Promise<any>;
|
|
29
|
+
readJsonQuery(pool: any, select: any, structure: any): any;
|
|
27
30
|
};
|
package/lib/driverBase.js
CHANGED
|
@@ -8,10 +8,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
11
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
15
|
exports.driverBase = void 0;
|
|
16
|
+
const compact_1 = __importDefault(require("lodash/compact"));
|
|
13
17
|
const SqlDumper_1 = require("./SqlDumper");
|
|
14
18
|
const dbgate_query_splitter_1 = require("dbgate-query-splitter");
|
|
19
|
+
const dbgate_sqltree_1 = require("dbgate-sqltree");
|
|
15
20
|
const dialect = {
|
|
16
21
|
limitSelect: true,
|
|
17
22
|
rangeSelect: true,
|
|
@@ -30,6 +35,7 @@ exports.driverBase = {
|
|
|
30
35
|
analyserClass: null,
|
|
31
36
|
dumperClass: SqlDumper_1.SqlDumper,
|
|
32
37
|
dialect,
|
|
38
|
+
databaseEngineTypes: ['sql'],
|
|
33
39
|
analyseFull(pool, version) {
|
|
34
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35
41
|
const analyser = new this.analyserClass(pool, this, version);
|
|
@@ -62,10 +68,64 @@ exports.driverBase = {
|
|
|
62
68
|
});
|
|
63
69
|
},
|
|
64
70
|
getNewObjectTemplates() {
|
|
65
|
-
|
|
66
|
-
if (!((_a = this.dialect) === null || _a === void 0 ? void 0 : _a.nosql)) {
|
|
71
|
+
if (this.databaseEngineTypes.includes('sql')) {
|
|
67
72
|
return [{ label: 'New view', sql: 'CREATE VIEW myview\nAS\nSELECT * FROM table1' }];
|
|
68
73
|
}
|
|
69
74
|
return [];
|
|
70
75
|
},
|
|
76
|
+
loadFieldValues(pool, name, columnName, search) {
|
|
77
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
const dmp = this.createDumper();
|
|
79
|
+
const select = {
|
|
80
|
+
commandType: 'select',
|
|
81
|
+
distinct: true,
|
|
82
|
+
topRecords: 100,
|
|
83
|
+
from: {
|
|
84
|
+
name,
|
|
85
|
+
},
|
|
86
|
+
columns: [
|
|
87
|
+
{
|
|
88
|
+
exprType: 'column',
|
|
89
|
+
columnName,
|
|
90
|
+
alias: 'value',
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
orderBy: [
|
|
94
|
+
{
|
|
95
|
+
exprType: 'column',
|
|
96
|
+
columnName,
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
};
|
|
100
|
+
if (search) {
|
|
101
|
+
const tokens = (0, compact_1.default)(search.split(' ').map(x => x.trim()));
|
|
102
|
+
if (tokens.length > 0) {
|
|
103
|
+
// @ts-ignore
|
|
104
|
+
select.where = {
|
|
105
|
+
conditionType: 'and',
|
|
106
|
+
conditions: tokens.map(token => ({
|
|
107
|
+
conditionType: 'like',
|
|
108
|
+
left: {
|
|
109
|
+
exprType: 'column',
|
|
110
|
+
columnName,
|
|
111
|
+
},
|
|
112
|
+
right: {
|
|
113
|
+
exprType: 'value',
|
|
114
|
+
value: `%${token}%`,
|
|
115
|
+
},
|
|
116
|
+
})),
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
// @ts-ignore
|
|
121
|
+
(0, dbgate_sqltree_1.dumpSqlSelect)(dmp, select);
|
|
122
|
+
const resp = yield this.query(pool, dmp.s);
|
|
123
|
+
return resp.rows;
|
|
124
|
+
});
|
|
125
|
+
},
|
|
126
|
+
readJsonQuery(pool, select, structure) {
|
|
127
|
+
const dmp = this.createDumper();
|
|
128
|
+
(0, dbgate_sqltree_1.dumpSqlSelect)(dmp, select);
|
|
129
|
+
return this.readQuery(pool, dmp.s, structure);
|
|
130
|
+
},
|
|
71
131
|
};
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
package/lib/stringTools.d.ts
CHANGED
|
@@ -4,3 +4,4 @@ export declare function parseCellValue(value: any): any;
|
|
|
4
4
|
export declare function stringifyCellValue(value: any): any;
|
|
5
5
|
export declare function safeJsonParse(json: any, defaultValue?: any, logError?: boolean): any;
|
|
6
6
|
export declare function isJsonLikeLongString(value: any): RegExpMatchArray;
|
|
7
|
+
export declare function getIconForRedisType(type: any): "img folder" | "img type-string" | "img type-hash" | "img type-set" | "img type-list" | "img type-zset" | "img type-stream" | "img type-binary" | "img type-rejson";
|
package/lib/stringTools.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.isJsonLikeLongString = exports.safeJsonParse = exports.stringifyCellValue = exports.parseCellValue = exports.hexStringToArray = exports.arrayToHexString = void 0;
|
|
6
|
+
exports.getIconForRedisType = exports.isJsonLikeLongString = exports.safeJsonParse = exports.stringifyCellValue = exports.parseCellValue = exports.hexStringToArray = exports.arrayToHexString = void 0;
|
|
7
7
|
const isString_1 = __importDefault(require("lodash/isString"));
|
|
8
8
|
const isArray_1 = __importDefault(require("lodash/isArray"));
|
|
9
9
|
const isPlainObject_1 = __importDefault(require("lodash/isPlainObject"));
|
|
@@ -69,3 +69,28 @@ function isJsonLikeLongString(value) {
|
|
|
69
69
|
return (0, isString_1.default)(value) && value.length > 100 && value.match(/^\s*\{.*\}\s*$|^\s*\[.*\]\s*$/);
|
|
70
70
|
}
|
|
71
71
|
exports.isJsonLikeLongString = isJsonLikeLongString;
|
|
72
|
+
function getIconForRedisType(type) {
|
|
73
|
+
switch (type) {
|
|
74
|
+
case 'dir':
|
|
75
|
+
return 'img folder';
|
|
76
|
+
case 'string':
|
|
77
|
+
return 'img type-string';
|
|
78
|
+
case 'hash':
|
|
79
|
+
return 'img type-hash';
|
|
80
|
+
case 'set':
|
|
81
|
+
return 'img type-set';
|
|
82
|
+
case 'list':
|
|
83
|
+
return 'img type-list';
|
|
84
|
+
case 'zset':
|
|
85
|
+
return 'img type-zset';
|
|
86
|
+
case 'stream':
|
|
87
|
+
return 'img type-stream';
|
|
88
|
+
case 'binary':
|
|
89
|
+
return 'img type-binary';
|
|
90
|
+
case 'ReJSON-RL':
|
|
91
|
+
return 'img type-rejson';
|
|
92
|
+
default:
|
|
93
|
+
return null;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
exports.getIconForRedisType = getIconForRedisType;
|
package/lib/testPermission.d.ts
CHANGED
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
interface CompiledPermissionLevel {
|
|
2
|
+
re: RegExp;
|
|
3
|
+
type: 'allow' | 'deny';
|
|
4
|
+
}
|
|
5
|
+
interface CompiledPermissions {
|
|
6
|
+
levels: CompiledPermissionLevel[];
|
|
7
|
+
}
|
|
8
|
+
export declare function compilePermissions(permissions: string[] | string): CompiledPermissions;
|
|
9
|
+
export declare function testPermission(tested: string, permissions: CompiledPermissions): boolean;
|
|
10
|
+
export {};
|
package/lib/testPermission.js
CHANGED
|
@@ -6,21 +6,61 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.testPermission = exports.compilePermissions = void 0;
|
|
7
7
|
const escapeRegExp_1 = __importDefault(require("lodash/escapeRegExp"));
|
|
8
8
|
const isString_1 = __importDefault(require("lodash/isString"));
|
|
9
|
+
const compact_1 = __importDefault(require("lodash/compact"));
|
|
10
|
+
const flatten_1 = __importDefault(require("lodash/flatten"));
|
|
11
|
+
function compileRegexp(permissions) {
|
|
12
|
+
if (permissions.length == 0)
|
|
13
|
+
return null;
|
|
14
|
+
return new RegExp(permissions.map(x => '^' + (0, escapeRegExp_1.default)(x).replace(/\\\*/g, '.*') + '$').join('|'));
|
|
15
|
+
}
|
|
9
16
|
function compilePermissions(permissions) {
|
|
10
17
|
if (!permissions)
|
|
11
18
|
return null;
|
|
12
19
|
if ((0, isString_1.default)(permissions))
|
|
13
|
-
permissions = permissions.split(
|
|
14
|
-
|
|
20
|
+
permissions = permissions.split(/,|;|\||\s/);
|
|
21
|
+
else
|
|
22
|
+
permissions = (0, flatten_1.default)(permissions.map(x => x.split(/,|;|\||\s/)));
|
|
23
|
+
permissions = (0, compact_1.default)(permissions.map(x => x.trim()));
|
|
24
|
+
let lastType = null;
|
|
25
|
+
let lastItems = [];
|
|
26
|
+
const res = {
|
|
27
|
+
levels: [],
|
|
28
|
+
};
|
|
29
|
+
for (const item of permissions) {
|
|
30
|
+
const type = item.startsWith('~') ? 'deny' : 'allow';
|
|
31
|
+
const perm = item.startsWith('~') ? item.substring(1) : item;
|
|
32
|
+
if (lastType != null && type != lastType) {
|
|
33
|
+
res.levels.push({
|
|
34
|
+
re: compileRegexp(lastItems),
|
|
35
|
+
type: lastType,
|
|
36
|
+
});
|
|
37
|
+
lastItems = [];
|
|
38
|
+
}
|
|
39
|
+
lastItems.push(perm);
|
|
40
|
+
lastType = type;
|
|
41
|
+
}
|
|
42
|
+
if (lastItems.length > 0) {
|
|
43
|
+
res.levels.push({
|
|
44
|
+
re: compileRegexp(lastItems),
|
|
45
|
+
type: lastType,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
return res;
|
|
15
49
|
}
|
|
16
50
|
exports.compilePermissions = compilePermissions;
|
|
17
51
|
function testPermission(tested, permissions) {
|
|
18
|
-
|
|
52
|
+
let allow = true;
|
|
53
|
+
if (!permissions) {
|
|
19
54
|
return true;
|
|
20
|
-
for (const permission of permissions) {
|
|
21
|
-
if (tested.match(permission))
|
|
22
|
-
return true;
|
|
23
55
|
}
|
|
24
|
-
|
|
56
|
+
for (const level of permissions.levels) {
|
|
57
|
+
if (tested.match(level.re)) {
|
|
58
|
+
if (level.type == 'allow')
|
|
59
|
+
allow = true;
|
|
60
|
+
if (level.type == 'deny')
|
|
61
|
+
allow = false;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return allow;
|
|
25
65
|
}
|
|
26
66
|
exports.testPermission = testPermission;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "4.7.
|
|
2
|
+
"version": "4.7.4-alpha.10",
|
|
3
3
|
"name": "dbgate-tools",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"typings": "lib/index.d.ts",
|
|
@@ -25,14 +25,15 @@
|
|
|
25
25
|
],
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "^13.7.0",
|
|
28
|
-
"dbgate-types": "^4.7.
|
|
28
|
+
"dbgate-types": "^4.7.4-alpha.10",
|
|
29
29
|
"jest": "^24.9.0",
|
|
30
30
|
"ts-jest": "^25.2.1",
|
|
31
31
|
"typescript": "^4.4.3"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"lodash": "^4.17.21",
|
|
35
|
-
"dbgate-query-splitter": "^4.7.
|
|
35
|
+
"dbgate-query-splitter": "^4.7.4-alpha.10",
|
|
36
|
+
"dbgate-sqltree": "^4.7.4-alpha.10",
|
|
36
37
|
"uuid": "^3.4.0"
|
|
37
38
|
}
|
|
38
39
|
}
|