@abaplint/transpiler-cli 2.7.80 → 2.7.82

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.
Files changed (2) hide show
  1. package/build/bundle.js +13 -2
  2. package/package.json +4 -4
package/build/bundle.js CHANGED
@@ -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 `" + abap.expandIN("${fieldName.concatTokens()}", ${source.concatTokens()}) + "`;
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
  }
@@ -80942,6 +80946,13 @@ class Traversal {
80942
80946
  }
80943
80947
  }
80944
80948
  }
80949
+ else if (c.get() instanceof abaplint.Expressions.AttributeName
80950
+ && context instanceof abaplint.BasicTypes.DataReference) {
80951
+ const type = context.getType();
80952
+ if (type instanceof abaplint.BasicTypes.StructureType) {
80953
+ context = type.getComponentByName(c.concatTokens());
80954
+ }
80955
+ }
80945
80956
  }
80946
80957
  return context;
80947
80958
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.7.80",
3
+ "version": "2.7.82",
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.80",
29
+ "@abaplint/transpiler": "^2.7.82",
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.4",
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.1.6"
38
+ "typescript": "^5.2.2"
39
39
  }
40
40
  }