@vnejs/plugins.time.time 0.1.17 → 0.1.18

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.
@@ -12,7 +12,7 @@ export class TimeModule extends ModuleCore {
12
12
  onLineExec = async ({ line = "" } = {}) => {
13
13
  const [action = "", hours = 0, minutes = 0, seconds = 0] = tokenizeExecLine(line);
14
14
  await this.emitTimeEvent(String(action), { hours: Number(hours), minutes: Number(minutes), seconds: Number(seconds) });
15
- this.emit(this.EVENTS.SCENARIO.NEXT, { module: this.name });
15
+ this.emitNext();
16
16
  };
17
17
  onTimeSet = ({ hours = 0, minutes = 0, seconds = 0 } = {}) => {
18
18
  this.setState({ hours, minutes, seconds });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/plugins.time.time",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,7 +24,7 @@ export class TimeModule extends ModuleCore<TimePluginEvents, TimePluginConstants
24
24
 
25
25
  await this.emitTimeEvent(String(action), { hours: Number(hours), minutes: Number(minutes), seconds: Number(seconds) });
26
26
 
27
- this.emit(this.EVENTS.SCENARIO.NEXT, { module: this.name });
27
+ this.emitNext();
28
28
  };
29
29
 
30
30
  onTimeSet = ({ hours = 0, minutes = 0, seconds = 0 }: TimeValuePayload = {}) => {