-
Notifications
You must be signed in to change notification settings - Fork 87
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
fix: use nfs download api #461
Conversation
@@ -34,6 +38,8 @@ export interface NFSClient { | |||
|
|||
createDownloadStream(key: string): Promise<Readable | undefined>; | |||
|
|||
download(key: string, filepath: string, options: DownloadOptions): Promise<void>; |
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.
@elrrrrrrr 需要使用 download 接口,stream 模式在 cnpmjs.org 服务器卡住了。文件没有下载完,大小都是一个。
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 #461 +/- ##
=======================================
Coverage 97.46% 97.47%
=======================================
Files 166 166
Lines 15407 15428 +21
Branches 1994 1996 +2
=======================================
+ Hits 15017 15038 +21
Misses 390 390
|
[skip ci] ## [3.20.1](v3.20.0...v3.20.1) (2023-05-06) ### Bug Fixes * use nfs download api ([#461](#461)) ([bb16957](bb16957))
🎉 This PR is included in version 3.20.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
会引入一个不兼容的变更,需要 nfsClient 实现 download 方法 🤔 |
第一个版本的 nfsClient 规范就有 download 方法约定的 https://github.com/cnpm/cnpmjs.org/wiki/NFS-Guide |
No description provided.