agora-appbuilder-core 4.1.7-beta.7 → 4.1.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agora-appbuilder-core",
3
- "version": "4.1.7-beta.7",
3
+ "version": "4.1.7",
4
4
  "description": "React Native template for RTE app builder",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -77,8 +77,8 @@ const DefaultConfig = {
77
77
  CHAT_ORG_NAME: '',
78
78
  CHAT_APP_NAME: '',
79
79
  CHAT_URL: '',
80
- CLI_VERSION: '3.1.7-beta.7',
81
- CORE_VERSION: '4.1.7-beta.7',
80
+ CLI_VERSION: '3.1.7',
81
+ CORE_VERSION: '4.1.7',
82
82
  DISABLE_LANDSCAPE_MODE: false,
83
83
  STT_AUTO_START: false,
84
84
  CLOUD_RECORDING_AUTO_START: false,
@@ -138,9 +138,9 @@ const Join = () => {
138
138
  history.push(phrase);
139
139
  })
140
140
  .catch(error => {
141
- const errorCode = error?.networkError?.result?.error?.code;
141
+ const errorCode = error?.code;
142
142
  if (AuthErrorCodes.indexOf(errorCode) !== -1 && isSDK()) {
143
- SDKEvents.emit('unauthorized', error?.networkError?.result?.error);
143
+ SDKEvents.emit('unauthorized', error);
144
144
  }
145
145
  logger.error(
146
146
  LogSource.Internals,
@@ -269,9 +269,9 @@ const VideoCall: React.FC = () => {
269
269
  );
270
270
  })
271
271
  .catch(error => {
272
- const errorCode = error?.networkError?.result?.error?.code;
272
+ const errorCode = error?.code;
273
273
  if (AuthErrorCodes.indexOf(errorCode) !== -1 && isSDK()) {
274
- SDKEvents.emit('unauthorized', error?.networkError?.result?.error);
274
+ SDKEvents.emit('unauthorized', error);
275
275
  }
276
276
  logger.error(
277
277
  LogSource.Internals,
@@ -326,9 +326,9 @@ const VideoCall: React.FC = () => {
326
326
  );
327
327
  })
328
328
  .catch(error => {
329
- const errorCode = error?.networkError?.result?.error?.code;
329
+ const errorCode = error?.code;
330
330
  if (AuthErrorCodes.indexOf(errorCode) !== -1 && isSDK()) {
331
- SDKEvents.emit('unauthorized', error?.networkError?.result?.error);
331
+ SDKEvents.emit('unauthorized', error);
332
332
  }
333
333
  logger.error(
334
334
  LogSource.Internals,