mirror of
https://github.com/tenrok/axios.git
synced 2026-05-30 15:24:11 +03:00
Force CI restart;
Force CI restart;
This commit is contained in:
Vendored
+1
@@ -269,6 +269,7 @@ export interface AxiosProgressEvent {
|
||||
estimated?: number;
|
||||
upload?: boolean;
|
||||
download?: boolean;
|
||||
event?: ProgressEvent;
|
||||
}
|
||||
|
||||
type Milliseconds = number;
|
||||
|
||||
+2
-1
@@ -33,7 +33,8 @@ function progressEventReducer(listener, isDownloadStream) {
|
||||
progress: total ? (loaded / total) : undefined,
|
||||
bytes: progressBytes,
|
||||
rate: rate ? rate : undefined,
|
||||
estimated: rate && total && inRange ? (total - loaded) / rate : undefined
|
||||
estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
|
||||
event: e
|
||||
};
|
||||
|
||||
data[isDownloadStream ? 'download' : 'upload'] = true;
|
||||
|
||||
Reference in New Issue
Block a user