reelsort 0.2.10 → 0.2.11

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/cli.js CHANGED
@@ -1904,7 +1904,13 @@ var scan = async ({ type, hardlink: useHardlink, dryRun, auto, force, interactiv
1904
1904
  const entries = gatherEntries(source).sort(
1905
1905
  (a, b) => a.entry.localeCompare(b.entry, void 0, { sensitivity: "base" })
1906
1906
  );
1907
+ let lastYield = 0;
1907
1908
  for (const { entry, entryPath, isDir } of entries) {
1909
+ const now = Date.now();
1910
+ if (now - lastYield >= 80) {
1911
+ await new Promise((resolve14) => setImmediate(resolve14));
1912
+ lastYield = Date.now();
1913
+ }
1908
1914
  spinner10.update(`scanning: ${entry}`);
1909
1915
  if (ignoreSet.has(entry)) {
1910
1916
  seenIgnored.add(entry);
@@ -2745,7 +2751,7 @@ var watch = async ({ hardlink = false, auto = false }) => {
2745
2751
  var watch_default = watch;
2746
2752
 
2747
2753
  // package.json
2748
- var version = "0.2.10";
2754
+ var version = "0.2.11";
2749
2755
 
2750
2756
  // src/program.ts
2751
2757
  var toCamel = (s) => s.replace(/-([a-z])/g, (_, c) => c.toUpperCase());
package/dist/index.js CHANGED
@@ -1610,7 +1610,13 @@ var scan = async ({ type, hardlink: useHardlink, dryRun, auto, force, interactiv
1610
1610
  const entries = gatherEntries(source).sort(
1611
1611
  (a, b) => a.entry.localeCompare(b.entry, void 0, { sensitivity: "base" })
1612
1612
  );
1613
+ let lastYield = 0;
1613
1614
  for (const { entry, entryPath, isDir } of entries) {
1615
+ const now = Date.now();
1616
+ if (now - lastYield >= 80) {
1617
+ await new Promise((resolve10) => setImmediate(resolve10));
1618
+ lastYield = Date.now();
1619
+ }
1614
1620
  spinner7.update(`scanning: ${entry}`);
1615
1621
  if (ignoreSet.has(entry)) {
1616
1622
  seenIgnored.add(entry);
package/dist/index.mjs CHANGED
@@ -1532,7 +1532,13 @@ var scan = async ({ type, hardlink: useHardlink, dryRun, auto, force, interactiv
1532
1532
  const entries = gatherEntries(source).sort(
1533
1533
  (a, b) => a.entry.localeCompare(b.entry, void 0, { sensitivity: "base" })
1534
1534
  );
1535
+ let lastYield = 0;
1535
1536
  for (const { entry, entryPath, isDir } of entries) {
1537
+ const now = Date.now();
1538
+ if (now - lastYield >= 80) {
1539
+ await new Promise((resolve10) => setImmediate(resolve10));
1540
+ lastYield = Date.now();
1541
+ }
1536
1542
  spinner7.update(`scanning: ${entry}`);
1537
1543
  if (ignoreSet.has(entry)) {
1538
1544
  seenIgnored.add(entry);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reelsort",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "CLI to rename, organize, and manage your movie and TV library — Plex-compatible naming, hardlink support, and automated watch mode.",
5
5
  "keywords": [
6
6
  "media",