koishi-plugin-noah 2.4.2 → 2.4.5

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.cjs +1 -1
  2. package/package.json +3 -3
package/lib/index.cjs CHANGED
@@ -5487,7 +5487,7 @@ var MaoSDVXService = class _MaoSDVXService {
5487
5487
  baseURL: ctx.globalConfig.maoServerUrl,
5488
5488
  headers: { "X-API-Key": apiKey }
5489
5489
  });
5490
- if (resp?.code !== 0 || !resp?.data || resp.data.length === 0) {
5490
+ if (resp?.code !== 0 || !Array.isArray(resp?.data) || resp.data.length === 0) {
5491
5491
  return [];
5492
5492
  }
5493
5493
  const musicIds = resp.data.map((item) => item.mid);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koishi-plugin-noah",
3
- "version": "2.4.2",
3
+ "version": "2.4.5",
4
4
  "contributors": [
5
5
  "Logthm <logthm@outlook.com>"
6
6
  ],
@@ -23,8 +23,8 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@koishijs/plugin-server": "^3.2.9",
26
- "adm-zip": "^0.5.17",
27
- "bwip-js": "^4.11.1",
26
+ "adm-zip": "^0.5.18",
27
+ "bwip-js": "^4.11.2",
28
28
  "javascript-barcode-reader": "^0.6.9",
29
29
  "koishi-plugin-adapter-onebot": "^6.9.4",
30
30
  "sharp": "^0.33.5",