@indra.ai/deva 1.4.3 → 1.4.5
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 +7 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -893,7 +893,7 @@ class Deva {
|
|
|
893
893
|
// has stop function then set hasOnStop variable
|
|
894
894
|
const hasOnStop = this.onStop && typeof this.onStop === 'function';
|
|
895
895
|
// if: has on stop then run on stop function or return exit function.
|
|
896
|
-
return hasOnStop ? this.onStop(data) : this.exit(
|
|
896
|
+
return hasOnStop ? this.onStop(data) : this.exit()
|
|
897
897
|
}
|
|
898
898
|
|
|
899
899
|
|
|
@@ -907,11 +907,8 @@ class Deva {
|
|
|
907
907
|
|
|
908
908
|
The return will check for a custom onExit function or run the done
|
|
909
909
|
function.
|
|
910
|
-
|
|
911
|
-
If the deva is offline it will return the offline message.
|
|
912
|
-
usage: this.exit('msg')
|
|
913
910
|
***************/
|
|
914
|
-
exit(
|
|
911
|
+
exit() {
|
|
915
912
|
this.zone('exit');
|
|
916
913
|
|
|
917
914
|
const agent = this.agent();
|
|
@@ -934,6 +931,11 @@ class Deva {
|
|
|
934
931
|
this._security = false;
|
|
935
932
|
this._support = false;
|
|
936
933
|
this._services = false;
|
|
934
|
+
this._systems = false;
|
|
935
|
+
this._networks = false;
|
|
936
|
+
this._legal = false;
|
|
937
|
+
this._authority = false;
|
|
938
|
+
this._justice = false;
|
|
937
939
|
|
|
938
940
|
this.state('exit');
|
|
939
941
|
const hasOnExit = this.onExit && typeof this.onExit === 'function';
|