edmaxlabs-core 1.3.7 → 1.4.8
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/README.md +3 -6
- 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.mjs
CHANGED
|
@@ -1816,7 +1816,7 @@ replaceTraps((oldTraps) => ({
|
|
|
1816
1816
|
var Persistence = class {
|
|
1817
1817
|
constructor(appName = "default") {
|
|
1818
1818
|
this.appName = appName;
|
|
1819
|
-
this.dbPromise = openDB(`
|
|
1819
|
+
this.dbPromise = openDB(`edmaxlabs_storage_${appName}`, 1, {
|
|
1820
1820
|
upgrade(app, oldVersion) {
|
|
1821
1821
|
if (oldVersion < 1) {
|
|
1822
1822
|
if (!app.objectStoreNames.contains("docs")) {
|
|
@@ -1856,7 +1856,7 @@ var Persistence = class {
|
|
|
1856
1856
|
}
|
|
1857
1857
|
if (error.name === "VersionError") {
|
|
1858
1858
|
console.error("[EdmaxLabs] IndexedDB version conflict - clearing and retrying");
|
|
1859
|
-
indexedDB.deleteDatabase(`
|
|
1859
|
+
indexedDB.deleteDatabase(`edmaxlabs_storage_${appName}`);
|
|
1860
1860
|
throw error;
|
|
1861
1861
|
}
|
|
1862
1862
|
throw error;
|
|
@@ -1877,8 +1877,8 @@ var Persistence = class {
|
|
|
1877
1877
|
}
|
|
1878
1878
|
if (error.name === "VersionError") {
|
|
1879
1879
|
console.warn("[EdmaxLabs] IndexedDB version error - attempting recovery");
|
|
1880
|
-
indexedDB.deleteDatabase(`
|
|
1881
|
-
this.dbPromise = openDB(`
|
|
1880
|
+
indexedDB.deleteDatabase(`edmaxlabs_storage_${this.appName}`);
|
|
1881
|
+
this.dbPromise = openDB(`edmaxlabs_storage_${this.appName}`, 1, {
|
|
1882
1882
|
upgrade(app, oldVersion) {
|
|
1883
1883
|
if (oldVersion < 1) {
|
|
1884
1884
|
if (!app.objectStoreNames.contains("docs")) {
|