@tmsfe/tms-core 0.0.10 → 0.0.11
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/dist/index.js +0 -35
- package/package.json +7 -3
- package/rollup.config.js +1 -1
- package/src/report.js +0 -20
package/dist/index.js
CHANGED
|
@@ -1476,41 +1476,6 @@ const startListenApp = () => {
|
|
|
1476
1476
|
// onHide时立即上报,并清除定时器
|
|
1477
1477
|
report(true, true);
|
|
1478
1478
|
});
|
|
1479
|
-
/**
|
|
1480
|
-
* 监听小程序路由切换事件
|
|
1481
|
-
*/
|
|
1482
|
-
|
|
1483
|
-
if (!wx.onAppRoute) {
|
|
1484
|
-
cache({
|
|
1485
|
-
26: 'H',
|
|
1486
|
-
27: 'H100',
|
|
1487
|
-
40: 'notReport'
|
|
1488
|
-
}, true);
|
|
1489
|
-
wx.reportAnalytics('onapproute_not_support', {
|
|
1490
|
-
mp_version: getMiniProgramVersion()
|
|
1491
|
-
});
|
|
1492
|
-
return;
|
|
1493
|
-
}
|
|
1494
|
-
|
|
1495
|
-
wx.onAppRoute(res => {
|
|
1496
|
-
const {
|
|
1497
|
-
path,
|
|
1498
|
-
query,
|
|
1499
|
-
openType
|
|
1500
|
-
} = res || {};
|
|
1501
|
-
cache({
|
|
1502
|
-
26: 'H',
|
|
1503
|
-
27: 'H100',
|
|
1504
|
-
38: path,
|
|
1505
|
-
39: JSON.stringify(query),
|
|
1506
|
-
40: openType
|
|
1507
|
-
});
|
|
1508
|
-
wx.reportAnalytics('page_show', {
|
|
1509
|
-
path,
|
|
1510
|
-
query: JSON.stringify(query),
|
|
1511
|
-
opentype: openType
|
|
1512
|
-
});
|
|
1513
|
-
});
|
|
1514
1479
|
};
|
|
1515
1480
|
|
|
1516
1481
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tmsfe/tms-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "tms运行时框架",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,8 +34,12 @@
|
|
|
34
34
|
"rollup": "^2.6.1",
|
|
35
35
|
"rollup-plugin-node-resolve": "^5.2.0",
|
|
36
36
|
"rollup-plugin-terser": "^6.1.0",
|
|
37
|
-
"rollup-plugin-typescript2": "0.27.0"
|
|
37
|
+
"rollup-plugin-typescript2": "0.27.0",
|
|
38
|
+
"typescript": "^4.5.2"
|
|
38
39
|
},
|
|
39
40
|
"author": "tms·web",
|
|
40
|
-
"gitHead": "72bf52451594b49a1c9f78edbad5956d414a66ca"
|
|
41
|
+
"gitHead": "72bf52451594b49a1c9f78edbad5956d414a66ca",
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"rollup-plugin-replace": "^2.2.0"
|
|
44
|
+
}
|
|
41
45
|
}
|
package/rollup.config.js
CHANGED
package/src/report.js
CHANGED
|
@@ -409,26 +409,6 @@ const startListenApp = () => {
|
|
|
409
409
|
// onHide时立即上报,并清除定时器
|
|
410
410
|
report(true, true);
|
|
411
411
|
});
|
|
412
|
-
|
|
413
|
-
/**
|
|
414
|
-
* 监听小程序路由切换事件
|
|
415
|
-
*/
|
|
416
|
-
if (!wx.onAppRoute) {
|
|
417
|
-
cache({ 26: 'H', 27: 'H100', 40: 'notReport' }, true);
|
|
418
|
-
wx.reportAnalytics('onapproute_not_support', {
|
|
419
|
-
mp_version: getMiniProgramVersion(),
|
|
420
|
-
});
|
|
421
|
-
return;
|
|
422
|
-
}
|
|
423
|
-
wx.onAppRoute((res) => {
|
|
424
|
-
const { path, query, openType } = res || {};
|
|
425
|
-
cache({ 26: 'H', 27: 'H100', 38: path, 39: JSON.stringify(query), 40: openType });
|
|
426
|
-
wx.reportAnalytics('page_show', {
|
|
427
|
-
path,
|
|
428
|
-
query: JSON.stringify(query),
|
|
429
|
-
opentype: openType,
|
|
430
|
-
});
|
|
431
|
-
});
|
|
432
412
|
};
|
|
433
413
|
|
|
434
414
|
export {
|