@applicaster/zapp-react-native-bridge 14.0.0-alpha.1661204539 → 14.0.0-alpha.1740013076

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.
@@ -102,7 +102,11 @@ export const remapAssetPath = (
102
102
 
103
103
  // Traverse the path to the appropriate nested object
104
104
  for (let i = 0; i < path.length - 1; i++) {
105
- target = target[path[i]] = target[path[i]];
105
+ if (typeof target[path[i]] !== "object" || target[path[i]] === null) {
106
+ target[path[i]] = {};
107
+ }
108
+
109
+ target = target[path[i]];
106
110
  }
107
111
 
108
112
  if (!target) {
@@ -7,7 +7,7 @@ interface PushBridgeInterface {
7
7
  }
8
8
 
9
9
  // eslint-disable-next-line prefer-promise-reject-errors
10
- const nullPromise = () => Promise.reject("Push Notification bridge is null");
10
+ const nullPromise = () => Promise.resolve(["Push Notification bridge is null"]);
11
11
 
12
12
  const defaultPushNotification = {
13
13
  registerTags: nullPromise,
@@ -1,5 +1,4 @@
1
1
  import * as R from "ramda";
2
- import { Platform } from "react-native";
3
2
  import uuidv4 from "uuid/v4";
4
3
 
5
4
  import { bridgeLogger } from "../logger";
@@ -27,7 +26,7 @@ export interface QuickBrickCommunicationModuleI extends AppData {
27
26
  ) => void;
28
27
  }
29
28
 
30
- const { NativeModules } = require("react-native");
29
+ const { NativeModules, Platform } = require("react-native");
31
30
 
32
31
  /**
33
32
  * sends an event to the native QuickBrick manager module
@@ -32,7 +32,7 @@ function getLocalStorageAndroid(): NativeLocalStorageI {
32
32
  };
33
33
  }
34
34
 
35
- const LocalStorage = platformSelect({
35
+ const LocalStorage: NativeLocalStorageI = platformSelect({
36
36
  android: getLocalStorageAndroid(),
37
37
  amazon: getLocalStorageAndroid(),
38
38
  android_tv: getLocalStorageAndroid(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-bridge",
3
- "version": "14.0.0-alpha.1661204539",
3
+ "version": "14.0.0-alpha.1740013076",
4
4
  "description": "Applicaster Zapp React Native modules",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -32,14 +32,13 @@
32
32
  "homepage": "https://github.com/applicaster/quickbrick#readme",
33
33
  "dependencies": {
34
34
  "@applicaster/zapp-pipes-dev-kit": "1.4.7",
35
- "@applicaster/zapp-react-native-utils": "14.0.0-alpha.1661204539",
35
+ "@applicaster/zapp-react-native-utils": "14.0.0-alpha.1740013076",
36
36
  "md5": "^2.3.0",
37
37
  "uuid": "^3.3.2"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@applicaster/zapp-pipes-v2-client": "*",
41
41
  "@react-native-community/netinfo": "*",
42
- "immer": "*",
43
42
  "react": "*",
44
43
  "react-native": "*",
45
44
  "uglify-js": "*",