-
Notifications
You must be signed in to change notification settings - Fork 576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: putBucket support set acl and dataRedundancyType #837
Conversation
51b332a
to
d82110e
Compare
const params = this._bucketRequestParams('PUT', name, '', options); | ||
|
||
const CreateBucketConfiguration = {}; | ||
const paramlXMLObJ = { | ||
CreateBucketConfiguration | ||
}; | ||
|
||
if (options.StorageClass) { | ||
CreateBucketConfiguration.StorageClass = options.StorageClass; | ||
const storageClass = options.StorageClass || options.storageClass; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个函数的参数变动 以及 新加参数 补充下文档
Codecov Report
@@ Coverage Diff @@
## master #837 +/- ##
=========================================
Coverage ? 93.21%
=========================================
Files ? 72
Lines ? 2609
Branches ? 0
=========================================
Hits ? 2432
Misses ? 177
Partials ? 0
Continue to review full report at Codecov.
|
* feat: add async task (#818) * test: replace await loop with Promise.all (#810) Co-authored-by: 饶培泽 <peizerao@gmail.com> * feat: add typescript support (#814) * feat: add ts * feat: add cjs * refactor: checkBucketName * refactor: common/utils with ts * refactor: createRequest with ts * feat: add es2017 Co-authored-by: weiyie <912881342@qq.com> * chore: add nyc config * feat: asyncFetch (#817) Co-authored-by: 冷若霜寒 <912881342@qq.com> * chore: update tsc cli * fix: WebFileReadStream no throw error when filereader onerror (#824) * fix(browser): put unhandle non-RequestTimeTooSkewed error (#825) * chore(deps-dev): bump standard-version from 4.4.0 to 8.0.1 (#831) Bumps [standard-version](https://github.com/conventional-changelog/standard-version) from 4.4.0 to 8.0.1. - [Release notes](https://github.com/conventional-changelog/standard-version/releases) - [Changelog](https://github.com/conventional-changelog/standard-version/blob/master/CHANGELOG.md) - [Commits](conventional-changelog/standard-version@v4.4.0...v8.0.1) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix: crypto each exports, close #473 (#830) Co-authored-by: 饶培泽 <peizerao@gmail.com> * chore(release): 6.10.0 * chore: bump version * chore: update README.md (#833) Update description information of `getBucketVersions` * fix: throw error when put path is not file (#838) * fix: Support empty prefix in putBucketLifecycle (#835) {prefix: ""} is supported for rule that applied to whole bucket. * feat: multipartUpload support Node.JS Buffer (#832) Support performing .multipartUpload(name {string}, file {Buffer}); Co-authored-by: 饶培泽 <peizerao@gmail.com> * fix: IP does not support third-level domain (#834) * refactor: is.buffer (#839) * feat: putBucket support set acl and dataRedundancyType (#837) * docs: add link for more info code (#844) * feat: support non-english http header (#842) * feat: support non-english http header * test: Add test cases for non-English request header information * feat: add headerEncoding option * feat: add encoder types * fix: remove object spread syntax Co-authored-by: biejia <wb-bj559483@alibaba-inc.com> * docs: add partSize of multipart (#845) * fix: sts SignatureDoesNotMatch (#847) * fix: _getPartSize (#846) * chore: obj2xml support filter null and undefined value (#848) * fix: multipartupload task unhandle abort error (#849) * fix(browser): checkpoint.file (#795) * fix: copyObject set headers bug (#850) * feat: support proxy (#858) * fix(browser): presets dont support ie10 (#861) * merge branch master into develop * feat: inventory (#860) * feat: worm (#857) * feat: auto set stsConfig when sts expires (#856) * feat: auto set stsConfig when sts expires * test: add auto set sts test case * fix: host err which old image client request (#869) * Develop (#868) * feat: support non-english http header (#842) * feat: support non-english http header * test: Add test cases for non-English request header information * feat: add headerEncoding option * feat: add encoder types * fix: remove object spread syntax Co-authored-by: biejia <wb-bj559483@alibaba-inc.com> * fix(browser): checkpoint.file (#795) * merge branch master into develop * feat: inventory (#860) * feat: worm (#857) * feat: auto set stsConfig when sts expires (#856) * feat: auto set stsConfig when sts expires * test: add auto set sts test case * fix: host err which old image client request (#869) Co-authored-by: beajer <919060679@qq.com> Co-authored-by: biejia <wb-bj559483@alibaba-inc.com> Co-authored-by: 冷若霜寒 <912881342@qq.com> * chore(release): 6.11.0 * bump version 6.11.0 * chore: bump version 6.11.1 * fix(browser): delete set header "User-Agent" (#873) * chore(release): 6.11.2 * chore: bump version 6.11.2 * Update README.md * fix: use put insteadof putStream when calling multipartUpload to process small file in browser (#890) * fix(browser):setTimeout has minimum time interval when tab is inactive (#887) * fix: replace process for browser * fix: use browserify options to replace process.js (#886) Co-authored-by: beajer <919060679@qq.com> * fix: merge conflict #726 (#892) * fix: merge conflict * test: ResponseTimeoutError * fix: cannot use ali-oss in webworker (#823) * feat: retry when net err or timeout (#876) * feat: retry when net err or timeout * test: should not retry when params.stream is not readable * test: retry in browser Co-authored-by: beajer <919060679@qq.com> * fix: getBucketVersions should use NextKeyMarker property (#896) * fix: getBucketVersions should use NextKeyMarker property * docs: getBucketVersions should use NextKeyMarker property * docs: Compatible wrong property * Fix multipart upload (#895) * fix: multipartUpload zancun * fix: test case * test: multipartUploadStreams * test: cov * fix: error method * fix: test and destory(err) when cancel Co-authored-by: weiyie <912881342@qq.com> * feat: listObjectsV2 (#888) * feat: listObjectsV2 * style: trailingComma none * fix: check region and endpoint for ssrf (#874) * fix: check region and endpoint for ssrf * fix: retry in browser Co-authored-by: beajer <919060679@qq.com> * use shime/url replace node-url to fix split regex bug * fix: browser test and listV2 docs (#901) * chore(release): 6.12.0 * chore: build 6.12.0 * fix: conflict, test case * style: remove duplicated code * fix: the continuation-token params in listV2 (#906) * fix: the continuation-token params in listV2 * docs: update headers.Expires * docs: revise `start-after` in listV2 (#907) * fix: codecov * fix: should use encodeURIComponent insteadof encodeURI in copy api * fix: use lowercase header when calculating signatures * fix: deepCopy not working for larges Buffers and test case of Image Process * feat: prevent caching for the get api Co-authored-by: 饶培泽 <peizerao@gmail.com> Co-authored-by: 冷若霜寒 <912881342@qq.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: YUPENG12138 <30425185+YUPENG12138@users.noreply.github.com> Co-authored-by: Alois Klink <alois.klink@gmail.com> Co-authored-by: biejia <wb-bj559483@alibaba-inc.com>
No description provided.