@abaplint/transpiler-cli 2.8.21 → 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.
Files changed (2) hide show
  1. package/build/bundle.js +7 -4
  2. package/package.json +2 -2
package/build/bundle.js CHANGED
@@ -75960,16 +75960,19 @@ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/tr
75960
75960
  const sql_field_name_1 = __webpack_require__(/*! ./sql_field_name */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_field_name.js");
75961
75961
  class SQLOrderByTranspiler {
75962
75962
  transpile(node, traversal) {
75963
- const ret = new chunk_1.Chunk();
75963
+ let text = "";
75964
75964
  for (const c of node.getChildren()) {
75965
75965
  if (c instanceof abaplint.Nodes.ExpressionNode && c.get() instanceof abaplint.Expressions.SQLFieldName) {
75966
- ret.appendString(new sql_field_name_1.SQLFieldNameTranspiler().transpile(c, traversal).getCode() + " ");
75966
+ if (text !== "" && text.endsWith(`" `)) {
75967
+ text += ", ";
75968
+ }
75969
+ text += new sql_field_name_1.SQLFieldNameTranspiler().transpile(c, traversal).getCode().toLowerCase() + " ";
75967
75970
  }
75968
75971
  else {
75969
- ret.appendString(c.concatTokens() + " ");
75972
+ text += c.concatTokens() + " ";
75970
75973
  }
75971
75974
  }
75972
- return ret;
75975
+ return new chunk_1.Chunk().appendString(text);
75973
75976
  }
75974
75977
  }
75975
75978
  exports.SQLOrderByTranspiler = SQLOrderByTranspiler;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.8.21",
3
+ "version": "2.8.22",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -26,7 +26,7 @@
26
26
  "author": "abaplint",
27
27
  "license": "MIT",
28
28
  "devDependencies": {
29
- "@abaplint/transpiler": "^2.8.21",
29
+ "@abaplint/transpiler": "^2.8.22",
30
30
  "@types/glob": "^8.1.0",
31
31
  "glob": "=7.2.0",
32
32
  "@types/progress": "^2.0.7",