@abaplint/transpiler-cli 2.7.79 → 2.7.81
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 +8 -4
- package/package.json +4 -4
package/build/bundle.js
CHANGED
|
@@ -70185,11 +70185,11 @@ class CompareTranspiler {
|
|
|
70185
70185
|
if (concat.endsWith(" IS REQUESTED")) {
|
|
70186
70186
|
const field = concat.replace(" IS REQUESTED", "").toLowerCase();
|
|
70187
70187
|
// yea, for function modules the naming is revereed, using "importing"
|
|
70188
|
-
return new chunk_1.Chunk().appendString(pre + "INPUT && (INPUT." + field + " || INPUT.importing
|
|
70188
|
+
return new chunk_1.Chunk().appendString(pre + "INPUT && (INPUT." + field + " || INPUT.importing?." + field + ")");
|
|
70189
70189
|
}
|
|
70190
70190
|
else if (concat.endsWith(" IS NOT REQUESTED")) {
|
|
70191
70191
|
const field = concat.replace(" IS NOT REQUESTED", "").toLowerCase();
|
|
70192
|
-
return new chunk_1.Chunk().appendString(pre + "INPUT && INPUT." + field + " === undefined && INPUT.importing
|
|
70192
|
+
return new chunk_1.Chunk().appendString(pre + "INPUT && INPUT." + field + " === undefined && INPUT.importing?." + field + " === undefined");
|
|
70193
70193
|
}
|
|
70194
70194
|
if (concat.startsWith("NOT ") || concat.includes(" IS NOT INSTANCE OF ")) {
|
|
70195
70195
|
const cname = (_a = node.findDirectExpression(core_1.Expressions.ClassName)) === null || _a === void 0 ? void 0 : _a.concatTokens();
|
|
@@ -72035,8 +72035,12 @@ class SQLCondTranspiler {
|
|
|
72035
72035
|
if (fieldName === undefined || sqlin === undefined || source === undefined) {
|
|
72036
72036
|
throw new Error("SQL Condition, transpiler todo, " + c.concatTokens());
|
|
72037
72037
|
}
|
|
72038
|
+
let pre = "";
|
|
72039
|
+
if (c.concatTokens().toUpperCase().includes(" NOT IN ")) {
|
|
72040
|
+
pre = "NOT ";
|
|
72041
|
+
}
|
|
72038
72042
|
if (sqlin.getChildren().length === 2) {
|
|
72039
|
-
return
|
|
72043
|
+
return `${pre}" + abap.expandIN("${fieldName.concatTokens()}", ${source.concatTokens()}) + "`;
|
|
72040
72044
|
}
|
|
72041
72045
|
else {
|
|
72042
72046
|
const cond = [];
|
|
@@ -72045,7 +72049,7 @@ class SQLCondTranspiler {
|
|
|
72045
72049
|
const sourc = this.sqlSource(s, traversal, filename, table);
|
|
72046
72050
|
cond.push(field + " = " + sourc);
|
|
72047
72051
|
}
|
|
72048
|
-
const ret = "( " + cond.join(" OR ") + " )";
|
|
72052
|
+
const ret = pre + "( " + cond.join(" OR ") + " )";
|
|
72049
72053
|
return ret;
|
|
72050
72054
|
}
|
|
72051
72055
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.81",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
"author": "abaplint",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@abaplint/transpiler": "^2.7.
|
|
29
|
+
"@abaplint/transpiler": "^2.7.81",
|
|
30
30
|
"@types/glob": "^7.2.0",
|
|
31
31
|
"glob": "=7.2.0",
|
|
32
32
|
"@types/progress": "^2.0.5",
|
|
33
|
-
"@types/node": "^20.5.
|
|
33
|
+
"@types/node": "^20.5.6",
|
|
34
34
|
"@abaplint/core": "^2.102.28",
|
|
35
35
|
"progress": "^2.0.3",
|
|
36
36
|
"webpack": "^5.88.2",
|
|
37
37
|
"webpack-cli": "^5.1.4",
|
|
38
|
-
"typescript": "^5.
|
|
38
|
+
"typescript": "^5.2.2"
|
|
39
39
|
}
|
|
40
40
|
}
|