@vnejs/plugins.vars.counters 0.2.4 → 0.2.5

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.
@@ -9,12 +9,12 @@ export class VarsCountersScenario extends ModuleCore {
9
9
  const { name = "", action = "", execValue = 0, value = 0, isGlobal = false, } = (await this.emitOne(this.EVENTS.VARS_COUNTERS.EXEC_INFO, { line, keywords })) ?? {};
10
10
  const newValue = (await this.emitOne(this.EVENTS.VARS_COUNTERS.CHANGE, { value, execValue, action })) ?? 0;
11
11
  await this.emit(this.EVENTS.VARS_COUNTERS.SET, { name, isGlobal, value: newValue });
12
- this.emitNext();
12
+ this.emit(this.EVENTS.SCENARIO.NEXT);
13
13
  };
14
14
  onLineExecBlock = async ({ line = "", keywords = [] } = {}) => {
15
15
  const { action = "", execValue = 0, value = 0 } = (await this.emitOne(this.EVENTS.VARS_COUNTERS.EXEC_INFO, { line, keywords })) ?? {};
16
16
  const shouldGoInside = (await this.emitOne(this.EVENTS.VARS_COUNTERS.COMPARE, { value, execValue, action })) ?? false;
17
17
  await this.emit(this.EVENTS.VARS.SCENARIO, { shouldGoInside });
18
- this.emitNext();
18
+ this.emit(this.EVENTS.SCENARIO.NEXT);
19
19
  };
20
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/plugins.vars.counters",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -27,7 +27,7 @@ export class VarsCountersScenario extends ModuleCore<CountersPluginEvents, Count
27
27
 
28
28
  await this.emit(this.EVENTS.VARS_COUNTERS.SET, { name, isGlobal, value: newValue } satisfies CountersSetPayload);
29
29
 
30
- this.emitNext();
30
+ this.emit(this.EVENTS.SCENARIO.NEXT);
31
31
  };
32
32
 
33
33
  onLineExecBlock = async ({ line = "", keywords = [] }: LineExecHandlerArg = {}) => {
@@ -37,6 +37,6 @@ export class VarsCountersScenario extends ModuleCore<CountersPluginEvents, Count
37
37
 
38
38
  await this.emit(this.EVENTS.VARS.SCENARIO, { shouldGoInside });
39
39
 
40
- this.emitNext();
40
+ this.emit(this.EVENTS.SCENARIO.NEXT);
41
41
  };
42
42
  }