Comparing version 0.3.7 to 0.3.8
@@ -40,5 +40,8 @@ # KS3 命令行文档 | ||
`-a --ak` : 开发者的AK(Access Key) | ||
`-s --sk` : 开发者AK对应的SK(Access Key Secret) | ||
`-b --bucket` : 开发要使用哪个Bucket,非必须,可以在每个具体命令中指定 | ||
`-a --ak` : 开发者的AK(Access Key) | ||
`-s --sk` : 开发者AK对应的SK(Access Key Secret) | ||
`-b --bucket` : 开发要使用哪个Bucket,非必须,可以在每个具体命令中指定 | ||
`-r --region` : Bucket所在Region,非必须,可在每个具体命令中指定,有效值为:BEIJING|HONGKONG|AMERICA|SHANGHAI | ||
@@ -54,6 +57,10 @@ | ||
``` | ||
`-p --path` : 开发者制定要上传文件夹或者文件的地址 | ||
`-b --bucket` : 指定上传文件存储的bucket | ||
`-k --key` : 如果上传的path为文件,则为文件名,如果上传的path是文件夹,则为文件夹名称 | ||
`--withsubdir` : 在上传文件夹的过程中,是否上传子文件夹,默认不上传,加上本参数,上传子文件夹内容 | ||
`-p --path` : 开发者制定要上传文件夹或者文件的地址 | ||
`-b --bucket` : 指定上传文件存储的bucket | ||
`-k --key` : 如果上传的path为文件,则为文件名,如果上传的path是文件夹,则为文件夹名称 | ||
`--withsubdir` : 在上传文件夹的过程中,是否上传子文件夹,默认不上传,加上本参数,上传子文件夹内容 | ||
`-r --region` : Bucket所在Region,有效值为:BEIJING|HONGKONG|AMERICA|SHANGHAI | ||
@@ -93,5 +100,8 @@ | ||
`-b --bucket` : 指定下载文件所在的bucket | ||
`-k --key` : 指定下载文件对应的key,**注意,key不包含bucket名称** | ||
`-p --path` : 下载文件的本地存储地址 | ||
`-b --bucket` : 指定下载文件所在的bucket | ||
`-k --key` : 指定下载文件对应的key,**注意,key不包含bucket名称** | ||
`-p --path` : 下载文件的本地存储地址 | ||
`-r --region` : Bucket所在Region,有效值为:BEIJING|HONGKONG|AMERICA|SHANGHAI | ||
@@ -110,3 +120,3 @@ | ||
``` | ||
说明:不指定region则默认为杭州region | ||
说明:不指定region则默认为北京region | ||
@@ -113,0 +123,0 @@ ## 帮助说明 |
@@ -5,3 +5,3 @@ var path = require('path'); | ||
protocol:'http', | ||
baseUrl:'kss.ksyun.com', | ||
baseUrl:'ks3-cn-beijing.ksyun.com', | ||
// 所有header设置的前缀 | ||
@@ -43,5 +43,5 @@ // ks3: kss , amazon s3: amz | ||
resetRegion: function(){ | ||
this.baseUrl = this.ENDPOINT.HANGZHOU; | ||
this.baseUrl = this.ENDPOINT.BEIJING; | ||
this.region = ''; | ||
} | ||
} |
@@ -0,2 +1,8 @@ | ||
0.3.8 / 2016-06-02 | ||
================== | ||
* 修复上传文件夹设置acl无效问题 | ||
* 更新sdk默认region为北京 | ||
0.3.7 / 2016-06-01 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -153,3 +153,4 @@ var config = require('../../config'); | ||
filePath: filePath, | ||
Key: key | ||
Key: key, | ||
ACL: params.ACL | ||
}, | ||
@@ -352,3 +353,4 @@ function(err, data, res) { | ||
filePath: file, | ||
Key: key2 | ||
Key: key2, | ||
ACL: params.ACL | ||
}, | ||
@@ -355,0 +357,0 @@ function(err, data, res) { |
{ | ||
"name": "ks3", | ||
"version": "0.3.7", | ||
"version": "0.3.8", | ||
"description": "本代码库为`金山云存储KS3`服务.主要提供`KS3 nodejs SDK`和`命令行工具`.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -75,3 +75,4 @@ var KS3 = require('..'); | ||
ignore:/(.(swp|ds_store)$)/ig | ||
} | ||
}, | ||
ACL:'public-read' | ||
}, | ||
@@ -78,0 +79,0 @@ function(err, data, res) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
AI-detected potential security risk
Supply chain riskAI has determined that this package may contain potential security issues or vulnerabilities.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
9722630
3589
6