@abaplint/cli 2.108.11 → 2.108.13
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 +20 -8
- package/package.json +3 -3
package/build/cli.js
CHANGED
|
@@ -2980,7 +2980,7 @@ class Star {
|
|
|
2980
2980
|
return this.sta.getUsing();
|
|
2981
2981
|
}
|
|
2982
2982
|
run(r) {
|
|
2983
|
-
|
|
2983
|
+
let result = r;
|
|
2984
2984
|
try {
|
|
2985
2985
|
let res = r;
|
|
2986
2986
|
let input = [];
|
|
@@ -2990,7 +2990,13 @@ class Star {
|
|
|
2990
2990
|
if (res.length === 0) {
|
|
2991
2991
|
break;
|
|
2992
2992
|
}
|
|
2993
|
-
|
|
2993
|
+
if (res.length > 1000) {
|
|
2994
|
+
// avoid stack overflow
|
|
2995
|
+
result = result.concat(res);
|
|
2996
|
+
}
|
|
2997
|
+
else {
|
|
2998
|
+
result.push(...res);
|
|
2999
|
+
}
|
|
2994
3000
|
}
|
|
2995
3001
|
}
|
|
2996
3002
|
catch (err) {
|
|
@@ -3123,7 +3129,7 @@ class Sequence {
|
|
|
3123
3129
|
return this.list.reduce((a, c) => { return a.concat(c.getUsing()); }, []);
|
|
3124
3130
|
}
|
|
3125
3131
|
run(r) {
|
|
3126
|
-
|
|
3132
|
+
let result = [];
|
|
3127
3133
|
for (const input of r) {
|
|
3128
3134
|
let temp = [input];
|
|
3129
3135
|
let match = true;
|
|
@@ -3135,7 +3141,13 @@ class Sequence {
|
|
|
3135
3141
|
}
|
|
3136
3142
|
}
|
|
3137
3143
|
if (match === true) {
|
|
3138
|
-
|
|
3144
|
+
if (temp.length > 1000) {
|
|
3145
|
+
// avoid stack overflow
|
|
3146
|
+
result = result.concat(temp);
|
|
3147
|
+
}
|
|
3148
|
+
else {
|
|
3149
|
+
result.push(...temp);
|
|
3150
|
+
}
|
|
3139
3151
|
}
|
|
3140
3152
|
}
|
|
3141
3153
|
return result;
|
|
@@ -4607,9 +4619,9 @@ const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/co
|
|
|
4607
4619
|
const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
|
|
4608
4620
|
class CondBody extends combi_1.Expression {
|
|
4609
4621
|
getRunnable() {
|
|
4610
|
-
const when = (0, combi_1.seq)("WHEN", (0, combi_1.
|
|
4611
|
-
const elsee = (0, combi_1.seq)("ELSE", (0, combi_1.
|
|
4612
|
-
return (0, combi_1.seq)((0, combi_1.
|
|
4622
|
+
const when = (0, combi_1.seq)("WHEN", (0, combi_1.altPrio)(_1.Cond, _1.Source), "THEN", (0, combi_1.altPrio)(_1.Throw, _1.Source));
|
|
4623
|
+
const elsee = (0, combi_1.seq)("ELSE", (0, combi_1.altPrio)(_1.Throw, _1.Source));
|
|
4624
|
+
return (0, combi_1.seq)((0, combi_1.optPrio)(_1.Let), (0, combi_1.plusPrio)(when), (0, combi_1.optPrio)(elsee));
|
|
4613
4625
|
}
|
|
4614
4626
|
}
|
|
4615
4627
|
exports.CondBody = CondBody;
|
|
@@ -51630,7 +51642,7 @@ class Registry {
|
|
|
51630
51642
|
}
|
|
51631
51643
|
static abaplintVersion() {
|
|
51632
51644
|
// magic, see build script "version.sh"
|
|
51633
|
-
return "2.108.
|
|
51645
|
+
return "2.108.13";
|
|
51634
51646
|
}
|
|
51635
51647
|
getDDICReferences() {
|
|
51636
51648
|
return this.ddicReferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.108.
|
|
3
|
+
"version": "2.108.13",
|
|
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.108.
|
|
41
|
+
"@abaplint/core": "^2.108.13",
|
|
42
42
|
"@types/chai": "^4.3.16",
|
|
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.
|
|
46
|
+
"@types/node": "^20.14.0",
|
|
47
47
|
"@types/progress": "^2.0.7",
|
|
48
48
|
"chai": "^4.4.1",
|
|
49
49
|
"chalk": "^5.3.0",
|