Skip to content

Commit 3938e9c

Browse files
author
shengyonggen
committed
Release 1.19.2
1 parent 6fcfedd commit 3938e9c

15 files changed

+36
-35
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2+
## 1.19.2 (2021-9-28)
3+
1. 修复
4+
- 修复给 `window.tagName` 赋值页面报错的问题
5+
16
## 1.19.1 (2021-9-26)
27
1. 新增
38
- 主模块 `ES6` 改造

core/sensorsdata.amd.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/sensorsdata.es6.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/sensorsdata.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

heatmap.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sa-sdk-javascript",
3-
"version": "1.19.1",
3+
"version": "1.19.2",
44
"description": "official sensorsdata javascript sdk",
55
"main": "sensorsdata.min.js",
66
"scripts": {

product/heatmap.full.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9414,7 +9414,7 @@
94149414

94159415
window.sa_jssdk_heatmap_render = function(se, data, type, url) {
94169416
sd = se;
9417-
sd.heatmap_version = '1.19.1';
9417+
sd.heatmap_version = '1.19.2';
94189418
_ = sd._;
94199419
_.querySelectorAll = function(val) {
94209420
if (typeof val !== 'string') {

product/sensorsdata.amd.full.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@
12561256
function hasAttribute(ele, attr) {
12571257
if (ele.hasAttribute) {
12581258
return ele.hasAttribute(attr);
1259-
} else {
1259+
} else if (ele.attributes) {
12601260
return !!(ele.attributes[attr] && ele.attributes[attr].specified);
12611261
}
12621262
}
@@ -2009,7 +2009,7 @@
20092009
};
20102010

20112011
var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
2012-
var sdkversion_placeholder = '1.19.1';
2012+
var sdkversion_placeholder = '1.19.2';
20132013

20142014
function searchZZAppStyle(data) {
20152015
if (typeof data.properties.$project !== 'undefined') {
@@ -4114,7 +4114,7 @@
41144114
if (path) {
41154115
if (isArray(path) && path.length > 0) {
41164116
for (var i = 0; i < path.length; i++) {
4117-
if (path[i] && path[i].tagName && func(path[i])) {
4117+
if (typeof path[i] === 'object' && path[i].nodeType === 1 && func(path[i])) {
41184118
return path[i];
41194119
}
41204120
}
@@ -5581,7 +5581,7 @@
55815581
source: 'sa-web-sdk',
55825582
type: 'v-is-vtrack',
55835583
data: {
5584-
sdkversion: '1.19.1'
5584+
sdkversion: '1.19.2'
55855585
}
55865586
},
55875587
'*'

product/sensorsdata.es6.full.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,7 @@ function hasAttributes(ele, attrs) {
12541254
function hasAttribute(ele, attr) {
12551255
if (ele.hasAttribute) {
12561256
return ele.hasAttribute(attr);
1257-
} else {
1257+
} else if (ele.attributes) {
12581258
return !!(ele.attributes[attr] && ele.attributes[attr].specified);
12591259
}
12601260
}
@@ -2007,7 +2007,7 @@ var debug = {
20072007
};
20082008

20092009
var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
2010-
var sdkversion_placeholder = '1.19.1';
2010+
var sdkversion_placeholder = '1.19.2';
20112011

20122012
function searchZZAppStyle(data) {
20132013
if (typeof data.properties.$project !== 'undefined') {
@@ -4112,7 +4112,7 @@ var heatmap = {
41124112
if (path) {
41134113
if (isArray(path) && path.length > 0) {
41144114
for (var i = 0; i < path.length; i++) {
4115-
if (path[i] && path[i].tagName && func(path[i])) {
4115+
if (typeof path[i] === 'object' && path[i].nodeType === 1 && func(path[i])) {
41164116
return path[i];
41174117
}
41184118
}
@@ -5579,7 +5579,7 @@ sd.detectMode = function() {
55795579
source: 'sa-web-sdk',
55805580
type: 'v-is-vtrack',
55815581
data: {
5582-
sdkversion: '1.19.1'
5582+
sdkversion: '1.19.2'
55835583
}
55845584
},
55855585
'*'

product/sensorsdata.full.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@
12561256
function hasAttribute(ele, attr) {
12571257
if (ele.hasAttribute) {
12581258
return ele.hasAttribute(attr);
1259-
} else {
1259+
} else if (ele.attributes) {
12601260
return !!(ele.attributes[attr] && ele.attributes[attr].specified);
12611261
}
12621262
}
@@ -2009,7 +2009,7 @@
20092009
};
20102010

20112011
var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
2012-
var sdkversion_placeholder = '1.19.1';
2012+
var sdkversion_placeholder = '1.19.2';
20132013

20142014
function searchZZAppStyle(data) {
20152015
if (typeof data.properties.$project !== 'undefined') {
@@ -4114,7 +4114,7 @@
41144114
if (path) {
41154115
if (isArray(path) && path.length > 0) {
41164116
for (var i = 0; i < path.length; i++) {
4117-
if (path[i] && path[i].tagName && func(path[i])) {
4117+
if (typeof path[i] === 'object' && path[i].nodeType === 1 && func(path[i])) {
41184118
return path[i];
41194119
}
41204120
}
@@ -5581,7 +5581,7 @@
55815581
source: 'sa-web-sdk',
55825582
type: 'v-is-vtrack',
55835583
data: {
5584-
sdkversion: '1.19.1'
5584+
sdkversion: '1.19.2'
55855585
}
55865586
},
55875587
'*'

0 commit comments

Comments
 (0)