@indra.ai/deva 1.1.76 → 1.1.77
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 +3 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -539,6 +539,9 @@ class Deva {
|
|
|
539
539
|
// bind parser
|
|
540
540
|
const parse = this._agent && this._agent.parse && typeof this._agent.parse === 'function';
|
|
541
541
|
if (parse) this._agent.parse = this._agent.parse.bind(this);
|
|
542
|
+
// bind process
|
|
543
|
+
const process = this._agent && this._agent.process && typeof this._agent.process === 'function';
|
|
544
|
+
if (parse) this._agent.process = this._agent.process.bind(this);
|
|
542
545
|
}
|
|
543
546
|
catch (e) {
|
|
544
547
|
return this.error(e, false, reject); // trigger the this.error for errors
|