@twin.org/core 0.0.1-next.46 → 0.0.1-next.47

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.
@@ -4021,7 +4021,7 @@ class Compression {
4021
4021
  const compressionStream = new CompressionStream(type);
4022
4022
  const compressionPipe = blob.stream().pipeThrough(compressionStream);
4023
4023
  const compressedBlob = await new Response(compressionPipe).blob();
4024
- const compressedBytes = await compressedBlob.bytes();
4024
+ const compressedBytes = new Uint8Array(await compressedBlob.arrayBuffer());
4025
4025
  // GZIP header contains a byte which specifies the OS the
4026
4026
  // compression was performed on. We set this to 3 (Unix) to ensure
4027
4027
  // that we produce consistent results.
@@ -4043,7 +4043,7 @@ class Compression {
4043
4043
  const decompressionStream = new DecompressionStream(type);
4044
4044
  const decompressionPipe = blob.stream().pipeThrough(decompressionStream);
4045
4045
  const decompressedBlob = await new Response(decompressionPipe).blob();
4046
- return decompressedBlob.bytes();
4046
+ return new Uint8Array(await decompressedBlob.bytes());
4047
4047
  }
4048
4048
  }
4049
4049
 
@@ -4019,7 +4019,7 @@ class Compression {
4019
4019
  const compressionStream = new CompressionStream(type);
4020
4020
  const compressionPipe = blob.stream().pipeThrough(compressionStream);
4021
4021
  const compressedBlob = await new Response(compressionPipe).blob();
4022
- const compressedBytes = await compressedBlob.bytes();
4022
+ const compressedBytes = new Uint8Array(await compressedBlob.arrayBuffer());
4023
4023
  // GZIP header contains a byte which specifies the OS the
4024
4024
  // compression was performed on. We set this to 3 (Unix) to ensure
4025
4025
  // that we produce consistent results.
@@ -4041,7 +4041,7 @@ class Compression {
4041
4041
  const decompressionStream = new DecompressionStream(type);
4042
4042
  const decompressionPipe = blob.stream().pipeThrough(decompressionStream);
4043
4043
  const decompressedBlob = await new Response(decompressionPipe).blob();
4044
- return decompressedBlob.bytes();
4044
+ return new Uint8Array(await decompressedBlob.bytes());
4045
4045
  }
4046
4046
  }
4047
4047
 
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/core - Changelog
2
2
 
3
- ## 0.0.1-next.46
3
+ ## 0.0.1-next.47
4
4
 
5
5
  - Initial Release
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/core",
3
- "version": "0.0.1-next.46",
3
+ "version": "0.0.1-next.47",
4
4
  "description": "Helper methods/classes for data type checking/validation/guarding/error handling",
5
5
  "repository": {
6
6
  "type": "git",