imapflow 1.0.124 → 1.0.125

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.
Files changed (2) hide show
  1. package/lib/imap-flow.js +2 -2
  2. package/package.json +1 -1
package/lib/imap-flow.js CHANGED
@@ -978,7 +978,7 @@ class ImapFlow extends EventEmitter {
978
978
 
979
979
  if (this.capabilities) {
980
980
  for (let [capa] of this.capabilities) {
981
- if (/^AUTH=/i.test(capa)) {
981
+ if (/^AUTH=/i.test(capa) && !this.authCapabilities.has(capa.toUpperCase())) {
982
982
  this.authCapabilities.set(capa.toUpperCase(), false);
983
983
  }
984
984
  }
@@ -995,7 +995,7 @@ class ImapFlow extends EventEmitter {
995
995
 
996
996
  if (this.capabilities) {
997
997
  for (let [capa] of this.capabilities) {
998
- if (/^AUTH=/i.test(capa)) {
998
+ if (/^AUTH=/i.test(capa) && !this.authCapabilities.has(capa.toUpperCase())) {
999
999
  this.authCapabilities.set(capa.toUpperCase(), false);
1000
1000
  }
1001
1001
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imapflow",
3
- "version": "1.0.124",
3
+ "version": "1.0.125",
4
4
  "description": "IMAP Client for Node",
5
5
  "main": "./lib/imap-flow.js",
6
6
  "scripts": {