@indra.ai/deva 1.1.97 → 1.1.98

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 -7
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1196,22 +1196,21 @@ class Deva {
1196
1196
  - st: The zone flag to set for the Deva that matches to this._zones
1197
1197
  describe
1198
1198
  ***************/
1199
- zone(zone, data=false) {
1199
+ zone(zone) {
1200
1200
  try {
1201
1201
  if (!this._zones[zone]) return;
1202
1202
  this._zone = zone;
1203
1203
  const text = this._messages.zones[zone];
1204
- const data = {
1204
+ const talk = {
1205
1205
  id: this.uid(true),
1206
1206
  key: 'zone',
1207
1207
  value: zone,
1208
1208
  agent: this._agent,
1209
1209
  text,
1210
- data,
1211
1210
  created: Date.now(),
1212
1211
  };
1213
- data.hash = this.hash(data);
1214
- this.talk(config.events.zone, data);
1212
+ talk.hash = this.hash(talk);
1213
+ this.talk(config.events.zone, talk);
1215
1214
  } catch (e) {
1216
1215
  return this.error(e);
1217
1216
  }
@@ -1250,7 +1249,7 @@ class Deva {
1250
1249
  - st: The state flag to set for the Deva that matches to this._states
1251
1250
  describe
1252
1251
  ***************/
1253
- feature(feature, data=false) {
1252
+ feature(feature) {
1254
1253
  try {
1255
1254
  if (!this._features[feature]) return;
1256
1255
  this._feature = feature;
@@ -1261,7 +1260,6 @@ class Deva {
1261
1260
  value: feature,
1262
1261
  agent: this._agent,
1263
1262
  text,
1264
- data,
1265
1263
  created: Date.now(),
1266
1264
  };
1267
1265
  talk.hash = this.hash(talk);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indra.ai/deva",
3
- "version": "1.1.97",
3
+ "version": "1.1.98",
4
4
  "description": "The Deva Core",
5
5
  "main": "index.js",
6
6
  "scripts": {