@indra.ai/deva 1.2.36 → 1.2.37

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.
Files changed (2) hide show
  1. package/index.js +5 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -193,13 +193,15 @@ class Deva {
193
193
  ***************/
194
194
  Client(client) {
195
195
  this.action('Client');
196
-
197
196
  // setup any custom methods for the features
198
197
  for (const x in client.features) {
199
198
  const methods = client.features[x].methods || false;
200
199
  if (methods) for (const y in methods) {
200
+
201
201
  const isFunc = typeof methods[y] === 'function';
202
- if (isFunc) this.methods[y] = methods[y].bind(this);
202
+ if (isFunc) {
203
+ this.methods[y] = methods[y].bind(this);
204
+ }
203
205
  }
204
206
  }
205
207
  const _client = this.copy(client); // copy the client parameter
@@ -685,7 +687,7 @@ class Deva {
685
687
  return this._assignBind();
686
688
  }).then(() => {
687
689
  return this._assignListeners();
688
- }).then(() => {
690
+ }).then(() => {y
689
691
  return this.Client(client);
690
692
  }).then(() => {
691
693
  return this.Security();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indra.ai/deva",
3
- "version": "1.2.36",
3
+ "version": "1.2.37",
4
4
  "description": "The Deva Core",
5
5
  "main": "index.js",
6
6
  "type": "module",