@zohoim/client-sdk 1.0.0-poc84 → 1.0.0-poc86

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.
@@ -1,7 +1,7 @@
1
1
  const ActorType = {
2
2
  AGENT: 'AGENT',
3
3
  BOT: 'BOT',
4
- ENDUSER: 'ENDUSER',
4
+ ENDUSER: 'END_USER',
5
5
  SYSTEM: 'SYSTEM'
6
6
  };
7
7
  export default ActorType;
@@ -116,6 +116,10 @@ export default class BaseAPI {
116
116
  }
117
117
 
118
118
  isMethodOverridden(customAPI, methodName) {
119
+ if (!customAPI) {
120
+ return false;
121
+ }
122
+
119
123
  const customPrototype = Object.getPrototypeOf(customAPI);
120
124
  return typeof customAPI[methodName] === 'function' && // Method is defined directly on custom prototype
121
125
  Object.prototype.hasOwnProperty.call(customPrototype, methodName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohoim/client-sdk",
3
- "version": "1.0.0-poc84",
3
+ "version": "1.0.0-poc86",
4
4
  "description": "To have the client sdk for the IM",
5
5
  "main": "es/index.js",
6
6
  "module": "es/index.js",
@@ -33,4 +33,4 @@
33
33
  "@zohodesk/docs-builder": "1.0.2",
34
34
  "@testing-library/jest-dom": "^5.16.5"
35
35
  }
36
- }
36
+ }