@abaplint/cli 2.105.14 → 2.105.16

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 -9
  2. package/package.json +4 -4
package/build/cli.js CHANGED
@@ -22532,7 +22532,7 @@ class TypeUtils {
22532
22532
  else if (target instanceof basic_1.XStringType) {
22533
22533
  return false;
22534
22534
  }
22535
- else if (target instanceof basic_1.IntegerType) {
22535
+ else if (target instanceof basic_1.IntegerType || target instanceof basic_1.Integer8Type) {
22536
22536
  if (((_e = source.getAbstractTypeData()) === null || _e === void 0 ? void 0 : _e.derivedFromConstant) === true) {
22537
22537
  return true;
22538
22538
  }
@@ -26009,7 +26009,7 @@ class MethodSource {
26009
26009
  && first.get() instanceof Expressions.Dynamic
26010
26010
  && first instanceof nodes_1.ExpressionNode
26011
26011
  && ((_b = children[0]) === null || _b === void 0 ? void 0 : _b.concatTokens()) === "=>") {
26012
- const name = (_c = first.findDirectExpression(Expressions.Constant)) === null || _c === void 0 ? void 0 : _c.concatTokens().replace(/'/g, "");
26012
+ const name = (_c = first.findDirectExpression(Expressions.Constant)) === null || _c === void 0 ? void 0 : _c.concatTokens().replace(/'/g, "").replace(/`/g, "");
26013
26013
  if (name !== undefined && scope.findClassDefinition(name) === undefined) {
26014
26014
  throw new Error(`Class "${name}" not found/released`);
26015
26015
  }
@@ -39747,7 +39747,12 @@ class Config {
39747
39747
  return this.config;
39748
39748
  }
39749
39749
  readByKey(rule, key) {
39750
- return this.config["rules"][rule] ? this.config["rules"][rule][key] : undefined;
39750
+ if (this.config["rules"]) {
39751
+ return this.config["rules"][rule] ? this.config["rules"][rule][key] : undefined;
39752
+ }
39753
+ else {
39754
+ return undefined;
39755
+ }
39751
39756
  }
39752
39757
  readByRule(rule) {
39753
39758
  return this.config["rules"][rule];
@@ -51162,7 +51167,7 @@ class Registry {
51162
51167
  }
51163
51168
  static abaplintVersion() {
51164
51169
  // magic, see build script "version.sh"
51165
- return "2.105.14";
51170
+ return "2.105.16";
51166
51171
  }
51167
51172
  getDDICReferences() {
51168
51173
  return this.ddicReferences;
@@ -70211,7 +70216,7 @@ class UncaughtException extends _abap_rule_1.ABAPRule {
70211
70216
  return this.issues;
70212
70217
  }
70213
70218
  traverse(n, file) {
70214
- var _a, _b, _c, _d;
70219
+ var _a, _b, _c, _d, _e, _f;
70215
70220
  const get = n.get();
70216
70221
  if (get instanceof Structures.ClassDefinition
70217
70222
  || get instanceof Structures.Interface) {
@@ -70263,6 +70268,10 @@ class UncaughtException extends _abap_rule_1.ABAPRule {
70263
70268
  if (concat.startsWith("RAISE EXCEPTION TYPE ")) {
70264
70269
  name = (_d = n.findFirstExpression(Expressions.ClassName)) === null || _d === void 0 ? void 0 : _d.getFirstToken().getStr().toUpperCase();
70265
70270
  }
70271
+ else if (concat.startsWith("RAISE EXCEPTION NEW ")) {
70272
+ name = (_f = (_e = n.findFirstExpression(Expressions.NewObject)) === null || _e === void 0 ? void 0 : _e.findFirstExpression(Expressions.TypeNameOrInfer)) === null || _f === void 0 ? void 0 : _f.getFirstToken().getStr().toUpperCase();
70273
+ // todo: else its a normal Source, infer the type from it
70274
+ }
70266
70275
  this.check(name, n, file);
70267
70276
  }
70268
70277
  else if (get instanceof Statements.Perform) {
@@ -75113,14 +75122,13 @@ const parseXml = function(xmlData) {
75113
75122
 
75114
75123
  textData = this.saveTextToParentTag(textData, currentNode, jPath);
75115
75124
 
75125
+ let val = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true, true);
75126
+ if(val == undefined) val = "";
75127
+
75116
75128
  //cdata should be set even if it is 0 length string
75117
75129
  if(this.options.cdataPropName){
75118
- // let val = this.parseTextData(tagExp, this.options.cdataPropName, jPath + "." + this.options.cdataPropName, true, false, true);
75119
- // if(!val) val = "";
75120
75130
  currentNode.add(this.options.cdataPropName, [ { [this.options.textNodeName] : tagExp } ]);
75121
75131
  }else{
75122
- let val = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true);
75123
- if(val == undefined) val = "";
75124
75132
  currentNode.add(this.options.textNodeName, val);
75125
75133
  }
75126
75134
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.105.14",
3
+ "version": "2.105.16",
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.105.14",
41
+ "@abaplint/core": "^2.105.16",
42
42
  "@types/chai": "^4.3.11",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",
45
45
  "@types/mocha": "^10.0.6",
46
- "@types/node": "^20.11.9",
46
+ "@types/node": "^20.11.16",
47
47
  "@types/progress": "^2.0.7",
48
48
  "chai": "^4.4.1",
49
49
  "chalk": "^5.3.0",
@@ -55,7 +55,7 @@
55
55
  "mocha": "^10.2.0",
56
56
  "progress": "^2.0.3",
57
57
  "typescript": "^5.3.3",
58
- "webpack": "^5.90.0",
58
+ "webpack": "^5.90.1",
59
59
  "webpack-cli": "^5.1.4",
60
60
  "xml-js": "^1.6.11"
61
61
  },