@abaplint/transpiler-cli 2.7.153 → 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.
- package/build/bundle.js +17 -9
- package/package.json +5 -5
package/build/bundle.js
CHANGED
|
@@ -21481,7 +21481,7 @@ class TypeUtils {
|
|
|
21481
21481
|
else if (target instanceof basic_1.XStringType) {
|
|
21482
21482
|
return false;
|
|
21483
21483
|
}
|
|
21484
|
-
else if (target instanceof basic_1.IntegerType) {
|
|
21484
|
+
else if (target instanceof basic_1.IntegerType || target instanceof basic_1.Integer8Type) {
|
|
21485
21485
|
if (((_e = source.getAbstractTypeData()) === null || _e === void 0 ? void 0 : _e.derivedFromConstant) === true) {
|
|
21486
21486
|
return true;
|
|
21487
21487
|
}
|
|
@@ -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
|
-
|
|
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.
|
|
50119
|
+
return "2.105.16";
|
|
50115
50120
|
}
|
|
50116
50121
|
getDDICReferences() {
|
|
50117
50122
|
return this.ddicReferences;
|
|
@@ -69160,7 +69165,7 @@ class UncaughtException extends _abap_rule_1.ABAPRule {
|
|
|
69160
69165
|
return this.issues;
|
|
69161
69166
|
}
|
|
69162
69167
|
traverse(n, file) {
|
|
69163
|
-
var _a, _b, _c, _d;
|
|
69168
|
+
var _a, _b, _c, _d, _e, _f;
|
|
69164
69169
|
const get = n.get();
|
|
69165
69170
|
if (get instanceof Structures.ClassDefinition
|
|
69166
69171
|
|| get instanceof Structures.Interface) {
|
|
@@ -69212,6 +69217,10 @@ class UncaughtException extends _abap_rule_1.ABAPRule {
|
|
|
69212
69217
|
if (concat.startsWith("RAISE EXCEPTION TYPE ")) {
|
|
69213
69218
|
name = (_d = n.findFirstExpression(Expressions.ClassName)) === null || _d === void 0 ? void 0 : _d.getFirstToken().getStr().toUpperCase();
|
|
69214
69219
|
}
|
|
69220
|
+
else if (concat.startsWith("RAISE EXCEPTION NEW ")) {
|
|
69221
|
+
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();
|
|
69222
|
+
// todo: else its a normal Source, infer the type from it
|
|
69223
|
+
}
|
|
69215
69224
|
this.check(name, n, file);
|
|
69216
69225
|
}
|
|
69217
69226
|
else if (get instanceof Statements.Perform) {
|
|
@@ -86898,14 +86907,13 @@ const parseXml = function(xmlData) {
|
|
|
86898
86907
|
|
|
86899
86908
|
textData = this.saveTextToParentTag(textData, currentNode, jPath);
|
|
86900
86909
|
|
|
86910
|
+
let val = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true, true);
|
|
86911
|
+
if(val == undefined) val = "";
|
|
86912
|
+
|
|
86901
86913
|
//cdata should be set even if it is 0 length string
|
|
86902
86914
|
if(this.options.cdataPropName){
|
|
86903
|
-
// let val = this.parseTextData(tagExp, this.options.cdataPropName, jPath + "." + this.options.cdataPropName, true, false, true);
|
|
86904
|
-
// if(!val) val = "";
|
|
86905
86915
|
currentNode.add(this.options.cdataPropName, [ { [this.options.textNodeName] : tagExp } ]);
|
|
86906
86916
|
}else{
|
|
86907
|
-
let val = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true);
|
|
86908
|
-
if(val == undefined) val = "";
|
|
86909
86917
|
currentNode.add(this.options.textNodeName, val);
|
|
86910
86918
|
}
|
|
86911
86919
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.7.
|
|
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.
|
|
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.
|
|
34
|
-
"@abaplint/core": "^2.105.
|
|
33
|
+
"@types/node": "^20.11.16",
|
|
34
|
+
"@abaplint/core": "^2.105.16",
|
|
35
35
|
"progress": "^2.0.3",
|
|
36
|
-
"webpack": "^5.90.
|
|
36
|
+
"webpack": "^5.90.1",
|
|
37
37
|
"webpack-cli": "^5.1.4",
|
|
38
38
|
"typescript": "^5.3.3"
|
|
39
39
|
}
|