Skip to content

Commit

Permalink
Release 1.14.25
Browse files Browse the repository at this point in the history
  • Loading branch information
shengyonggen committed Oct 28, 2021
1 parent 78bb7e1 commit 7790966
Show file tree
Hide file tree
Showing 14 changed files with 60 additions and 26 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.14.25(2021-10-28)
1. 修复
- 修复 `setWebviewUrl` 方法可能会导致客户参数无法解析的问题

## 1.14.24(2021-10-11)
1. 修复
- 修复 `sendPageLeave` 方法可能导致的报错问题
Expand Down Expand Up @@ -334,4 +338,4 @@

* 增加 $url_query
* 增加 sa.initWithOpenid(options,callback) callback(openid)
* 增加sa.status.referrer sa.status.laster_referrer
* 增加sa.status.referrer sa.status.laster_referrer
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sa-sdk-miniprogram",
"version": "1.14.24",
"version": "1.14.25",
"description": "sensorsdata miniprogram sdk",
"main": "sensorsdata.min.js",
"scripts": {
Expand Down
11 changes: 8 additions & 3 deletions product/sensorsdata.custom.es6.full.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ var ArrayProto = Array.prototype,
slice = ArrayProto.slice,
toString$1 = ObjProto.toString,
hasOwnProperty = ObjProto.hasOwnProperty,
LIB_VERSION = '1.14.24',
LIB_VERSION = '1.14.25',
LIB_NAME = 'MiniProgram';

var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
Expand Down Expand Up @@ -2215,11 +2215,16 @@ sa.setWebViewUrl = function(url, after_hash) {
logger.info('error:请传入正确的 URL 格式');
return false;
}

url = decodeURIComponent(url);
if (!/^http(s)?:\/\//.test(url)) {
logger.info('warning: 请传入正确的 URL 格式');
return false;
}
var reg = /([^?#]+)(\?[^#]*)?(#.*)?/,
arr = reg.exec(url);

if (!arr) {
return false;
}
var host = arr[1] || '',
search = arr[2] || '',
hash = arr[3] || '',
Expand Down
11 changes: 8 additions & 3 deletions product/sensorsdata.custom.full.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ var ArrayProto = Array.prototype,
slice = ArrayProto.slice,
toString$1 = ObjProto.toString,
hasOwnProperty = ObjProto.hasOwnProperty,
LIB_VERSION = '1.14.24',
LIB_VERSION = '1.14.25',
LIB_NAME = 'MiniProgram';

var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
Expand Down Expand Up @@ -2217,11 +2217,16 @@ sa.setWebViewUrl = function(url, after_hash) {
logger.info('error:请传入正确的 URL 格式');
return false;
}

url = decodeURIComponent(url);
if (!/^http(s)?:\/\//.test(url)) {
logger.info('warning: 请传入正确的 URL 格式');
return false;
}
var reg = /([^?#]+)(\?[^#]*)?(#.*)?/,
arr = reg.exec(url);

if (!arr) {
return false;
}
var host = arr[1] || '',
search = arr[2] || '',
hash = arr[3] || '',
Expand Down
11 changes: 8 additions & 3 deletions product/sensorsdata.es6.full.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ var ArrayProto = Array.prototype,
slice = ArrayProto.slice,
toString$1 = ObjProto.toString,
hasOwnProperty = ObjProto.hasOwnProperty,
LIB_VERSION = '1.14.24',
LIB_VERSION = '1.14.25',
LIB_NAME = 'MiniProgram';

var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
Expand Down Expand Up @@ -2219,11 +2219,16 @@ sa.setWebViewUrl = function(url, after_hash) {
logger.info('error:请传入正确的 URL 格式');
return false;
}

url = decodeURIComponent(url);
if (!/^http(s)?:\/\//.test(url)) {
logger.info('warning: 请传入正确的 URL 格式');
return false;
}
var reg = /([^?#]+)(\?[^#]*)?(#.*)?/,
arr = reg.exec(url);

if (!arr) {
return false;
}
var host = arr[1] || '',
search = arr[2] || '',
hash = arr[3] || '',
Expand Down
11 changes: 8 additions & 3 deletions product/sensorsdata.full.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ var ArrayProto = Array.prototype,
slice = ArrayProto.slice,
toString$1 = ObjProto.toString,
hasOwnProperty = ObjProto.hasOwnProperty,
LIB_VERSION = '1.14.24',
LIB_VERSION = '1.14.25',
LIB_NAME = 'MiniProgram';

var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
Expand Down Expand Up @@ -2221,11 +2221,16 @@ sa.setWebViewUrl = function(url, after_hash) {
logger.info('error:请传入正确的 URL 格式');
return false;
}

url = decodeURIComponent(url);
if (!/^http(s)?:\/\//.test(url)) {
logger.info('warning: 请传入正确的 URL 格式');
return false;
}
var reg = /([^?#]+)(\?[^#]*)?(#.*)?/,
arr = reg.exec(url);

if (!arr) {
return false;
}
var host = arr[1] || '',
search = arr[2] || '',
hash = arr[3] || '',
Expand Down
11 changes: 8 additions & 3 deletions product/sensorsdata.plugin.es6.full.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ var ArrayProto = Array.prototype,
slice = ArrayProto.slice,
toString$1 = ObjProto.toString,
hasOwnProperty = ObjProto.hasOwnProperty,
LIB_VERSION = '1.14.24',
LIB_VERSION = '1.14.25',
LIB_NAME = 'MiniProgram';

var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
Expand Down Expand Up @@ -2219,11 +2219,16 @@ sa.setWebViewUrl = function(url, after_hash) {
logger.info('error:请传入正确的 URL 格式');
return false;
}

url = decodeURIComponent(url);
if (!/^http(s)?:\/\//.test(url)) {
logger.info('warning: 请传入正确的 URL 格式');
return false;
}
var reg = /([^?#]+)(\?[^#]*)?(#.*)?/,
arr = reg.exec(url);

if (!arr) {
return false;
}
var host = arr[1] || '',
search = arr[2] || '',
hash = arr[3] || '',
Expand Down
11 changes: 8 additions & 3 deletions product/sensorsdata.plugin.full.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ var ArrayProto = Array.prototype,
slice = ArrayProto.slice,
toString$1 = ObjProto.toString,
hasOwnProperty = ObjProto.hasOwnProperty,
LIB_VERSION = '1.14.24',
LIB_VERSION = '1.14.25',
LIB_NAME = 'MiniProgram';

var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
Expand Down Expand Up @@ -2221,11 +2221,16 @@ sa.setWebViewUrl = function(url, after_hash) {
logger.info('error:请传入正确的 URL 格式');
return false;
}

url = decodeURIComponent(url);
if (!/^http(s)?:\/\//.test(url)) {
logger.info('warning: 请传入正确的 URL 格式');
return false;
}
var reg = /([^?#]+)(\?[^#]*)?(#.*)?/,
arr = reg.exec(url);

if (!arr) {
return false;
}
var host = arr[1] || '',
search = arr[2] || '',
hash = arr[3] || '',
Expand Down
2 changes: 1 addition & 1 deletion sensorsdata.custom.es6.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sensorsdata.custom.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sensorsdata.es6.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sensorsdata.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sensorsdata.plugin.es6.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sensorsdata.plugin.min.js

Large diffs are not rendered by default.

0 comments on commit 7790966

Please sign in to comment.