sftp-push-sync 1.0.10 → 1.0.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.
@@ -25,7 +25,6 @@
25
25
  * - For example, log files or other special files.
26
26
  * - These files can be downloaded or uploaded separately.
27
27
  *
28
- *
29
28
  * The file sftp-push-sync.mjs is pure JavaScript (ESM), not TypeScript.
30
29
  * Node.js can execute it directly as long as "type": "module" is specified in package.json
31
30
  * or the file has the extension .mjs.
@@ -532,10 +531,13 @@ async function main() {
532
531
  // Analysis: just decide, don't upload/delete anything yet
533
532
  for (const rel of localKeys) {
534
533
  checkedCount += 1;
535
- if (checkedCount % 500 === 0 || checkedCount === totalToCheck) {
534
+ if (
535
+ checkedCount === 1 || // sofortige erste Ausgabe
536
+ checkedCount % 100 === 0 || // aktualisieren alle 100
537
+ checkedCount === totalToCheck // letzte Ausgabe immer
538
+ ) {
536
539
  updateProgress(" Analyse: ", checkedCount, totalToCheck);
537
540
  }
538
-
539
541
  const l = local.get(rel);
540
542
  const r = remote.get(rel);
541
543
 
@@ -758,7 +760,9 @@ async function main() {
758
760
  log(` ${CHA} Changed: ${toUpdate.length}`);
759
761
  log(` ${DEL} Deleted: ${toDelete.length}`);
760
762
  if (AUTO_EXCLUDED.size > 0) {
761
- log(` ${EXC} Excluded via uploadList | downloadList): ${AUTO_EXCLUDED.size}`);
763
+ log(
764
+ ` ${EXC} Excluded via uploadList | downloadList): ${AUTO_EXCLUDED.size}`
765
+ );
762
766
  }
763
767
  if (toAdd.length || toUpdate.length || toDelete.length) {
764
768
  log("\nšŸ“„ Changes:");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sftp-push-sync",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "SFTP sync tool for Hugo projects (local to remote, with hash cache)",
5
5
  "type": "module",
6
6
  "bin": {