-
Notifications
You must be signed in to change notification settings - Fork 576
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support multiversion api (#784)
* fix: _unSupportBrowserTip (#755) * fix: checkBucketName bug (#749) * feat: image processing (#744) close #676 * feat: putBucketWebsite support new parameter (#736) * feat: support for the latest putBucketLifecycle api features (#757) * feat: signatureUrl support trafficLimit (#756) * feat(node): bucket policy (#751) * test: getBucketTags/getObjectTagging/calculatePostSignature (#739) * test: getBucketTags/getObjectTagging/calculatePostSignature * fix: trafficLimit error * chore: browserify close debug (#759) * fix: add successStatus (#762) * fix: checkBucketName bug (#763) * fix: add CORS for server-side-encryption * chore: bump 6.6.0 * fix: proto.put TypeError text (#771) * refactor: replace is.blob & is.file with isBlob & isFile (#776) * feat: multiversion (#750) * chore: bump 6.8.0-beta * refactor: multiversion (#781) * fix: browser端,去除没有使用的 sha256.js 文件 (#780) * chore: change and delete the bucket used for test (#783) * fix: putBucketWebsite testting (#785) * chore: fix test case Co-authored-by: 冷若霜寒 <912881342@qq.com> Co-authored-by: microJ <microJ@users.noreply.github.com>
- Loading branch information
1 parent
fed2ba7
commit 2de5afc
Showing
43 changed files
with
2,662 additions
and
1,034 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
exports.version="6.7.0" | ||
exports.version="6.8.0-beta" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const _checkBucketName = require('../utils/checkBucketName'); | ||
|
||
const proto = exports; | ||
/** | ||
* getBucketVersioning | ||
* @param {String} bucketName - bucket name | ||
*/ | ||
|
||
proto.getBucketVersioning = async function getBucketVersioning(bucketName, options) { | ||
_checkBucketName(bucketName); | ||
const params = this._bucketRequestParams('GET', bucketName, 'versioning', options); | ||
params.xmlResponse = true; | ||
params.successStatuses = [200]; | ||
const result = await this.request(params); | ||
|
||
const versionStatus = result.data.Status; | ||
return { | ||
status: result.status, | ||
versionStatus, | ||
res: result.res | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.