@bobfrankston/rmfmail 1.1.14 → 1.1.15

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.
@@ -8202,7 +8202,13 @@ var NativeImapClient = class {
8202
8202
  return -1;
8203
8203
  }
8204
8204
  processBuffer() {
8205
+ const t0 = performance.now();
8206
+ const TIME_BUDGET_MS = 10;
8205
8207
  while (true) {
8208
+ if (performance.now() - t0 > TIME_BUDGET_MS) {
8209
+ setImmediate(() => this.processBuffer());
8210
+ return;
8211
+ }
8206
8212
  if (this.pendingCommand?.literalBytes != null) {
8207
8213
  const neededBytes = this.pendingCommand.literalBytes;
8208
8214
  const available = this.bufferLength - this.bufferOffset;