@indra.ai/deva 1.1.36 → 1.1.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 +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1272,8 +1272,8 @@ class Deva {
1272
1272
  created: Date.now(),
1273
1273
  }
1274
1274
  _data.hash = this.hash(JSON.stringify(_data));
1275
- const hasOnExit = this.onExit && typeof this.onExit === 'function';
1276
- return hasOnExit ? this.onExit(_data) : Promise.resolve(_data)
1275
+ const hasOnDone = this.onDone && typeof this.onDone === 'function';
1276
+ return hasOnDone ? this.onDone(_data) : Promise.resolve(_data)
1277
1277
  }
1278
1278
 
1279
1279
  ////////////////////////////
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indra.ai/deva",
3
- "version": "1.1.36",
3
+ "version": "1.1.37",
4
4
  "description": "The Deva Core",
5
5
  "main": "index.js",
6
6
  "scripts": {