@zohoim/client-sdk 1.0.0-poc60 → 1.0.0-poc61
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.
|
@@ -96,10 +96,10 @@ export default class BaseAPI {
|
|
|
96
96
|
} // Create a proxy for method delegation
|
|
97
97
|
|
|
98
98
|
|
|
99
|
-
return new Proxy(
|
|
99
|
+
return new Proxy({}, {
|
|
100
100
|
get: (target, prop) => {
|
|
101
101
|
// For methods, check if custom implementation exists
|
|
102
|
-
if (typeof prop === 'string' && typeof customAPI[prop] === 'function') {
|
|
102
|
+
if (typeof prop === 'string' && typeof customAPI[prop] === 'function' && this.isMethodOverridden(defaultAPI, customAPI, prop)) {
|
|
103
103
|
// Use custom implementation if available
|
|
104
104
|
return customAPI[prop].bind(customAPI);
|
|
105
105
|
} // Fall back to default implementation
|