cos-wx-sdk-v5 1.1.3 → 1.1.4
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/CHANGELOG.md +11 -0
- package/demo/lib/cos-wx-sdk-v5.js +3 -3
- package/demo/lib/cos-wx-sdk-v5.min.js +1 -1
- package/demo/project.config.json +1 -1
- package/demo-album/lib/cos-wx-sdk-v5.js +3 -3
- package/demo-album/lib/cos-wx-sdk-v5.min.js +1 -1
- package/package.json +1 -1
- package/src/base.js +2 -2
- package/src/cos.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
9
9
|
|
|
10
|
+
## [v1.1.3](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.1.2...v1.1.3) - 2021-12-03
|
|
11
|
+
|
|
12
|
+
feat
|
|
13
|
+
-sdk入口文件默认为压缩版
|
|
14
|
+
|
|
15
|
+
### Commits
|
|
16
|
+
|
|
17
|
+
- Merge https://github.com/tencentyun/cos-wx-sdk-v5 [`12c3dd0`](https://github.com/tencentyun/cos-wx-sdk-v5/commit/12c3dd0ecce6a1a73b792dde8f395dccc06aa3f4)
|
|
18
|
+
- Updated CHANGELOG.md [`9d49a86`](https://github.com/tencentyun/cos-wx-sdk-v5/commit/9d49a86a7f805ea950632392f4a878fb87ef265f)
|
|
19
|
+
- upd:入口文件默认为压缩版文件 [`0f8a772`](https://github.com/tencentyun/cos-wx-sdk-v5/commit/0f8a772da7046bef25757109fba1419ff248d63f)
|
|
20
|
+
|
|
10
21
|
## [v1.1.2](https://github.com/tencentyun/cos-wx-sdk-v5/compare/v1.1.1...v1.1.2) - 2021-12-01
|
|
11
22
|
|
|
12
23
|
- host参与签名
|
|
@@ -2306,7 +2306,7 @@ base.init(COS, task);
|
|
|
2306
2306
|
advance.init(COS, task);
|
|
2307
2307
|
|
|
2308
2308
|
COS.getAuthorization = util.getAuth;
|
|
2309
|
-
COS.version = '1.1.
|
|
2309
|
+
COS.version = '1.1.4';
|
|
2310
2310
|
|
|
2311
2311
|
module.exports = COS;
|
|
2312
2312
|
|
|
@@ -8419,13 +8419,13 @@ function getUrl(params) {
|
|
|
8419
8419
|
}
|
|
8420
8420
|
|
|
8421
8421
|
var getSignHost = function getSignHost(opt) {
|
|
8422
|
-
if (!opt.Bucket || !opt.
|
|
8422
|
+
if (!opt.Bucket || !opt.Region) return '';
|
|
8423
8423
|
var url = opt.Url || getUrl({
|
|
8424
8424
|
ForcePathStyle: this.options.ForcePathStyle,
|
|
8425
8425
|
protocol: this.options.Protocol,
|
|
8426
8426
|
domain: this.options.Domain,
|
|
8427
8427
|
bucket: opt.Bucket,
|
|
8428
|
-
region: opt.Region
|
|
8428
|
+
region: this.options.UseAccelerate ? 'accelerate' : opt.Region
|
|
8429
8429
|
});
|
|
8430
8430
|
var urlHost = url.replace(/^https?:\/\/([^/]+)(\/.*)?$/, '$1');
|
|
8431
8431
|
var standardHostReg = new RegExp('^([a-z\\d-]+-\\d+\\.)?(cos|cosv6|ci|pic)\\.([a-z\\d-]+)\\.myqcloud\\.com$');
|