@abaplint/transpiler-cli 2.13.65 → 2.13.67

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);
@@ -120345,6 +120356,27 @@ exports.CaseTypeTranspiler = CaseTypeTranspiler;
120345
120356
 
120346
120357
  /***/ },
120347
120358
 
120359
+ /***/ "./node_modules/@abaplint/transpiler/build/src/structures/catch_system_exceptions.js"
120360
+ /*!*******************************************************************************************!*\
120361
+ !*** ./node_modules/@abaplint/transpiler/build/src/structures/catch_system_exceptions.js ***!
120362
+ \*******************************************************************************************/
120363
+ (__unused_webpack_module, exports, __webpack_require__) {
120364
+
120365
+ "use strict";
120366
+
120367
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
120368
+ exports.CatchSystemExceptionsTranspiler = void 0;
120369
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
120370
+ class CatchSystemExceptionsTranspiler {
120371
+ transpile(node, traversal) {
120372
+ return new chunk_1.Chunk().append(`throw new Error("CATCH SYSTEM-EXCEPTIONS, not supported, transpiler");`, node, traversal);
120373
+ }
120374
+ }
120375
+ exports.CatchSystemExceptionsTranspiler = CatchSystemExceptionsTranspiler;
120376
+ //# sourceMappingURL=catch_system_exceptions.js.map
120377
+
120378
+ /***/ },
120379
+
120348
120380
  /***/ "./node_modules/@abaplint/transpiler/build/src/structures/class_definition.js"
120349
120381
  /*!************************************************************************************!*\
120350
120382
  !*** ./node_modules/@abaplint/transpiler/build/src/structures/class_definition.js ***!
@@ -121110,6 +121142,7 @@ __exportStar(__webpack_require__(/*! ./at_first */ "./node_modules/@abaplint/tra
121110
121142
  __exportStar(__webpack_require__(/*! ./at_last */ "./node_modules/@abaplint/transpiler/build/src/structures/at_last.js"), exports);
121111
121143
  __exportStar(__webpack_require__(/*! ./case_type */ "./node_modules/@abaplint/transpiler/build/src/structures/case_type.js"), exports);
121112
121144
  __exportStar(__webpack_require__(/*! ./case */ "./node_modules/@abaplint/transpiler/build/src/structures/case.js"), exports);
121145
+ __exportStar(__webpack_require__(/*! ./catch_system_exceptions */ "./node_modules/@abaplint/transpiler/build/src/structures/catch_system_exceptions.js"), exports);
121113
121146
  __exportStar(__webpack_require__(/*! ./class_definition */ "./node_modules/@abaplint/transpiler/build/src/structures/class_definition.js"), exports);
121114
121147
  __exportStar(__webpack_require__(/*! ./class_implementation */ "./node_modules/@abaplint/transpiler/build/src/structures/class_implementation.js"), exports);
121115
121148
  __exportStar(__webpack_require__(/*! ./constants */ "./node_modules/@abaplint/transpiler/build/src/structures/constants.js"), exports);
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.67",
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.67",
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
  },