@abaplint/runtime 2.3.35 → 2.3.37

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.
@@ -2,7 +2,7 @@ import { Context } from "../context";
2
2
  import { FieldSymbol, Structure, Table } from "../types";
3
3
  import { ICharacter } from "../types/_character";
4
4
  export interface IModifyDatabaseOptions {
5
- from?: Structure | FieldSymbol;
5
+ values?: Structure;
6
6
  table?: Table | FieldSymbol;
7
7
  }
8
8
  export declare class ModifyDatabase {
@@ -12,8 +12,8 @@ class ModifyDatabase {
12
12
  if (options.table instanceof types_1.FieldSymbol) {
13
13
  options.table = options.table.getPointer();
14
14
  }
15
- if (options.from instanceof types_1.FieldSymbol) {
16
- options.from = options.from.getPointer();
15
+ if (options.values instanceof types_1.FieldSymbol) {
16
+ options.values = options.values.getPointer();
17
17
  }
18
18
  const insert = new insert_database_1.InsertDatabase(this.context);
19
19
  const update = new update_database_1.UpdateDatabase(this.context);
@@ -25,10 +25,10 @@ class ModifyDatabase {
25
25
  }
26
26
  }
27
27
  }
28
- else if (options.from) {
29
- const subrc = await insert.insertDatabase(table, { values: options.from });
28
+ else if (options.values) {
29
+ const subrc = await insert.insertDatabase(table, { values: options.values });
30
30
  if (subrc !== 0) {
31
- await update.updateDatabase(table, { from: options.from });
31
+ await update.updateDatabase(table, { from: options.values });
32
32
  }
33
33
  }
34
34
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.3.35",
3
+ "version": "2.3.37",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",