@abaplint/transpiler 2.13.41 → 2.13.43

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.
@@ -99,7 +99,7 @@ class PerformTranspiler {
99
99
  index++;
100
100
  }
101
101
  index = 0;
102
- for (const c of node.findDirectExpression(abaplint.Expressions.PerformChanging)?.findDirectExpressions(abaplint.Expressions.Source) || []) {
102
+ for (const c of node.findDirectExpression(abaplint.Expressions.PerformChanging)?.findDirectExpressions(abaplint.Expressions.Target) || []) {
103
103
  const name = def?.getChangingParameters()[index].getName().toLowerCase();
104
104
  if (name === undefined) {
105
105
  continue;
@@ -200,7 +200,7 @@ class SelectTranspiler {
200
200
  dynamicSQLClause(keyword, code) {
201
201
  return `(${code} instanceof abap.types.Table || ${code} instanceof abap.types.HashedTable`
202
202
  + ` ? (${code}.array().length === 0 ? "" : "${keyword} " + ${code}.array().map(row => row.get()).join(", "))`
203
- + ` : "${keyword} " + ${code}.get())`;
203
+ + ` : (("" + ${code}.get()).trim() === "" ? "" : "${keyword} " + ${code}.get()))`;
204
204
  }
205
205
  isWhereExpression(node, expression) {
206
206
  // check if previous token before sqlCond is "WHERE". It could also be "ON" in case of join condition
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.13.41",
3
+ "version": "2.13.43",
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.120.2",
32
+ "@abaplint/core": "^2.120.4",
33
33
  "source-map": "^0.7.6"
34
34
  },
35
35
  "devDependencies": {