@twin.org/core 0.0.1-next.45 → 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.
- package/dist/cjs/index.cjs +2 -2
- package/dist/esm/index.mjs +2 -2
- package/docs/changelog.md +1 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -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.
|
|
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
|
|
package/dist/esm/index.mjs
CHANGED
|
@@ -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.
|
|
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