@abaplint/cli 2.113.45 → 2.113.47

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 +16 -3
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -15696,7 +15696,7 @@ class ReadTable {
15696
15696
  const key = (0, combi_1.seq)((0, combi_1.altPrio)("WITH KEY", "WITH TABLE KEY"), (0, combi_1.alt)(expressions_1.ComponentCompareSimple, components, (0, combi_1.seq)((0, combi_1.optPrio)("="), expressions_1.Source)));
15697
15697
  const using = (0, combi_1.seq)("USING KEY", (0, combi_1.alt)(expressions_1.Field, expressions_1.Dynamic));
15698
15698
  const from = (0, combi_1.seq)("FROM", expressions_1.Source);
15699
- const perm = (0, combi_1.per)((0, combi_1.alt)(index, key, from), expressions_1.ReadTableTarget, using, comparing, "CASTING", "TRANSPORTING ALL FIELDS", (0, combi_1.seq)("TRANSPORTING", transporting_fields_1.TransportingFields), "BINARY SEARCH");
15699
+ const perm = (0, combi_1.per)((0, combi_1.alt)(index, key, from), expressions_1.ReadTableTarget, using, comparing, "CASTING", (0, combi_1.seq)("TRANSPORTING", (0, combi_1.altPrio)("ALL FIELDS", "NO FIELDS", transporting_fields_1.TransportingFields)), "BINARY SEARCH");
15700
15700
  return (0, combi_1.seq)("READ TABLE", (0, combi_1.alt)(expressions_1.SimpleSource2, (0, combi_1.ver)(version_1.Version.v740sp02, expressions_1.Source)), (0, combi_1.opt)(perm));
15701
15701
  }
15702
15702
  }
@@ -23054,9 +23054,11 @@ class TypeUtils {
23054
23054
  && this.isCharLike(source)) {
23055
23055
  return true;
23056
23056
  }
23057
+ else if (source instanceof basic_1.StructureType) {
23058
+ return this.isCharLikeStrict(source);
23059
+ }
23057
23060
  else if (source instanceof basic_1.DataReference
23058
23061
  || source instanceof basic_1.ObjectReferenceType
23059
- || source instanceof basic_1.StructureType
23060
23062
  || source instanceof basic_1.GenericObjectReferenceType) {
23061
23063
  return false;
23062
23064
  }
@@ -46794,6 +46796,17 @@ class DataDefinition extends _abstract_object_1.AbstractObject {
46794
46796
  hasParserError() {
46795
46797
  return this.parserError;
46796
46798
  }
46799
+ listKeys() {
46800
+ var _a;
46801
+ this.parse();
46802
+ const ret = [];
46803
+ for (const field of ((_a = this.parsedData) === null || _a === void 0 ? void 0 : _a.fields) || []) {
46804
+ if (field.key === true) {
46805
+ ret.push(field.name);
46806
+ }
46807
+ }
46808
+ return ret;
46809
+ }
46797
46810
  parse() {
46798
46811
  var _a, _b;
46799
46812
  if (this.isDirty() === false) {
@@ -53064,7 +53077,7 @@ class Registry {
53064
53077
  }
53065
53078
  static abaplintVersion() {
53066
53079
  // magic, see build script "version.sh"
53067
- return "2.113.45";
53080
+ return "2.113.47";
53068
53081
  }
53069
53082
  getDDICReferences() {
53070
53083
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.45",
3
+ "version": "2.113.47",
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.45",
41
+ "@abaplint/core": "^2.113.47",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",