Skip to content

Commit 3c0ef2e

Browse files
authored
Update tus-js-client to v4 (#203)
* Update tus-js-client to v4 There are no breaking changes for us. * Fix TypeScript issue
1 parent 166bdba commit 3c0ef2e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"into-stream": "^6.0.0",
2323
"is-stream": "^2.0.1",
2424
"p-map": "^4.0.0",
25-
"tus-js-client": "^3.1.3"
25+
"tus-js-client": "^4.2.3"
2626
},
2727
"devDependencies": {
2828
"@babel/core": "^7.25.8",

src/tus.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import debug from 'debug'
22
import { basename } from 'path'
3-
import { Upload, UploadOptions } from 'tus-js-client'
3+
import { OnSuccessPayload, Upload, UploadOptions } from 'tus-js-client'
44
import { stat } from 'fs/promises'
55
import pMap from 'p-map'
66
import type { Readable } from 'stream'
@@ -88,7 +88,7 @@ export async function sendTusRequest({
8888

8989
const filename = path ? basename(path) : label
9090

91-
await new Promise<void>((resolve, reject) => {
91+
await new Promise<OnSuccessPayload>((resolve, reject) => {
9292
const tusOptions: UploadOptions = {
9393
endpoint: assembly.tus_url,
9494
metadata: {

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5373,7 +5373,7 @@ __metadata:
53735373
p-retry: "npm:^4.6.2"
53745374
prettier: "npm:^3.3.3"
53755375
temp: "npm:^0.9.4"
5376-
tus-js-client: "npm:^3.1.3"
5376+
tus-js-client: "npm:^4.2.3"
53775377
typescript: "npm:^5.6.3"
53785378
vitest: "npm:^2.1.3"
53795379
languageName: unknown
@@ -5409,9 +5409,9 @@ __metadata:
54095409
languageName: node
54105410
linkType: hard
54115411

5412-
"tus-js-client@npm:^3.1.3":
5413-
version: 3.1.3
5414-
resolution: "tus-js-client@npm:3.1.3"
5412+
"tus-js-client@npm:^4.2.3":
5413+
version: 4.2.3
5414+
resolution: "tus-js-client@npm:4.2.3"
54155415
dependencies:
54165416
buffer-from: "npm:^1.1.2"
54175417
combine-errors: "npm:^3.0.3"
@@ -5420,7 +5420,7 @@ __metadata:
54205420
lodash.throttle: "npm:^4.1.1"
54215421
proper-lockfile: "npm:^4.1.2"
54225422
url-parse: "npm:^1.5.7"
5423-
checksum: 526a82147292cb31404866ef16c315fab231d3f8761dc17509ececcf264d8c32a4a02a377dff0939fb50026bfd4bf62ac6518f657cda7b09033e230814cbb467
5423+
checksum: 4cf660f58b7a778eaa8df044d6d816f4613b4e30b36476ed28f3d356ec6ed24207065afb140016a3067571be006c159c87bd2dd861af50736e84b1aee8f87f64
54245424
languageName: node
54255425
linkType: hard
54265426

0 commit comments

Comments
 (0)