@vnejs/plugins.scenario.random 0.1.11 → 0.1.12
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/random.d.ts +2 -2
- package/dist/modules/random.js +2 -2
- package/dist/types.d.ts +5 -7
- package/package.json +2 -4
- package/src/modules/random.ts +2 -2
- package/src/types.ts +5 -7
package/dist/modules/random.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ModuleCore } from "@vnejs/module.core";
|
|
2
2
|
import type { RandomPluginConstants, RandomPluginEvents, RandomPluginParams, RandomPluginSettings } from "../types.js";
|
|
3
|
-
export declare class Random extends
|
|
3
|
+
export declare class Random extends ModuleCore<RandomPluginEvents, RandomPluginConstants, RandomPluginSettings, RandomPluginParams> {
|
|
4
4
|
name: string;
|
|
5
5
|
init: () => Promise<unknown[]> | undefined;
|
|
6
6
|
onLineExec: () => Promise<void>;
|
package/dist/modules/random.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export class Random extends
|
|
1
|
+
import { ModuleCore } from "@vnejs/module.core";
|
|
2
|
+
export class Random extends ModuleCore {
|
|
3
3
|
name = "random";
|
|
4
4
|
init = () => this.emit(this.EVENTS.SCENARIO.LINE_EXEC_REG, { block: this.name, handler: this.onLineExec });
|
|
5
5
|
onLineExec = async () => {
|
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export type
|
|
5
|
-
export type
|
|
6
|
-
export type RandomPluginSettings = VnePluginSettingsMapRegistry;
|
|
7
|
-
export type RandomPluginParams = VnePluginParamsMapRegistry;
|
|
1
|
+
import type { ModuleCoreConstants, ModuleCoreEvents, ModuleCoreParams, ModuleCoreSettings } from "@vnejs/module.core";
|
|
2
|
+
export type RandomPluginEvents = ModuleCoreEvents;
|
|
3
|
+
export type RandomPluginConstants = ModuleCoreConstants;
|
|
4
|
+
export type RandomPluginSettings = ModuleCoreSettings;
|
|
5
|
+
export type RandomPluginParams = ModuleCoreParams;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vnejs/plugins.scenario.random",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -33,9 +33,7 @@
|
|
|
33
33
|
"@vnejs/plugins.scenario.random.contract": "~0.1.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@vnejs/module": "~0.1.0",
|
|
37
|
-
"@vnejs/plugins.core.logs.contract": "~0.1.0",
|
|
38
|
-
"@vnejs/plugins.core.scenario.contract": "~0.1.0",
|
|
36
|
+
"@vnejs/module.core": "~0.1.0",
|
|
39
37
|
"@vnejs/shared": "~0.1.0"
|
|
40
38
|
},
|
|
41
39
|
"devDependencies": {
|
package/src/modules/random.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ModuleCore } from "@vnejs/module.core";
|
|
2
2
|
|
|
3
3
|
import type { RandomPluginConstants, RandomPluginEvents, RandomPluginParams, RandomPluginSettings } from "../types.js";
|
|
4
4
|
import type { ScenarioLine } from "../utils/random.js";
|
|
5
5
|
|
|
6
|
-
export class Random extends
|
|
6
|
+
export class Random extends ModuleCore<RandomPluginEvents, RandomPluginConstants, RandomPluginSettings, RandomPluginParams> {
|
|
7
7
|
name = "random";
|
|
8
8
|
|
|
9
9
|
init = () => this.emit(this.EVENTS.SCENARIO.LINE_EXEC_REG, { block: this.name, handler: this.onLineExec });
|
package/src/types.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { PluginName as LogsPluginName, SubscribeEvents as LogsSubscribeEvents } from "@vnejs/plugins.core.logs.contract";
|
|
3
|
-
import type { PluginName as ScenarioPluginName, SubscribeEvents as ScenarioSubscribeEvents } from "@vnejs/plugins.core.scenario.contract";
|
|
1
|
+
import type { ModuleCoreConstants, ModuleCoreEvents, ModuleCoreParams, ModuleCoreSettings } from "@vnejs/module.core";
|
|
4
2
|
|
|
5
|
-
export type RandomPluginEvents =
|
|
3
|
+
export type RandomPluginEvents = ModuleCoreEvents;
|
|
6
4
|
|
|
7
|
-
export type RandomPluginConstants =
|
|
5
|
+
export type RandomPluginConstants = ModuleCoreConstants;
|
|
8
6
|
|
|
9
|
-
export type RandomPluginSettings =
|
|
7
|
+
export type RandomPluginSettings = ModuleCoreSettings;
|
|
10
8
|
|
|
11
|
-
export type RandomPluginParams =
|
|
9
|
+
export type RandomPluginParams = ModuleCoreParams;
|