vitepress-plugin-announcement 0.1.1 → 0.1.2

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/README.md CHANGED
@@ -4,6 +4,7 @@
4
4
 
5
5
  ![](https://cdn.upyun.sugarat.top/mdImg/sugar/7af94a65e3b4dd05e61e3411daba7fdd)
6
6
 
7
+ *介绍文章:[VitePress 公告插件开发实记](https://sugarat.top/technology/works/vitepress-plugin-announcement.html) · [archive](https://web.archive.org/web/20240921095008/https://sugarat.top/technology/works/vitepress-plugin-announcement.html) · [translated](https://sugarat-top.translate.goog/technology/works/vitepress-plugin-announcement.html?_x_tr_sl=zh-CN&_x_tr_tl=en&_x_tr_hl=zh-CN&_x_tr_pto=wapp)*
7
8
  ## 使用
8
9
  安装依赖 `pnpm/npm/yarn`
9
10
  ```sh
package/dist/index.js CHANGED
@@ -89,7 +89,7 @@ import Announcement from './Announcement.vue'`);
89
89
  },
90
90
  load(id) {
91
91
  if (id === resolvedVirtualModuleId) {
92
- return `export default ${(0, import_javascript_stringify.stringify)(options)}`;
92
+ return `export default ${(0, import_javascript_stringify.stringify)(componentOptions)}`;
93
93
  }
94
94
  }
95
95
  };
package/dist/index.mjs CHANGED
@@ -54,7 +54,7 @@ import Announcement from './Announcement.vue'`);
54
54
  },
55
55
  load(id) {
56
56
  if (id === resolvedVirtualModuleId) {
57
- return `export default ${stringify(options)}`;
57
+ return `export default ${stringify(componentOptions)}`;
58
58
  }
59
59
  }
60
60
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitepress-plugin-announcement",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "vitepress plugin, Announcement, 公告窗口",
5
5
  "author": "sugar",
6
6
  "license": "MIT",