@sentiance-react-native/core 6.0.0-beta.14 → 6.0.0-beta.15

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/lib/core.js CHANGED
@@ -7,6 +7,7 @@ const SDK_USER_LINK_EVENT = "SENTIANCE_USER_LINK_EVENT";
7
7
  const SDK_USER_ACTIVITY_UPDATE_EVENT = "SENTIANCE_USER_ACTIVITY_UPDATE_EVENT";
8
8
  const SDK_ON_TRIP_TIMED_OUT_EVENT = "SENTIANCE_ON_TRIP_TIMED_OUT_EVENT";
9
9
 
10
+ let coreModule = {};
10
11
  if (!SentianceCore) {
11
12
  const nativeModuleName = varToString({SentianceCore});
12
13
  console.error(`Could not locate the native ${nativeModuleName} module.
@@ -51,6 +52,7 @@ if (!SentianceCore) {
51
52
  SentianceCore._addUserLinkListener = _addUserLinkListener;
52
53
  SentianceCore._addSdkUserActivityUpdateListener = _addSdkUserActivityUpdateListener;
53
54
  SentianceCore._addTripTimeoutListener = _addTripTimeoutListener;
55
+ coreModule = SentianceCore;
54
56
  }
55
57
 
56
- export default SentianceCore;
58
+ export default coreModule;
package/lib/index.js CHANGED
@@ -154,9 +154,9 @@ const createUser = async (userCreationOptions) => {
154
154
  }
155
155
  }
156
156
 
157
- const addSdkStatusUpdateListener = core ? core._addSdkStatusUpdateListener : null;
158
- const addSdkUserActivityUpdateListener = core ? core._addSdkUserActivityUpdateListener : null;
159
- const addTripTimeoutListener = core ? core._addTripTimeoutListener : null;
157
+ const addSdkStatusUpdateListener = core._addSdkStatusUpdateListener;
158
+ const addSdkUserActivityUpdateListener = core._addSdkUserActivityUpdateListener;
159
+ const addTripTimeoutListener = core._addTripTimeoutListener;
160
160
 
161
161
  const transportModes = {};
162
162
  (function (transportModes) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentiance-react-native/core",
3
- "version": "6.0.0-beta.14",
3
+ "version": "6.0.0-beta.15",
4
4
  "description": "React Native Sentiance core library",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",