@indra.ai/deva.security 0.13.0 → 0.13.2
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 +9 -8
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -37,7 +37,7 @@ const info = {
|
|
|
37
37
|
copyright: pkg.copyright,
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
-
const
|
|
40
|
+
const SecurityDeva = new Deva({
|
|
41
41
|
info,
|
|
42
42
|
agent,
|
|
43
43
|
vars,
|
|
@@ -77,11 +77,11 @@ const SECURITY = new Deva({
|
|
|
77
77
|
modules: {},
|
|
78
78
|
devas: {
|
|
79
79
|
vector,
|
|
80
|
-
guard,
|
|
81
|
-
wall,
|
|
82
|
-
defense,
|
|
83
|
-
shield,
|
|
84
|
-
proxy,
|
|
80
|
+
// guard,
|
|
81
|
+
// wall,
|
|
82
|
+
// defense,
|
|
83
|
+
// shield,
|
|
84
|
+
// proxy,
|
|
85
85
|
},
|
|
86
86
|
func: {
|
|
87
87
|
/**************
|
|
@@ -113,7 +113,7 @@ const SECURITY = new Deva({
|
|
|
113
113
|
this.action('return', `onInit:${data.id.uid}`);
|
|
114
114
|
return license_check ? this.start(data, resolve) : this.stop(data, resolve);
|
|
115
115
|
},
|
|
116
|
-
onReady(data, resolve) {
|
|
116
|
+
async onReady(data, resolve) {
|
|
117
117
|
const {VLA} = this.info();
|
|
118
118
|
|
|
119
119
|
this.state('get', `mongo:global:${data.id.uid}`);
|
|
@@ -128,6 +128,7 @@ const SECURITY = new Deva({
|
|
|
128
128
|
this.prompt(`${this.vars.messages.ready} > VLA:${VLA.uid}`);
|
|
129
129
|
|
|
130
130
|
this.action('resolve', `onReady:${data.id.uid}`);
|
|
131
|
+
this.prompt(`this is the main security`)
|
|
131
132
|
return resolve(data);
|
|
132
133
|
},
|
|
133
134
|
onError(err, data, reject) {
|
|
@@ -136,4 +137,4 @@ const SECURITY = new Deva({
|
|
|
136
137
|
return reject(err);
|
|
137
138
|
}
|
|
138
139
|
});
|
|
139
|
-
export default
|
|
140
|
+
export default SecurityDeva
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "40899039373337698066",
|
|
3
3
|
"name": "@indra.ai/deva.security",
|
|
4
|
-
"version": "0.13.
|
|
4
|
+
"version": "0.13.2",
|
|
5
5
|
"license": "VLA:40899039373337698066 LICENSE.md",
|
|
6
6
|
"VLA": {
|
|
7
7
|
"uid": "40899039373337698066",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"homepage": "https://deva.space/devas/security",
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@indra.ai/deva": "^1.29.
|
|
61
|
+
"@indra.ai/deva": "^1.29.2",
|
|
62
62
|
"mongodb": "^6.20.0"
|
|
63
63
|
},
|
|
64
64
|
"data": {
|