@shiqianjiang/ceru-plugin-core 0.3.13 → 0.3.14

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/dist/index.js +3 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { assertContentPage, assertLyricsDocument, assertResolveResult, createHttpClient, } from '@shiqianjiang/ceru-plugin-sdk';
2
2
  import { readArtifact, resolveArtifactConfig, } from '@shiqianjiang/ceru-plugin-issuer';
3
3
  function methodAt(value, path) {
4
- if (!/^(tracks\.(search|resolve|lyrics|artwork|suggest|hotSearch)|playlists\.(search|categories|list|get)|charts\.(list|getTracks)|sharing\.describe)$/.test(path))
4
+ if (!/^(tracks\.(search|resolve|lyrics|artwork|artworkHires|suggest|hotSearch)|playlists\.(search|categories|list|get)|charts\.(list|getTracks)|sharing\.describe)$/.test(path))
5
5
  throw new Error('Unsupported provider method: ' + path);
6
6
  const parts = path.split('.');
7
7
  const owner = parts.slice(0, -1).reduce((current, key) => current?.[key], value);
@@ -223,6 +223,8 @@ export class PluginCore {
223
223
  'tracks.resolve': 2,
224
224
  'tracks.lyrics': 1,
225
225
  'tracks.artwork': 1,
226
+ // 高清封面协议(可选):resource + request(+ operation 由 invokeProvider 追加)
227
+ 'tracks.artworkHires': 2,
226
228
  'tracks.suggest': 1,
227
229
  'tracks.hotSearch': 0,
228
230
  'playlists.search': 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shiqianjiang/ceru-plugin-core",
3
- "version": "0.3.13",
3
+ "version": "0.3.14",
4
4
  "description": "Ceru Music v2 plugin Core runtime and Host adapter boundary",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -57,8 +57,8 @@
57
57
  "socket.io-client": "^4.8.3",
58
58
  "ws": "^8.21.3",
59
59
  "axios": "^1.13.2",
60
- "@shiqianjiang/ceru-plugin-issuer": "0.3.13",
61
- "@shiqianjiang/ceru-plugin-sdk": "0.3.13"
60
+ "@shiqianjiang/ceru-plugin-issuer": "0.3.14",
61
+ "@shiqianjiang/ceru-plugin-sdk": "0.3.14"
62
62
  },
63
63
  "publishConfig": {
64
64
  "access": "public",