@atsignal/react-native 0.1.0 → 0.1.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.cjs CHANGED
@@ -32,7 +32,7 @@ var SignalReactNativeClient = class extends import_js_core.SignalClient {
32
32
  const queueStorage = options.persistQueue === false ? void 0 : (_a = options.storage) == null ? void 0 : _a.queue;
33
33
  return {
34
34
  ...options,
35
- transport: (_b = options.transport) != null ? _b : (0, import_js_core.createFetchTransport)(),
35
+ transportFactory: (_b = options.transportFactory) != null ? _b : (0, import_js_core.createFetchTransport)(),
36
36
  storage: {
37
37
  identity: (_d = (_c = options.storage) == null ? void 0 : _c.identity) != null ? _d : new import_js_core.InMemoryStorage(),
38
38
  ...queueStorage !== void 0 ? { queue: queueStorage } : {}
package/dist/index.d.cts CHANGED
@@ -1,7 +1,6 @@
1
- import { SignalClient, ClientConfig, Transport, KeyValueStorage, QueueStorageInput } from '@atsignal/js-core';
1
+ import { SignalClient, ClientConfig, KeyValueStorage, QueueStorageInput } from '@atsignal/js-core';
2
2
 
3
3
  interface SignalReactNativeOptions extends Omit<ClientConfig, "storage"> {
4
- transport?: Transport;
5
4
  storage?: {
6
5
  identity?: KeyValueStorage;
7
6
  queue?: QueueStorageInput;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
- import { SignalClient, ClientConfig, Transport, KeyValueStorage, QueueStorageInput } from '@atsignal/js-core';
1
+ import { SignalClient, ClientConfig, KeyValueStorage, QueueStorageInput } from '@atsignal/js-core';
2
2
 
3
3
  interface SignalReactNativeOptions extends Omit<ClientConfig, "storage"> {
4
- transport?: Transport;
5
4
  storage?: {
6
5
  identity?: KeyValueStorage;
7
6
  queue?: QueueStorageInput;
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ var SignalReactNativeClient = class extends SignalClient {
10
10
  const queueStorage = options.persistQueue === false ? void 0 : (_a = options.storage) == null ? void 0 : _a.queue;
11
11
  return {
12
12
  ...options,
13
- transport: (_b = options.transport) != null ? _b : createFetchTransport(),
13
+ transportFactory: (_b = options.transportFactory) != null ? _b : createFetchTransport(),
14
14
  storage: {
15
15
  identity: (_d = (_c = options.storage) == null ? void 0 : _c.identity) != null ? _d : new InMemoryStorage(),
16
16
  ...queueStorage !== void 0 ? { queue: queueStorage } : {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atsignal/react-native",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "React Native SDK for Signal.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -27,7 +27,7 @@
27
27
  "dist"
28
28
  ],
29
29
  "dependencies": {
30
- "@atsignal/js-core": "0.1.0"
30
+ "@atsignal/js-core": "0.1.2"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public",