@kontextso/sdk-react-native 0.0.10-rc.4 → 0.0.10-rc.5
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/index.js +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -651,7 +651,10 @@ async function* readDataStream(reader, {
|
|
|
651
651
|
const chunks = [];
|
|
652
652
|
let totalLength = 0;
|
|
653
653
|
while (true) {
|
|
654
|
-
|
|
654
|
+
let { value } = await reader.read();
|
|
655
|
+
if (typeof value === "number") {
|
|
656
|
+
value = new Uint8Array([value]);
|
|
657
|
+
}
|
|
655
658
|
if (value) {
|
|
656
659
|
chunks.push(value);
|
|
657
660
|
totalLength += value.length;
|
package/dist/index.mjs
CHANGED
|
@@ -619,7 +619,10 @@ async function* readDataStream(reader, {
|
|
|
619
619
|
const chunks = [];
|
|
620
620
|
let totalLength = 0;
|
|
621
621
|
while (true) {
|
|
622
|
-
|
|
622
|
+
let { value } = await reader.read();
|
|
623
|
+
if (typeof value === "number") {
|
|
624
|
+
value = new Uint8Array([value]);
|
|
625
|
+
}
|
|
623
626
|
if (value) {
|
|
624
627
|
chunks.push(value);
|
|
625
628
|
totalLength += value.length;
|