@abaplint/transpiler 2.7.78 → 2.7.80
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.
|
@@ -45,11 +45,11 @@ class CompareTranspiler {
|
|
|
45
45
|
if (concat.endsWith(" IS REQUESTED")) {
|
|
46
46
|
const field = concat.replace(" IS REQUESTED", "").toLowerCase();
|
|
47
47
|
// yea, for function modules the naming is revereed, using "importing"
|
|
48
|
-
return new chunk_1.Chunk().appendString(pre + "INPUT && (INPUT." + field + " || INPUT.importing
|
|
48
|
+
return new chunk_1.Chunk().appendString(pre + "INPUT && (INPUT." + field + " || INPUT.importing?." + field + ")");
|
|
49
49
|
}
|
|
50
50
|
else if (concat.endsWith(" IS NOT REQUESTED")) {
|
|
51
51
|
const field = concat.replace(" IS NOT REQUESTED", "").toLowerCase();
|
|
52
|
-
return new chunk_1.Chunk().appendString(pre + "INPUT && INPUT." + field + " === undefined && INPUT.importing
|
|
52
|
+
return new chunk_1.Chunk().appendString(pre + "INPUT && INPUT." + field + " === undefined && INPUT.importing?." + field + " === undefined");
|
|
53
53
|
}
|
|
54
54
|
if (concat.startsWith("NOT ") || concat.includes(" IS NOT INSTANCE OF ")) {
|
|
55
55
|
const cname = (_a = node.findDirectExpression(core_1.Expressions.ClassName)) === null || _a === void 0 ? void 0 : _a.concatTokens();
|
|
@@ -107,7 +107,7 @@ class SelectTranspiler {
|
|
|
107
107
|
for await (const ${unique} of abap.statements.loop(${faeTranspiled})) {
|
|
108
108
|
await abap.statements.select(${target}, {select: "${select.trim()}"${extra}}, {appending: true});
|
|
109
109
|
}
|
|
110
|
-
if (!(${target} instanceof abap.types.HashedTable)) {
|
|
110
|
+
if (!(${target} instanceof abap.types.HashedTable) && ${target}.getOptions()?.primaryKey?.type !== "SORTED") {
|
|
111
111
|
abap.statements.sort(${target}, {by: ${by}.map(k => { return {component: k}; })});
|
|
112
112
|
await abap.statements.deleteInternal(${target}, {adjacent: true, by: ${by}});
|
|
113
113
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.80",
|
|
4
4
|
"description": "Transpiler",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/src/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"author": "abaplint",
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@abaplint/core": "^2.102.
|
|
32
|
+
"@abaplint/core": "^2.102.28",
|
|
33
33
|
"source-map": "^0.7.4"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|