@use-stall/core 0.0.14 → 0.0.15

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
@@ -227,8 +227,8 @@ var get_recent_sync_logs = async (props) => {
227
227
  };
228
228
  var is_sync_queue_empty = async () => {
229
229
  try {
230
- const pending_items = await local_db.sync_queue.where("status").equals("pending").toArray();
231
- return pending_items.length === 0;
230
+ const pending_items = await local_db.sync_queue.count();
231
+ return pending_items === 0;
232
232
  } catch (error) {
233
233
  console.error("Error checking sync queue status:", error);
234
234
  return false;
package/dist/index.mjs CHANGED
@@ -160,8 +160,8 @@ var get_recent_sync_logs = async (props) => {
160
160
  };
161
161
  var is_sync_queue_empty = async () => {
162
162
  try {
163
- const pending_items = await local_db.sync_queue.where("status").equals("pending").toArray();
164
- return pending_items.length === 0;
163
+ const pending_items = await local_db.sync_queue.count();
164
+ return pending_items === 0;
165
165
  } catch (error) {
166
166
  console.error("Error checking sync queue status:", error);
167
167
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@use-stall/core",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "author": "Stall",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",