edmaxlabs-core 1.3.7 → 1.4.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 +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1848,7 +1848,7 @@ replaceTraps((oldTraps) => ({
|
|
|
1848
1848
|
var Persistence = class {
|
|
1849
1849
|
constructor(appName = "default") {
|
|
1850
1850
|
this.appName = appName;
|
|
1851
|
-
this.dbPromise = openDB(`
|
|
1851
|
+
this.dbPromise = openDB(`edmaxlabs_storage_${appName}`, 1, {
|
|
1852
1852
|
upgrade(app, oldVersion) {
|
|
1853
1853
|
if (oldVersion < 1) {
|
|
1854
1854
|
if (!app.objectStoreNames.contains("docs")) {
|
|
@@ -1888,7 +1888,7 @@ var Persistence = class {
|
|
|
1888
1888
|
}
|
|
1889
1889
|
if (error.name === "VersionError") {
|
|
1890
1890
|
console.error("[EdmaxLabs] IndexedDB version conflict - clearing and retrying");
|
|
1891
|
-
indexedDB.deleteDatabase(`
|
|
1891
|
+
indexedDB.deleteDatabase(`edmaxlabs_storage_${appName}`);
|
|
1892
1892
|
throw error;
|
|
1893
1893
|
}
|
|
1894
1894
|
throw error;
|
|
@@ -1909,8 +1909,8 @@ var Persistence = class {
|
|
|
1909
1909
|
}
|
|
1910
1910
|
if (error.name === "VersionError") {
|
|
1911
1911
|
console.warn("[EdmaxLabs] IndexedDB version error - attempting recovery");
|
|
1912
|
-
indexedDB.deleteDatabase(`
|
|
1913
|
-
this.dbPromise = openDB(`
|
|
1912
|
+
indexedDB.deleteDatabase(`edmaxlabs_storage_${this.appName}`);
|
|
1913
|
+
this.dbPromise = openDB(`edmaxlabs_storage_${this.appName}`, 1, {
|
|
1914
1914
|
upgrade(app, oldVersion) {
|
|
1915
1915
|
if (oldVersion < 1) {
|
|
1916
1916
|
if (!app.objectStoreNames.contains("docs")) {
|