@abaplint/transpiler-cli 2.5.49 → 2.5.52
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/build/bundle.js +15 -1
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -69180,7 +69180,11 @@ class SQLCondTranspiler {
|
|
|
69180
69180
|
ret += "'\" + " + name + ".get() + \"'";
|
|
69181
69181
|
}
|
|
69182
69182
|
else {
|
|
69183
|
-
|
|
69183
|
+
let concat = source.concatTokens();
|
|
69184
|
+
if (concat.includes("~") && concat.split("~")[0].includes("/")) {
|
|
69185
|
+
concat = "'" + concat.replace("~", "'~");
|
|
69186
|
+
}
|
|
69187
|
+
ret += concat;
|
|
69184
69188
|
}
|
|
69185
69189
|
}
|
|
69186
69190
|
else {
|
|
@@ -69418,9 +69422,19 @@ exports.SQLJoinTranspiler = SQLJoinTranspiler;
|
|
|
69418
69422
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
69419
69423
|
exports.SQLSourceTranspiler = void 0;
|
|
69420
69424
|
const abaplint = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
|
|
69425
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
69421
69426
|
class SQLSourceTranspiler {
|
|
69422
69427
|
transpile(node, traversal) {
|
|
69423
69428
|
let s = node.findDirectExpression(abaplint.Expressions.Source);
|
|
69429
|
+
if ((s === null || s === void 0 ? void 0 : s.getChildren().length) === 1 && s.getChildren()[0].get() instanceof abaplint.Expressions.SQLAliasField) {
|
|
69430
|
+
const chunk = new chunk_1.Chunk();
|
|
69431
|
+
let concat = s.concatTokens();
|
|
69432
|
+
if (concat.includes("~") && concat.split("~")[0].includes("/")) {
|
|
69433
|
+
concat = "'" + concat.replace("~", "'~");
|
|
69434
|
+
}
|
|
69435
|
+
chunk.appendString(concat);
|
|
69436
|
+
return chunk;
|
|
69437
|
+
}
|
|
69424
69438
|
if (s === undefined) {
|
|
69425
69439
|
s = node.findDirectExpression(abaplint.Expressions.SimpleSource3);
|
|
69426
69440
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.52",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"bin": {
|
|
6
6
|
"abap_transpile": "./abap_transpile"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"author": "abaplint",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@abaplint/transpiler": "^2.5.
|
|
28
|
+
"@abaplint/transpiler": "^2.5.51",
|
|
29
29
|
"@types/glob": "^7.2.0",
|
|
30
30
|
"glob": "=7.2.0",
|
|
31
31
|
"@types/progress": "^2.0.5",
|