@abaplint/cli 2.113.1 → 2.113.2

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 +59 -27
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -44892,6 +44892,43 @@ exports.AbstractObject = AbstractObject;
44892
44892
 
44893
44893
  /***/ }),
44894
44894
 
44895
+ /***/ "./node_modules/@abaplint/core/build/src/objects/_dynpros.js":
44896
+ /*!*******************************************************************!*\
44897
+ !*** ./node_modules/@abaplint/core/build/src/objects/_dynpros.js ***!
44898
+ \*******************************************************************/
44899
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
44900
+
44901
+ "use strict";
44902
+
44903
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
44904
+ exports.parseDynpros = parseDynpros;
44905
+ const xml_utils_1 = __webpack_require__(/*! ../xml_utils */ "./node_modules/@abaplint/core/build/src/xml_utils.js");
44906
+ function parseDynpros(parsed) {
44907
+ var _a, _b, _c, _d;
44908
+ const dynpros = [];
44909
+ const xmlDynpros = (_c = (_b = (_a = parsed.abapGit) === null || _a === void 0 ? void 0 : _a["asx:abap"]) === null || _b === void 0 ? void 0 : _b["asx:values"]) === null || _c === void 0 ? void 0 : _c.DYNPROS;
44910
+ if (xmlDynpros !== undefined) {
44911
+ for (const d of (0, xml_utils_1.xmlToArray)(xmlDynpros.item)) {
44912
+ const fields = [];
44913
+ for (const f of (0, xml_utils_1.xmlToArray)((_d = d.FIELDS) === null || _d === void 0 ? void 0 : _d.RPY_DYFATC)) {
44914
+ fields.push({
44915
+ name: f.NAME,
44916
+ type: f.TYPE,
44917
+ length: f.LENGTH,
44918
+ });
44919
+ }
44920
+ dynpros.push({
44921
+ number: d.HEADER.SCREEN,
44922
+ fields: fields,
44923
+ });
44924
+ }
44925
+ }
44926
+ return dynpros;
44927
+ }
44928
+ //# sourceMappingURL=_dynpros.js.map
44929
+
44930
+ /***/ }),
44931
+
44895
44932
  /***/ "./node_modules/@abaplint/core/build/src/objects/_unknown_object.js":
44896
44933
  /*!**************************************************************************!*\
44897
44934
  !*** ./node_modules/@abaplint/core/build/src/objects/_unknown_object.js ***!
@@ -47295,18 +47332,23 @@ const _abap_object_1 = __webpack_require__(/*! ./_abap_object */ "./node_modules
47295
47332
  const types_1 = __webpack_require__(/*! ../abap/types */ "./node_modules/@abaplint/core/build/src/abap/types/index.js");
47296
47333
  const xml_utils_1 = __webpack_require__(/*! ../xml_utils */ "./node_modules/@abaplint/core/build/src/xml_utils.js");
47297
47334
  const fast_xml_parser_1 = __webpack_require__(/*! fast-xml-parser */ "./node_modules/fast-xml-parser/src/fxp.js");
