@indra.ai/deva 1.1.99 → 1.1.101
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 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
// Distributed under the MIT software license, see the accompanying
|
|
3
3
|
// file LICENSE.md or http://www.opensource.org/licenses/mit-license.php.
|
|
4
4
|
const {EventEmitter} = require('events');
|
|
5
|
+
const fs = require('fs');
|
|
6
|
+
const path = require('path');
|
|
7
|
+
|
|
5
8
|
const { createHash, randomUUID, createCipheriv, createDecipheriv, randomBytes } = require('crypto');
|
|
6
9
|
const config = require('./config.json').DATA // load the deva core configuration data.
|
|
7
10
|
class Deva {
|
|
@@ -1009,11 +1012,6 @@ class Deva {
|
|
|
1009
1012
|
delete data.hash;
|
|
1010
1013
|
data.hash = this.hash(data);
|
|
1011
1014
|
|
|
1012
|
-
if (this.info) {
|
|
1013
|
-
const _info = this.info(data.id);
|
|
1014
|
-
this.prompt(_info);
|
|
1015
|
-
}
|
|
1016
|
-
|
|
1017
1015
|
this.action(data.value);
|
|
1018
1016
|
const hasOnStart = this.onStart && typeof this.onStart === 'function' ? true : false;
|
|
1019
1017
|
return hasOnStart ? this.onStart(data) : this.enter(data)
|