@zhin.js/plugin-music 0.0.28 → 0.0.29

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.
Files changed (2) hide show
  1. package/lib/index.js +2 -2
  2. package/package.json +5 -5
package/lib/index.js CHANGED
@@ -32,7 +32,7 @@ addComponent(Suspense);
32
32
  // ============================================================================
33
33
  // 点歌工具 (使用 ZhinTool)
34
34
  // ============================================================================
35
- const searchMusicTool = new ZhinTool('music.search')
35
+ const searchMusicTool = new ZhinTool('music_search')
36
36
  .desc('搜索音乐并返回结果列表')
37
37
  .tag('music', 'entertainment')
38
38
  .param('keyword', { type: 'string', description: '搜索关键词' }, true)
@@ -105,7 +105,7 @@ const searchMusicTool = new ZhinTool('music.search')
105
105
  return _jsx(ShareMusic, { platform: music.source, musicId: music.id });
106
106
  });
107
107
  // 分享音乐工具(直接分享指定音乐)
108
- const shareMusicTool = new ZhinTool('music.share')
108
+ const shareMusicTool = new ZhinTool('music_share')
109
109
  .desc('分享指定的音乐')
110
110
  .tag('music', 'entertainment')
111
111
  .param('id', { type: 'string', description: '音乐 ID' }, true)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/plugin-music",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "description": "Music search and sharing plugin for Zhin.js",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -35,12 +35,12 @@
35
35
  "dependencies": {},
36
36
  "devDependencies": {
37
37
  "typescript": "^5.3.3",
38
- "zhin.js": "1.0.38",
39
- "@zhin.js/adapter-icqq": "1.0.47"
38
+ "zhin.js": "1.0.39",
39
+ "@zhin.js/adapter-icqq": "1.0.48"
40
40
  },
41
41
  "peerDependencies": {
42
- "@zhin.js/adapter-icqq": "1.0.47",
43
- "zhin.js": "1.0.38"
42
+ "@zhin.js/adapter-icqq": "1.0.48",
43
+ "zhin.js": "1.0.39"
44
44
  },
45
45
  "peerDependenciesMeta": {
46
46
  "@zhin.js/adapter-icqq": {