qiniu / nodejs-sdk

Qiniu Resource (Cloud) Storage SDK for Node.js
588 stars 190 forks source link

Support promise style async and use region instead zone #430

Closed lihsai0 closed 5 months ago

lihsai0 commented 7 months ago

Including #429(rebased)

codecov[bot] commented 5 months ago

Codecov Report

Attention: Patch coverage is 93.60000% with 48 lines in your changes are missing coverage. Please review.

Project coverage is 87.52%. Comparing base (f60fecd) to head (eb00eff).

:exclamation: Current head eb00eff differs from pull request most recent head e30bb1f. Consider uploading reports for the commit e30bb1f to get more accurate results

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/qiniu/nodejs-sdk/pull/430/graphs/tree.svg?width=650&height=150&src=pr&token=zocjgTR1gl&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu)](https://app.codecov.io/gh/qiniu/nodejs-sdk/pull/430?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu) ```diff @@ Coverage Diff @@ ## master #430 +/- ## ========================================== + Coverage 77.62% 87.52% +9.89% ========================================== Files 27 33 +6 Lines 2159 2180 +21 Branches 455 414 -41 ========================================== + Hits 1676 1908 +232 + Misses 483 272 -211 ``` | [Files](https://app.codecov.io/gh/qiniu/nodejs-sdk/pull/430?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu) | Coverage Δ | | |---|---|---| | [index.js](https://app.codecov.io/gh/qiniu/nodejs-sdk/pull/430?src=pr&el=tree&filepath=index.js&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu#diff-aW5kZXguanM=) | `100.00% <ø> (ø)` | | | [qiniu/auth/digest.js](https://app.codecov.io/gh/qiniu/nodejs-sdk/pull/430?src=pr&el=tree&filepath=qiniu%2Fauth%2Fdigest.js&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu#diff-cWluaXUvYXV0aC9kaWdlc3QuanM=) | `100.00% <100.00%> (ø)` | | | [qiniu/httpc/endpoint.js](https://app.codecov.io/gh/qiniu/nodejs-sdk/pull/430?src=pr&el=tree&filepath=qiniu%2Fhttpc%2Fendpoint.js&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu#diff-cWluaXUvaHR0cGMvZW5kcG9pbnQuanM=) | `100.00% <100.00%> (ø)` | | | [qiniu/httpc/endpointsProvider.js](https://app.codecov.io/gh/qiniu/nodejs-sdk/pull/430?src=pr&el=tree&filepath=qiniu%2Fhttpc%2FendpointsProvider.js&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu#diff-cWluaXUvaHR0cGMvZW5kcG9pbnRzUHJvdmlkZXIuanM=) | `100.00% <ø> (ø)` | | | [qiniu/httpc/middleware/base.js](https://app.codecov.io/gh/qiniu/nodejs-sdk/pull/430?src=pr&el=tree&filepath=qiniu%2Fhttpc%2Fmiddleware%2Fbase.js&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu#diff-cWluaXUvaHR0cGMvbWlkZGxld2FyZS9iYXNlLmpz) | `85.71% <ø> (ø)` | | | [qiniu/httpc/middleware/index.js](https://app.codecov.io/gh/qiniu/nodejs-sdk/pull/430?src=pr&el=tree&filepath=qiniu%2Fhttpc%2Fmiddleware%2Findex.js&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu#diff-cWluaXUvaHR0cGMvbWlkZGxld2FyZS9pbmRleC5qcw==) | `100.00% <ø> (ø)` | | | [qiniu/httpc/middleware/qiniuAuth.js](https://app.codecov.io/gh/qiniu/nodejs-sdk/pull/430?src=pr&el=tree&filepath=qiniu%2Fhttpc%2Fmiddleware%2FqiniuAuth.js&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu#diff-cWluaXUvaHR0cGMvbWlkZGxld2FyZS9xaW5pdUF1dGguanM=) | `100.00% <100.00%> (ø)` | | | [qiniu/httpc/middleware/retryDomains.js](https://app.codecov.io/gh/qiniu/nodejs-sdk/pull/430?src=pr&el=tree&filepath=qiniu%2Fhttpc%2Fmiddleware%2FretryDomains.js&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu#diff-cWluaXUvaHR0cGMvbWlkZGxld2FyZS9yZXRyeURvbWFpbnMuanM=) | `88.37% <ø> (ø)` | | | [qiniu/httpc/middleware/ua.js](https://app.codecov.io/gh/qiniu/nodejs-sdk/pull/430?src=pr&el=tree&filepath=qiniu%2Fhttpc%2Fmiddleware%2Fua.js&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu#diff-cWluaXUvaHR0cGMvbWlkZGxld2FyZS91YS5qcw==) | `91.66% <ø> (-8.34%)` | :arrow_down: | | [qiniu/httpc/region.js](https://app.codecov.io/gh/qiniu/nodejs-sdk/pull/430?src=pr&el=tree&filepath=qiniu%2Fhttpc%2Fregion.js&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu#diff-cWluaXUvaHR0cGMvcmVnaW9uLmpz) | `98.36% <100.00%> (+0.68%)` | :arrow_up: | | ... and [15 more](https://app.codecov.io/gh/qiniu/nodejs-sdk/pull/430?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu) | | ... and [4 files with indirect coverage changes](https://app.codecov.io/gh/qiniu/nodejs-sdk/pull/430/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu)