@abaplint/runtime 2.11.87 → 2.11.89

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.
@@ -18,6 +18,9 @@ function expandIN(fieldName, table) {
18
18
  if (row.get().sign?.get() === "I" && row.get().option?.get() === "EQ") {
19
19
  values.push(`"${fieldName}" = '` + row.get().low?.get().replace(/'/g, "''") + "'");
20
20
  }
21
+ else if (row.get().sign?.get() === "I" && row.get().option?.get() === "NE") {
22
+ values.push(`"${fieldName}" <> '` + row.get().low?.get().replace(/'/g, "''") + "'");
23
+ }
21
24
  else if (row.get().sign?.get() === "I" && row.get().option?.get() === "CP") {
22
25
  values.push(`"${fieldName}" LIKE '` + row.get().low?.get().trimEnd().replace(/'/g, "''").replace(/\*/g, "%") + "'");
23
26
  }
@@ -1,3 +1,3 @@
1
- import { FieldSymbol } from "../types";
1
+ import { Date, FieldSymbol, Packed } from "../types";
2
2
  import { ICharacter } from "../types/_character";
3
- export declare function unpack(source: ICharacter | FieldSymbol, target: ICharacter | FieldSymbol): Promise<void>;
3
+ export declare function unpack(source: ICharacter | FieldSymbol | Packed, target: ICharacter | FieldSymbol | Date): Promise<void>;
@@ -25,6 +25,9 @@ async function unpack(source, target) {
25
25
  }
26
26
  target.set(sourceValue.padStart(target.getLength(), "0"));
27
27
  }
28
+ else if (source instanceof types_1.Packed && target instanceof types_1.Date) {
29
+ target.set(source.get() + "");
30
+ }
28
31
  else {
29
32
  throw new Error("unpack, transpiler runtime todo, types");
30
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.11.87",
3
+ "version": "2.11.89",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",