@abaplint/transpiler-cli 2.5.49 → 2.5.50
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 +11 -0
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -69418,9 +69418,20 @@ exports.SQLJoinTranspiler = SQLJoinTranspiler;
|
|
|
69418
69418
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
69419
69419
|
exports.SQLSourceTranspiler = void 0;
|
|
69420
69420
|
const abaplint = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
|
|
69421
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
69421
69422
|
class SQLSourceTranspiler {
|
|
69422
69423
|
transpile(node, traversal) {
|
|
69423
69424
|
let s = node.findDirectExpression(abaplint.Expressions.Source);
|
|
69425
|
+
if ((s === null || s === void 0 ? void 0 : s.getChildren().length) === 1 && s.getChildren()[0].get() instanceof abaplint.Expressions.SQLAliasField) {
|
|
69426
|
+
const chunk = new chunk_1.Chunk();
|
|
69427
|
+
let concat = s.concatTokens();
|
|
69428
|
+
if (concat.includes("~") && concat.split("~")[0].includes("/")) {
|
|
69429
|
+
concat = "'" + concat.replace("~", "'~");
|
|
69430
|
+
}
|
|
69431
|
+
concat = concat.replace("~", ".");
|
|
69432
|
+
chunk.appendString(concat);
|
|
69433
|
+
return chunk;
|
|
69434
|
+
}
|
|
69424
69435
|
if (s === undefined) {
|
|
69425
69436
|
s = node.findDirectExpression(abaplint.Expressions.SimpleSource3);
|
|
69426
69437
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.50",
|
|
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.50",
|
|
29
29
|
"@types/glob": "^7.2.0",
|
|
30
30
|
"glob": "=7.2.0",
|
|
31
31
|
"@types/progress": "^2.0.5",
|