@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 CHANGED
@@ -651,7 +651,10 @@ async function* readDataStream(reader, {
651
651
  const chunks = [];
652
652
  let totalLength = 0;
653
653
  while (true) {
654
- const { value } = await reader.read();
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
- const { value } = await reader.read();
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontextso/sdk-react-native",
3
- "version": "0.0.10-rc.4",
3
+ "version": "0.0.10-rc.5",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",