@indra.ai/deva.security 0.0.121 → 0.0.123
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 +13 -0
- package/package.json +3 -1
package/index.js
CHANGED
|
@@ -50,6 +50,18 @@ const SECURITY = new Deva({
|
|
|
50
50
|
process(input) {return input.trim();}
|
|
51
51
|
},
|
|
52
52
|
listeners: {
|
|
53
|
+
// log the answer on complete
|
|
54
|
+
'devacore:done'(packet) {
|
|
55
|
+
this.func.write_log('done', packet);
|
|
56
|
+
},
|
|
57
|
+
// log the answer on complete
|
|
58
|
+
'devacore:exit'(packet) {
|
|
59
|
+
this.func.write_log('exit', packet);
|
|
60
|
+
},
|
|
61
|
+
// log the answer on complete
|
|
62
|
+
'devacore:finish'(packet) {
|
|
63
|
+
this.func.write_log('finish', packet);
|
|
64
|
+
},
|
|
53
65
|
// log the answer on complete
|
|
54
66
|
'devacore:complete'(packet) {
|
|
55
67
|
this.func.write_log('complete', packet);
|
|
@@ -89,6 +101,7 @@ const SECURITY = new Deva({
|
|
|
89
101
|
},
|
|
90
102
|
onReady(data, resolve) {
|
|
91
103
|
const {VLA} = this.info();
|
|
104
|
+
|
|
92
105
|
this.state('get', `mongo:global:${data.id.uid}`);
|
|
93
106
|
const {uri,database, log} = this.security().global.mongo;
|
|
94
107
|
this.state('set', `mongo:client:${data.id.uid}`);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "45249771785697968797",
|
|
3
3
|
"name": "@indra.ai/deva.security",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.123",
|
|
5
5
|
"license": "VLA:45249771785697968797 LICENSE.md",
|
|
6
6
|
"VLA": {
|
|
7
7
|
"uid": "45249771785697968797",
|
|
@@ -112,6 +112,8 @@
|
|
|
112
112
|
}
|
|
113
113
|
},
|
|
114
114
|
"vars": {
|
|
115
|
+
"database": false,
|
|
116
|
+
"log": false,
|
|
115
117
|
"messages": {
|
|
116
118
|
"init": "🟠 INIT",
|
|
117
119
|
"start": "🔵 START",
|