@bobfrankston/rmfmail 1.1.31 → 1.1.32
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 +8 -6
- package/client/android-bootstrap.bundle.js.map +2 -2
- package/package.json +5 -5
- package/packages/mailx-imap/index.d.ts.map +1 -1
- package/packages/mailx-imap/index.js +12 -8
- package/packages/mailx-imap/index.js.map +1 -1
- package/packages/mailx-imap/index.ts +12 -9
- package/packages/mailx-imap/package-lock.json +2 -2
- package/packages/mailx-imap/package.json +1 -1
- package/packages/mailx-store-web/android-bootstrap.d.ts.map +1 -1
- package/packages/mailx-store-web/android-bootstrap.js +12 -7
- package/packages/mailx-store-web/android-bootstrap.js.map +1 -1
- package/packages/mailx-store-web/android-bootstrap.ts +12 -7
- package/packages/mailx-store-web/package.json +1 -1
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-24468 → node_modules.npmglobalize-stash-34180}/.package-lock.json +0 -0
|
@@ -10151,14 +10151,16 @@ async function syncGoogleContactsForAccount(db2, accountId, tokenProvider2) {
|
|
|
10151
10151
|
else params.set("requestSyncToken", "true");
|
|
10152
10152
|
const url = `https://people.googleapis.com/v1/people/me/connections?${params}`;
|
|
10153
10153
|
const res = await fetch(url, { headers: { Authorization: `Bearer ${token}` } });
|
|
10154
|
-
if (res.status === 410) {
|
|
10155
|
-
setContactsSyncToken(accountId, null);
|
|
10156
|
-
syncToken = "";
|
|
10157
|
-
nextPageToken = void 0;
|
|
10158
|
-
continue;
|
|
10159
|
-
}
|
|
10160
10154
|
if (!res.ok) {
|
|
10161
10155
|
const err = await res.text().catch(() => "");
|
|
10156
|
+
if (syncToken && (res.status === 410 || /EXPIRED_SYNC_TOKEN|sync token is expired/i.test(err))) {
|
|
10157
|
+
console.log(`[contacts] ${accountId}: sync token expired \u2014 clearing for full resync`);
|
|
10158
|
+
setContactsSyncToken(accountId, null);
|
|
10159
|
+
syncToken = "";
|
|
10160
|
+
nextPageToken = void 0;
|
|
10161
|
+
changed = 0;
|
|
10162
|
+
continue;
|
|
10163
|
+
}
|
|
10162
10164
|
console.error(`[contacts] API error for ${accountId}: ${res.status} ${err}`);
|
|
10163
10165
|
return changed;
|
|
10164
10166
|
}
|