Comparing version 0.2.0 to 0.2.1
@@ -35,3 +35,7 @@ var path = require('path'); | ||
}, | ||
reset: function(){ | ||
setRegion: function(region) { | ||
this.region = region; | ||
this.baseUrl = this.ENDPOINT[region]; | ||
}, | ||
resetRegion: function(){ | ||
this.baseUrl = this.ENDPOINT.HANGZHOU; | ||
@@ -38,0 +42,0 @@ this.region = ''; |
{ | ||
"name": "ks3", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -28,4 +28,3 @@ var KS3 = require('..'); | ||
it('create bucket to specified region && delete bucket', function(done) { | ||
config.baseUrl = config.ENDPOINT.BEIJING; | ||
config.region = 'BEIJING'; | ||
config.setRegion('BEIJING'); | ||
client.bucket.put({ | ||
@@ -39,3 +38,3 @@ Bucket: bucketName | ||
res.should.have.status(204); // 删除bucket,成功的状态码为204 | ||
config.reset(); | ||
config.resetRegion(); | ||
done(); | ||
@@ -42,0 +41,0 @@ }) |
@@ -6,4 +6,4 @@ | ||
``` | ||
BIG_FILE=/Users/StoneRen/Desktop/金山云存储_代码.mov mocha | ||
BIG_FILE=/Users/StoneRen/Desktop/金山云存储_代码.mov mocha | ||
``` | ||
Sorry, the diff of this file is not supported yet
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
95
5368257
3249