@abaplint/runtime 2.3.95 → 2.3.97

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.
@@ -36,6 +36,9 @@ function readTable(table, options) {
36
36
  if (options.from instanceof types_1.FieldSymbol) {
37
37
  options.from = options.from.getPointer();
38
38
  }
39
+ if (table instanceof types_1.FieldSymbol) {
40
+ table = table.getPointer();
41
+ }
39
42
  if (table instanceof types_1.Table && options.from instanceof types_1.Structure) {
40
43
  const keys = (_b = (_a = table.getOptions()) === null || _a === void 0 ? void 0 : _a.primaryKey) === null || _b === void 0 ? void 0 : _b.keyFields;
41
44
  const isStructured = arr[0] instanceof types_1.Structure;
@@ -5,6 +5,7 @@ const _parse_1 = require("../operators/_parse");
5
5
  const throw_error_1 = require("../throw_error");
6
6
  const character_1 = require("./character");
7
7
  const integer_1 = require("./integer");
8
+ const structure_1 = require("./structure");
8
9
  class String {
9
10
  constructor(input) {
10
11
  this.value = "";
@@ -24,6 +25,9 @@ class String {
24
25
  // replace trailing blanks if the source is a Character string
25
26
  this.value = value.getTrimEnd();
26
27
  }
28
+ else if (value instanceof structure_1.Structure) {
29
+ this.value = value.getCharacter();
30
+ }
27
31
  else if (value instanceof integer_1.Integer) {
28
32
  const lv_sign = (parseInt(value.get(), 10) >= 0) ? " " : "-";
29
33
  this.value = value.get() + lv_sign;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.3.95",
3
+ "version": "2.3.97",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",