@digipair/skill-imap 0.64.7 → 0.64.9

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/index.cjs.js CHANGED
@@ -69,7 +69,9 @@ let IMapService = class IMapService {
69
69
  await client.connect();
70
70
  (_context_protected = context.protected) == null ? void 0 : _context_protected.signal.addEventListener('abort', ()=>{
71
71
  this.forceClose = true;
72
- client.logout();
72
+ if (client.authenticated) {
73
+ client.logout();
74
+ }
73
75
  });
74
76
  client.on('close', async ()=>{
75
77
  this.imap = null;
package/index.esm.js CHANGED
@@ -23902,14 +23902,14 @@ function indent(str, spaces) {
23902
23902
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23903
23903
  // match is required
23904
23904
  if (!match) {
23905
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23905
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23906
23906
  v: nextMatch1
23907
23907
  };
23908
23908
  }
23909
23909
  var token = match.token, offset = match.offset;
23910
23910
  i1 += offset;
23911
23911
  if (token === " ") {
23912
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23912
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23913
23913
  }
23914
23914
  tokens1 = _to_consumable_array$1(tokens1).concat([
23915
23915
  token
@@ -23928,7 +23928,7 @@ function indent(str, spaces) {
23928
23928
  if (contextKeys.some(function(el) {
23929
23929
  return el.startsWith(name);
23930
23930
  })) {
23931
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23931
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23932
23932
  }
23933
23933
  if (dateTimeIdentifiers.some(function(el) {
23934
23934
  return el === name;
@@ -23947,9 +23947,9 @@ function indent(str, spaces) {
23947
23947
  if (dateTimeIdentifiers.some(function(el) {
23948
23948
  return el.startsWith(name);
23949
23949
  })) {
23950
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23950
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23951
23951
  }
23952
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23952
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23953
23953
  v: nextMatch1
23954
23954
  };
23955
23955
  };
@@ -28031,7 +28031,9 @@ let IMapService = class IMapService {
28031
28031
  await client.connect();
28032
28032
  (_context_protected = context.protected) == null ? void 0 : _context_protected.signal.addEventListener('abort', ()=>{
28033
28033
  this.forceClose = true;
28034
- client.logout();
28034
+ if (client.authenticated) {
28035
+ client.logout();
28036
+ }
28035
28037
  });
28036
28038
  client.on('close', async ()=>{
28037
28039
  this.imap = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-imap",
3
- "version": "0.64.7",
3
+ "version": "0.64.9",
4
4
  "dependencies": {
5
5
  "imapflow": "^1.0.171",
6
6
  "jsdom": "^25.0.1"
File without changes