@indra.ai/deva 1.3.10 → 1.3.12

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 +8 -52
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -24,8 +24,7 @@ class Deva {
24
24
  this._networks = false; // inherited Systems features.
25
25
  this._legal = false; // inherited Legal features.
26
26
  this._justice = false; // inherited Justice features.
27
- this._authority = false; // inherited Authority features.
28
- this._defense = false; // inherited Defense features.
27
+ this._authority = false; // inherited Justice features.
29
28
  this.events = opts.events || new EventEmitter({}); // Event Bus
30
29
  this.lib = new lib({}); // used for loading library functions
31
30
  this.utils = opts.utils || {}; // parse function
@@ -343,17 +342,6 @@ class Deva {
343
342
  return this.Feature('authority', resolve, reject);
344
343
  }
345
344
 
346
- /**************
347
- func: Defense
348
- params: client: false
349
- describe:
350
- The Defense feature sets the correct variables and necessary rules for the
351
- client presented data.
352
- ***************/
353
- Defense(resolve, reject) {
354
- return this.Feature('defense', resolve, reject);
355
- }
356
-
357
345
  /**************
358
346
  func: Done
359
347
  params: none
@@ -694,6 +682,10 @@ class Deva {
694
682
  }).then(() => {
695
683
  return this._assignListeners();
696
684
  }).then(() => {
685
+ this.feature('init');
686
+ this.zone('init');
687
+ this.action('init');
688
+ this.state('init');
697
689
  return this.Client(client, resolve, reject);
698
690
  }).then(part => {
699
691
  this.state('done', 'client');
@@ -1294,29 +1286,11 @@ class Deva {
1294
1286
  }
1295
1287
  }
1296
1288
 
1297
- /**************
1298
- func: networks
1299
- params: none
1300
- describe: basic networks features available in a Deva.
1301
- usage: this.networks()
1302
- ***************/
1303
- networks() {
1304
- if (!this._active) return this._messages.offline; // check the active status
1305
- this.zone('networks');
1306
- this.feature('networks'); // set the support state
1307
- try {
1308
- this.state('return', 'networks'); // set the networks state
1309
- return this.lib.copy(this._networks); // return the systems feature
1310
- } catch (e) {
1311
- return this.error(e); // return this.error when error catch
1312
- }
1313
- }
1314
-
1315
1289
  /**************
1316
1290
  func: legal
1317
1291
  params: none
1318
1292
  describe: basic legal features available in a Deva.
1319
- usage: this.legal()
1293
+ usage: this.systems()
1320
1294
  ***************/
1321
1295
  legal() {
1322
1296
  if (!this._active) return this._messages.offline; // check the active status
@@ -1334,7 +1308,7 @@ class Deva {
1334
1308
  func: justice
1335
1309
  params: none
1336
1310
  describe: basic justice features available in a Deva.
1337
- usage: this.justice()
1311
+ usage: this.systems()
1338
1312
  ***************/
1339
1313
  justice() {
1340
1314
  if (!this._active) return this._messages.offline; // check the active status
@@ -1352,7 +1326,7 @@ class Deva {
1352
1326
  func: authority
1353
1327
  params: none
1354
1328
  describe: basic authority features available in a Deva.
1355
- usage: this.authority()
1329
+ usage: this.systems()
1356
1330
  ***************/
1357
1331
  authority() {
1358
1332
  if (!this._active) return this._messages.offline; // check the active status
@@ -1366,24 +1340,6 @@ class Deva {
1366
1340
  }
1367
1341
  }
1368
1342
 
1369
- /**************
1370
- func: defense
1371
- params: none
1372
- describe: basic defense features available in a Deva.
1373
- usage: this.defense()
1374
- ***************/
1375
- defense() {
1376
- if (!this._active) return this._messages.offline; // check the active status
1377
- this.zone('defense');
1378
- this.feature('defense'); // set the support state
1379
- try {
1380
- this.state('return', 'defense'); // set the systems state
1381
- return this.lib.copy(this._defense); // return the systems feature
1382
- } catch (e) {
1383
- return this.error(e); // return this.error when error catch
1384
- }
1385
- }
1386
-
1387
1343
  /**************
1388
1344
  func: load
1389
1345
  params:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indra.ai/deva",
3
- "version": "1.3.10",
3
+ "version": "1.3.12",
4
4
  "description": "The Deva Core",
5
5
  "main": "index.js",
6
6
  "type": "module",