@abaplint/runtime 2.10.19 → 2.10.20

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,18 +36,15 @@ async function deleteDatabase(table, options, context) {
36
36
  // @ts-ignore
37
37
  abap.builtin.sy.get().dbcnt.set(dbcnt);
38
38
  }
39
- else if (options.where) {
39
+ else {
40
40
  const { subrc, dbcnt } = await context.defaultDB().delete({
41
41
  table: (0, prefix_1.buildDbTableName)(table),
42
- where: options.where,
42
+ where: options.where || "",
43
43
  });
44
44
  // @ts-ignore
45
45
  abap.builtin.sy.get().subrc.set(subrc);
46
46
  // @ts-ignore
47
47
  abap.builtin.sy.get().dbcnt.set(dbcnt);
48
48
  }
49
- else {
50
- throw "deleteDatabase todo";
51
- }
52
49
  }
53
50
  //# sourceMappingURL=delete_database.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.10.19",
3
+ "version": "2.10.20",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",
@@ -29,8 +29,8 @@
29
29
  "author": "abaplint",
30
30
  "license": "MIT",
31
31
  "devDependencies": {
32
- "@types/chai": "^4.3.19",
33
- "@types/mocha": "^10.0.7",
32
+ "@types/chai": "^4.3.20",
33
+ "@types/mocha": "^10.0.8",
34
34
  "chai": "^4.5.0",
35
35
  "mocha": "^10.7.3",
36
36
  "source-map-support": "^0.5.21",