saltcorn-samba 0.4.4 → 0.4.5

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/index.js +1 -1
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,28 @@ All notable changes to `saltcorn-samba` are documented here.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/).
6
6
 
7
+ ## [0.4.5] – 2026-07-05
8
+
9
+ ### Fixed – **Test-Verbindung-Button reagiert nicht mehr (v0.4.4-Regression)**
10
+
11
+ In v0.4.4 enthielt der neu hinzugefügte Diagnose-IIFE-Block im Inline-
12
+ Browser-Script eine Regex `.split(/[\r\n]/)`. Der HTML-Block ist ein
13
+ **Template-Literal** in `index.js`; darin werden `\r` und `\n` zu
14
+ **echten Steuerzeichen** aufgelöst. Das gerenderte `<script>` enthielt
15
+ deshalb einen literalen Zeilenumbruch mitten in der Regex — der Browser
16
+ konnte das Skript nicht mehr parsen, und `window.sambaTestConn` wurde
17
+ nie definiert. Ein Klick auf „Verbindung jetzt testen“ zeigte deshalb
18
+ keine Reaktion.
19
+
20
+ **Fix:** Die Escape-Sequenz im Source auf `\\r\\n` verdoppelt, damit im
21
+ gerenderten Skript wieder `\r\n` steht (also die Zeichenklasse, nicht
22
+ die literalen Zeichen). Der Skript-Parse funktioniert wieder, die
23
+ Test-Schaltfläche reagiert.
24
+
25
+ Zusätzlich wurde die Rendering-Pipeline mit einem Node-`--check` auf
26
+ dem *extrahierten* Browser-Skript verifiziert, damit dieser konkrete
27
+ Fehlermodus in Zukunft schon lokal auffällt.
28
+
7
29
  ## [0.4.4] – 2026-07-05
8
30
 
9
31
  ### Fixed – **Falscher `NAME_NOT_FOUND` durch `stat()`-Vorprüfung**
package/index.js CHANGED
@@ -234,7 +234,7 @@ window.sambaTestConn = async function(btn) {
234
234
  box += '<details style="margin-top:.3rem"><summary>Schreibvarianten-Test</summary><table class="table table-sm" style="margin-top:.3rem;font-size:.85em">';
235
235
  box += '<thead><tr><th>Variante</th><th>Ergebnis</th></tr></thead><tbody>';
236
236
  d.spelling_probes.forEach(function(p){
237
- box += '<tr><td><code>' + esc(p.candidate) + '</code></td><td>' + (p.ok ? '✓ auflistbar' : '✗ <span class="text-muted">' + esc(String(p.error||'').split(/[\r\n]/)[0].slice(0,140)) + '</span>') + '</td></tr>';
237
+ box += '<tr><td><code>' + esc(p.candidate) + '</code></td><td>' + (p.ok ? '✓ auflistbar' : '✗ <span class="text-muted">' + esc(String(p.error||'').split(/[\\r\\n]/)[0].slice(0,140)) + '</span>') + '</td></tr>';
238
238
  });
239
239
  box += '</tbody></table></details>';
240
240
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saltcorn-samba",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "Saltcorn plugin: browse, upload, rename and delete files on a Samba/CIFS share via SMB 3.1.1 (AES-CMAC signing, optional encryption). File-manager view, directory tree, inline PDF viewer, external-app open (smb://).",
5
5
  "main": "index.js",
6
6
  "scripts": {