sftp-push-sync 1.0.5 → 1.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.
@@ -1,6 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- ** sync-sftp.mjs - SFTP Syncronisations Tool
3
+ ** sftp-push-sync.mjs - SFTP Syncronisations Tool
4
+ *
5
+ * @author Carsten Nichte, 2025 / https://carsten-nichte.de
4
6
  *
5
7
  * SFTP push sync with dry run
6
8
  * 1. Upload new files
@@ -18,11 +20,9 @@
18
20
  * - Parallel uploads/deletes via worker pool
19
21
  * - include/exclude patterns
20
22
  *
21
- * The file shell-scripts/sync-sftp.mjs is pure JavaScript (ESM), not TypeScript.
23
+ * The file sftp-push-sync.mjs is pure JavaScript (ESM), not TypeScript.
22
24
  * Node.js can execute it directly as long as "type": "module" is specified in package.json
23
25
  * or the file has the extension .mjs.
24
- *
25
- * @author Carsten Nichte, 2025 / https://carsten-nichte.de
26
26
  */
27
27
  import fs from "fs";
28
28
  import fsp from "fs/promises";
@@ -424,8 +424,8 @@ async function main() {
424
424
  log("\n\n==================================================================");
425
425
  log(pc.bold("šŸ” SFTP Push-Synchronisation: sftp-push-sync"));
426
426
  log(` Connection: ${pc.cyan(TARGET)} (Worker: ${CONNECTION.workers})`);
427
- log(` Host:Port: ${pc.green(CONNECTION.host)}:${pc.green(CONNECTION.port)}`);
428
- log(` Local: ${pc.green(CONNECTION.localRoot)}`);
427
+ log(` Host: ${pc.green(CONNECTION.host)}:${pc.green(CONNECTION.port)}`);
428
+ log(` Local: ${pc.green(CONNECTION.localRoot)}`);
429
429
  log(` Remote: ${pc.green(CONNECTION.remoteRoot)}`);
430
430
  if (DRY_RUN) log(pc.yellow(" Modus: DRY-RUN (no changes)"));
431
431
  log("-----------------------------------------------------------------\n");
@@ -453,7 +453,7 @@ async function main() {
453
453
 
454
454
  log(pc.bold(pc.cyan("šŸ“„ Phase 1: Scan local files …")));
455
455
  const local = await walkLocal(CONNECTION.localRoot);
456
- log(` → ${local.size} lokale Dateien`);
456
+ log(` → ${local.size} local files`);
457
457
 
458
458
  log(pc.bold(pc.cyan("šŸ“¤ Phase 2: Scan remote files …")));
459
459
  const remote = await walkRemote(sftp, CONNECTION.remoteRoot);
@@ -620,10 +620,10 @@ async function main() {
620
620
 
621
621
  // Summary
622
622
  log("\n" + pc.bold(pc.cyan("šŸ“Š Summary:")));
623
- log(` Dauer: ${pc.green(duration + " s")}`);
623
+ log(` Duration: ${pc.green(duration + " s")}`);
624
624
  log(` ${ADD} Added : ${toAdd.length}`);
625
625
  log(` ${CHA} Changed: ${toUpdate.length}`);
626
- log(` ${DEL} Deleted: ${toDelete.length}`);
626
+ log(` ${DEL} Deleted: ${toDelete.length}`);
627
627
 
628
628
  if (toAdd.length || toUpdate.length || toDelete.length) {
629
629
  log("\nšŸ“„ Changes:");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sftp-push-sync",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "SFTP sync tool for Hugo projects (local to remote, with hash cache)",
5
5
  "type": "module",
6
6
  "bin": {