@abaplint/cli 2.113.184 → 2.113.185

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/cli.js +6 -3
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -7618,7 +7618,7 @@ class Select extends combi_1.Expression {
7618
7618
  const where = (0, combi_1.seq)("WHERE", _1.SQLCond);
7619
7619
  const offset = (0, combi_1.ver)(version_1.Version.v751, (0, combi_1.seq)("OFFSET", _1.SQLSource));
7620
7620
  const bypass = (0, combi_1.str)("BYPASSING BUFFER");
7621
- const fields = (0, combi_1.ver)(version_1.Version.v750, _1.SQLFields);
7621
+ const fields = (0, combi_1.ver)(version_1.Version.v750, _1.SQLFields, version_1.Version.OpenABAP);
7622
7622
  // todo, HINTS cannot be anywhere, need an expression dedicated for strict sql
7623
7623
  const perm = (0, combi_1.per)(_1.SQLFrom, into, _1.SQLForAllEntries, where, _1.SQLOrderBy, sql_up_to_1.SQLUpTo, offset, _1.SQLClient, _1.SQLHaving, bypass, sql_group_by_1.SQLGroupBy, fields, _1.DatabaseConnection, _1.SQLHints);
7624
7624
  const permSingle = (0, combi_1.per)(_1.SQLFrom, (0, combi_1.altPrio)(sql_into_structure_1.SQLIntoStructure, _1.SQLIntoList), where, _1.SQLClient, bypass, sql_group_by_1.SQLGroupBy, fields, _1.DatabaseConnection, _1.SQLHints);
@@ -54949,7 +54949,7 @@ class Registry {
54949
54949
  }
54950
54950
  static abaplintVersion() {
54951
54951
  // magic, see build script "version.sh"
54952
- return "2.113.184";
54952
+ return "2.113.185";
54953
54953
  }
54954
54954
  getDDICReferences() {
54955
54955
  return this.ddicReferences;
@@ -75967,7 +75967,9 @@ ENDFORM.`,
75967
75967
  continue;
75968
75968
  }
75969
75969
  const prev = statements[i - 1];
75970
- if (prev && prev.get() instanceof Statements.Return) {
75970
+ if (prev
75971
+ && prev.get() instanceof Statements.Return
75972
+ && prev.getChildren().length === 2) {
75971
75973
  if (this.conf.allowEmpty === true && statementCounter === 2) {
75972
75974
  continue;
75973
75975
  }
@@ -75978,6 +75980,7 @@ ENDFORM.`,
75978
75980
  const prevprev = statements[i - 2];
75979
75981
  if (prev && prevprev
75980
75982
  && prevprev.get() instanceof Statements.Return
75983
+ && prevprev.getChildren().length === 2
75981
75984
  && prev.get() instanceof Statements.EndIf) {
75982
75985
  const fix = edit_helper_1.EditHelper.deleteStatement(file, prevprev);
75983
75986
  issues.push(issue_1.Issue.atStatement(file, prevprev, message, this.getMetadata().key, this.getConfig().severity, fix));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.184",
3
+ "version": "2.113.185",
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.113.184",
41
+ "@abaplint/core": "^2.113.185",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",