@galadrim/galadmin 0.1.235 → 0.1.236
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/dist/api.js +39 -29
- package/dist/api.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/dbManager.d.ts +1 -0
- package/dist/utils/dbManager.js +5 -0
- package/dist/utils/dbManager.js.map +1 -1
- package/package.json +1 -1
- package/src/api.ts +137 -104
- package/src/front/ckeditor5-build/node_modules/.bin/semver +12 -0
- package/src/front/ckeditor5-build/node_modules/.bin/semver.cmd +17 -0
- package/src/front/ckeditor5-build/node_modules/.bin/semver.ps1 +28 -0
- package/src/front/ckeditor5-build/node_modules/semver/bin/semver.js +0 -0
- package/src/utils/dbManager.ts +5 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#!/usr/bin/env pwsh
|
|
2
|
+
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
|
3
|
+
|
|
4
|
+
$exe=""
|
|
5
|
+
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
|
6
|
+
# Fix case when both the Windows and Linux builds of Node
|
|
7
|
+
# are installed in the same directory
|
|
8
|
+
$exe=".exe"
|
|
9
|
+
}
|
|
10
|
+
$ret=0
|
|
11
|
+
if (Test-Path "$basedir/node$exe") {
|
|
12
|
+
# Support pipeline input
|
|
13
|
+
if ($MyInvocation.ExpectingInput) {
|
|
14
|
+
$input | & "$basedir/node$exe" "$basedir/../semver/bin/semver.js" $args
|
|
15
|
+
} else {
|
|
16
|
+
& "$basedir/node$exe" "$basedir/../semver/bin/semver.js" $args
|
|
17
|
+
}
|
|
18
|
+
$ret=$LASTEXITCODE
|
|
19
|
+
} else {
|
|
20
|
+
# Support pipeline input
|
|
21
|
+
if ($MyInvocation.ExpectingInput) {
|
|
22
|
+
$input | & "node$exe" "$basedir/../semver/bin/semver.js" $args
|
|
23
|
+
} else {
|
|
24
|
+
& "node$exe" "$basedir/../semver/bin/semver.js" $args
|
|
25
|
+
}
|
|
26
|
+
$ret=$LASTEXITCODE
|
|
27
|
+
}
|
|
28
|
+
exit $ret
|
|
File without changes
|
package/src/utils/dbManager.ts
CHANGED
|
@@ -2,6 +2,11 @@ import * as mysql from "mysql";
|
|
|
2
2
|
import * as mysql2 from "mysql2";
|
|
3
3
|
import * as pg from 'pg';
|
|
4
4
|
|
|
5
|
+
export function quoteIdentifier(name: string, dbType: string): string {
|
|
6
|
+
const quoteChar = dbType === "POSTGRESQL" ? '"' : '`';
|
|
7
|
+
return quoteChar + name + quoteChar;
|
|
8
|
+
}
|
|
9
|
+
|
|
5
10
|
function convertQuery(mysqlQuery, params) {
|
|
6
11
|
let pgQuery = '';
|
|
7
12
|
let pgParams = [];
|