@jx3box/jx3box-ui 2.4.1 → 2.4.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-ui",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "description": "JX3BOX Vue3 UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,9 @@
1
+ // JX3BOX 项目专属统计规则。
2
+ // 通用统计层先产出 context,再由本模块按 JX3BOX 业务语义覆盖;未来抽公共包时作为业务适配器注入。
3
+ export function applyJx3boxClientStatRules(context, environment = {}) {
4
+ const userAgent = String(environment.userAgent || "");
5
+ if (/jianghudaily/i.test(userAgent)) {
6
+ return { ...context, client: "mobile_game" };
7
+ }
8
+ return context;
9
+ }