@abaplint/transpiler-cli 2.5.59 → 2.5.61
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 +6 -11
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -74454,7 +74454,6 @@ class ReadTableTranspiler {
|
|
|
74454
74454
|
const withKeyValue = [];
|
|
74455
74455
|
const withKeySimple = [];
|
|
74456
74456
|
const count = compare.getChildren().length / 3;
|
|
74457
|
-
let skipSimple = false;
|
|
74458
74457
|
let usesTableLine = false;
|
|
74459
74458
|
for (let i = 0; i < count; i++) {
|
|
74460
74459
|
const left = compare.getChildren()[i * 3];
|
|
@@ -74469,11 +74468,7 @@ class ReadTableTranspiler {
|
|
|
74469
74468
|
else {
|
|
74470
74469
|
field = traversal.traverse(left).getCode();
|
|
74471
74470
|
}
|
|
74472
|
-
if (field.includes(".")) {
|
|
74473
|
-
skipSimple = true;
|
|
74474
|
-
}
|
|
74475
74471
|
if (field === "table_line") {
|
|
74476
|
-
skipSimple = true;
|
|
74477
74472
|
usesTableLine = true;
|
|
74478
74473
|
}
|
|
74479
74474
|
if (s.includes("await")) {
|
|
@@ -74492,9 +74487,7 @@ class ReadTableTranspiler {
|
|
|
74492
74487
|
extra.push("withKey: (i) => {return " + withKey.join(" && ") + ";}");
|
|
74493
74488
|
extra.push(`withKeyValue: [${withKeyValue.join(",")}]`);
|
|
74494
74489
|
extra.push(`usesTableLine: ${usesTableLine}`);
|
|
74495
|
-
|
|
74496
|
-
extra.push(`withKeySimple: {${withKeySimple.join(",")}}`);
|
|
74497
|
-
}
|
|
74490
|
+
extra.push(`withKeySimple: {${withKeySimple.join(",")}}`);
|
|
74498
74491
|
}
|
|
74499
74492
|
let concat = "";
|
|
74500
74493
|
if (extra.length > 0) {
|
|
@@ -74910,9 +74903,11 @@ class SelectTranspiler {
|
|
|
74910
74903
|
for await (const ${unique} of abap.statements.loop(${faeTranspiled})) {
|
|
74911
74904
|
await abap.statements.select(${target}, {select: "${select.trim()}"${extra}}, {appending: true});
|
|
74912
74905
|
}
|
|
74913
|
-
|
|
74914
|
-
|
|
74915
|
-
|
|
74906
|
+
if (!(${target} instanceof abap.types.HashedTable)) {
|
|
74907
|
+
abap.statements.sort(${target}, {by: ${by}.map(k => { return {component: k}; })});
|
|
74908
|
+
await abap.statements.deleteInternal(${target}, {adjacent: true, by: ${by}});
|
|
74909
|
+
}
|
|
74910
|
+
abap.builtin.sy.get().dbcnt.set(${target}.getLength());
|
|
74916
74911
|
}`;
|
|
74917
74912
|
return new chunk_1.Chunk().append(code, node, traversal);
|
|
74918
74913
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.61",
|
|
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.61",
|
|
29
29
|
"@types/glob": "^7.2.0",
|
|
30
30
|
"glob": "=7.2.0",
|
|
31
31
|
"@types/progress": "^2.0.5",
|