@indra.ai/deva 1.1.117 → 1.1.118
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/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -213,8 +213,8 @@ class Deva {
|
|
|
213
213
|
for (const x in client.features) {
|
|
214
214
|
const methods = client.features[x].methods || false;
|
|
215
215
|
if (methods) for (const y in methods) {
|
|
216
|
-
const
|
|
217
|
-
if (
|
|
216
|
+
const isFunc = typeof methods[y] === 'function';
|
|
217
|
+
if (isFunc) this.methods[y] = methods[y].bind(this);
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
// console.log('CLINET BEFORE COPY', client);
|