bitbucket-repository-provider 6.1.2 → 6.1.3

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": "bitbucket-repository-provider",
3
- "version": "6.1.2",
3
+ "version": "6.1.3",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -58,7 +58,7 @@ export class BitbucketBranch extends Branch {
58
58
  return new BufferContentEntry(
59
59
  name,
60
60
  undefined,
61
- Buffer.from(await res.arrayBuffer())
61
+ new Uint8Array(await res.arrayBuffer())
62
62
  );
63
63
  }
64
64
  }
@@ -82,8 +82,7 @@ export class BitbucketBranch extends Branch {
82
82
  `repositories/${this.slug}/src/${this.hash}/${entry.name}`
83
83
  );
84
84
 
85
- //return new Uint8Array(await res.arrayBuffer());
86
- return Buffer.from(await res.arrayBuffer());
85
+ return new Uint8Array(await res.arrayBuffer());
87
86
  });
88
87
  }
89
88
  }