@indra.ai/deva.security 0.0.33 → 0.0.34
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/feature/methods.js +12 -0
- package/package.json +1 -1
package/feature/methods.js
CHANGED
|
@@ -93,6 +93,18 @@ export default {
|
|
|
93
93
|
const theDate = this.lib.formatDate(Date.now(), 'long', true);
|
|
94
94
|
return Promise.resolve(theDate);
|
|
95
95
|
},
|
|
96
|
+
/**************
|
|
97
|
+
method: time
|
|
98
|
+
params: packet
|
|
99
|
+
describe: Return system date for today.
|
|
100
|
+
***************/
|
|
101
|
+
time(packet) {
|
|
102
|
+
this.feature('security');
|
|
103
|
+
this.action('method', 'time')
|
|
104
|
+
this.state('get', 'time')
|
|
105
|
+
const theTime = Date.now();
|
|
106
|
+
return Promise.resolve(theTime);
|
|
107
|
+
},
|
|
96
108
|
|
|
97
109
|
|
|
98
110
|
//TODO: build the write feature so it can write commands into the system.
|