@abaplint/transpiler 2.8.20 → 2.8.22

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.
@@ -6,16 +6,19 @@ const chunk_1 = require("../chunk");
6
6
  const sql_field_name_1 = require("./sql_field_name");
7
7
  class SQLOrderByTranspiler {
8
8
  transpile(node, traversal) {
9
- const ret = new chunk_1.Chunk();
9
+ let text = "";
10
10
  for (const c of node.getChildren()) {
11
11
  if (c instanceof abaplint.Nodes.ExpressionNode && c.get() instanceof abaplint.Expressions.SQLFieldName) {
12
- ret.appendString(new sql_field_name_1.SQLFieldNameTranspiler().transpile(c, traversal).getCode() + " ");
12
+ if (text !== "" && text.endsWith(`" `)) {
13
+ text += ", ";
14
+ }
15
+ text += new sql_field_name_1.SQLFieldNameTranspiler().transpile(c, traversal).getCode().toLowerCase() + " ";
13
16
  }
14
17
  else {
15
- ret.appendString(c.concatTokens() + " ");
18
+ text += c.concatTokens() + " ";
16
19
  }
17
20
  }
18
- return ret;
21
+ return new chunk_1.Chunk().appendString(text);
19
22
  }
20
23
  }
21
24
  exports.SQLOrderByTranspiler = SQLOrderByTranspiler;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.8.20",
3
+ "version": "2.8.22",
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.106.3",
32
+ "@abaplint/core": "^2.106.5",
33
33
  "source-map": "^0.7.4"
34
34
  },
35
35
  "devDependencies": {