@varlet/vite-plugins 3.2.8 → 3.2.9

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/lib/index.d.ts CHANGED
@@ -6,7 +6,7 @@ interface MarkdownOptions {
6
6
  declare function markdown(options: MarkdownOptions): Plugin;
7
7
 
8
8
  interface HtmlOptions {
9
- data?: Record<string, string>;
9
+ data?: Record<string, string | string[] | Record<string, any>>;
10
10
  }
11
11
  declare function html(options: HtmlOptions): Plugin;
12
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/vite-plugins",
3
- "version": "3.2.8",
3
+ "version": "3.2.9",
4
4
  "type": "module",
5
5
  "description": "vite plugins of varlet",
6
6
  "main": "lib/index.js",
@@ -26,7 +26,7 @@
26
26
  "highlight.js": "^10.7.2",
27
27
  "markdown-it": "^12.2.3",
28
28
  "pinyin-pro": "3.17.0",
29
- "@varlet/shared": "3.2.8"
29
+ "@varlet/shared": "3.2.9"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/ejs": "^3.1.1",
package/src/html.ts CHANGED
@@ -2,7 +2,7 @@ import ejs from 'ejs'
2
2
  import type { Plugin } from 'vite'
3
3
 
4
4
  export interface HtmlOptions {
5
- data?: Record<string, string>
5
+ data?: Record<string, string | string[] | Record<string, any>>
6
6
  }
7
7
 
8
8
  export function html(options: HtmlOptions): Plugin {