Skip to content

Commit

Permalink
Force CI restart;
Browse files Browse the repository at this point in the history
Force CI restart;
  • Loading branch information
DigitalBrainJS committed Nov 7, 2022
1 parent 56fd6ba commit 9452f06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.d.ts
Expand Up @@ -269,6 +269,7 @@ export interface AxiosProgressEvent {
estimated?: number;
upload?: boolean;
download?: boolean;
event?: ProgressEvent;
}

type Milliseconds = number;
Expand Down
3 changes: 2 additions & 1 deletion lib/adapters/xhr.js
Expand Up @@ -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;
Expand Down

0 comments on commit 9452f06

Please sign in to comment.