Skip to content

Commit b15c0d5

Browse files
committed
Update dependencies
1 parent f5961c9 commit b15c0d5

File tree

5 files changed

+377
-392
lines changed

5 files changed

+377
-392
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
All notable changes to this project will be documented in this file.
33

44
## [Unreleased]
5+
### Changed
6+
- Updated dependencies
7+
- Switched from vercel/pkg to yao-pkg/pkg as vercel has deprecated pkg
58

69

710
## [3.0.0] - 2024-02-24

bin/cli.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const cli = new Command()
2121

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

24-
function formatValue(v, options, type){
25-
switch (type){
24+
function formatValue(v, options, type) {
25+
switch (type) {
2626
case 'value':
2727
case 'total':
2828
return prettyBytes(v);
@@ -53,7 +53,7 @@ async function runUpload(ctx) {
5353
ctx.filePath = await utility.downloadTempFile(ctx.filePath, (current, total) => {
5454
let { speed, eta } = utility.formatSpeedAndEta(current, total, Date.now() - transferStartTime);
5555
!started ? progressBar.start(total, current, { task: 'Downloading', speed, etas: eta })
56-
: progressBar.update(current, { speed, etas: eta });
56+
: progressBar.update(current, { speed, etas: eta });
5757
started = true;
5858
});
5959
progressBar.stop();

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ async function executeOperation({ ctx, reservation, operation }) {
306306
catch (err) {
307307
throw new Error('Upload failed!\n' + err.message);
308308
}
309-
309+
310310
if (res.status != 200) {
311311
throw new Error('Upload failed! (' + res.status + ')');
312312
}

0 commit comments

Comments
 (0)