@bobfrankston/iflow 1.0.33 → 1.0.34
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/imaplib/gmail.js +6 -1
- package/package.json +2 -2
package/imaplib/gmail.js
CHANGED
|
@@ -6,7 +6,12 @@ import path from 'path';
|
|
|
6
6
|
import fs from 'fs';
|
|
7
7
|
const GMAIL_SERVER = 'imap.gmail.com';
|
|
8
8
|
const GMAIL_PORT = 993;
|
|
9
|
-
|
|
9
|
+
// All Google scopes in one token — one consent, one refresh
|
|
10
|
+
const GMAIL_SCOPE = [
|
|
11
|
+
'https://mail.google.com/',
|
|
12
|
+
'https://www.googleapis.com/auth/contacts.readonly',
|
|
13
|
+
// 'https://www.googleapis.com/auth/calendar.readonly', // future
|
|
14
|
+
].join(' ');
|
|
10
15
|
// Serialize concurrent OAuth attempts per username to avoid port conflicts (EADDRINUSE)
|
|
11
16
|
const pendingAuth = new Map();
|
|
12
17
|
// Get the directory where this module is located
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bobfrankston/iflow",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"description": "IMAP client wrapper library",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"author": "",
|
|
24
24
|
"license": "ISC",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@bobfrankston/oauthsupport": "^1.0.
|
|
26
|
+
"@bobfrankston/oauthsupport": "^1.0.18",
|
|
27
27
|
"imapflow": "^1.0.187"
|
|
28
28
|
},
|
|
29
29
|
"exports": {
|