@abaplint/cli 2.113.27 → 2.113.29

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 +17 -13
  2. package/package.json +3 -3
package/build/cli.js CHANGED
@@ -37767,10 +37767,11 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
37767
37767
  exports.StructureType = void 0;
37768
37768
  const _abstract_type_1 = __webpack_require__(/*! ./_abstract_type */ "./node_modules/@abaplint/core/build/src/abap/types/basic/_abstract_type.js");
37769
37769
  class StructureType extends _abstract_type_1.AbstractType {
37770
- constructor(components, qualifiedName, ddicName) {
37770
+ constructor(components, qualifiedName, ddicName, description) {
37771
37771
  super({
37772
37772
  qualifiedName: qualifiedName,
37773
37773
  ddicName: ddicName,
37774
+ description: description,
37774
37775
  });
37775
37776
  if (components.length === 0) {
37776
37777
  throw new Error("Structure does not contain any components");
@@ -37847,9 +37848,12 @@ var TableKeyType;
37847
37848
  TableKeyType["empty"] = "EMPTY";
37848
37849
  })(TableKeyType || (exports.TableKeyType = TableKeyType = {}));
37849
37850
  class TableType extends _abstract_type_1.AbstractType {
37850
- constructor(rowType, options, qualifiedName) {
37851
+ constructor(rowType, options, qualifiedName, description) {
37851
37852
  var _a;
37852
- super({ qualifiedName: qualifiedName });
37853
+ super({
37854
+ qualifiedName: qualifiedName,
37855
+ description: description,
37856
+ });
37853
37857
  this.rowType = rowType;
37854
37858
  this.options = options;
37855
37859
  if (((_a = options.primaryKey) === null || _a === void 0 ? void 0 : _a.type) === TableAccessType.standard && options.primaryKey.isUnique === true) {
@@ -46648,7 +46652,7 @@ class DataDefinition extends _abstract_object_1.AbstractObject {
46648
46652
  }
46649
46653
  findDescription() {
46650
46654
  var _a;
46651
- const match = (_a = this.findSourceFile()) === null || _a === void 0 ? void 0 : _a.getRaw().match(/@EndUserText\.label: '([\w ]+)'/);
46655
+ const match = (_a = this.findSourceFile()) === null || _a === void 0 ? void 0 : _a.getRaw().match(/@EndUserText\.label: '([\w,.:-=#%&() ]+)'/);
46652
46656
  if (match) {
46653
46657
  return match[1];
46654
46658
  }
@@ -51509,7 +51513,7 @@ class Table extends _abstract_object_1.AbstractObject {
51509
51513
  return new Types.UnknownType("Table/Structure " + this.getName() + " does not contain any components");
51510
51514
  }
51511
51515
  reg.getDDICReferences().setUsing(this, references);
51512
- return new Types.StructureType(components, this.getName(), this.getName());
51516
+ return new Types.StructureType(components, this.getName(), this.getName(), this.getDescription());
51513
51517
  }
51514
51518
  getTableCategory() {
51515
51519
  var _a;
@@ -51688,34 +51692,34 @@ class TableType extends _abstract_object_1.AbstractObject {
51688
51692
  }
51689
51693
  else if (this.parsedXML.rowkind === "S") {
51690
51694
  const lookup = ddic.lookupTableOrView(this.parsedXML.rowtype);
51691
- type = new Types.TableType(lookup.type, tableOptions, this.getName());
51695
+ type = new Types.TableType(lookup.type, tableOptions, this.getName(), this.getDescription());
51692
51696
  if (lookup.object) {
51693
51697
  references.push({ object: lookup.object });
51694
51698
  }
51695
51699
  }
51696
51700
  else if (this.parsedXML.rowkind === "E") {
51697
51701
  const lookup = ddic.lookupDataElement(this.parsedXML.rowtype);
51698
- type = new Types.TableType(lookup.type, tableOptions, this.getName());
51702
+ type = new Types.TableType(lookup.type, tableOptions, this.getName(), this.getDescription());
51699
51703
  if (lookup.object) {
51700
51704
  references.push({ object: lookup.object });
51701
51705
  }
51702
51706
  }
51703
51707
  else if (this.parsedXML.rowkind === "L") {
51704
51708
  const lookup = ddic.lookupTableType(this.parsedXML.rowtype);
51705
- type = new Types.TableType(lookup.type, tableOptions, this.getName());
51709
+ type = new Types.TableType(lookup.type, tableOptions, this.getName(), this.getDescription());
51706
51710
  if (lookup.object) {
51707
51711
  references.push({ object: lookup.object });
51708
51712
  }
51709
51713
  }
51710
51714
  else if (this.parsedXML.rowkind === "R" && this.parsedXML.rowtype === "OBJECT") {
51711
- type = new Types.TableType(new basic_1.GenericObjectReferenceType(), tableOptions, this.getName());
51715
+ type = new Types.TableType(new basic_1.GenericObjectReferenceType(), tableOptions, this.getName(), this.getDescription());
51712
51716
  }
51713
51717
  else if (this.parsedXML.rowkind === "R" && this.parsedXML.rowtype === "DATA") {
51714
- type = new Types.TableType(new basic_1.DataReference(new Types.DataType()), tableOptions, this.getName());
51718
+ type = new Types.TableType(new basic_1.DataReference(new Types.DataType()), tableOptions, this.getName(), this.getDescription());
51715
51719
  }
51716
51720
  else if (this.parsedXML.rowkind === "R" && this.parsedXML.rowtype !== undefined) {
51717
51721
  const lookup = ddic.lookupObject(this.parsedXML.rowtype);
51718
- type = new Types.TableType(lookup.type, tableOptions, this.getName());
51722
+ type = new Types.TableType(lookup.type, tableOptions, this.getName(), this.getDescription());
51719
51723
  if (lookup.object) {
51720
51724
  references.push({ object: lookup.object });
51721
51725
  }
@@ -51731,7 +51735,7 @@ class TableType extends _abstract_object_1.AbstractObject {
51731
51735
  decimals: this.parsedXML.decimals,
51732
51736
  infoText: this.getName(),
51733
51737
  });
51734
- type = new Types.TableType(row, tableOptions, this.getName());
51738
+ type = new Types.TableType(row, tableOptions, this.getName(), this.getDescription());
51735
51739
  }
51736
51740
  }
51737
51741
  else {
@@ -52861,7 +52865,7 @@ class Registry {
52861
52865
  }
52862
52866
  static abaplintVersion() {
52863
52867
  // magic, see build script "version.sh"
52864
- return "2.113.27";
52868
+ return "2.113.29";
52865
52869
  }
52866
52870
  getDDICReferences() {
52867
52871
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.27",
3
+ "version": "2.113.29",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,12 +38,12 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.113.27",
41
+ "@abaplint/core": "^2.113.29",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",
45
45
  "@types/mocha": "^10.0.9",
46
- "@types/node": "^22.7.8",
46
+ "@types/node": "^22.7.9",
47
47
  "@types/progress": "^2.0.7",
48
48
  "chai": "^4.5.0",
49
49
  "chalk": "^5.3.0",