bxs-lib-weapp-analytics
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -75,3 +75,3 @@ 'use strict'; | ||
traceInfo.pageId = pageId ? pageId : ''; | ||
traceInfo.data = projectInfo ? projectInfo : null; | ||
traceInfo.ep = projectInfo ? projectInfo : null; | ||
trace(pageId, undefined, 0, projectInfo); | ||
@@ -84,6 +84,3 @@ } | ||
if (data) { | ||
data = Object.assign(data, traceInfo.data); | ||
} | ||
data = Object.assign({}, data, traceInfo.ep); | ||
trace(traceInfo.pageId, eleId, 2, data); | ||
@@ -90,0 +87,0 @@ } // 页面隐藏 |
@@ -65,3 +65,3 @@ const APIVersion = '0.6.0'; | ||
traceInfo.pageId = pageId ? pageId : ''; | ||
traceInfo.data = projectInfo ? projectInfo : null; | ||
traceInfo.ep = projectInfo ? projectInfo : null; | ||
trace(pageId, undefined, 0, projectInfo); | ||
@@ -74,5 +74,3 @@ } | ||
} | ||
if (data) { | ||
data = Object.assign(data, traceInfo.data); | ||
} | ||
data = Object.assign({}, data, traceInfo.ep); | ||
trace(traceInfo.pageId, eleId, 2, data); | ||
@@ -79,0 +77,0 @@ } |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : | ||
typeof define === 'function' && define.amd ? define(['exports'], factory) : | ||
(global = global || self, factory(global.WeiyiStatSDK = {})); | ||
}(this, function (exports) { 'use strict'; | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.WeiyiStatSDK = {})); | ||
}(this, (function (exports) { 'use strict'; | ||
@@ -77,3 +77,3 @@ var APIVersion = '0.6.0'; | ||
traceInfo.pageId = pageId ? pageId : ''; | ||
traceInfo.data = projectInfo ? projectInfo : null; | ||
traceInfo.ep = projectInfo ? projectInfo : null; | ||
trace(pageId, undefined, 0, projectInfo); | ||
@@ -86,6 +86,3 @@ } | ||
if (data) { | ||
data = Object.assign(data, traceInfo.data); | ||
} | ||
data = Object.assign({}, data, traceInfo.ep); | ||
trace(traceInfo.pageId, eleId, 2, data); | ||
@@ -128,2 +125,2 @@ } // 页面隐藏 | ||
})); | ||
}))); |
{ | ||
"name": "bxs-lib-weapp-analytics", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "bxs 小程序埋", | ||
@@ -19,4 +19,5 @@ "main": "dist/weappAnalytics.cjs.js", | ||
"@babel/preset-env": "^7.5.5", | ||
"rollup": "^2.23.0", | ||
"rollup-plugin-babel": "^4.3.3" | ||
} | ||
} |
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
12866
4
433