@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valentinkolb/filegate",
3
- "version": "2.3.5",
3
+ "version": "2.3.6",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -196,7 +196,9 @@ app.get(
196
196
  if (entry.isDirectory()) {
197
197
  await addDirectoryToArchive(fullPath, basePath);
198
198
  } else if (entry.isFile()) {
199
- files[archivePath] = Bun.file(fullPath);
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
  };