@indra.ai/deva 1.1.77 → 1.1.79
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 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -541,7 +541,7 @@ class Deva {
|
|
|
541
541
|
if (parse) this._agent.parse = this._agent.parse.bind(this);
|
|
542
542
|
// bind process
|
|
543
543
|
const process = this._agent && this._agent.process && typeof this._agent.process === 'function';
|
|
544
|
-
if (
|
|
544
|
+
if (process) this._agent.process = this._agent.process.bind(this);
|
|
545
545
|
}
|
|
546
546
|
catch (e) {
|
|
547
547
|
return this.error(e, false, reject); // trigger the this.error for errors
|
|
@@ -1297,6 +1297,7 @@ class Deva {
|
|
|
1297
1297
|
const agent_copy = this.copy(this._agent);
|
|
1298
1298
|
delete agent_copy.parse;
|
|
1299
1299
|
delete agent_copy.translate;
|
|
1300
|
+
delete agent_copy.process;
|
|
1300
1301
|
return agent_copy;
|
|
1301
1302
|
}
|
|
1302
1303
|
|