@abaplint/runtime 2.1.5 → 2.1.8

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.
@@ -22,6 +22,9 @@ function initial(val) {
22
22
  else if (val instanceof types_1.Time) {
23
23
  return val.get() === "000000";
24
24
  }
25
+ else if (val instanceof types_1.Character) {
26
+ return val.get().match(/^ *$/) !== null;
27
+ }
25
28
  if (typeof val === "string") {
26
29
  return val === "";
27
30
  }
@@ -3,10 +3,13 @@ export declare class Packed implements INumeric {
3
3
  private value;
4
4
  private readonly length;
5
5
  private readonly decimals;
6
+ private readonly qualifiedName;
6
7
  constructor(input?: {
7
8
  length?: number;
8
9
  decimals?: number;
10
+ qualifiedName?: string;
9
11
  });
12
+ getQualifiedName(): string | undefined;
10
13
  set(value: INumeric | number | string): void;
11
14
  getLength(): number;
12
15
  getDecimals(): number;
@@ -13,6 +13,10 @@ class Packed {
13
13
  if (input === null || input === void 0 ? void 0 : input.decimals) {
14
14
  this.decimals = input.decimals;
15
15
  }
16
+ this.qualifiedName = input === null || input === void 0 ? void 0 : input.qualifiedName;
17
+ }
18
+ getQualifiedName() {
19
+ return this.qualifiedName;
16
20
  }
17
21
  set(value) {
18
22
  if (typeof value === "number") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.1.5",
3
+ "version": "2.1.8",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",