@uppy/tus
Advanced tools
Comparing version 3.5.4 to 3.5.5
# @uppy/tus | ||
## 3.5.5 | ||
Released: 2024-05-22 | ||
Included in: Uppy v3.25.4 | ||
- @uppy/tus: fix no headers passed to companion if argument is a function (netdown / #5182) | ||
## 3.5.1 | ||
@@ -4,0 +11,0 @@ |
@@ -19,3 +19,3 @@ function _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; } | ||
const packageJson = { | ||
"version": "3.5.4" | ||
"version": "3.5.5" | ||
}; | ||
@@ -498,2 +498,5 @@ /** | ||
} | ||
if (typeof opts.headers === 'function') { | ||
opts.headers = opts.headers(file); | ||
} | ||
return { | ||
@@ -500,0 +503,0 @@ ...((_file$remote = file.remote) == null ? void 0 : _file$remote.body), |
{ | ||
"name": "@uppy/tus", | ||
"description": "Resumable uploads for Uppy using Tus.io", | ||
"version": "3.5.4", | ||
"version": "3.5.5", | ||
"license": "MIT", | ||
@@ -26,4 +26,4 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/companion-client": "^3.8.0", | ||
"@uppy/utils": "^5.7.5", | ||
"@uppy/companion-client": "^3.8.1", | ||
"@uppy/utils": "^5.9.0", | ||
"tus-js-client": "^3.1.3" | ||
@@ -35,4 +35,4 @@ }, | ||
"peerDependencies": { | ||
"@uppy/core": "^3.10.0" | ||
"@uppy/core": "^3.11.3" | ||
} | ||
} |
@@ -10,5 +10,7 @@ # @uppy/tus | ||
The Tus plugin brings [tus.io][] resumable file uploading to Uppy by wrapping the [tus-js-client][]. | ||
The Tus plugin brings [tus.io][] resumable file uploading to Uppy by wrapping | ||
the [tus-js-client][]. | ||
Uppy is being developed by the folks at [Transloadit](https://transloadit.com), a versatile file encoding service. | ||
Uppy is being developed by the folks at [Transloadit](https://transloadit.com), | ||
a versatile file encoding service. | ||
@@ -35,7 +37,11 @@ ## Example | ||
Alternatively, you can also use this plugin in a pre-built bundle from Transloadit’s CDN: Edgly. In that case `Uppy` will attach itself to the global `window.Uppy` object. See the [main Uppy documentation](https://uppy.io/docs/#Installation) for instructions. | ||
Alternatively, you can also use this plugin in a pre-built bundle from | ||
Transloadit’s CDN: Edgly. In that case `Uppy` will attach itself to the global | ||
`window.Uppy` object. See the | ||
[main Uppy documentation](https://uppy.io/docs/#Installation) for instructions. | ||
## Documentation | ||
Documentation for this plugin can be found on the [Uppy website](https://uppy.io/docs/tus). | ||
Documentation for this plugin can be found on the | ||
[Uppy website](https://uppy.io/docs/tus). | ||
@@ -47,3 +53,2 @@ ## License | ||
[tus.io]: https://tus.io | ||
[tus-js-client]: https://github.com/tus/tus-js-client |
@@ -548,2 +548,6 @@ import BasePlugin, { | ||
if (typeof opts.headers === 'function') { | ||
opts.headers = opts.headers(file) | ||
} | ||
return { | ||
@@ -550,0 +554,0 @@ ...file.remote?.body, |
Sorry, the diff of this file is not supported yet
98932
1223
52
Updated@uppy/utils@^5.9.0