libfw-client 0.3.1 → 0.3.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/index.js +8 -5
- package/package.json +1 -1
- package/pkg/libfw_client_bg.wasm +0 -0
- package/pkg/package.json +1 -1
package/index.js
CHANGED
|
@@ -673,11 +673,14 @@ export class LibfwClient {
|
|
|
673
673
|
this._fallback.buffers.set(path, buf);
|
|
674
674
|
this._fallback.order.push(path);
|
|
675
675
|
}
|
|
676
|
-
// A chunk whose absolute offset is
|
|
677
|
-
//
|
|
678
|
-
//
|
|
679
|
-
//
|
|
680
|
-
|
|
676
|
+
// A chunk whose absolute offset is BEFORE the buffered span means the
|
|
677
|
+
// engine restarted this file (an internal retry re-delivers the same
|
|
678
|
+
// byte range) — drop the partial buffer so the prefix is not duplicated
|
|
679
|
+
// in the produced blob/zip. Note: `offset === buf.len` is the NORMAL
|
|
680
|
+
// next-chunk case (chunk N ends exactly where chunk N+1 begins), so it
|
|
681
|
+
// must NOT be treated as a restart — otherwise the first chunk of every
|
|
682
|
+
// browser-mode download is silently dropped.
|
|
683
|
+
if (offset < buf.len) {
|
|
681
684
|
buf.chunks = [];
|
|
682
685
|
buf.len = 0;
|
|
683
686
|
}
|
package/package.json
CHANGED
package/pkg/libfw_client_bg.wasm
CHANGED
|
Binary file
|