@abaplint/cli 2.114.9 → 2.114.10
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/cli.js +25 -9
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -54477,6 +54477,7 @@ exports.WebDynproComponentConfiguration = WebDynproComponentConfiguration;
|
|
|
54477
54477
|
|
|
54478
54478
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
54479
54479
|
exports.WebMIME = void 0;
|
|
54480
|
+
const xml_utils_1 = __webpack_require__(/*! ../xml_utils */ "./node_modules/@abaplint/core/build/src/xml_utils.js");
|
|
54480
54481
|
const _abstract_object_1 = __webpack_require__(/*! ./_abstract_object */ "./node_modules/@abaplint/core/build/src/objects/_abstract_object.js");
|
|
54481
54482
|
class WebMIME extends _abstract_object_1.AbstractObject {
|
|
54482
54483
|
getType() {
|
|
@@ -54494,6 +54495,16 @@ class WebMIME extends _abstract_object_1.AbstractObject {
|
|
|
54494
54495
|
this.parse();
|
|
54495
54496
|
return (_a = this.parsedXML) === null || _a === void 0 ? void 0 : _a.description;
|
|
54496
54497
|
}
|
|
54498
|
+
getParameter(name) {
|
|
54499
|
+
var _a;
|
|
54500
|
+
this.parse();
|
|
54501
|
+
return (_a = this.parsedXML) === null || _a === void 0 ? void 0 : _a.params[name.toLowerCase()];
|
|
54502
|
+
}
|
|
54503
|
+
getParameters() {
|
|
54504
|
+
var _a, _b;
|
|
54505
|
+
this.parse();
|
|
54506
|
+
return (_b = (_a = this.parsedXML) === null || _a === void 0 ? void 0 : _a.params) !== null && _b !== void 0 ? _b : {};
|
|
54507
|
+
}
|
|
54497
54508
|
setDirty() {
|
|
54498
54509
|
this.parsedXML = undefined;
|
|
54499
54510
|
super.setDirty();
|
|
@@ -54507,11 +54518,12 @@ class WebMIME extends _abstract_object_1.AbstractObject {
|
|
|
54507
54518
|
return undefined;
|
|
54508
54519
|
}
|
|
54509
54520
|
parse() {
|
|
54521
|
+
var _a;
|
|
54510
54522
|
if (this.parsedXML) {
|
|
54511
54523
|
return { updated: false, runtime: 0 };
|
|
54512
54524
|
}
|
|
54513
54525
|
const start = Date.now();
|
|
54514
|
-
this.parsedXML = {};
|
|
54526
|
+
this.parsedXML = { params: {} };
|
|
54515
54527
|
const parsed = super.parseRaw2();
|
|
54516
54528
|
if (parsed === undefined
|
|
54517
54529
|
|| parsed.abapGit === undefined
|
|
@@ -54519,6 +54531,9 @@ class WebMIME extends _abstract_object_1.AbstractObject {
|
|
|
54519
54531
|
return { updated: false, runtime: 0 };
|
|
54520
54532
|
}
|
|
54521
54533
|
this.parsedXML.description = parsed.abapGit["asx:abap"]["asx:values"].TEXT;
|
|
54534
|
+
for (const param of (0, xml_utils_1.xmlToArray)((_a = parsed.abapGit["asx:abap"]["asx:values"].PARAMS) === null || _a === void 0 ? void 0 : _a.WWWPARAMS)) {
|
|
54535
|
+
this.parsedXML.params[param.NAME.toLowerCase()] = param.VALUE;
|
|
54536
|
+
}
|
|
54522
54537
|
const end = Date.now();
|
|
54523
54538
|
return { updated: true, runtime: end - start };
|
|
54524
54539
|
}
|
|
@@ -55050,7 +55065,7 @@ class Registry {
|
|
|
55050
55065
|
}
|
|
55051
55066
|
static abaplintVersion() {
|
|
55052
55067
|
// magic, see build script "version.sh"
|
|
55053
|
-
return "2.114.
|
|
55068
|
+
return "2.114.10";
|
|
55054
55069
|
}
|
|
55055
55070
|
getDDICReferences() {
|
|
55056
55071
|
return this.ddicReferences;
|
|
@@ -75680,7 +75695,7 @@ class UncaughtException extends _abap_rule_1.ABAPRule {
|
|
|
75680
75695
|
return this.issues;
|
|
75681
75696
|
}
|
|
75682
75697
|
traverse(n, file) {
|
|
75683
|
-
var _a, _b, _c, _d, _e
|
|
75698
|
+
var _a, _b, _c, _d, _e;
|
|
75684
75699
|
const get = n.get();
|
|
75685
75700
|
if (get instanceof Structures.ClassDefinition
|
|
75686
75701
|
|| get instanceof Structures.Interface) {
|
|
@@ -75695,13 +75710,14 @@ class UncaughtException extends _abap_rule_1.ABAPRule {
|
|
|
75695
75710
|
this.traverse(c, file);
|
|
75696
75711
|
}
|
|
75697
75712
|
this.sinked = previous;
|
|
75698
|
-
for (const
|
|
75699
|
-
|
|
75713
|
+
for (const catchStructure of n.findDirectStructures(Structures.Catch)) {
|
|
75714
|
+
for (const c of catchStructure.getChildren()) {
|
|
75715
|
+
this.traverse(c, file);
|
|
75716
|
+
}
|
|
75700
75717
|
}
|
|
75701
|
-
for (const c of ((
|
|
75718
|
+
for (const c of ((_b = n.findDirectStructure(Structures.Cleanup)) === null || _b === void 0 ? void 0 : _b.getChildren()) || []) {
|
|
75702
75719
|
this.traverse(c, file);
|
|
75703
75720
|
}
|
|
75704
|
-
return;
|
|
75705
75721
|
}
|
|
75706
75722
|
else {
|
|
75707
75723
|
for (const c of n.getChildren()) {
|
|
@@ -75730,10 +75746,10 @@ class UncaughtException extends _abap_rule_1.ABAPRule {
|
|
|
75730
75746
|
let name = undefined;
|
|
75731
75747
|
const concat = n.concatTokens().toUpperCase();
|
|
75732
75748
|
if (concat.startsWith("RAISE EXCEPTION TYPE ")) {
|
|
75733
|
-
name = (
|
|
75749
|
+
name = (_c = n.findFirstExpression(Expressions.ClassName)) === null || _c === void 0 ? void 0 : _c.getFirstToken().getStr().toUpperCase();
|
|
75734
75750
|
}
|
|
75735
75751
|
else if (concat.startsWith("RAISE EXCEPTION NEW ")) {
|
|
75736
|
-
name = (
|
|
75752
|
+
name = (_e = (_d = n.findFirstExpression(Expressions.NewObject)) === null || _d === void 0 ? void 0 : _d.findFirstExpression(Expressions.TypeNameOrInfer)) === null || _e === void 0 ? void 0 : _e.getFirstToken().getStr().toUpperCase();
|
|
75737
75753
|
// todo: else its a normal Source, infer the type from it
|
|
75738
75754
|
}
|
|
75739
75755
|
this.check(name, n, file);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.114.
|
|
3
|
+
"version": "2.114.10",
|
|
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.114.
|
|
41
|
+
"@abaplint/core": "^2.114.10",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/minimist": "^1.2.5",
|
|
44
44
|
"@types/mocha": "^10.0.10",
|