@use-stall/core 0.1.1 → 0.1.2

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.
package/dist/index.js CHANGED
@@ -681,7 +681,7 @@ var clear_core_db = async () => {
681
681
  "fulfillments"
682
682
  ];
683
683
  for (const table of tables) {
684
- await local_db[table].clear();
684
+ await local_db?.[table]?.clear();
685
685
  }
686
686
  return {
687
687
  cleared_tables: tables.length
package/dist/index.mjs CHANGED
@@ -614,7 +614,7 @@ var clear_core_db = async () => {
614
614
  "fulfillments"
615
615
  ];
616
616
  for (const table of tables) {
617
- await local_db[table].clear();
617
+ await local_db?.[table]?.clear();
618
618
  }
619
619
  return {
620
620
  cleared_tables: tables.length
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@use-stall/core",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "author": "Stall",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",