@powersync/react-native 1.35.1 → 1.35.2

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
@@ -8419,6 +8419,19 @@ class ReactNativeRemote extends common.AbstractRemote {
8419
8419
  this.connector = connector;
8420
8420
  this.logger = logger;
8421
8421
  }
8422
+ get fetch() {
8423
+ const fetchImplementation = super.fetch;
8424
+ return ((input, init) => {
8425
+ const options = (init ?? {});
8426
+ return fetchImplementation(input, {
8427
+ ...options,
8428
+ reactNative: {
8429
+ ...(options.reactNative ?? {}),
8430
+ textStreaming: true
8431
+ }
8432
+ });
8433
+ });
8434
+ }
8422
8435
  getUserAgent() {
8423
8436
  return [
8424
8437
  super.getUserAgent(),