@vnejs/plugins.vars.counters 0.2.6 → 0.2.8

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/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "@vnejs/contracts.vars.counters";
2
- import { regPlugin } from "@vnejs/shared";
2
+ import { regPlugin } from "@vnejs/registry";
3
3
  import { CONSTANTS, PLUGIN_NAME, SUBSCRIBE_EVENTS } from "@vnejs/contracts.vars.counters";
4
4
  import { VarsCounters } from "./modules/counters.js";
5
5
  import { VarsCountersExec } from "./modules/exec.js";
@@ -4,7 +4,7 @@ import type { CountersPluginConstants, CountersPluginEvents, CountersPluginParam
4
4
  export declare class VarsCounters extends ModuleCore<CountersPluginEvents, CountersPluginConstants, CountersPluginSettings, CountersPluginParams> {
5
5
  name: string;
6
6
  subscribe: () => void;
7
- init: () => Promise<import("@vnejs/shared").EmitResults<"vne:vars:default_reg">> | undefined;
8
- onCounterSet: ({ name, isGlobal, value }?: CountersSetPayload) => Promise<import("@vnejs/shared").EmitResults<"vne:vars:set">> | undefined;
7
+ init: () => Promise<import("@vnejs/registry").EmitResults<"vne:vars:default_reg">> | undefined;
8
+ onCounterSet: ({ name, isGlobal, value }?: CountersSetPayload) => Promise<import("@vnejs/registry").EmitResults<"vne:vars:set">> | undefined;
9
9
  onCounterGet: ({ name, isGlobal, state }?: CountersGetPayload) => Promise<number | undefined>;
10
10
  }
@@ -3,7 +3,7 @@ import type { LineExecHandlerArg } from "@vnejs/module.core";
3
3
  import type { CountersPluginConstants, CountersPluginEvents, CountersPluginParams, CountersPluginSettings } from "../types.js";
4
4
  export declare class VarsCountersScenario extends ModuleCore<CountersPluginEvents, CountersPluginConstants, CountersPluginSettings, CountersPluginParams> {
5
5
  name: string;
6
- init: () => Promise<[import("@vnejs/shared").EmitResults<"vne:scenario:line_exec_reg"> | undefined, import("@vnejs/shared").EmitResults<"vne:scenario:line_exec_reg"> | undefined]>;
6
+ init: () => Promise<[import("@vnejs/registry").EmitResults<"vne:scenario:line_exec_reg"> | undefined, import("@vnejs/registry").EmitResults<"vne:scenario:line_exec_reg"> | undefined]>;
7
7
  onLineExecBlock: ({ line, keywords }?: LineExecHandlerArg) => Promise<void>;
8
8
  onLineExecModule: ({ line, keywords }?: LineExecHandlerArg) => Promise<void>;
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/plugins.vars.counters",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -36,7 +36,7 @@
36
36
  "@vnejs/helpers": "~0.2.0",
37
37
  "@vnejs/module.core": "~0.2.0",
38
38
  "@vnejs/contracts.vars": "~0.2.0",
39
- "@vnejs/shared": "~0.2.0"
39
+ "@vnejs/registry": "~0.2.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@vnejs/configs.ts-common": "~0.2.0",
package/src/index.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import "@vnejs/contracts.vars.counters";
2
2
 
3
- import { regPlugin } from "@vnejs/shared";
3
+ import { regPlugin } from "@vnejs/registry";
4
+
4
5
  import { CONSTANTS, PLUGIN_NAME, SUBSCRIBE_EVENTS } from "@vnejs/contracts.vars.counters";
5
6
 
6
7
  import { VarsCounters } from "./modules/counters.js";
@@ -1,6 +1,7 @@
1
1
  import { ModuleCore } from "@vnejs/module.core";
2
- import type { CountersGetPayload, CountersSetPayload } from "@vnejs/contracts.vars.counters";
2
+
3
3
  import type { VarsSetPayload } from "@vnejs/contracts.vars";
4
+ import type { CountersGetPayload, CountersSetPayload } from "@vnejs/contracts.vars.counters";
4
5
 
5
6
  import type { CountersPluginConstants, CountersPluginEvents, CountersPluginParams, CountersPluginSettings } from "../types.js";
6
7
 
@@ -1,5 +1,7 @@
1
1
  import { ModuleCore } from "@vnejs/module.core";
2
+
2
3
  import { tokenizeExecLine } from "@vnejs/helpers";
4
+
3
5
  import type { CountersExecCheckPayload, CountersExecInfoPayload, CountersExecInfoResult } from "@vnejs/contracts.vars.counters";
4
6
 
5
7
  import type { CountersPluginConstants, CountersPluginEvents, CountersPluginParams, CountersPluginSettings } from "../types.js";
@@ -1,4 +1,5 @@
1
1
  import { ModuleCore } from "@vnejs/module.core";
2
+
2
3
  import type { CountersChangePayload, CountersComparePayload } from "@vnejs/contracts.vars.counters";
3
4
 
4
5
  import type { CountersPluginConstants, CountersPluginEvents, CountersPluginParams, CountersPluginSettings } from "../types.js";
@@ -1,6 +1,7 @@
1
1
  import { ModuleCore } from "@vnejs/module.core";
2
2
 
3
3
  import type { LineExecHandlerArg } from "@vnejs/module.core";
4
+
4
5
  import type { CountersSetPayload } from "@vnejs/contracts.vars.counters";
5
6
 
6
7
  import type { CountersPluginConstants, CountersPluginEvents, CountersPluginParams, CountersPluginSettings } from "../types.js";
@@ -1,9 +1,11 @@
1
1
  import { beforeEach, describe, expect, it } from "vitest";
2
2
 
3
- import { SUBSCRIBE_EVENTS as VARS_EVENTS } from "@vnejs/contracts.vars";
4
3
  import { spyEvent } from "@vnejs/test-utils";
5
4
 
5
+ import { SUBSCRIBE_EVENTS as VARS_EVENTS } from "@vnejs/contracts.vars";
6
+
6
7
  import { VarsCounters } from "../modules/counters.js";
8
+
7
9
  import { CONSTANTS, createCountersTestModule, registerCountersPluginVne, SUBSCRIBE_EVENTS } from "./setup.js";
8
10
 
9
11
  describe("VarsCounters", () => {
@@ -3,6 +3,7 @@ import { beforeEach, describe, expect, it } from "vitest";
3
3
  import { stubEvent } from "@vnejs/test-utils";
4
4
 
5
5
  import { VarsCountersExec } from "../modules/exec.js";
6
+
6
7
  import { CONSTANTS, createCountersTestModule, registerCountersPluginVne, SUBSCRIBE_EVENTS } from "./setup.js";
7
8
 
8
9
  describe("VarsCountersExec", () => {
@@ -1,6 +1,7 @@
1
1
  import { beforeEach, describe, expect, it } from "vitest";
2
2
 
3
3
  import { VarsCountersHandlers } from "../modules/handlers.js";
4
+
4
5
  import { CONSTANTS, createCountersTestModule, registerCountersPluginVne, SUBSCRIBE_EVENTS } from "./setup.js";
5
6
 
6
7
  describe("VarsCountersHandlers", () => {
@@ -1,6 +1,7 @@
1
+ import { createTestModule, registerCoreVne, registerVnePlugin } from "@vnejs/test-utils";
2
+
1
3
  import { CONSTANTS as VARS_CONST, PLUGIN_NAME as VARS, SUBSCRIBE_EVENTS as VARS_EVENTS } from "@vnejs/contracts.vars";
2
4
  import { CONSTANTS, PLUGIN_NAME, SUBSCRIBE_EVENTS } from "@vnejs/contracts.vars.counters";
3
- import { createTestModule, registerCoreVne, registerVnePlugin } from "@vnejs/test-utils";
4
5
 
5
6
  export const registerCountersPluginVne = () => {
6
7
  registerCoreVne();
package/src/types.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { ModuleCoreConstants, ModuleCoreEvents, ModuleCoreParams, ModuleCoreSettings } from "@vnejs/module.core";
2
+
2
3
  import type { Constants as VarsConstants, PluginName as VarsPluginName, SubscribeEvents as VarsSubscribeEvents } from "@vnejs/contracts.vars";
3
4
  import type { Constants, PluginName, SubscribeEvents } from "@vnejs/contracts.vars.counters";
4
5