@abaplint/transpiler-cli 2.11.46 → 2.11.47

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/bundle.js +15 -8
  2. package/package.json +3 -3
package/build/bundle.js CHANGED
@@ -6514,7 +6514,7 @@ class Select extends combi_1.Expression {
6514
6514
  const where = (0, combi_1.seq)("WHERE", _1.SQLCond);
6515
6515
  const offset = (0, combi_1.ver)(version_1.Version.v751, (0, combi_1.seq)("OFFSET", _1.SQLSource));
6516
6516
  const bypass = (0, combi_1.str)("BYPASSING BUFFER");
6517
- const fields = (0, combi_1.ver)(version_1.Version.v750, _1.SQLFields);
6517
+ const fields = (0, combi_1.ver)(version_1.Version.v750, _1.SQLFields, version_1.Version.OpenABAP);
6518
6518
  // todo, HINTS cannot be anywhere, need an expression dedicated for strict sql
6519
6519
  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);
6520
6520
  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);
@@ -53845,7 +53845,7 @@ class Registry {
53845
53845
  }
53846
53846
  static abaplintVersion() {
53847
53847
  // magic, see build script "version.sh"
53848
- return "2.113.184";
53848
+ return "2.113.185";
53849
53849
  }
53850
53850
  getDDICReferences() {
53851
53851
  return this.ddicReferences;
@@ -74863,7 +74863,9 @@ ENDFORM.`,
74863
74863
  continue;
74864
74864
  }
74865
74865
  const prev = statements[i - 1];
74866
- if (prev && prev.get() instanceof Statements.Return) {
74866
+ if (prev
74867
+ && prev.get() instanceof Statements.Return
74868
+ && prev.getChildren().length === 2) {
74867
74869
  if (this.conf.allowEmpty === true && statementCounter === 2) {
74868
74870
  continue;
74869
74871
  }
@@ -74874,6 +74876,7 @@ ENDFORM.`,
74874
74876
  const prevprev = statements[i - 2];
74875
74877
  if (prev && prevprev
74876
74878
  && prevprev.get() instanceof Statements.Return
74879
+ && prevprev.getChildren().length === 2
74877
74880
  && prev.get() instanceof Statements.EndIf) {
74878
74881
  const fix = edit_helper_1.EditHelper.deleteStatement(file, prevprev);
74879
74882
  issues.push(issue_1.Issue.atStatement(file, prevprev, message, this.getMetadata().key, this.getConfig().severity, fix));
@@ -103024,12 +103027,8 @@ function writeObjects(outputFiles, config, outputFolder, files) {
103024
103027
  fs.writeFileSync(outputFolder + path.sep + output.filename, contents);
103025
103028
  }
103026
103029
  }
103027
- async function run() {
103028
- console.log("Transpiler CLI");
103029
- const config = config_1.TranspilerConfig.find(process.argv[2]);
103030
+ async function build(config, files) {
103030
103031
  const libFiles = await loadLib(config);
103031
- const files = await file_operations_1.FileOperations.loadFiles(config);
103032
- console.log("\nBuilding");
103033
103032
  const t = new Transpiler.Transpiler(config.options);
103034
103033
  const reg = new abaplint.Registry();
103035
103034
  for (const f of files) {
@@ -103040,6 +103039,14 @@ async function run() {
103040
103039
  }
103041
103040
  reg.parse();
103042
103041
  const output = await t.run(reg, new Progress());
103042
+ return output;
103043
+ }
103044
+ async function run() {
103045
+ console.log("Transpiler CLI");
103046
+ const config = config_1.TranspilerConfig.find(process.argv[2]);
103047
+ const files = await file_operations_1.FileOperations.loadFiles(config);
103048
+ console.log("\nBuilding");
103049
+ const output = await build(config, files);
103043
103050
  console.log("\nOutput");
103044
103051
  const outputFolder = config.output_folder;
103045
103052
  if (!fs.existsSync(outputFolder)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.11.46",
3
+ "version": "2.11.47",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -27,8 +27,8 @@
27
27
  "author": "abaplint",
28
28
  "license": "MIT",
29
29
  "devDependencies": {
30
- "@abaplint/core": "^2.113.184",
31
- "@abaplint/transpiler": "^2.11.46",
30
+ "@abaplint/core": "^2.113.185",
31
+ "@abaplint/transpiler": "^2.11.47",
32
32
  "@types/glob": "^8.1.0",
33
33
  "@types/node": "^24.3.0",
34
34
  "@types/progress": "^2.0.7",