@abaplint/cli 2.115.11 → 2.115.13

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/cli.js +20 -3
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -10012,13 +10012,14 @@ class StatementParser {
10012
10012
  lazyUnknown(wa) {
10013
10013
  const result = [];
10014
10014
  for (let statement of wa.statements) {
10015
- // dont use CALL METHOD, when executing lazy, it easily gives a Move for the last statment if lazy logic is evaluated
10015
+ // dont use CALL METHOD, when executing lazy, it easily gives a Move for the last statement if lazy logic is evaluated
10016
10016
  if (statement.get() instanceof _statement_1.Unknown) {
10017
10017
  const concat = statement.concatTokens().toUpperCase();
10018
10018
  if (concat.startsWith("CALL METHOD ") === false
10019
10019
  && concat.startsWith("RAISE EXCEPTION TYPE ") === false
10020
10020
  && concat.startsWith("READ TABLE ") === false
10021
10021
  && concat.startsWith("LOOP AT ") === false
10022
+ && concat.startsWith("SELECT SINGLE ") === false
10022
10023
  && concat.startsWith("CALL FUNCTION ") === false) {
10023
10024
  for (const { first, second } of this.buildSplits(statement.getTokens())) {
10024
10025
  if (second.length === 1) {
@@ -40195,7 +40196,7 @@ exports.FormDefinition = FormDefinition;
40195
40196
  "use strict";
40196
40197
 
40197
40198
  Object.defineProperty(exports, "__esModule", ({ value: true }));
40198
- exports.FunctionModuleDefinition = exports.FunctionModuleParameterDirection = void 0;
40199
+ exports.FunctionModuleDefinition = exports.FunctionModuleType = exports.FunctionModuleParameterDirection = void 0;
40199
40200
  const xml_utils_1 = __webpack_require__(/*! ../../xml_utils */ "./node_modules/@abaplint/core/build/src/xml_utils.js");
40200
40201
  var FunctionModuleParameterDirection;
40201
40202
  (function (FunctionModuleParameterDirection) {
@@ -40204,6 +40205,12 @@ var FunctionModuleParameterDirection;
40204
40205
  FunctionModuleParameterDirection["changing"] = "changing";
40205
40206
  FunctionModuleParameterDirection["tables"] = "tables";
40206
40207
  })(FunctionModuleParameterDirection || (exports.FunctionModuleParameterDirection = FunctionModuleParameterDirection = {}));
40208
+ var FunctionModuleType;
40209
+ (function (FunctionModuleType) {
40210
+ FunctionModuleType["regular"] = "regular";
40211
+ FunctionModuleType["remote"] = "remoteEnabled";
40212
+ FunctionModuleType["update"] = "update";
40213
+ })(FunctionModuleType || (exports.FunctionModuleType = FunctionModuleType = {}));
40207
40214
  class FunctionModuleDefinition {
40208
40215
  constructor(data) {
40209
40216
  this.parse(data);
@@ -40211,6 +40218,9 @@ class FunctionModuleDefinition {
40211
40218
  getParameters() {
40212
40219
  return this.parameters;
40213
40220
  }
40221
+ getModuleType() {
40222
+ return this.moduleType;
40223
+ }
40214
40224
  getDescription() {
40215
40225
  return this.description;
40216
40226
  }
@@ -40225,6 +40235,13 @@ class FunctionModuleDefinition {
40225
40235
  this.name = data.FUNCNAME;
40226
40236
  this.description = data.SHORT_TEXT;
40227
40237
  this.parameters = [];
40238
+ this.moduleType = FunctionModuleType.regular;
40239
+ if (data.REMOTE_CALL === "R") {
40240
+ this.moduleType = FunctionModuleType.remote;
40241
+ }
40242
+ else if (data.UPDATE_TASK !== undefined) {
40243
+ this.moduleType = FunctionModuleType.update;
40244
+ }
40228
40245
  if (data.IMPORT) {
40229
40246
  for (const param of (0, xml_utils_1.xmlToArray)(data.IMPORT.RSIMP)) {
40230
40247
  if (param.PARAMETER === undefined) {
@@ -55315,7 +55332,7 @@ class Registry {
55315
55332
  }
55316
55333
  static abaplintVersion() {
55317
55334
  // magic, see build script "version.sh"
55318
- return "2.115.11";
55335
+ return "2.115.13";
55319
55336
  }
55320
55337
  getDDICReferences() {
55321
55338
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.115.11",
3
+ "version": "2.115.13",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.115.11",
41
+ "@abaplint/core": "^2.115.13",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",