@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.
package/dist/modules/scenario.js
CHANGED
|
@@ -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.
|
|
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.
|
|
18
|
+
this.emit(this.EVENTS.SCENARIO.NEXT);
|
|
19
19
|
};
|
|
20
20
|
}
|
package/package.json
CHANGED
package/src/modules/scenario.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
40
|
+
this.emit(this.EVENTS.SCENARIO.NEXT);
|
|
41
41
|
};
|
|
42
42
|
}
|