kandown 0.7.1 → 0.7.2
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/bin/tui.js +5 -5
- package/dist/index.html +259 -259
- package/package.json +1 -1
package/bin/tui.js
CHANGED
|
@@ -56299,8 +56299,8 @@ var FileWatcher = class {
|
|
|
56299
56299
|
knownTaskIds = /* @__PURE__ */ new Set();
|
|
56300
56300
|
listeners = /* @__PURE__ */ new Map();
|
|
56301
56301
|
debounceTimers = /* @__PURE__ */ new Map();
|
|
56302
|
-
debounceDelay =
|
|
56303
|
-
watchDebounceDelay =
|
|
56302
|
+
debounceDelay = 30;
|
|
56303
|
+
watchDebounceDelay = 75;
|
|
56304
56304
|
pollInterval = null;
|
|
56305
56305
|
stopped = false;
|
|
56306
56306
|
/**
|
|
@@ -56321,16 +56321,16 @@ var FileWatcher = class {
|
|
|
56321
56321
|
}
|
|
56322
56322
|
}
|
|
56323
56323
|
this.watcher = watch([join5(tasksDir, "*.md"), configPath], {
|
|
56324
|
-
persistent: true,
|
|
56325
56324
|
ignoreInitial: true,
|
|
56326
|
-
awaitWriteFinish: { stabilityThreshold:
|
|
56325
|
+
awaitWriteFinish: { stabilityThreshold: 25, pollInterval: 25 },
|
|
56326
|
+
alwaysStat: true
|
|
56327
56327
|
});
|
|
56328
56328
|
this.watcher.on("all", (event, path) => {
|
|
56329
56329
|
this.handleFsEvent(event, path, kandownDir);
|
|
56330
56330
|
});
|
|
56331
56331
|
this.pollInterval = setInterval(() => {
|
|
56332
56332
|
this.pollHashes(kandownDir);
|
|
56333
|
-
},
|
|
56333
|
+
}, 300);
|
|
56334
56334
|
}
|
|
56335
56335
|
/**
|
|
56336
56336
|
* 📖 Stop watching and clean up all resources.
|