@indra.ai/deva 1.3.13 → 1.3.14
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 +18 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1265,6 +1265,24 @@ class Deva {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
1267
|
|
|
1268
|
+
/**************
|
|
1269
|
+
func: networks
|
|
1270
|
+
params: none
|
|
1271
|
+
describe: basic networks features available in a Deva.
|
|
1272
|
+
usage: this.networks()
|
|
1273
|
+
***************/
|
|
1274
|
+
networks() {
|
|
1275
|
+
if (!this._active) return this._messages.offline; // check the active status
|
|
1276
|
+
this.zone('networks');
|
|
1277
|
+
this.feature('networks'); // set the support state
|
|
1278
|
+
try {
|
|
1279
|
+
this.state('return', 'networks'); // set the networks state
|
|
1280
|
+
return this.lib.copy(this._networks); // return the networks feature
|
|
1281
|
+
} catch (e) {
|
|
1282
|
+
return this.error(e); // return this.error when error catch
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1268
1286
|
/**************
|
|
1269
1287
|
func: legal
|
|
1270
1288
|
params: none
|