@bobfrankston/rmfmail 1.1.20 → 1.1.21

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.
@@ -8020,9 +8020,18 @@ var NativeImapClient = class {
8020
8020
  });
8021
8021
  this.commandChain = myPromise.catch(() => {
8022
8022
  });
8023
+ const __cmdName = command.split(/[\s\r]/)[0] || command.slice(0, 12);
8024
+ const __p0 = Date.now();
8023
8025
  await prev;
8026
+ const __prevMs = Date.now() - __p0;
8027
+ if (__prevMs > 1e3)
8028
+ console.warn(` [imap] cmd-chain wait ${__prevMs}ms before ${__cmdName} (predecessor held the connection)`);
8024
8029
  try {
8030
+ const __p1 = Date.now();
8025
8031
  const idleState = await this.suspendIdleForCommand();
8032
+ const __idleMs = Date.now() - __p1;
8033
+ if (__idleMs > 1e3)
8034
+ console.warn(` [imap] IDLE-suspend wait ${__idleMs}ms before ${__cmdName}`);
8026
8035
  try {
8027
8036
  const out = await this.sendCommandCore(tag, command, onUntagged);
8028
8037
  myResolve(out);