@wuchale/vite-plugin 0.14.1 → 0.14.3

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.d.ts CHANGED
@@ -11,7 +11,7 @@ type HotUpdateCtx = {
11
11
  };
12
12
  timestamp: number;
13
13
  };
14
- declare class Plugin {
14
+ declare class Wuchale {
15
15
  #private;
16
16
  name: string;
17
17
  constructor(configPath: string);
@@ -34,5 +34,5 @@ declare class Plugin {
34
34
  }>;
35
35
  };
36
36
  }
37
- export declare const wuchale: (configPath?: string) => Plugin;
37
+ export declare const wuchale: (configPath?: string) => Wuchale;
38
38
  export {};
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import { getConfig as getConfig, Logger, AdapterHandler } from "wuchale";
4
4
  const pluginName = 'wuchale';
5
5
  const virtualPrefix = `virtual:${pluginName}/`;
6
6
  const virtualResolvedPrefix = '\0';
7
- class Plugin {
7
+ class Wuchale {
8
8
  name = pluginName;
9
9
  #config;
10
10
  #locales = [];
@@ -143,4 +143,4 @@ class Plugin {
143
143
  };
144
144
  transform = { order: 'pre', handler: this.#transformHandler };
145
145
  }
146
- export const wuchale = (configPath) => new Plugin(configPath);
146
+ export const wuchale = (configPath) => new Wuchale(configPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wuchale/vite-plugin",
3
- "version": "0.14.1",
3
+ "version": "0.14.3",
4
4
  "description": "Protobuf-like i18n from plain code: Vite plugin",
5
5
  "scripts": {
6
6
  "dev": "tsc --watch",
@@ -40,7 +40,7 @@
40
40
  "author": "K1DV5",
41
41
  "license": "MIT",
42
42
  "dependencies": {
43
- "wuchale": "^0.15.0"
43
+ "wuchale": "^0.15.4"
44
44
  },
45
45
  "devDependencies": {
46
46
  "typescript": "^5.8.3"