Skip to content

Commit

Permalink
const 改为 var
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu committed Dec 18, 2020
1 parent 572c0a7 commit 6f0e081
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
node_modules
package-lock.json
.DS_Store
*/.wechatide
2 changes: 1 addition & 1 deletion demo-album/lib/cos-wx-sdk-v5.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demo/lib/cos-wx-sdk-v5.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cos-wx-sdk-v5",
"version": "1.0.4",
"version": "1.0.5",
"description": "小程序 SDK for [腾讯云对象存储服务](https://cloud.tencent.com/product/cos)",
"main": "demo/lib/cos-wx-sdk-v5.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/cos.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ base.init(COS, task);
advance.init(COS, task);

COS.getAuthorization = util.getAuth;
COS.version = '1.0.4';
COS.version = '1.0.5';

module.exports = COS;
6 changes: 3 additions & 3 deletions src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ var getSkewTime = function (offset) {
var compareVersion = function (v1, v2) {
v1 = v1.split('.')
v2 = v2.split('.')
const len = Math.max(v1.length, v2.length)
var len = Math.max(v1.length, v2.length)

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

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

if (num1 > num2) {
return 1
Expand Down

0 comments on commit 6f0e081

Please sign in to comment.