@abaplint/cli 2.119.22 → 2.119.23

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 +12 -13
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -47437,16 +47437,16 @@ class ABAPObject extends _abstract_object_1.AbstractObject {
47437
47437
  }
47438
47438
  }
47439
47439
  findTextsTranslations(parsed) {
47440
- var _a, _b, _c, _d, _e, _f;
47440
+ var _a, _b, _c, _d, _e, _f, _g;
47441
47441
  this.textsTranslations = [];
47442
- const values = (_c = (_b = (_a = parsed === null || parsed === void 0 ? void 0 : parsed.abapGit) === null || _a === void 0 ? void 0 : _a["asx:abap"]) === null || _b === void 0 ? void 0 : _b["asx:values"].I18N_TPOOL) === null || _c === void 0 ? void 0 : _c.item;
47442
+ const values = (_d = (_c = (_b = (_a = parsed === null || parsed === void 0 ? void 0 : 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.I18N_TPOOL) === null || _d === void 0 ? void 0 : _d.item;
47443
47443
  if (values === undefined) {
47444
47444
  return;
47445
47445
  }
47446
47446
  for (const langItem of (0, xml_utils_1.xmlToArray)(values)) {
47447
47447
  const textElements = {};
47448
- for (const item of (0, xml_utils_1.xmlToArray)((_d = langItem.TEXTPOOL) === null || _d === void 0 ? void 0 : _d.item)) {
47449
- const key = (_f = ((_e = item.KEY) !== null && _e !== void 0 ? _e : item.ID)) === null || _f === void 0 ? void 0 : _f.toUpperCase();
47448
+ for (const item of (0, xml_utils_1.xmlToArray)((_e = langItem.TEXTPOOL) === null || _e === void 0 ? void 0 : _e.item)) {
47449
+ const key = (_g = ((_f = item.KEY) !== null && _f !== void 0 ? _f : item.ID)) === null || _g === void 0 ? void 0 : _g.toUpperCase();
47450
47450
  if (key !== undefined) {
47451
47451
  textElements[key] = { entry: (0, xml_utils_1.unescape)(item.ENTRY), maxLength: parseInt(item.LENGTH, 10) };
47452
47452
  }
@@ -55378,23 +55378,22 @@ class Transaction extends _abstract_object_1.AbstractObject {
55378
55378
  return (_a = this.parsedXML) === null || _a === void 0 ? void 0 : _a.textsTranslations;
55379
55379
  }
55380
55380
  parse() {
55381
- var _a, _b, _c, _d;
55381
+ var _a, _b, _c, _d, _e, _f;
55382
55382
  if (this.parsedXML) {
55383
55383
  return { updated: false, runtime: 0 };
55384
55384
  }
55385
55385
  const start = Date.now();
55386
55386
  this.parsedXML = {};
55387
55387
  const parsed = super.parseRaw2();
55388
- if (parsed === undefined
55389
- || parsed.abapGit === undefined
55390
- || parsed.abapGit["asx:abap"]["asx:values"] === undefined) {
55388
+ const values = (_b = (_a = parsed === null || parsed === void 0 ? void 0 : parsed.abapGit) === null || _a === void 0 ? void 0 : _a["asx:abap"]) === null || _b === void 0 ? void 0 : _b["asx:values"];
55389
+ if (values === undefined) {
55391
55390
  return { updated: false, runtime: 0 };
55392
55391
  }
55393
- this.parsedXML.description = (_a = parsed.abapGit["asx:abap"]["asx:values"].TSTCT) === null || _a === void 0 ? void 0 : _a.TTEXT;
55394
- this.parsedXML.programName = (_b = parsed.abapGit["asx:abap"]["asx:values"].TSTC) === null || _b === void 0 ? void 0 : _b.PGMNA;
55395
- this.parsedXML.cinfo = (_c = parsed.abapGit["asx:abap"]["asx:values"].TSTC) === null || _c === void 0 ? void 0 : _c.CINFO;
55392
+ this.parsedXML.description = (_c = values.TSTCT) === null || _c === void 0 ? void 0 : _c.TTEXT;
55393
+ this.parsedXML.programName = (_d = values.TSTC) === null || _d === void 0 ? void 0 : _d.PGMNA;
55394
+ this.parsedXML.cinfo = (_e = values.TSTC) === null || _e === void 0 ? void 0 : _e.CINFO;
55396
55395
  this.parsedXML.textsTranslations = [];
55397
- for (const item of (0, xml_utils_1.xmlToArray)((_d = parsed.abapGit["asx:abap"]["asx:values"].I18N_TPOOL) === null || _d === void 0 ? void 0 : _d.TSTCT)) {
55396
+ for (const item of (0, xml_utils_1.xmlToArray)((_f = values.I18N_TPOOL) === null || _f === void 0 ? void 0 : _f.TSTCT)) {
55398
55397
  this.parsedXML.textsTranslations.push({ language: item.SPRSL, description: item.TTEXT });
55399
55398
  }
55400
55399
  const end = Date.now();
@@ -56457,7 +56456,7 @@ class Registry {
56457
56456
  }
56458
56457
  static abaplintVersion() {
56459
56458
  // magic, see build script "version.sh"
56460
- return "2.119.22";
56459
+ return "2.119.23";
56461
56460
  }
56462
56461
  getDDICReferences() {
56463
56462
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.119.22",
3
+ "version": "2.119.23",
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.119.22",
41
+ "@abaplint/core": "^2.119.23",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",