@abaplint/core 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.
@@ -269,7 +269,7 @@ class Star {
269
269
  return this.sta.getUsing();
270
270
  }
271
271
  run(r) {
272
- const result = r;
272
+ let result = r;
273
273
  try {
274
274
  let res = r;
275
275
  let input = [];
@@ -279,7 +279,13 @@ class Star {
279
279
  if (res.length === 0) {
280
280
  break;
281
281
  }
282
- result.push(...res);
282
+ if (res.length > 1000) {
283
+ // avoid stack overflow
284
+ result = result.concat(res);
285
+ }
286
+ else {
287
+ result.push(...res);
288
+ }
283
289
  }
284
290
  }
285
291
  catch (err) {
@@ -412,7 +418,7 @@ class Sequence {
412
418
  return this.list.reduce((a, c) => { return a.concat(c.getUsing()); }, []);
413
419
  }
414
420
  run(r) {
415
- const result = [];
421
+ let result = [];
416
422
  for (const input of r) {
417
423
  let temp = [input];
418
424
  let match = true;
@@ -424,7 +430,13 @@ class Sequence {
424
430
  }
425
431
  }
426
432
  if (match === true) {
427
- result.push(...temp);
433
+ if (temp.length > 1000) {
434
+ // avoid stack overflow
435
+ result = result.concat(temp);
436
+ }
437
+ else {
438
+ result.push(...temp);
439
+ }
428
440
  }
429
441
  }
430
442
  return result;
@@ -5,9 +5,9 @@ const combi_1 = require("../combi");
5
5
  const _1 = require(".");
6
6
  class CondBody extends combi_1.Expression {
7
7
  getRunnable() {
8
- const when = (0, combi_1.seq)("WHEN", (0, combi_1.alt)(_1.Cond, _1.Source), "THEN", (0, combi_1.alt)(_1.Source, _1.Throw));
9
- const elsee = (0, combi_1.seq)("ELSE", (0, combi_1.alt)(_1.Source, _1.Throw));
10
- return (0, combi_1.seq)((0, combi_1.opt)(_1.Let), (0, combi_1.plus)(when), (0, combi_1.opt)(elsee));
8
+ const when = (0, combi_1.seq)("WHEN", (0, combi_1.altPrio)(_1.Cond, _1.Source), "THEN", (0, combi_1.altPrio)(_1.Throw, _1.Source));
9
+ const elsee = (0, combi_1.seq)("ELSE", (0, combi_1.altPrio)(_1.Throw, _1.Source));
10
+ return (0, combi_1.seq)((0, combi_1.optPrio)(_1.Let), (0, combi_1.plusPrio)(when), (0, combi_1.optPrio)(elsee));
11
11
  }
12
12
  }
13
13
  exports.CondBody = CondBody;
@@ -65,7 +65,7 @@ class Registry {
65
65
  }
66
66
  static abaplintVersion() {
67
67
  // magic, see build script "version.sh"
68
- return "2.108.11";
68
+ return "2.108.13";
69
69
  }
70
70
  getDDICReferences() {
71
71
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.108.11",
3
+ "version": "2.108.13",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",
@@ -53,7 +53,7 @@
53
53
  "@microsoft/api-extractor": "^7.46.2",
54
54
  "@types/chai": "^4.3.16",
55
55
  "@types/mocha": "^10.0.6",
56
- "@types/node": "^20.12.13",
56
+ "@types/node": "^20.14.0",
57
57
  "chai": "^4.4.1",
58
58
  "eslint": "^8.57.0",
59
59
  "mocha": "^10.4.0",