Skip to content

Commit

Permalink
Update tus-js-client to v4 (#203)
Browse files Browse the repository at this point in the history
* Update tus-js-client to v4

There are no breaking changes for us.

* Fix TypeScript issue
  • Loading branch information
remcohaszing authored Nov 28, 2024
1 parent 166bdba commit 3c0ef2e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"into-stream": "^6.0.0",
"is-stream": "^2.0.1",
"p-map": "^4.0.0",
"tus-js-client": "^3.1.3"
"tus-js-client": "^4.2.3"
},
"devDependencies": {
"@babel/core": "^7.25.8",
Expand Down
4 changes: 2 additions & 2 deletions src/tus.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import debug from 'debug'
import { basename } from 'path'
import { Upload, UploadOptions } from 'tus-js-client'
import { OnSuccessPayload, Upload, UploadOptions } from 'tus-js-client'
import { stat } from 'fs/promises'
import pMap from 'p-map'
import type { Readable } from 'stream'
Expand Down Expand Up @@ -88,7 +88,7 @@ export async function sendTusRequest({

const filename = path ? basename(path) : label

await new Promise<void>((resolve, reject) => {
await new Promise<OnSuccessPayload>((resolve, reject) => {
const tusOptions: UploadOptions = {
endpoint: assembly.tus_url,
metadata: {
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5373,7 +5373,7 @@ __metadata:
p-retry: "npm:^4.6.2"
prettier: "npm:^3.3.3"
temp: "npm:^0.9.4"
tus-js-client: "npm:^3.1.3"
tus-js-client: "npm:^4.2.3"
typescript: "npm:^5.6.3"
vitest: "npm:^2.1.3"
languageName: unknown
Expand Down Expand Up @@ -5409,9 +5409,9 @@ __metadata:
languageName: node
linkType: hard

"tus-js-client@npm:^3.1.3":
version: 3.1.3
resolution: "tus-js-client@npm:3.1.3"
"tus-js-client@npm:^4.2.3":
version: 4.2.3
resolution: "tus-js-client@npm:4.2.3"
dependencies:
buffer-from: "npm:^1.1.2"
combine-errors: "npm:^3.0.3"
Expand All @@ -5420,7 +5420,7 @@ __metadata:
lodash.throttle: "npm:^4.1.1"
proper-lockfile: "npm:^4.1.2"
url-parse: "npm:^1.5.7"
checksum: 526a82147292cb31404866ef16c315fab231d3f8761dc17509ececcf264d8c32a4a02a377dff0939fb50026bfd4bf62ac6518f657cda7b09033e230814cbb467
checksum: 4cf660f58b7a778eaa8df044d6d816f4613b4e30b36476ed28f3d356ec6ed24207065afb140016a3067571be006c159c87bd2dd861af50736e84b1aee8f87f64
languageName: node
linkType: hard

Expand Down

0 comments on commit 3c0ef2e

Please sign in to comment.