@abaplint/cli 2.99.2 → 2.99.3

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 +9 -1
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -20599,6 +20599,9 @@ class CurrentScope {
20599
20599
  return undefined;
20600
20600
  }
20601
20601
  const typePoolName = name.split("_")[0];
20602
+ if (typePoolName.length !== 4) {
20603
+ return undefined;
20604
+ }
20602
20605
  const typePool = this.reg.getObject("TYPE", typePoolName);
20603
20606
  if (typePool === undefined) {
20604
20607
  return undefined;
@@ -20613,6 +20616,11 @@ class CurrentScope {
20613
20616
  return undefined;
20614
20617
  }
20615
20618
  const typePoolName = name.split("_")[0];
20619
+ if (typePoolName.length !== 4 || new ddic_1.DDIC(this.reg).lookupNoVoid(name) !== undefined) {
20620
+ // this is tricky, it should not do recursion when parsing the type pool itself,
20621
+ // think about DTEL ABAP_ENCOD vs TYPE ABAP
20622
+ return undefined;
20623
+ }
20616
20624
  const typePool = this.reg.getObject("TYPE", typePoolName);
20617
20625
  if (typePool === undefined) {
20618
20626
  return undefined;
@@ -47547,7 +47555,7 @@ class Registry {
47547
47555
  }
47548
47556
  static abaplintVersion() {
47549
47557
  // magic, see build script "version.sh"
47550
- return "2.99.2";
47558
+ return "2.99.3";
47551
47559
  }
47552
47560
  getDDICReferences() {
47553
47561
  return this.references;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.99.2",
3
+ "version": "2.99.3",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "bin": {
6
6
  "abaplint": "./abaplint"
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "homepage": "https://abaplint.org",
39
39
  "devDependencies": {
40
- "@abaplint/core": "^2.99.2",
40
+ "@abaplint/core": "^2.99.3",
41
41
  "@types/chai": "^4.3.5",
42
42
  "@types/glob": "^7.2.0",
43
43
  "@types/minimist": "^1.2.2",