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