dsh-workbench-danmaku 0.2.11 → 0.2.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/lib/client.js CHANGED
@@ -5178,7 +5178,7 @@ function definition(host) {
5178
5178
  var tab = makeTab(host.react);
5179
5179
  return {
5180
5180
  id: ADDON_ID,
5181
- version: "0.2.11",
5181
+ version: "0.2.12",
5182
5182
  icon: tab("megaphone"),
5183
5183
  views: [
5184
5184
  {
package/lib/index.js CHANGED
@@ -12,6 +12,10 @@
12
12
  */
13
13
 
14
14
  import { bindClock, ensureSchema } from "./db/db.js";
15
+ import { createRequire } from "node:module";
16
+
17
+ // 版本号只认 package.json:首页插件卡读的就是这里注册的 version。
18
+ const ADDON_VERSION = createRequire(import.meta.url)("../package.json").version;
15
19
  import { DOMAIN, loadConfig } from "./config.js";
16
20
  import { createPlayer } from "./player.js";
17
21
  import { createSupervisor } from "./desktop/supervisor.js";
@@ -110,7 +114,7 @@ export function apply(ctx) {
110
114
  title: "弹幕",
111
115
  description:
112
116
  "把自建弹幕轮播在整个 DSH 界面,并可叠加到整个桌面;单一宿主调度、SSE 与 Electron helper 双投递,含弹幕库/配置/数据/Action 四个视图",
113
- version: "0.2.6",
117
+ version: ADDON_VERSION,
114
118
  category: "comm",
115
119
  tables: TABLES,
116
120
  sync: { tables: [] },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-workbench-danmaku",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "description": "个人工作台弹幕插件:把自建弹幕轮播在整个 DSH 界面,并可叠加到整个桌面",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -17,7 +17,7 @@
17
17
  "id": "wb-addon-danmaku",
18
18
  "title": "弹幕",
19
19
  "description": "在整个 DSH 界面(含工作台业务页与宿主弹窗之外的所有区域)与桌面透明层轮播自建弹幕;含弹幕库、配置、数据与 Action 四个视图",
20
- "version": "0.2.11",
20
+ "version": "0.2.12",
21
21
  "minShell": "0.8.0",
22
22
  "tables": [
23
23
  "danmaku"