@beisen/analysis-pms
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -150,14 +150,16 @@ /******/ (function(modules) { // webpackBootstrap | ||
*/ | ||
var _analysisData$sourceA = analysisData.sourceActionName, | ||
sourceActionName = _analysisData$sourceA === undefined ? '' : _analysisData$sourceA, | ||
_analysisData$sourceA2 = analysisData.sourceActionCode, | ||
sourceActionCode = _analysisData$sourceA2 === undefined ? '' : _analysisData$sourceA2, | ||
_analysisData$pageCod = analysisData.pageCode, | ||
pageCode = _analysisData$pageCod === undefined ? '' : _analysisData$pageCod, | ||
_analysisData$dataKey = analysisData.dataKey, | ||
dataKey = _analysisData$dataKey === undefined ? '' : _analysisData$dataKey, | ||
_analysisData$pages = analysisData.pages, | ||
pages = _analysisData$pages === undefined ? '' : _analysisData$pages; | ||
var _ref = analysisData || {}, | ||
_ref$sourceActionName = _ref.sourceActionName, | ||
sourceActionName = _ref$sourceActionName === undefined ? '' : _ref$sourceActionName, | ||
_ref$sourceActionCode = _ref.sourceActionCode, | ||
sourceActionCode = _ref$sourceActionCode === undefined ? '' : _ref$sourceActionCode, | ||
_ref$pageCode = _ref.pageCode, | ||
pageCode = _ref$pageCode === undefined ? '' : _ref$pageCode, | ||
_ref$dataKey = _ref.dataKey, | ||
dataKey = _ref$dataKey === undefined ? '' : _ref$dataKey, | ||
_ref$pages = _ref.pages, | ||
pages = _ref$pages === undefined ? '' : _ref$pages; | ||
// 非操作日志的跟首屏一起发 | ||
var urlAjax = url.indexOf('?') > -1 ? url.split('?')[0] : url; | ||
@@ -205,5 +207,5 @@ var ajaxPerfData = {}; | ||
//启用性能打点开关 | ||
var _ref = window.BSGlobal || {}, | ||
IsUseUxPMS = _ref.IsUseUxPMS, | ||
env = _ref.env; | ||
var _ref2 = window.BSGlobal || {}, | ||
IsUseUxPMS = _ref2.IsUseUxPMS, | ||
env = _ref2.env; | ||
// if (!IsUseUxPMS) { | ||
@@ -225,5 +227,5 @@ // return; | ||
//启用性能打点开关 | ||
var _ref2 = window.BSGlobal || {}, | ||
IsUseUxPMS = _ref2.IsUseUxPMS, | ||
env = _ref2.env; | ||
var _ref3 = window.BSGlobal || {}, | ||
IsUseUxPMS = _ref3.IsUseUxPMS, | ||
env = _ref3.env; | ||
// if (!IsUseUxPMS) { | ||
@@ -433,3 +435,3 @@ // return; | ||
var t = window.performance.timing; | ||
var ns = t.navigationStart; //开始获取网页的时间 | ||
if (!t) return {}; | ||
var newPerf = getCommonPerf(t, true); | ||
@@ -446,3 +448,3 @@ var redirect = newPerf.redirect, | ||
return { | ||
ns: ns, | ||
ns: t.navigationStart, //开始获取网页的时间 | ||
redirect: redirect, | ||
@@ -449,0 +451,0 @@ dns: dns, |
{ | ||
"name": "@beisen\/analysis-pms", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib\/component\/index.js", |
@@ -7,2 +7,6 @@ # iTalentPMS | ||
从版本0.4.2开始,路径换为 | ||
https://stnew03.beisen.com/ux/beisen-common/@beisen/analysis-pms/iTalentPMS-0.4.2.min.js | ||
## 性能数据 | ||
@@ -50,2 +54,3 @@ | ||
### 0.4.3 fix:操作日志analysis兼容 | ||
### 0.4.2 简写发送首屏字段&集合使用新的接口 | ||
@@ -52,0 +57,0 @@ ### 0.4.1 将首屏和ajax以及资源合并为一个集合发送 |
@@ -60,7 +60,7 @@ // 获取BSGlobal中参数,如用户id、租户id等 | ||
let t = window.performance.timing; | ||
let ns = t.navigationStart; //开始获取网页的时间 | ||
if (!t) return {}; | ||
let newPerf = getCommonPerf(t, true); | ||
const {redirect, dns, con, req, res, dready, load, total } = newPerf | ||
return { | ||
ns, | ||
ns: t.navigationStart, //开始获取网页的时间 | ||
redirect, | ||
@@ -67,0 +67,0 @@ dns, |
@@ -72,3 +72,3 @@ import opsUrl from './common/opsUrl' | ||
*/ | ||
let {sourceActionName = '', sourceActionCode = '', pageCode = '', dataKey = '', pages = ''} = analysisData | ||
let {sourceActionName = '', sourceActionCode = '', pageCode = '', dataKey = '', pages = ''} = analysisData || {} | ||
// 非操作日志的跟首屏一起发 | ||
@@ -75,0 +75,0 @@ let urlAjax = url.indexOf('?') > -1 ? url.split('?')[0] : url |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
244437
6506
179