Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
simonnilsson committed Apr 17, 2024
1 parent f5961c9 commit b15c0d5
Show file tree
Hide file tree
Showing 5 changed files with 377 additions and 392 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
All notable changes to this project will be documented in this file.

## [Unreleased]
### Changed
- Updated dependencies
- Switched from vercel/pkg to yao-pkg/pkg as vercel has deprecated pkg


## [3.0.0] - 2024-02-24
Expand Down
6 changes: 3 additions & 3 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const cli = new Command()

const fileUrlRegex = /^(?:https?|ftp):\/\//;

function formatValue(v, options, type){
switch (type){
function formatValue(v, options, type) {
switch (type) {
case 'value':
case 'total':
return prettyBytes(v);
Expand Down Expand Up @@ -53,7 +53,7 @@ async function runUpload(ctx) {
ctx.filePath = await utility.downloadTempFile(ctx.filePath, (current, total) => {
let { speed, eta } = utility.formatSpeedAndEta(current, total, Date.now() - transferStartTime);
!started ? progressBar.start(total, current, { task: 'Downloading', speed, etas: eta })
: progressBar.update(current, { speed, etas: eta });
: progressBar.update(current, { speed, etas: eta });
started = true;
});
progressBar.stop();
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ async function executeOperation({ ctx, reservation, operation }) {
catch (err) {
throw new Error('Upload failed!\n' + err.message);
}

if (res.status != 200) {
throw new Error('Upload failed! (' + res.status + ')');
}
Expand Down
Loading

0 comments on commit b15c0d5

Please sign in to comment.