@indra.ai/deva.justice 0.10.1 → 0.11.0

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 +5 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -92,12 +92,15 @@ const JusticeDeva = new Deva({
92
92
 
93
93
  this.state('get', `mongo:global:${data.id.uid}`);
94
94
  const {uri,database, log} = this.justice().global.mongo;
95
+
95
96
  this.state('set', `mongo:client:${data.id.uid}`);
96
97
  this.modules.client = new MongoClient(uri);
98
+
97
99
  this.state('set', `mongo:database:${data.id.uid}`);
98
- this.vars.database = database;
100
+ this.vars.database = `${database}-${VLA.uid}`;
101
+
99
102
  this.state('set', `mongo:log:${data.id.uid}`);
100
- this.vars.log = log;
103
+ this.vars.log = `${log}-${VLA.uid}`;
101
104
 
102
105
  this.prompt(`${this.vars.messages.ready} > VLA:${VLA.uid}`);
103
106
  this.action('resolve', `onReady:${data.id.uid}`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "34147667353656076982",
3
3
  "name": "@indra.ai/deva.justice",
4
- "version": "0.10.1",
4
+ "version": "0.11.0",
5
5
  "license": "VLA:34147667353656076982 LICENSE.md",
6
6
  "VLA": {
7
7
  "uid": "34147667353656076982",