@bobfrankston/gcards 0.1.18 → 0.1.19
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/gcards.code-workspace +33 -0
- package/gcards.ts +11 -2
- package/package.json +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"folders": [
|
|
3
|
+
{
|
|
4
|
+
"path": "."
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"path": "../../../projects/OAuth/OauthSupport"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"settings": {
|
|
11
|
+
"workbench.colorTheme": "Visual Studio 2019 Dark",
|
|
12
|
+
"workbench.colorCustomizations": {
|
|
13
|
+
"activityBar.activeBackground": "#0ae04a",
|
|
14
|
+
"activityBar.background": "#0ae04a",
|
|
15
|
+
"activityBar.foreground": "#15202b",
|
|
16
|
+
"activityBar.inactiveForeground": "#15202b99",
|
|
17
|
+
"activityBarBadge.background": "#9266f8",
|
|
18
|
+
"activityBarBadge.foreground": "#15202b",
|
|
19
|
+
"commandCenter.border": "#e7e7e799",
|
|
20
|
+
"sash.hoverBorder": "#0ae04a",
|
|
21
|
+
"statusBar.background": "#08af3a",
|
|
22
|
+
"statusBar.foreground": "#e7e7e7",
|
|
23
|
+
"statusBarItem.hoverBackground": "#0ae04a",
|
|
24
|
+
"statusBarItem.remoteBackground": "#08af3a",
|
|
25
|
+
"statusBarItem.remoteForeground": "#e7e7e7",
|
|
26
|
+
"titleBar.activeBackground": "#08af3a",
|
|
27
|
+
"titleBar.activeForeground": "#e7e7e7",
|
|
28
|
+
"titleBar.inactiveBackground": "#08af3a99",
|
|
29
|
+
"titleBar.inactiveForeground": "#e7e7e799"
|
|
30
|
+
},
|
|
31
|
+
"peacock.color": "#08af3a"
|
|
32
|
+
}
|
|
33
|
+
}
|
package/gcards.ts
CHANGED
|
@@ -297,8 +297,17 @@ async function fetchContactsWithRetry(
|
|
|
297
297
|
});
|
|
298
298
|
|
|
299
299
|
if (response.status === 410) {
|
|
300
|
-
console.log('Sync token expired, performing full sync...');
|
|
301
|
-
return fetchContactsWithRetry(accessToken, undefined,
|
|
300
|
+
console.log('Sync token expired (410), performing full sync...');
|
|
301
|
+
return fetchContactsWithRetry(accessToken, undefined, undefined, 0);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
if (response.status === 400) {
|
|
305
|
+
const text = await response.text();
|
|
306
|
+
if (text.includes('EXPIRED_SYNC_TOKEN')) {
|
|
307
|
+
console.log('Sync token expired (400), performing full sync...');
|
|
308
|
+
return fetchContactsWithRetry(accessToken, undefined, undefined, 0);
|
|
309
|
+
}
|
|
310
|
+
throw new Error(`API error: ${response.status} ${text}`);
|
|
302
311
|
}
|
|
303
312
|
|
|
304
313
|
if (response.status === 429) {
|