ua-browser 1.4.1 → 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 +1 -1
- package/README.md +1 -1
- package/dist/index.cjs +24 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +24 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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.
|
|
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
|
|
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
|
|
@@ -467,14 +482,19 @@ var BOT_DEFS = [
|
|
|
467
482
|
{ name: "OAI-SearchBot", detect: /OAI-SearchBot/, category: "ai-llm" },
|
|
468
483
|
{ name: "ChatGPT-User", detect: /ChatGPT-User/, category: "ai-llm" },
|
|
469
484
|
{ name: "ClaudeBot", detect: /ClaudeBot/, category: "ai-llm" },
|
|
485
|
+
{ name: "Claude-User", detect: /Claude-User/, category: "ai-llm" },
|
|
486
|
+
{ name: "Claude-SearchBot", detect: /Claude-SearchBot/, category: "ai-llm" },
|
|
470
487
|
{ name: "PerplexityBot", detect: /PerplexityBot/, category: "ai-llm" },
|
|
471
488
|
{ name: "CCBot", detect: /CCBot/, category: "ai-llm" },
|
|
472
|
-
{ name: "AdsBot", detect: /AdsBot-Google/, category: "
|
|
489
|
+
{ name: "AdsBot", detect: /AdsBot-Google/, category: "search-engine" },
|
|
473
490
|
{ name: "Google-Extended", detect: /Google-Extended/, category: "ai-llm" },
|
|
474
491
|
{ name: "Meta-ExternalAgent", detect: /meta-externalagent/i, category: "ai-llm" },
|
|
475
492
|
{ name: "Amazonbot", detect: /Amazonbot/, category: "ai-llm" },
|
|
476
493
|
{ name: "Diffbot", detect: /Diffbot/, category: "ai-llm" },
|
|
477
494
|
{ name: "cohere-ai", detect: /cohere-ai/, category: "ai-llm" },
|
|
495
|
+
{ name: "MistralAI-User", detect: /MistralAI-User/, category: "ai-llm" },
|
|
496
|
+
{ name: "DeepSeekBot", detect: /DeepSeekBot/, category: "ai-llm" },
|
|
497
|
+
{ name: "XAI-Crawler", detect: /XAI-Crawler/, category: "ai-llm" },
|
|
478
498
|
{ name: "YouBot", detect: /YouBot/, category: "ai-llm" },
|
|
479
499
|
// Monitoring / archiving
|
|
480
500
|
{ name: "UptimeRobot", detect: /UptimeRobot/, category: "monitoring" },
|