@abaplint/transpiler-cli 2.7.154 → 2.7.155

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/bundle.js +11 -7
  2. package/package.json +5 -5
package/build/bundle.js CHANGED
@@ -24958,7 +24958,7 @@ class MethodSource {
24958
24958
  && first.get() instanceof Expressions.Dynamic
24959
24959
  && first instanceof nodes_1.ExpressionNode
24960
24960
  && ((_b = children[0]) === null || _b === void 0 ? void 0 : _b.concatTokens()) === "=>") {
24961
- const name = (_c = first.findDirectExpression(Expressions.Constant)) === null || _c === void 0 ? void 0 : _c.concatTokens().replace(/'/g, "");
24961
+ const name = (_c = first.findDirectExpression(Expressions.Constant)) === null || _c === void 0 ? void 0 : _c.concatTokens().replace(/'/g, "").replace(/`/g, "");
24962
24962
  if (name !== undefined && scope.findClassDefinition(name) === undefined) {
24963
24963
  throw new Error(`Class "${name}" not found/released`);
24964
24964
  }
@@ -38696,7 +38696,12 @@ class Config {
38696
38696
  return this.config;
38697
38697
  }
38698
38698
  readByKey(rule, key) {
38699
- return this.config["rules"][rule] ? this.config["rules"][rule][key] : undefined;
38699
+ if (this.config["rules"]) {
38700
+ return this.config["rules"][rule] ? this.config["rules"][rule][key] : undefined;
38701
+ }
38702
+ else {
38703
+ return undefined;
38704
+ }
38700
38705
  }
38701
38706
  readByRule(rule) {
38702
38707
  return this.config["rules"][rule];
@@ -50111,7 +50116,7 @@ class Registry {
50111
50116
  }
50112
50117
  static abaplintVersion() {
50113
50118
  // magic, see build script "version.sh"
50114
- return "2.105.15";
50119
+ return "2.105.16";
50115
50120
  }
50116
50121
  getDDICReferences() {
50117
50122
  return this.ddicReferences;
@@ -86902,14 +86907,13 @@ const parseXml = function(xmlData) {
86902
86907
 
86903
86908
  textData = this.saveTextToParentTag(textData, currentNode, jPath);
86904
86909
 
86910
+ let val = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true, true);
86911
+ if(val == undefined) val = "";
86912
+
86905
86913
  //cdata should be set even if it is 0 length string
86906
86914
  if(this.options.cdataPropName){
86907
- // let val = this.parseTextData(tagExp, this.options.cdataPropName, jPath + "." + this.options.cdataPropName, true, false, true);
86908
- // if(!val) val = "";
86909
86915
  currentNode.add(this.options.cdataPropName, [ { [this.options.textNodeName] : tagExp } ]);
86910
86916
  }else{
86911
- let val = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true);
86912
- if(val == undefined) val = "";
86913
86917
  currentNode.add(this.options.textNodeName, val);
86914
86918
  }
86915
86919
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.7.154",
3
+ "version": "2.7.155",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -26,14 +26,14 @@
26
26
  "author": "abaplint",
27
27
  "license": "MIT",
28
28
  "devDependencies": {
29
- "@abaplint/transpiler": "^2.7.154",
29
+ "@abaplint/transpiler": "^2.7.155",
30
30
  "@types/glob": "^8.1.0",
31
31
  "glob": "=7.2.0",
32
32
  "@types/progress": "^2.0.7",
33
- "@types/node": "^20.11.10",
34
- "@abaplint/core": "^2.105.15",
33
+ "@types/node": "^20.11.16",
34
+ "@abaplint/core": "^2.105.16",
35
35
  "progress": "^2.0.3",
36
- "webpack": "^5.90.0",
36
+ "webpack": "^5.90.1",
37
37
  "webpack-cli": "^5.1.4",
38
38
  "typescript": "^5.3.3"
39
39
  }