@indra.ai/deva 1.59.4 → 1.60.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 +6 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -438,13 +438,13 @@ class Deva {
|
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
|
-
const _client = this.lib.copy(client);
|
|
442
|
-
this.state('data', `client:${client.id}`);
|
|
443
|
-
this._client = _client;
|
|
441
|
+
const _client = this.lib.copy(client); // copy the client parameter
|
|
442
|
+
this.state('data', `client:${client.id}`); // set the state to data for client.
|
|
443
|
+
this._client = _client; // set local _client to this scope
|
|
444
444
|
|
|
445
|
-
this.action('return', `client:${client.id}`);
|
|
446
|
-
this.intent('good', `client:${client.id}`);
|
|
447
|
-
return resolve();
|
|
445
|
+
this.action('return', `client:${client.id}`); // set the action
|
|
446
|
+
this.intent('good', `client:${client.id}`); // set the intent
|
|
447
|
+
return resolve(); // resolve the client .
|
|
448
448
|
} catch (e) {
|
|
449
449
|
this.state('catch', `client:${client.id}`);
|
|
450
450
|
this.intent('bad', `client:${client.id}`);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "23221940810208468106",
|
|
3
3
|
"name": "@indra.ai/deva",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.60.2",
|
|
5
5
|
"description": "Deva Core a Vedic-inspired Event Based Context Aware Feature, Zone, Action, and State Machine integrated Artificial Intelligence Framework",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"license": "VLA:23221940810208468106 LICENSE.md",
|