@abaplint/transpiler-cli 2.13.65 → 2.13.66

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 CHANGED
@@ -116630,6 +116630,7 @@ exports.OpenCursorTranspiler = void 0;
116630
116630
  const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
116631
116631
  const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
116632
116632
  const insert_database_1 = __webpack_require__(/*! ./insert_database */ "./node_modules/@abaplint/transpiler/build/src/statements/insert_database.js");
116633
+ const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/@abaplint/transpiler/build/src/expressions/index.js");
116633
116634
  class OpenCursorTranspiler {
116634
116635
  transpile(node, traversal) {
116635
116636
  const target = traversal.traverse(node.findDirectExpression(abaplint.Expressions.SQLTarget)).getCode();
@@ -116639,11 +116640,21 @@ class OpenCursorTranspiler {
116639
116640
  select += traversal.traverse(selectExpression?.findDirectExpression(abaplint.Expressions.SQLFrom)).getCode();
116640
116641
  const cond = selectExpression?.findDirectExpression(abaplint.Expressions.SQLCond);
116641
116642
  if (cond) {
116642
- select += "WHERE " + traversal.traverse(node).getCode();
116643
+ select += "WHERE " + new expressions_1.SQLCondTranspiler().transpile(cond, traversal).getCode() + " ";
116644
+ }
116645
+ const upTo = selectExpression?.findDirectExpression(abaplint.Expressions.SQLUpTo);
116646
+ if (upTo) {
116647
+ const source = upTo.findFirstExpression(abaplint.Expressions.SimpleSource3);
116648
+ if (source) {
116649
+ select += `UP TO " + ${new expressions_1.SourceTranspiler(true).transpile(source, traversal).getCode()} + " ROWS `;
116650
+ }
116651
+ else {
116652
+ select += upTo.concatTokens() + " ";
116653
+ }
116643
116654
  }
116644
116655
  const orderBy = selectExpression?.findDirectExpression(abaplint.Expressions.SQLOrderBy);
116645
116656
  if (orderBy) {
116646
- select += "ORDER BY " + traversal.traverse(node).getCode();
116657
+ select += "ORDER BY " + new expressions_1.SQLOrderByTranspiler().transpile(orderBy, traversal).getCode();
116647
116658
  }
116648
116659
  const options = [];
116649
116660
  const connection = node.findDirectExpression(abaplint.Expressions.DatabaseConnection);
package/build/types.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { ITranspilerOptions } from "@abaplint/transpiler";
2
2
  export interface ITranspilerConfig {
3
+ /** @uniqueItems true */
3
4
  input_folder: string | string[];
4
5
  /** list of regex, case insensitive, empty gives all files, positive list
5
6
  * @uniqueItems true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.13.65",
3
+ "version": "2.13.66",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -28,7 +28,7 @@
28
28
  "license": "MIT",
29
29
  "devDependencies": {
30
30
  "@abaplint/core": "^2.120.42",
31
- "@abaplint/transpiler": "^2.13.65",
31
+ "@abaplint/transpiler": "^2.13.66",
32
32
  "@types/glob": "^8.1.0",
33
33
  "@types/node": "^24.13.3",
34
34
  "@types/progress": "^2.0.7",
package/schema.json CHANGED
@@ -32,7 +32,8 @@
32
32
  },
33
33
  "type": "array"
34
34
  }
35
- ]
35
+ ],
36
+ "uniqueItems": true
36
37
  },
37
38
  "libs": {
38
39
  "items": {
@@ -76,14 +77,6 @@
76
77
  "output_folder": {
77
78
  "type": "string"
78
79
  },
79
- "plugins": {
80
- "description": "list of npm module names or paths, resolved from the current working directory, each module exports \"plugins\", an array of ITranspilerPlugin instances",
81
- "items": {
82
- "type": "string"
83
- },
84
- "type": "array",
85
- "uniqueItems": true
86
- },
87
80
  "write_source_map": {
88
81
  "type": "boolean"
89
82
  },