@vnejs/plugins.vars.counters 0.1.21 → 0.2.1

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.
@@ -41,7 +41,7 @@ export class Counters extends ModuleCore {
41
41
  return withValue ? { ...result, value: Number(await this.emitOne(this.EVENTS.VARS_COUNTERS.GET, { name, isGlobal, state })) } : result;
42
42
  };
43
43
  onCounterExecCheck = async ({ line = "", keywords = [], state = null } = {}) => {
44
- const { action = "", execValue = 0, value = 0 } = (await this.emitOne(this.EVENTS.VARS_COUNTERS.EXEC_INFO, { line, keywords, state }));
44
+ const { action = "", execValue = 0, value = 0, } = (await this.emitOne(this.EVENTS.VARS_COUNTERS.EXEC_INFO, { line, keywords, state }));
45
45
  return this.emitOne(this.EVENTS.VARS_COUNTERS.COMPARE, { value, execValue, action });
46
46
  };
47
47
  onCounterExecGet = async ({ line = "", keywords = [], state = null } = {}) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/plugins.vars.counters",
3
- "version": "0.1.21",
3
+ "version": "0.2.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -30,18 +30,18 @@
30
30
  "author": "",
31
31
  "license": "ISC",
32
32
  "dependencies": {
33
- "@vnejs/contracts.vars.counters": "~0.1.0"
33
+ "@vnejs/contracts.vars.counters": "~0.2.0"
34
34
  },
35
35
  "peerDependencies": {
36
- "@vnejs/helpers": "~0.1.0",
37
- "@vnejs/module.core": "~0.1.0",
38
- "@vnejs/contracts.vars": "~0.1.0",
39
- "@vnejs/shared": "~0.1.0"
36
+ "@vnejs/helpers": "~0.2.0",
37
+ "@vnejs/module.core": "~0.2.0",
38
+ "@vnejs/contracts.vars": "~0.2.0",
39
+ "@vnejs/shared": "~0.2.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@vnejs/configs.ts-common": "~0.1.0",
43
- "@vnejs/configs.vitest": "~0.1.0",
44
- "@vnejs/test-utils": "~0.1.0",
45
- "@vnejs/contracts.vars": "~0.1.0"
42
+ "@vnejs/configs.ts-common": "~0.2.0",
43
+ "@vnejs/configs.vitest": "~0.2.0",
44
+ "@vnejs/test-utils": "~0.2.0",
45
+ "@vnejs/contracts.vars": "~0.2.0"
46
46
  }
47
47
  }
@@ -70,7 +70,11 @@ export class Counters extends ModuleCore<CountersPluginEvents, CountersPluginCon
70
70
  };
71
71
 
72
72
  onCounterExecCheck = async ({ line = "", keywords = [], state = null }: CountersExecCheckPayload = {}) => {
73
- const { action = "", execValue = 0, value = 0 } = (await this.emitOne(this.EVENTS.VARS_COUNTERS.EXEC_INFO, { line, keywords, state })) as CountersExecInfoResult;
73
+ const {
74
+ action = "",
75
+ execValue = 0,
76
+ value = 0,
77
+ } = (await this.emitOne(this.EVENTS.VARS_COUNTERS.EXEC_INFO, { line, keywords, state })) as CountersExecInfoResult;
74
78
 
75
79
  return this.emitOne(this.EVENTS.VARS_COUNTERS.COMPARE, { value, execValue, action });
76
80
  };
package/src/types.ts CHANGED
@@ -1,9 +1,5 @@
1
1
  import type { ModuleCoreConstants, ModuleCoreEvents, ModuleCoreParams, ModuleCoreSettings } from "@vnejs/module.core";
2
- import type {
3
- Constants as VarsConstants,
4
- PluginName as VarsPluginName,
5
- SubscribeEvents as VarsSubscribeEvents,
6
- } from "@vnejs/contracts.vars";
2
+ import type { Constants as VarsConstants, PluginName as VarsPluginName, SubscribeEvents as VarsSubscribeEvents } from "@vnejs/contracts.vars";
7
3
  import type { Constants, PluginName, SubscribeEvents } from "@vnejs/contracts.vars.counters";
8
4
 
9
5
  export type CountersPluginEvents = ModuleCoreEvents & Record<PluginName, SubscribeEvents> & Record<VarsPluginName, VarsSubscribeEvents>;