@vnejs/plugins.views.achievement 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,7 +9,7 @@ export class AchievementExec extends ModuleCore {
9
9
  onLineExec = async ({ keywords = [], line = "" } = {}) => {
10
10
  const [action = "", ...tokens] = tokenizeExecLine(line).map(String);
11
11
  await this.emitActionExec(action, tokens, keywords);
12
- this.emitNext();
12
+ this.emit(this.EVENTS.SCENARIO.NEXT);
13
13
  };
14
14
  onLineLoad = ({ line = "", priority = this.CONST.MEDIA.PRIORITIES.BACKGROUND } = {}) => {
15
15
  const [action = "", ...tokens] = tokenizeExecLine(line).map(String);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/plugins.views.achievement",
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",
@@ -19,7 +19,7 @@ export class AchievementExec extends ModuleCore<AchievementPluginEvents, Achieve
19
19
 
20
20
  await this.emitActionExec(action, tokens, keywords);
21
21
 
22
- this.emitNext();
22
+ this.emit(this.EVENTS.SCENARIO.NEXT);
23
23
  };
24
24
 
25
25
  onLineLoad = ({ line = "", priority = this.CONST.MEDIA.PRIORITIES.BACKGROUND }: LineLoadHandlerArg = {}) => {
@@ -42,7 +42,7 @@ describe("AchievementExec", () => {
42
42
  expect(load).toHaveBeenCalledOnce();
43
43
  });
44
44
 
45
- it("line exec calls emitNext", async () => {
45
+ it("line exec emits SCENARIO.NEXT", async () => {
46
46
  const { module, observer } = createAchievementTestModule(AchievementExec, { subscribe: false });
47
47
  const next = vi.fn();
48
48