@componentor/fs 2.0.5 → 2.0.6

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/dist/index.js CHANGED
@@ -440,7 +440,7 @@ function scheduleIdleCleanup() {
440
440
  idleCleanupTimer = null;
441
441
  const now = Date.now();
442
442
  for (const [p, lastAccess] of syncHandleLastAccess) {
443
- if (now - lastAccess > HANDLE_IDLE_TIMEOUT) {
443
+ if (now - lastAccess >= HANDLE_IDLE_TIMEOUT) {
444
444
  const h = syncHandleCache.get(p);
445
445
  if (h) { try { h.flush(); h.close(); } catch {} syncHandleCache.delete(p); }
446
446
  syncHandleLastAccess.delete(p);