@abaplint/runtime 2.6.7 → 2.6.9

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.
@@ -24,7 +24,7 @@ function cp(left, right) {
24
24
  r = right.toString();
25
25
  }
26
26
  else {
27
- r = right.get().toString();
27
+ r = right.get().toString().trimEnd();
28
28
  }
29
29
  r = r.replace(/\\/g, "\\\\");
30
30
  r = r.replace(/\[/g, "\\[");
@@ -14,7 +14,7 @@ class DeleteDatabase {
14
14
  options.from = options.from.getPointer();
15
15
  }
16
16
  if (typeof table !== "string") {
17
- table = table.get();
17
+ table = table.get().trimEnd();
18
18
  }
19
19
  if (options.table) {
20
20
  for (const row of options.table.array()) {
@@ -43,7 +43,7 @@ class InsertDatabase {
43
43
  values.push(toValue(value));
44
44
  }
45
45
  if (typeof table !== "string") {
46
- table = table.get();
46
+ table = table.get().trimEnd();
47
47
  }
48
48
  const { subrc, dbcnt } = await this.context.defaultDB().insert({ table, columns, values });
49
49
  // @ts-ignore
@@ -34,7 +34,7 @@ class String {
34
34
  this.value = value.getTrimEnd();
35
35
  }
36
36
  else if (value instanceof structure_1.Structure) {
37
- this.value = value.getCharacter();
37
+ this.value = value.getCharacter().trimEnd();
38
38
  }
39
39
  else if (value instanceof packed_1.Packed) {
40
40
  const lv_sign = value.get() >= 0 ? " " : "-";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.6.7",
3
+ "version": "2.6.9",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",