@zxhy-npm/send-sls-logger 1.1.8 → 1.1.10
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/lib/trace.js +20 -0
- package/package.json +1 -1
package/lib/trace.js
CHANGED
|
@@ -162,6 +162,11 @@ export const mobileInfo = (() => {
|
|
|
162
162
|
const match = ua.match(/MicroMessenger\/([\d.]+)/);
|
|
163
163
|
browserVersion = match ? match[1] : '';
|
|
164
164
|
}
|
|
165
|
+
else if (ua.indexOf('DingTalk') > -1) {
|
|
166
|
+
browserName = 'DingTalk';
|
|
167
|
+
const match = ua.match(/DingTalk\/([\d.]+)/);
|
|
168
|
+
browserVersion = match ? match[1] : '';
|
|
169
|
+
}
|
|
165
170
|
else if (ua.indexOf('AlipayClient') > -1) {
|
|
166
171
|
browserName = 'Alipay';
|
|
167
172
|
const match = ua.match(/AlipayClient\/([\d.]+)/);
|
|
@@ -172,6 +177,21 @@ export const mobileInfo = (() => {
|
|
|
172
177
|
const match = ua.match(/QQ\/([\d.]+)/);
|
|
173
178
|
browserVersion = match ? match[1] : '';
|
|
174
179
|
}
|
|
180
|
+
else if (ua.indexOf('BytedanceWebview') > -1) {
|
|
181
|
+
browserName = 'Douyin';
|
|
182
|
+
const match = ua.match(/BytedanceWebview\/([\d.]+)/);
|
|
183
|
+
browserVersion = match ? match[1] : '';
|
|
184
|
+
}
|
|
185
|
+
else if (ua.indexOf('Weibo') > -1) {
|
|
186
|
+
browserName = 'Weibo';
|
|
187
|
+
const match = ua.match(/Weibo\/([\d.]+)/);
|
|
188
|
+
browserVersion = match ? match[1] : '';
|
|
189
|
+
}
|
|
190
|
+
else if (ua.indexOf('ZHUBOBAO') > -1) {
|
|
191
|
+
browserName = 'ZHUBOBAO';
|
|
192
|
+
const match = ua.match(/ZHUBOBAO\/([\d.]+)/);
|
|
193
|
+
browserVersion = match ? match[1] : '';
|
|
194
|
+
}
|
|
175
195
|
else if (ua.indexOf('UCBrowser') > -1) {
|
|
176
196
|
browserName = 'UC';
|
|
177
197
|
const match = ua.match(/UCBrowser\/([\d.]+)/);
|