@indra.ai/deva.security 0.13.12 → 0.13.14

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 +3 -2
  2. package/package.json +5 -3
package/index.js CHANGED
@@ -113,9 +113,11 @@ const SecurityDeva = 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
- async onReady(data, resolve) {
116
+
117
+ onReady(data, resolve) {
117
118
  const {VLA} = this.info();
118
119
 
120
+
119
121
  this.state('get', `mongo:global:${data.id.uid}`);
120
122
  const {uri,database, log} = this.security().global.mongo;
121
123
  this.state('set', `mongo:client:${data.id.uid}`);
@@ -128,7 +130,6 @@ const SecurityDeva = new Deva({
128
130
  this.prompt(`${this.vars.messages.ready} > VLA:${VLA.uid}`);
129
131
 
130
132
  this.action('resolve', `onReady:${data.id.uid}`);
131
- this.prompt(`this is the main security`)
132
133
  return resolve(data);
133
134
  },
134
135
  onError(err, data, reject) {
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.12",
4
+ "version": "0.13.14",
5
5
  "license": "VLA:40899039373337698066 LICENSE.md",
6
6
  "VLA": {
7
7
  "uid": "40899039373337698066",
@@ -33,7 +33,8 @@
33
33
  "main": "index.js",
34
34
  "type": "module",
35
35
  "scripts": {
36
- "test": "echo \"Error: no test specified\" && exit 1"
36
+ "test": "echo \"Error: no test specified\" && exit 1",
37
+ "latest": "npm i @indra.ai/deva@latest @indra.ai/deva.vector@latest --save"
37
38
  },
38
39
  "repository": {
39
40
  "type": "git",
@@ -58,7 +59,8 @@
58
59
  },
59
60
  "homepage": "https://deva.space/devas/security",
60
61
  "dependencies": {
61
- "@indra.ai/deva": "^1.29.11",
62
+ "@indra.ai/deva": "^1.29.13",
63
+ "@indra.ai/deva.vector": "^0.8.12",
62
64
  "mongodb": "^6.20.0"
63
65
  },
64
66
  "data": {