ua-browser 1.4.2 → 1.4.3

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.en.md CHANGED
@@ -237,7 +237,7 @@ import {
237
237
  Over 70 browsers, 20 operating systems, and 40+ bot rules built in. See the **[full support list](https://yangtianxia.github.io/ua-browser/guide/support-list)**.
238
238
 
239
239
  Highlights:
240
- - **Browsers** — Chrome, Safari, Arc, Brave, Firefox, Edge, Samsung Internet, UC, WeChat, DingTalk, TikTok, Bilibili, Kuaishou, Xiaohongshu, Feishu and more
240
+ - **Browsers** — Chrome, Safari, Arc, Brave, Firefox, Edge, Samsung Internet, UC, WeChat, DingTalk, TikTok, Bilibili, Kuaishou, Xiaohongshu, Feishu, Zhihu, Pinduoduo, JD, NetEase Music, WPS Office and more
241
241
  - **OS** — Windows, macOS, Android, iOS, visionOS, tvOS, HarmonyOS, OpenHarmony, Tizen, KaiOS and more
242
242
  - **Bots** — GPTBot, ClaudeBot, PerplexityBot, CCBot; messaging bots (Slack, Discord, Telegram, WhatsApp) and more
243
243
  - **Devices** — Mobile, Tablet, PC, TV (Samsung Smart TV, HbbTV), Console (PS5, Xbox, Switch), XR (Vision Pro, Quest)
package/README.md CHANGED
@@ -235,7 +235,7 @@ import {
235
235
  内置超过 70 种浏览器、20 种操作系统、40+ 种爬虫规则,详见 **[内置支持列表](https://yangtianxia.github.io/ua-browser/guide/support-list)**。
236
236
 
237
237
  部分覆盖:
238
- - **浏览器** — Chrome、Safari、Arc、Brave、Firefox、Edge、Samsung Internet、UC、微信、钉钉、抖音、哔哩哔哩、快手、小红书、飞书等
238
+ - **浏览器** — Chrome、Safari、Arc、Brave、Firefox、Edge、Samsung Internet、UC、微信、钉钉、抖音、哔哩哔哩、快手、小红书、飞书、知乎、拼多多、京东、网易云音乐、WPS Office 等
239
239
  - **操作系统** — Windows、macOS、Android、iOS、visionOS、tvOS、HarmonyOS、OpenHarmony、Tizen、KaiOS 等
240
240
  - **AI 爬虫** — GPTBot、ClaudeBot、PerplexityBot、CCBot;消息应用 Bot(Slack、Discord、Telegram、WhatsApp)等
241
241
  - **设备** — Mobile、Tablet、PC、TV(含三星 Smart TV、HbbTV 标准)、Console(PS5、Xbox、Switch)、XR(Vision Pro、Quest)
package/dist/index.cjs CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  // package.json
6
6
  var package_default = {
7
- version: "1.4.2"};
7
+ version: "1.4.3"};
8
8
 
9
9
  // src/constants/os.ts
10
10
  var OS_DEFS = [
@@ -188,8 +188,23 @@ var BROWSER_DEFS = [
188
188
  { name: "Xiaohongshu", priority: 596, detect: /Xiaohongshu\//, versionPattern: /Xiaohongshu\/([\d.]+)/ },
189
189
  { name: "Feishu", priority: 597, detect: /(Lark|Feishu)\//, versionPattern: [/Lark\/([\d.]+)/, /Feishu\/([\d.]+)/] },
190
190
  { name: "Toutiao", priority: 598, detect: /NewsArticle\//, versionPattern: /NewsArticle\/([\d.]+)/ },
191
- { name: "JD", priority: 599, detect: /jdpingou\//, versionPattern: /jdpingou\/([\d.]+)/ },
192
- { name: "Meituan", priority: 600, detect: /MeituanHybrid\//, versionPattern: /MeituanHybrid\/([\d.]+)/ }
191
+ { name: "JD", priority: 599, detect: /(jdpingou\/|jdapp;)/, versionPattern: [/jdpingou\/([\d.]+)/, /jdapp;[^;]+;([\d.]+)/] },
192
+ { name: "Meituan", priority: 600, detect: /MeituanHybrid\//, versionPattern: /MeituanHybrid\/([\d.]+)/ },
193
+ { name: "Pinduoduo", priority: 601, detect: /Pinduoduo\//, versionPattern: /Pinduoduo\/([\d.]+)/ },
194
+ { name: "Tmall", priority: 602, detect: /AliApp\(TM/, versionPattern: /AliApp\(TM\/([\d.]+)/ },
195
+ { name: "Eleme", priority: 603, detect: /AliApp\(EM/, versionPattern: /AliApp\(EM\/([\d.]+)/ },
196
+ { name: "Xianyu", priority: 604, detect: /AliApp\(IDLEFISH/, versionPattern: /AliApp\(IDLEFISH\/([\d.]+)/ },
197
+ { name: "Zhihu", priority: 605, detect: /(Zhihu\/|osee2unifiedRelease\/)/, versionPattern: [/Zhihu\/([\d.]+)/, /osee2unifiedRelease\/([\d.]+)/] },
198
+ { name: "NetEaseMusic", priority: 606, detect: /NeteaseMusic\//, versionPattern: /NeteaseMusic\/([\d.]+)/ },
199
+ { name: "NetEaseNews", priority: 607, detect: /NTESnr\//, versionPattern: /NTESnr\/([\d.]+)/ },
200
+ { name: "TencentVideo", priority: 608, detect: /qqlive\//, versionPattern: /qqlive\/([\d.]+)/ },
201
+ { name: "Youku", priority: 609, detect: /Youku(?:HD|App)?\/[\d.]/, versionPattern: /Youku(?:HD|App)?\/([\d.]+)/ },
202
+ { name: "Ctrip", priority: 610, detect: /Ctrip\//, versionPattern: /Ctrip\/([\d.]+)/ },
203
+ { name: "WeRead", priority: 611, detect: /(WeRead|wxread)\//, versionPattern: [/WeRead\/([\d.]+)/, /wxread\/([\d.]+)/] },
204
+ { name: "Dianping", priority: 612, detect: /Dianping\//, versionPattern: /Dianping\/([\d.]+)/ },
205
+ { name: "Mafengwo", priority: 613, detect: /Mafengwo\//, versionPattern: /Mafengwo\/([\d.]+)/ },
206
+ { name: "Maoyan", priority: 614, detect: /MaoyanApp\//, versionPattern: /MaoyanApp\/([\d.]+)/ },
207
+ { name: "WPSOffice", priority: 615, detect: /(wps_android|wps_ios|WPSOffice)\//i, versionPattern: [/wps_(?:android|ios)\/([\d.]+)/i, /WPSOffice\/([\d.]+)/i] }
193
208
  ];
194
209
 
195
210
  // src/utils/extract.ts