@bobfrankston/rmfmail 1.0.706 → 1.0.708
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/client/android-bootstrap.bundle.js +163 -2
- package/client/android-bootstrap.bundle.js.map +2 -2
- package/client/app.bundle.js.map +2 -2
- package/client/compose/compose.bundle.js +15 -1
- package/client/compose/compose.bundle.js.map +2 -2
- package/client/compose/compose.js +25 -5
- package/client/compose/compose.js.map +1 -1
- package/client/compose/compose.ts +21 -5
- package/package.json +3 -3
- package/packages/mailx-service/index.d.ts +27 -2
- package/packages/mailx-service/index.d.ts.map +1 -1
- package/packages/mailx-service/index.js +17 -0
- package/packages/mailx-service/index.js.map +1 -1
- package/packages/mailx-service/index.ts +21 -2
- package/packages/mailx-settings/index.d.ts.map +1 -1
- package/packages/mailx-settings/index.js +11 -1
- package/packages/mailx-settings/index.js.map +1 -1
- package/packages/mailx-settings/index.ts +11 -1
- package/packages/mailx-store/parse-worker.js +17 -1
- package/packages/mailx-store/parse-worker.js.map +1 -1
- package/packages/mailx-store/parse-worker.ts +17 -1
- package/packages/mailx-store-web/package.json +1 -1
- package/packages/mailx-store-web/web-service.d.ts +88 -3
- package/packages/mailx-store-web/web-service.d.ts.map +1 -1
- package/packages/mailx-store-web/web-service.js +92 -2
- package/packages/mailx-store-web/web-service.js.map +1 -1
- package/packages/mailx-store-web/web-service.ts +110 -5
- package/packages/mailx-types/index.d.ts +1 -0
- package/packages/mailx-types/index.d.ts.map +1 -1
- package/packages/mailx-types/index.js.map +1 -1
- package/packages/mailx-types/index.ts +1 -0
- package/packages/mailx-types/mailx-api.d.ts +212 -0
- package/packages/mailx-types/mailx-api.d.ts.map +1 -0
- package/packages/mailx-types/mailx-api.js +41 -0
- package/packages/mailx-types/mailx-api.js.map +1 -0
- package/packages/mailx-types/mailx-api.ts +159 -0
- package/packages/mailx-types/package.json +1 -1
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-44928 → node_modules.npmglobalize-stash-24548}/.package-lock.json +0 -0
|
@@ -3923,14 +3923,28 @@ function waitForParentInit(maxMs) {
|
|
|
3923
3923
|
editor.onContentChange(scheduleDraftSave);
|
|
3924
3924
|
draftTimer = setInterval(saveDraft2, DRAFT_INTERVAL_MS);
|
|
3925
3925
|
let lastPolledHtml = editor.getHtml();
|
|
3926
|
+
let _pollBackoffSkips = 0;
|
|
3927
|
+
let _pollSkipsRemaining = 0;
|
|
3926
3928
|
setInterval(() => {
|
|
3927
3929
|
try {
|
|
3930
|
+
if (_pollSkipsRemaining > 0) {
|
|
3931
|
+
_pollSkipsRemaining--;
|
|
3932
|
+
return;
|
|
3933
|
+
}
|
|
3928
3934
|
const current = editor.getHtml();
|
|
3929
3935
|
if (current === lastPolledHtml) return;
|
|
3930
3936
|
lastPolledHtml = current;
|
|
3931
3937
|
markComposeDirty();
|
|
3932
3938
|
lastDraftContent = "";
|
|
3933
|
-
|
|
3939
|
+
const wasFailing = draftSaveFailed;
|
|
3940
|
+
saveDraft2().then(() => {
|
|
3941
|
+
if (!draftSaveFailed) _pollBackoffSkips = 0;
|
|
3942
|
+
}).catch(() => {
|
|
3943
|
+
});
|
|
3944
|
+
if (wasFailing || draftSaveFailed) {
|
|
3945
|
+
_pollBackoffSkips = Math.min(_pollBackoffSkips + 1, 7);
|
|
3946
|
+
_pollSkipsRemaining = _pollBackoffSkips;
|
|
3947
|
+
}
|
|
3934
3948
|
} catch {
|
|
3935
3949
|
}
|
|
3936
3950
|
}, 4e3);
|