@zohoim/client-sdk 1.0.0-poc61 → 1.0.0-poc62

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.
@@ -111,11 +111,9 @@ export default class BaseAPI {
111
111
  }
112
112
 
113
113
  isMethodOverridden(defaultAPI, customAPI, methodName) {
114
- if (!customAPI || customAPI === defaultAPI) {
115
- return false;
116
- }
117
-
118
- return customAPI[methodName] !== defaultAPI[methodName];
114
+ const basePrototype = defaultAPI.prototype;
115
+ const injectedMethod = customAPI[methodName];
116
+ return injectedMethod !== basePrototype[methodName];
119
117
  }
120
118
 
121
119
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohoim/client-sdk",
3
- "version": "1.0.0-poc61",
3
+ "version": "1.0.0-poc62",
4
4
  "description": "To have the client sdk for the IM",
5
5
  "main": "es/index.js",
6
6
  "module": "es/index.js",