47335
+ const _dynpros_1 = __webpack_require__(/*! ./_dynpros */ "./node_modules/@abaplint/core/build/src/objects/_dynpros.js");
47298
47336
  class FunctionGroup extends _abap_object_1.ABAPObject {
47299
47337
  constructor() {
47300
47338
  super(...arguments);
47301
47339
  this.includes = undefined;
47302
47340
  this.modules = undefined;
47341
+ this.description = undefined;
47342
+ this.dynpros = undefined;
47303
47343
  }
47304
47344
  getType() {
47305
47345
  return "FUGR";
47306
47346
  }
47307
47347
  getDescription() {
47308
- // todo
47309
- return undefined;
47348
+ if (this.description === undefined) {
47349
+ this.parseXML();
47350
+ }
47351
+ return this.description;
47310
47352
  }
47311
47353
  setDirty() {
47312
47354
  super.setDirty();
@@ -47319,6 +47361,12 @@ class FunctionGroup extends _abap_object_1.ABAPObject {
47319
47361
  allowNamespace: true,
47320
47362
  };
47321
47363
  }
47364
+ getDynpros() {
47365
+ if (this.dynpros === undefined) {
47366
+ this.parseXML();
47367
+ }
47368
+ return this.dynpros || [];
47369
+ }
47322
47370
  getSequencedFiles() {
47323
47371
  const main = this.getMainABAPFile();
47324
47372
  if (main === undefined) {
@@ -47420,22 +47468,24 @@ class FunctionGroup extends _abap_object_1.ABAPObject {
47420
47468
  }
47421
47469
  /////////////////////////////////
47422
47470
  parseXML() {
47423
- var _a, _b;
47471
+ var _a, _b, _c;
47424
47472
  this.includes = [];
47425
47473
  this.modules = [];
47426
47474
  const parsed = this.parseRaw2();
47427
47475
  if (parsed === undefined) {
47428
47476
  return;
47429
47477
  }
47478
+ this.description = (_a = parsed.abapGit["asx:abap"]["asx:values"]) === null || _a === void 0 ? void 0 : _a.AREAT;
47479
+ this.dynpros = (0, _dynpros_1.parseDynpros)(parsed);
47430
47480
  // INCLUDES
47431
- const includes = (_a = parsed.abapGit["asx:abap"]["asx:values"]) === null || _a === void 0 ? void 0 : _a.INCLUDES;
47481
+ const includes = (_b = parsed.abapGit["asx:abap"]["asx:values"]) === null || _b === void 0 ? void 0 : _b.INCLUDES;
47432
47482
  if (includes !== undefined) {
47433
47483
  for (const i of (0, xml_utils_1.xmlToArray)(includes.SOBJ_NAME)) {
47434
47484
  this.includes.push(i);
47435
47485
  }
47436
47486
  }
47437
47487
  // FUNCTION MODULES
47438
- const functions = (_b = parsed.abapGit["asx:abap"]["asx:values"]) === null || _b === void 0 ? void 0 : _b.FUNCTIONS;
47488
+ const functions = (_c = parsed.abapGit["asx:abap"]["asx:values"]) === null || _c === void 0 ? void 0 : _c.FUNCTIONS;
47439
47489
  for (const module of (0, xml_utils_1.xmlToArray)(functions === null || functions === void 0 ? void 0 : functions.item)) {
47440
47490
  this.modules.push(new types_1.FunctionModuleDefinition(module));
47441
47491
  }
@@ -49794,7 +49844,7 @@ exports.PersonalizationObject = PersonalizationObject;
49794
49844
  Object.defineProperty(exports, "__esModule", ({ value: true }));
49795
49845
  exports.Program = void 0;
49796
49846
  const _abap_object_1 = __webpack_require__(/*! ./_abap_object */ "./node_modules/@abaplint/core/build/src/objects/_abap_object.js");
49797
- const xml_utils_1 = __webpack_require__(/*! ../xml_utils */ "./node_modules/@abaplint/core/build/src/xml_utils.js");
49847
+ const _dynpros_1 = __webpack_require__(/*! ./_dynpros */ "./node_modules/@abaplint/core/build/src/objects/_dynpros.js");
49798
49848
  class Program extends _abap_object_1.ABAPObject {
49799
49849
  getType() {
49800
49850
  return "PROG";
@@ -49830,11 +49880,10 @@ class Program extends _abap_object_1.ABAPObject {
49830
49880
  }
49831
49881
  getDynpros() {
49832
49882
  this.parseXML();
49833
- return this.parsedXML.dynpros;
49883
+ return this.parsedXML.dynpros || [];
49834
49884
  }
49835
49885
  ////////////////////////////
49836
49886
  parseXML() {
49837
- var _a, _b, _c, _d;
49838
49887
  if (this.parsedXML !== undefined) {
49839
49888
  return;
49840
49889
  }
@@ -49848,24 +49897,7 @@ class Program extends _abap_object_1.ABAPObject {
49848
49897
  };
49849
49898
  return;
49850
49899
  }
49851
- const dynpros = [];
49852
- const xmlDynpros = (_c = (_b = (_a = parsed.abapGit) === null || _a === void 0 ? void 0 : _a["asx:abap"]) === null || _b === void 0 ? void 0 : _b["asx:values"]) === null || _c === void 0 ? void 0 : _c.DYNPROS;
49853
- if (xmlDynpros !== undefined) {
49854
- for (const d of (0, xml_utils_1.xmlToArray)(xmlDynpros.item)) {
49855
- const fields = [];
49856
- for (const f of (0, xml_utils_1.xmlToArray)((_d = d.FIELDS) === null || _d === void 0 ? void 0 : _d.RPY_DYFATC)) {
49857
- fields.push({
49858
- name: f.NAME,
49859
- type: f.TYPE,
49860
- length: f.LENGTH,
49861
- });
49862
- }
49863
- dynpros.push({
49864
- number: d.HEADER.SCREEN,
49865
- fields: fields,
49866
- });
49867
- }
49868
- }
49900
+ const dynpros = (0, _dynpros_1.parseDynpros)(parsed);
49869
49901
  this.parsedXML = {
49870
49902
  isInclude: file ? file.getRaw().includes("<SUBC>I</SUBC>") : false,
49871
49903
  isModulePool: file ? file.getRaw().includes("<SUBC>M</SUBC>") : false,
@@ -52642,7 +52674,7 @@ class Registry {
52642
52674
  }
52643
52675
  static abaplintVersion() {
52644
52676
  // magic, see build script "version.sh"
52645
- return "2.113.1";
52677
+ return "2.113.2";
52646
52678
  }
52647
52679
  getDDICReferences() {
52648
52680
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.1",
3
+ "version": "2.113.2",
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.113.1",
41
+ "@abaplint/core": "^2.113.2",
42
42
  "@types/chai": "^4.3.19",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",