2
0
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:
Dmitriy Mozgovoy
2022-11-07 20:24:23 +02:00
committed by GitHub
parent 56fd6ba821
commit 9452f06aa9
2 changed files with 3 additions and 1 deletions
Vendored
+1
View File
@@ -269,6 +269,7 @@ export interface AxiosProgressEvent {
estimated?: number;
upload?: boolean;
download?: boolean;
event?: ProgressEvent;
}
type Milliseconds = number;
+2 -1
View File
@@ -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;