migu-api-enhanced 1.2.5 → 2.0.1

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
@@ -46,6 +46,10 @@ migu-api-enhanced/
46
46
  └── package.json
47
47
  ```
48
48
 
49
+ ## API 接口
50
+
51
+ [API 文档](https://domdkw.github.io/miguMusic-api-enhanced/api/search.md)
52
+
49
53
  ## 快速开始
50
54
 
51
55
  ### 安装依赖
@@ -60,6 +64,9 @@ pnpm install
60
64
  # Node.js 环境
61
65
  pnpm run dev
62
66
 
67
+ # Bun 环境
68
+ pnpm run start:bun --watch
69
+
63
70
  # Cloudflare Workers
64
71
  pnpm run dev:cf
65
72
 
@@ -112,10 +119,6 @@ pnpm run deploy:deno
112
119
  ALLOWED_ORIGINS=https://example.com pnpm start
113
120
  ```
114
121
 
115
- ## API 接口
116
-
117
- [API 文档](https://domdkw.github.io/miguMusic-api-enhanced/api/search.md)
118
-
119
122
  ## TypeScript 配置
120
123
 
121
124
  本项目使用 TypeScript 5.x,配置分为两部分:
@@ -154,7 +157,7 @@ npm install migu-api-enhanced
154
157
  >[!NOTE]
155
158
  > 建议使用最新版本。后续会更新接口。请加上```@latest```获取最新版本。(npm i migu-api-enhanced@latest)
156
159
 
157
- ### 方式一:命名导入(推荐,开箱即用,默认 5 秒超时)
160
+ ### 方式一:命名导入
158
161
 
159
162
  ```ts
160
163
  import { getAlbumInfo, getUrlV2 } from 'migu-api-enhanced';