@rljson/fs-agent 0.0.77 → 0.0.78
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/fs-agent.js +5 -2
- package/package.json +1 -1
package/dist/fs-agent.js
CHANGED
|
@@ -964,6 +964,7 @@ class FsScanner {
|
|
|
964
964
|
}
|
|
965
965
|
async _notifyChange(change) {
|
|
966
966
|
if (this._paused && !this._pauseLooksStuck(change)) {
|
|
967
|
+
this._missedChangesDuringPause = true;
|
|
967
968
|
return;
|
|
968
969
|
}
|
|
969
970
|
for (const callback of this._changeCallbacks) {
|
|
@@ -1006,9 +1007,11 @@ class FsScanner {
|
|
|
1006
1007
|
* Omit to pause until an explicit `resumeWatch()`.
|
|
1007
1008
|
*/
|
|
1008
1009
|
pauseWatch(autoResumeMs) {
|
|
1009
|
-
if (!this._paused)
|
|
1010
|
+
if (!this._paused) {
|
|
1011
|
+
this._pausedAt = Date.now();
|
|
1012
|
+
this._missedChangesDuringPause = false;
|
|
1013
|
+
}
|
|
1010
1014
|
this._paused = true;
|
|
1011
|
-
this._missedChangesDuringPause = false;
|
|
1012
1015
|
if (this._autoResumeTimer) {
|
|
1013
1016
|
clearTimeout(this._autoResumeTimer);
|
|
1014
1017
|
this._autoResumeTimer = null;
|