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/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// package.json
|
|
2
2
|
var package_default = {
|
|
3
|
-
version: "1.4.
|
|
3
|
+
version: "1.4.3"};
|
|
4
4
|
|
|
5
5
|
// src/constants/os.ts
|
|
6
6
|
var OS_DEFS = [
|
|
@@ -184,8 +184,23 @@ var BROWSER_DEFS = [
|
|
|
184
184
|
{ name: "Xiaohongshu", priority: 596, detect: /Xiaohongshu\//, versionPattern: /Xiaohongshu\/([\d.]+)/ },
|
|
185
185
|
{ name: "Feishu", priority: 597, detect: /(Lark|Feishu)\//, versionPattern: [/Lark\/([\d.]+)/, /Feishu\/([\d.]+)/] },
|
|
186
186
|
{ name: "Toutiao", priority: 598, detect: /NewsArticle\//, versionPattern: /NewsArticle\/([\d.]+)/ },
|
|
187
|
-
{ name: "JD", priority: 599, detect: /jdpingou
|
|
188
|
-
{ name: "Meituan", priority: 600, detect: /MeituanHybrid\//, versionPattern: /MeituanHybrid\/([\d.]+)/ }
|
|
187
|
+
{ name: "JD", priority: 599, detect: /(jdpingou\/|jdapp;)/, versionPattern: [/jdpingou\/([\d.]+)/, /jdapp;[^;]+;([\d.]+)/] },
|
|
188
|
+
{ name: "Meituan", priority: 600, detect: /MeituanHybrid\//, versionPattern: /MeituanHybrid\/([\d.]+)/ },
|
|
189
|
+
{ name: "Pinduoduo", priority: 601, detect: /Pinduoduo\//, versionPattern: /Pinduoduo\/([\d.]+)/ },
|
|
190
|
+
{ name: "Tmall", priority: 602, detect: /AliApp\(TM/, versionPattern: /AliApp\(TM\/([\d.]+)/ },
|
|
191
|
+
{ name: "Eleme", priority: 603, detect: /AliApp\(EM/, versionPattern: /AliApp\(EM\/([\d.]+)/ },
|
|
192
|
+
{ name: "Xianyu", priority: 604, detect: /AliApp\(IDLEFISH/, versionPattern: /AliApp\(IDLEFISH\/([\d.]+)/ },
|
|
193
|
+
{ name: "Zhihu", priority: 605, detect: /(Zhihu\/|osee2unifiedRelease\/)/, versionPattern: [/Zhihu\/([\d.]+)/, /osee2unifiedRelease\/([\d.]+)/] },
|
|
194
|
+
{ name: "NetEaseMusic", priority: 606, detect: /NeteaseMusic\//, versionPattern: /NeteaseMusic\/([\d.]+)/ },
|
|
195
|
+
{ name: "NetEaseNews", priority: 607, detect: /NTESnr\//, versionPattern: /NTESnr\/([\d.]+)/ },
|
|
196
|
+
{ name: "TencentVideo", priority: 608, detect: /qqlive\//, versionPattern: /qqlive\/([\d.]+)/ },
|
|
197
|
+
{ name: "Youku", priority: 609, detect: /Youku(?:HD|App)?\/[\d.]/, versionPattern: /Youku(?:HD|App)?\/([\d.]+)/ },
|
|
198
|
+
{ name: "Ctrip", priority: 610, detect: /Ctrip\//, versionPattern: /Ctrip\/([\d.]+)/ },
|
|
199
|
+
{ name: "WeRead", priority: 611, detect: /(WeRead|wxread)\//, versionPattern: [/WeRead\/([\d.]+)/, /wxread\/([\d.]+)/] },
|
|
200
|
+
{ name: "Dianping", priority: 612, detect: /Dianping\//, versionPattern: /Dianping\/([\d.]+)/ },
|
|
201
|
+
{ name: "Mafengwo", priority: 613, detect: /Mafengwo\//, versionPattern: /Mafengwo\/([\d.]+)/ },
|
|
202
|
+
{ name: "Maoyan", priority: 614, detect: /MaoyanApp\//, versionPattern: /MaoyanApp\/([\d.]+)/ },
|
|
203
|
+
{ name: "WPSOffice", priority: 615, detect: /(wps_android|wps_ios|WPSOffice)\//i, versionPattern: [/wps_(?:android|ios)\/([\d.]+)/i, /WPSOffice\/([\d.]+)/i] }
|
|
189
204
|
];
|
|
190
205
|
|
|
191
206
|
// src/utils/extract.ts
|
|
@@ -463,14 +478,19 @@ var BOT_DEFS = [
|
|
|
463
478
|
{ name: "OAI-SearchBot", detect: /OAI-SearchBot/, category: "ai-llm" },
|
|
464
479
|
{ name: "ChatGPT-User", detect: /ChatGPT-User/, category: "ai-llm" },
|
|
465
480
|
{ name: "ClaudeBot", detect: /ClaudeBot/, category: "ai-llm" },
|
|
481
|
+
{ name: "Claude-User", detect: /Claude-User/, category: "ai-llm" },
|
|
482
|
+
{ name: "Claude-SearchBot", detect: /Claude-SearchBot/, category: "ai-llm" },
|
|
466
483
|
{ name: "PerplexityBot", detect: /PerplexityBot/, category: "ai-llm" },
|
|
467
484
|
{ name: "CCBot", detect: /CCBot/, category: "ai-llm" },
|
|
468
|
-
{ name: "AdsBot", detect: /AdsBot-Google/, category: "
|
|
485
|
+
{ name: "AdsBot", detect: /AdsBot-Google/, category: "search-engine" },
|
|
469
486
|
{ name: "Google-Extended", detect: /Google-Extended/, category: "ai-llm" },
|
|
470
487
|
{ name: "Meta-ExternalAgent", detect: /meta-externalagent/i, category: "ai-llm" },
|
|
471
488
|
{ name: "Amazonbot", detect: /Amazonbot/, category: "ai-llm" },
|
|
472
489
|
{ name: "Diffbot", detect: /Diffbot/, category: "ai-llm" },
|
|
473
490
|
{ name: "cohere-ai", detect: /cohere-ai/, category: "ai-llm" },
|
|
491
|
+
{ name: "MistralAI-User", detect: /MistralAI-User/, category: "ai-llm" },
|
|
492
|
+
{ name: "DeepSeekBot", detect: /DeepSeekBot/, category: "ai-llm" },
|
|
493
|
+
{ name: "XAI-Crawler", detect: /XAI-Crawler/, category: "ai-llm" },
|
|
474
494
|
{ name: "YouBot", detect: /YouBot/, category: "ai-llm" },
|
|
475
495
|
// Monitoring / archiving
|
|
476
496
|
{ name: "UptimeRobot", detect: /UptimeRobot/, category: "monitoring" },
|