@valentinkolb/filegate 2.3.5 → 2.3.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.
- package/package.json +1 -1
- package/src/handlers/files.ts +3 -1
package/package.json
CHANGED
package/src/handlers/files.ts
CHANGED
|
@@ -196,7 +196,9 @@ app.get(
|
|
|
196
196
|
if (entry.isDirectory()) {
|
|
197
197
|
await addDirectoryToArchive(fullPath, basePath);
|
|
198
198
|
} else if (entry.isFile()) {
|
|
199
|
-
|
|
199
|
+
// Read file content as Blob - Bun.file() is lazy and doesn't work reliably with Archive
|
|
200
|
+
const fileContent = await Bun.file(fullPath).arrayBuffer();
|
|
201
|
+
files[archivePath] = new Blob([fileContent]);
|
|
200
202
|
}
|
|
201
203
|
}
|
|
202
204
|
};
|