@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.cjs CHANGED
@@ -404,7 +404,10 @@ ${opts.message || this.desc}`;
404
404
  this.version = version;
405
405
  this.connection = new Promise((resolve, reject) => {
406
406
  const req = indexedDB.open(this.database, this.version);
407
- this.tables = tables.map((t) => typeof t == "object" ? t : { name: t });
407
+ this.tables = tables.map((t) => {
408
+ t = typeof t == "object" ? t : { name: t };
409
+ return { ...t, name: t.name.toString() };
410
+ });
408
411
  const tableNames = new ASet(this.tables.map((t) => t.name));
409
412
  req.onerror = () => reject(req.error);
410
413
  req.onsuccess = () => {