@vnejs/plugins.time.time 0.2.2 → 0.2.3

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 Time 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.emitNext();
15
+ this.emit(this.EVENTS.SCENARIO.NEXT);
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.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,7 +25,7 @@ export class Time extends ModuleCore<TimePluginEvents, TimePluginConstants, Time
25
25
 
26
26
  await this.emitTimeEvent(String(action), { hours: Number(hours), minutes: Number(minutes), seconds: Number(seconds) });
27
27
 
28
- this.emitNext();
28
+ this.emit(this.EVENTS.SCENARIO.NEXT);
29
29
  };
30
30
 
31
31
  onTimeSet = ({ hours = 0, minutes = 0, seconds = 0 }: TimeValuePayload = {}) => {