@vnejs/plugins.time.time 0.1.15 → 0.1.16

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.
@@ -1,8 +1,8 @@
1
- import { Module, type ModuleGlobalStateRegistry } from "@vnejs/module";
2
- import type { LineExecHandlerArg } from "@vnejs/plugins.core.scenario.contract";
1
+ import { ModuleCore, type ModuleGlobalStateRegistry } from "@vnejs/module.core";
2
+ import type { LineExecHandlerArg } from "@vnejs/module.core";
3
3
  import type { TimePluginConstants, TimePluginEvents, TimePluginParams, TimePluginSettings } from "../types.js";
4
4
  import type { TimeState, TimeValuePayload } from "../utils/time.js";
5
- export declare class TimeModule extends Module<TimePluginEvents, TimePluginConstants, TimePluginSettings, TimePluginParams, TimeState> {
5
+ export declare class TimeModule extends ModuleCore<TimePluginEvents, TimePluginConstants, TimePluginSettings, TimePluginParams, TimeState> {
6
6
  name: string;
7
7
  subscribe: () => void;
8
8
  init: () => Promise<unknown[]> | undefined;
@@ -1,6 +1,6 @@
1
- import { Module } from "@vnejs/module";
1
+ import { ModuleCore } from "@vnejs/module.core";
2
2
  import { tokenizeExecLine } from "@vnejs/helpers";
3
- export class TimeModule extends Module {
3
+ export class TimeModule extends ModuleCore {
4
4
  name = "time";
5
5
  subscribe = () => {
6
6
  this.on(this.EVENTS.TIME.SET, this.onTimeSet);
package/dist/types.d.ts CHANGED
@@ -1,9 +1,6 @@
1
- import type { VnePluginConstantsMapRegistry, VnePluginEventsMapRegistry, VnePluginParamsMapRegistry, VnePluginSettingsMapRegistry } from "@vnejs/shared";
2
- import type { PluginName as ScenarioPluginName, SubscribeEvents as ScenarioSubscribeEvents } from "@vnejs/plugins.core.scenario.contract";
3
- import type { PluginName as StatePluginName, SubscribeEvents as StateSubscribeEvents } from "@vnejs/plugins.core.state.contract";
4
- import type { PluginName as VendorsPluginName, SubscribeEvents as VendorsSubscribeEvents } from "@vnejs/plugins.core.vendors.contract";
1
+ import type { ModuleCoreConstants, ModuleCoreEvents, ModuleCoreParams, ModuleCoreSettings } from "@vnejs/module.core";
5
2
  import type { Constants, PluginName, SubscribeEvents } from "@vnejs/plugins.time.time.contract";
6
- export type TimePluginEvents = VnePluginEventsMapRegistry & Record<PluginName, SubscribeEvents> & Record<ScenarioPluginName, ScenarioSubscribeEvents> & Record<StatePluginName, StateSubscribeEvents> & Record<VendorsPluginName, VendorsSubscribeEvents>;
7
- export type TimePluginConstants = VnePluginConstantsMapRegistry & Record<PluginName, Constants>;
8
- export type TimePluginSettings = VnePluginSettingsMapRegistry;
9
- export type TimePluginParams = VnePluginParamsMapRegistry;
3
+ export type TimePluginEvents = ModuleCoreEvents & Record<PluginName, SubscribeEvents>;
4
+ export type TimePluginConstants = ModuleCoreConstants & Record<PluginName, Constants>;
5
+ export type TimePluginSettings = ModuleCoreSettings;
6
+ export type TimePluginParams = ModuleCoreParams;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/plugins.time.time",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -34,10 +34,7 @@
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@vnejs/helpers": "~0.1.0",
37
- "@vnejs/module": "~0.1.0",
38
- "@vnejs/plugins.core.scenario.contract": "~0.1.0",
39
- "@vnejs/plugins.core.state.contract": "~0.1.0",
40
- "@vnejs/plugins.core.vendors.contract": "~0.1.0",
37
+ "@vnejs/module.core": "~0.1.0",
41
38
  "@vnejs/shared": "~0.1.0"
42
39
  },
43
40
  "devDependencies": {
@@ -1,12 +1,12 @@
1
- import { Module, type ModuleGlobalStateRegistry } from "@vnejs/module";
1
+ import { ModuleCore, type ModuleGlobalStateRegistry } from "@vnejs/module.core";
2
2
  import { tokenizeExecLine } from "@vnejs/helpers";
3
3
 
4
- import type { LineExecHandlerArg } from "@vnejs/plugins.core.scenario.contract";
4
+ import type { LineExecHandlerArg } from "@vnejs/module.core";
5
5
 
6
6
  import type { TimePluginConstants, TimePluginEvents, TimePluginParams, TimePluginSettings } from "../types.js";
7
7
  import type { TimeState, TimeValuePayload } from "../utils/time.js";
8
8
 
9
- export class TimeModule extends Module<TimePluginEvents, TimePluginConstants, TimePluginSettings, TimePluginParams, TimeState> {
9
+ export class TimeModule extends ModuleCore<TimePluginEvents, TimePluginConstants, TimePluginSettings, TimePluginParams, TimeState> {
10
10
  name = "time";
11
11
 
12
12
  subscribe = () => {
package/src/types.ts CHANGED
@@ -1,17 +1,10 @@
1
- import type { VnePluginConstantsMapRegistry, VnePluginEventsMapRegistry, VnePluginParamsMapRegistry, VnePluginSettingsMapRegistry } from "@vnejs/shared";
2
- import type { PluginName as ScenarioPluginName, SubscribeEvents as ScenarioSubscribeEvents } from "@vnejs/plugins.core.scenario.contract";
3
- import type { PluginName as StatePluginName, SubscribeEvents as StateSubscribeEvents } from "@vnejs/plugins.core.state.contract";
4
- import type { PluginName as VendorsPluginName, SubscribeEvents as VendorsSubscribeEvents } from "@vnejs/plugins.core.vendors.contract";
1
+ import type { ModuleCoreConstants, ModuleCoreEvents, ModuleCoreParams, ModuleCoreSettings } from "@vnejs/module.core";
5
2
  import type { Constants, PluginName, SubscribeEvents } from "@vnejs/plugins.time.time.contract";
6
3
 
7
- export type TimePluginEvents = VnePluginEventsMapRegistry &
8
- Record<PluginName, SubscribeEvents> &
9
- Record<ScenarioPluginName, ScenarioSubscribeEvents> &
10
- Record<StatePluginName, StateSubscribeEvents> &
11
- Record<VendorsPluginName, VendorsSubscribeEvents>;
4
+ export type TimePluginEvents = ModuleCoreEvents & Record<PluginName, SubscribeEvents>;
12
5
 
13
- export type TimePluginConstants = VnePluginConstantsMapRegistry & Record<PluginName, Constants>;
6
+ export type TimePluginConstants = ModuleCoreConstants & Record<PluginName, Constants>;
14
7
 
15
- export type TimePluginSettings = VnePluginSettingsMapRegistry;
8
+ export type TimePluginSettings = ModuleCoreSettings;
16
9
 
17
- export type TimePluginParams = VnePluginParamsMapRegistry;
10
+ export type TimePluginParams = ModuleCoreParams;