@abaplint/transpiler-cli 2.7.88 → 2.7.90
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/LICENSE +21 -0
- package/build/bundle.js +11 -6
- package/package.json +2 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 Lars Hvam Petersen
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/build/bundle.js
CHANGED
|
@@ -69659,7 +69659,7 @@ class DatabaseSetup {
|
|
|
69659
69659
|
// INSERT data
|
|
69660
69660
|
for (const obj of this.reg.getObjects()) {
|
|
69661
69661
|
if (obj instanceof abaplint.Objects.MessageClass) {
|
|
69662
|
-
insert.push(this.insertT100(obj));
|
|
69662
|
+
insert.push(...this.insertT100(obj));
|
|
69663
69663
|
}
|
|
69664
69664
|
else if (obj instanceof abaplint.Objects.Class
|
|
69665
69665
|
|| obj instanceof abaplint.Objects.Interface) {
|
|
@@ -69701,11 +69701,11 @@ class DatabaseSetup {
|
|
|
69701
69701
|
// ignore if T100 is unknown
|
|
69702
69702
|
const obj = this.reg.getObject("TABL", "T100");
|
|
69703
69703
|
if (obj === undefined) {
|
|
69704
|
-
return
|
|
69704
|
+
return [];
|
|
69705
69705
|
}
|
|
69706
|
-
|
|
69706
|
+
const ret = [];
|
|
69707
69707
|
for (const m of msag.getMessages()) {
|
|
69708
|
-
ret
|
|
69708
|
+
ret.push(`INSERT INTO "t100" ("sprsl", "arbgb", "msgnr", "text") VALUES ('E', '${msag.getName().padEnd(20, " ")}', '${m.getNumber()}', '${this.escape(m.getMessage().padEnd(73, " "))}');`);
|
|
69709
69709
|
}
|
|
69710
69710
|
return ret;
|
|
69711
69711
|
}
|
|
@@ -72313,9 +72313,14 @@ class SQLFieldNameTranspiler {
|
|
|
72313
72313
|
transpile(node, _traversal) {
|
|
72314
72314
|
const chunk = new chunk_1.Chunk();
|
|
72315
72315
|
let concat = node.concatTokens();
|
|
72316
|
+
/*
|
|
72316
72317
|
if (concat.includes("~") && concat.split("~")[0].includes("/")) {
|
|
72317
|
-
|
|
72318
|
-
}
|
|
72318
|
+
concat = "'" + concat.replace("~", "'~");
|
|
72319
|
+
} else {
|
|
72320
|
+
*/
|
|
72321
|
+
concat = concat.replace(/~/, `\\".\\"`);
|
|
72322
|
+
concat = `\\"` + concat + `\\"`;
|
|
72323
|
+
// }
|
|
72319
72324
|
chunk.appendString(concat);
|
|
72320
72325
|
return chunk;
|
|
72321
72326
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.90",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"author": "abaplint",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@abaplint/transpiler": "^2.7.
|
|
29
|
+
"@abaplint/transpiler": "^2.7.89",
|
|
30
30
|
"@types/glob": "^7.2.0",
|
|
31
31
|
"glob": "=7.2.0",
|
|
32
32
|
"@types/progress": "^2.0.5",
|