@abraca/dabra 1.3.2 → 1.3.3
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.
|
@@ -3037,6 +3037,7 @@ var AbracadabraProvider = class AbracadabraProvider extends AbracadabraBaseProvi
|
|
|
3037
3037
|
if (origin === this) return;
|
|
3038
3038
|
if (this.offlineStore !== null && origin === this.offlineStore) return;
|
|
3039
3039
|
this.offlineStore?.persistUpdate(update).catch(() => null);
|
|
3040
|
+
if (!this.canWrite) return;
|
|
3040
3041
|
super.documentUpdateHandler(update, origin);
|
|
3041
3042
|
}
|
|
3042
3043
|
/**
|
|
@@ -3050,6 +3051,7 @@ var AbracadabraProvider = class AbracadabraProvider extends AbracadabraBaseProvi
|
|
|
3050
3051
|
* errors across async await boundaries.
|
|
3051
3052
|
*/
|
|
3052
3053
|
async flushPendingUpdates() {
|
|
3054
|
+
if (!this.canWrite) return;
|
|
3053
3055
|
const store = this.offlineStore;
|
|
3054
3056
|
if (!store) return;
|
|
3055
3057
|
const updates = await store.getPendingUpdates();
|