@indra.ai/deva.license 0.0.1 → 0.0.3
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 -8
- package/package.json +7 -5
package/index.js
CHANGED
|
@@ -40,10 +40,11 @@ const LICENSE = new Deva({
|
|
|
40
40
|
},
|
|
41
41
|
listeners: {
|
|
42
42
|
'devacore:question'(packet) {
|
|
43
|
-
|
|
43
|
+
console.log('agent', packet.q.agent.key);
|
|
44
|
+
this.methods.echo(agent.key, 'q', packet);
|
|
44
45
|
},
|
|
45
46
|
'devacore:answer'(packet) {
|
|
46
|
-
|
|
47
|
+
this.methods.echo(agent.key, 'a', packet);
|
|
47
48
|
}
|
|
48
49
|
},
|
|
49
50
|
modules: {
|
|
@@ -175,7 +176,7 @@ const LICENSE = new Deva({
|
|
|
175
176
|
});
|
|
176
177
|
},
|
|
177
178
|
/**************
|
|
178
|
-
method:
|
|
179
|
+
method: search
|
|
179
180
|
params: packet
|
|
180
181
|
describe: get history
|
|
181
182
|
***************/
|
|
@@ -214,11 +215,15 @@ const LICENSE = new Deva({
|
|
|
214
215
|
},
|
|
215
216
|
},
|
|
216
217
|
onReady(data, resolve) {
|
|
217
|
-
const {
|
|
218
|
-
this.
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
218
|
+
const {concerns, global, personal} = this.license(); // get the license config
|
|
219
|
+
this.vars.license = personal.VLA || false; // set the license into local vars
|
|
220
|
+
|
|
221
|
+
const {uri,database} = global.mongo; // set the datase
|
|
222
|
+
|
|
223
|
+
this.modules.client = new MongoClient(uri); // set the client module for the database.
|
|
224
|
+
this.vars.database = database; // set the database into the local vars
|
|
225
|
+
this.prompt(this.vars.messages.ready); // prompt message ready
|
|
226
|
+
return resolve(data); // resolve data.
|
|
222
227
|
},
|
|
223
228
|
onError(err, data) {
|
|
224
229
|
this.prompt(this.vars.messages.error);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "41840925813499570000",
|
|
3
3
|
"name": "@indra.ai/deva.license",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.3",
|
|
5
5
|
"license": "VLA:20758568792947085964 LICENSE.md",
|
|
6
6
|
"VLA": {
|
|
7
7
|
"uid": "20758568792947085964",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
},
|
|
14
14
|
"author": {
|
|
15
15
|
"name": "Quinn A Michaels",
|
|
16
|
+
"company": "Inside The Net, Inc.",
|
|
16
17
|
"email": "quinn@indra.ai",
|
|
17
|
-
"url": "https://indra.ai/"
|
|
18
|
-
"company": "Inside The Net, Inc."
|
|
18
|
+
"url": "https://indra.ai/"
|
|
19
19
|
},
|
|
20
20
|
"funding": [
|
|
21
21
|
{
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"homepage": "https://indra.ai",
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@indra.ai/deva": "^1.6.
|
|
54
|
+
"@indra.ai/deva": "^1.6.10",
|
|
55
55
|
"mongodb": "^6.13.0"
|
|
56
56
|
},
|
|
57
57
|
"data": {
|
|
@@ -98,7 +98,9 @@
|
|
|
98
98
|
"background": "/assets/background.png",
|
|
99
99
|
"owner": "Quinn A Michaels",
|
|
100
100
|
"creator": "Quinn A Michaels",
|
|
101
|
-
"
|
|
101
|
+
"copyright": "(c)2025 Quinn A Michaels; All rights reserved.",
|
|
102
|
+
"created": "Monday, Septemper 8, 2025 - 1:25:01 PM",
|
|
103
|
+
"modified": "Monday, September 8, 2025 - 3:02:42 PM"
|
|
102
104
|
}
|
|
103
105
|
},
|
|
104
106
|
"vars": {
|