@vnejs/plugins.settings.volume 0.2.2 → 0.2.4
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 +1 -1
- package/dist/modules/volume.d.ts +1 -1
- package/package.json +2 -2
- package/src/index.ts +2 -1
- package/src/tests/setup.ts +2 -1
- package/src/tests/volume.test.ts +3 -1
- package/src/types.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "@vnejs/contracts.settings.volume";
|
|
2
|
-
import { regPlugin } from "@vnejs/
|
|
2
|
+
import { regPlugin } from "@vnejs/registry";
|
|
3
3
|
import { PLUGIN_NAME, SETTINGS_KEYS } from "@vnejs/contracts.settings.volume";
|
|
4
4
|
import { Volume } from "./modules/volume.js";
|
|
5
5
|
regPlugin(PLUGIN_NAME, { settings: SETTINGS_KEYS }, [Volume]);
|
package/dist/modules/volume.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ import type { VolumePluginConstants, VolumePluginEvents, VolumePluginParams, Vol
|
|
|
3
3
|
export declare class Volume extends ModuleCore<VolumePluginEvents, VolumePluginConstants, VolumePluginSettings, VolumePluginParams> {
|
|
4
4
|
name: string;
|
|
5
5
|
isDestroyAfterStart: boolean;
|
|
6
|
-
setup: () => Promise<[import("@vnejs/
|
|
6
|
+
setup: () => Promise<[import("@vnejs/registry").EmitResults<"vne:settings:init"> | undefined, import("@vnejs/registry").EmitResults<"vne:settings:init"> | undefined, import("@vnejs/registry").EmitResults<"vne:settings:init"> | undefined]>;
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vnejs/plugins.settings.volume",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@vnejs/module.core": "~0.2.0",
|
|
37
|
-
"@vnejs/
|
|
37
|
+
"@vnejs/registry": "~0.2.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@vnejs/configs.ts-common": "~0.2.0",
|
package/src/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "@vnejs/contracts.settings.volume";
|
|
2
2
|
|
|
3
|
-
import { regPlugin } from "@vnejs/
|
|
3
|
+
import { regPlugin } from "@vnejs/registry";
|
|
4
|
+
|
|
4
5
|
import { PLUGIN_NAME, SETTINGS_KEYS } from "@vnejs/contracts.settings.volume";
|
|
5
6
|
|
|
6
7
|
import { Volume } from "./modules/volume.js";
|
package/src/tests/setup.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { PLUGIN_NAME, SETTINGS_KEYS } from "@vnejs/contracts.settings.volume";
|
|
2
1
|
import { createTestModule, registerCoreVne, registerVnePlugin } from "@vnejs/test-utils";
|
|
3
2
|
|
|
3
|
+
import { PLUGIN_NAME, SETTINGS_KEYS } from "@vnejs/contracts.settings.volume";
|
|
4
|
+
|
|
4
5
|
export const registerVolumePluginVne = () => {
|
|
5
6
|
registerCoreVne();
|
|
6
7
|
registerVnePlugin(PLUGIN_NAME, { settings: SETTINGS_KEYS });
|
package/src/tests/volume.test.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { beforeEach, describe, expect, it } from "vitest";
|
|
2
2
|
|
|
3
|
-
import { SUBSCRIBE_EVENTS as SETTINGS_EVENTS } from "@vnejs/contracts.core.settings";
|
|
4
3
|
import { spyEvent } from "@vnejs/test-utils";
|
|
5
4
|
|
|
5
|
+
import { SUBSCRIBE_EVENTS as SETTINGS_EVENTS } from "@vnejs/contracts.core.settings";
|
|
6
|
+
|
|
6
7
|
import { Volume } from "../modules/volume.js";
|
|
8
|
+
|
|
7
9
|
import { createVolumeTestModule, registerVolumePluginVne, SETTINGS_KEYS } from "./setup.js";
|
|
8
10
|
|
|
9
11
|
describe("Volume", () => {
|
package/src/types.ts
CHANGED