@abaplint/transpiler-cli 2.7.72 → 2.7.74

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 +8 -17
  2. package/package.json +3 -3
package/build/bundle.js CHANGED
@@ -70587,32 +70587,23 @@ class DatabaseTableTranspiler {
70587
70587
  const concat = node.concatTokens();
70588
70588
  let val = "";
70589
70589
  if (this.prefix === true) {
70590
- val = `" + abap.dbo.schemaPrefix + "\\"" + abap.dbo.tablePrefix + "`;
70591
- }
70592
- else {
70593
- val = "\"";
70590
+ val = `abap.buildDbTableName(`;
70594
70591
  }
70595
70592
  const dyn = node.findDirectExpression(abaplint.Expressions.Dynamic);
70596
70593
  if (dyn) {
70597
70594
  if (concat.startsWith("('")) {
70598
- val += concat.substring(2, concat.length - 2).toLowerCase();
70595
+ val += `"` + concat.substring(2, concat.length - 2).toLowerCase() + `"`;
70599
70596
  }
70600
70597
  else {
70601
70598
  const foo = traversal.traverse(dyn.findDirectExpression(abaplint.Expressions.FieldChain));
70602
- if (this.prefix === false) {
70603
- return foo;
70604
- }
70605
- val += "\" + " + foo.getCode() + ".get().trimEnd().toLowerCase() + \"";
70599
+ val += foo.getCode() + ".get().trimEnd().toLowerCase()";
70606
70600
  }
70607
70601
  }
70608
70602
  else {
70609
- val += concat.toLowerCase();
70603
+ val += `"` + concat.toLowerCase() + `"`;
70610
70604
  }
70611
70605
  if (this.prefix === true) {
70612
- val += "\\\"";
70613
- }
70614
- else {
70615
- val += "\"";
70606
+ val += `)`;
70616
70607
  }
70617
70608
  return chunk.appendString(val);
70618
70609
  }
@@ -72180,7 +72171,7 @@ class SQLFromSourceTranspiler {
72180
72171
  chunk.appendString(concat + " ");
72181
72172
  }
72182
72173
  else if (c.get() instanceof abaplint.Expressions.DatabaseTable) {
72183
- chunk.appendChunk(new database_table_1.DatabaseTableTranspiler().transpile(c, traversal));
72174
+ chunk.appendString(`" + ` + new database_table_1.DatabaseTableTranspiler().transpile(c, traversal).getCode() + ` + "`);
72184
72175
  chunk.appendString(" ");
72185
72176
  }
72186
72177
  else {
@@ -80872,8 +80863,8 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
80872
80863
  exports.UnknownTypesEnum = void 0;
80873
80864
  var UnknownTypesEnum;
80874
80865
  (function (UnknownTypesEnum) {
80875
- UnknownTypesEnum[UnknownTypesEnum["compileError"] = 0] = "compileError";
80876
- UnknownTypesEnum[UnknownTypesEnum["runtimeError"] = 1] = "runtimeError";
80866
+ UnknownTypesEnum["compileError"] = "compileError";
80867
+ UnknownTypesEnum["runtimeError"] = "runtimeError";
80877
80868
  })(UnknownTypesEnum || (exports.UnknownTypesEnum = UnknownTypesEnum = {}));
80878
80869
  //# sourceMappingURL=types.js.map
80879
80870
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.7.72",
3
+ "version": "2.7.74",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -26,11 +26,11 @@
26
26
  "author": "abaplint",
27
27
  "license": "MIT",
28
28
  "devDependencies": {
29
- "@abaplint/transpiler": "^2.7.72",
29
+ "@abaplint/transpiler": "^2.7.74",
30
30
  "@types/glob": "^7.2.0",
31
31
  "glob": "=7.2.0",
32
32
  "@types/progress": "^2.0.5",
33
- "@types/node": "^20.4.9",
33
+ "@types/node": "^20.4.10",
34
34
  "@abaplint/core": "^2.102.17",
35
35
  "progress": "^2.0.3",
36
36
  "webpack": "^5.88.2",