Skip to content

Commit 6f0e081

Browse files
author
carsonxu
committed
const 改为 var
1 parent 572c0a7 commit 6f0e081

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
node_modules
44
package-lock.json
55
.DS_Store
6+
*/.wechatide

demo-album/lib/cos-wx-sdk-v5.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.

demo/lib/cos-wx-sdk-v5.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": "cos-wx-sdk-v5",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"description": "小程序 SDK for [腾讯云对象存储服务](https://cloud.tencent.com/product/cos)",
55
"main": "demo/lib/cos-wx-sdk-v5.js",
66
"scripts": {

src/cos.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ base.init(COS, task);
5656
advance.init(COS, task);
5757

5858
COS.getAuthorization = util.getAuth;
59-
COS.version = '1.0.4';
59+
COS.version = '1.0.5';
6060

6161
module.exports = COS;

src/util.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ var getSkewTime = function (offset) {
511511
var compareVersion = function (v1, v2) {
512512
v1 = v1.split('.')
513513
v2 = v2.split('.')
514-
const len = Math.max(v1.length, v2.length)
514+
var len = Math.max(v1.length, v2.length)
515515

516516
while (v1.length < len) {
517517
v1.push('0')
@@ -521,8 +521,8 @@ var compareVersion = function (v1, v2) {
521521
}
522522

523523
for (var i = 0; i < len; i++) {
524-
const num1 = parseInt(v1[i])
525-
const num2 = parseInt(v2[i])
524+
var num1 = parseInt(v1[i])
525+
var num2 = parseInt(v2[i])
526526

527527
if (num1 > num2) {
528528
return 1

0 commit comments

Comments
 (0)