@ethersphere/bee-js 8.3.0 → 8.3.1

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.
@@ -9,6 +9,9 @@ export async function writeTar(collection, tarStream) {
9
9
  }
10
10
  await tarStream.endFile();
11
11
  stream.close();
12
+ } else if (item.file) {
13
+ await tarStream.appendFile(new Uint8Array(await item.file.arrayBuffer()));
14
+ await tarStream.endFile();
12
15
  } else {
13
16
  throw new Error('Invalid collection item');
14
17
  }
@@ -40,7 +40,7 @@ function createHeader(path, size) {
40
40
  header.set(bytes.slice(0, length), offset);
41
41
  }
42
42
  // Initialize header with zeros
43
- const header = new Uint8Array();
43
+ const header = new Uint8Array(512);
44
44
  header.fill(0, 0, 512);
45
45
  // File name, truncated to 100 characters if necessary
46
46
  writeToBuffer(path.slice(0, 100).padEnd(100, '\0'), 0, 100);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethersphere/bee-js",
3
- "version": "8.3.0",
3
+ "version": "8.3.1",
4
4
  "description": "Javascript client for Bee",
5
5
  "keywords": [
6
6
  "bee",