@abaplint/runtime 1.8.4 → 1.8.5

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.
@@ -23,12 +23,14 @@ function insertInternal(options) {
23
23
  }
24
24
  return true;
25
25
  };
26
- (0, read_table_1.readTable)(options.table, { withKey: compare });
27
- // @ts-ignore
28
- if (abap.builtin.sy.get().subrc.get() === 0) {
26
+ if (tableOptions.isUnique === true) {
27
+ (0, read_table_1.readTable)(options.table, { withKey: compare });
29
28
  // @ts-ignore
30
- abap.builtin.sy.get().subrc.set(4);
31
- return;
29
+ if (abap.builtin.sy.get().subrc.get() === 0) {
30
+ // @ts-ignore
31
+ abap.builtin.sy.get().subrc.set(4);
32
+ return;
33
+ }
32
34
  }
33
35
  }
34
36
  let data = options.data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "1.8.4",
3
+ "version": "1.8.5",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",