@ztimson/utils 0.25.6 → 0.25.7

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.mjs CHANGED
@@ -400,7 +400,10 @@ class Database {
400
400
  this.version = version;
401
401
  this.connection = new Promise((resolve, reject) => {
402
402
  const req = indexedDB.open(this.database, this.version);
403
- this.tables = tables.map((t) => typeof t == "object" ? t : { name: t });
403
+ this.tables = tables.map((t) => {
404
+ t = typeof t == "object" ? t : { name: t };
405
+ return { ...t, name: t.name.toString() };
406
+ });
404
407
  const tableNames = new ASet(this.tables.map((t) => t.name));
405
408
  req.onerror = () => reject(req.error);
406
409
  req.onsuccess = () => {