@uppy/transloadit
Advanced tools
Comparing version 3.6.1 to 3.6.2
# @uppy/transloadit | ||
## 3.6.2 | ||
Released: 2024-05-23 | ||
Included in: Uppy v3.25.5 | ||
- @uppy/transloadit: do not cancel assembly when removing all files (Merlijn Vos / #5191) | ||
## 3.6.0 | ||
@@ -4,0 +11,0 @@ |
@@ -17,3 +17,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.6.1" | ||
"version": "3.6.2" | ||
}; | ||
@@ -735,13 +735,5 @@ const sendErrorToConsole = originalErr => err => { | ||
const nbOfRemainingFiles = Object.keys(updatedFiles).length; | ||
if (nbOfRemainingFiles === 0) { | ||
assembly.close(); | ||
_classPrivateFieldLooseBase(this, _cancelAssembly)[_cancelAssembly](newAssembly).catch(() => { | ||
/* ignore potential errors */ | ||
}); | ||
this.uppy.off('file-removed', fileRemovedHandler); | ||
} else { | ||
this.client.updateNumberOfFilesInAssembly(newAssembly, nbOfRemainingFiles).catch(() => { | ||
/* ignore potential errors */ | ||
}); | ||
} | ||
this.client.updateNumberOfFilesInAssembly(newAssembly, nbOfRemainingFiles).catch(() => { | ||
/* ignore potential errors */ | ||
}); | ||
} | ||
@@ -748,0 +740,0 @@ }; |
{ | ||
"name": "@uppy/transloadit", | ||
"description": "The Transloadit plugin can be used to upload files to Transloadit for all kinds of processing, such as transcoding video, resizing images, zipping/unzipping, and more", | ||
"version": "3.6.1", | ||
"version": "3.6.2", | ||
"license": "MIT", | ||
@@ -33,3 +33,3 @@ "main": "lib/index.js", | ||
"@uppy/provider-views": "^3.12.0", | ||
"@uppy/tus": "^3.5.4", | ||
"@uppy/tus": "^3.5.5", | ||
"@uppy/utils": "^5.9.0", | ||
@@ -39,3 +39,3 @@ "component-emitter": "^1.2.1" | ||
"peerDependencies": { | ||
"@uppy/core": "^3.11.0" | ||
"@uppy/core": "^3.11.3" | ||
}, | ||
@@ -42,0 +42,0 @@ "devDependencies": { |
@@ -10,7 +10,10 @@ # @uppy/transloadit | ||
The Transloadit plugin can be used to upload files to Transloadit for all kinds of processing, such as transcoding video, resizing images, zipping/unzipping, [and more](https://transloadit.com/services/). | ||
The Transloadit plugin can be used to upload files to Transloadit for all kinds | ||
of processing, such as transcoding video, resizing images, zipping/unzipping, | ||
[and more](https://transloadit.com/services/). | ||
[Try it live →](https://uppy.io/examples/transloadit/) | ||
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 +38,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/transloadit). | ||
Documentation for this plugin can be found on the | ||
[Uppy website](https://uppy.io/docs/transloadit). | ||
@@ -42,0 +49,0 @@ ## License |
@@ -527,15 +527,8 @@ import hasProperty from '@uppy/utils/lib/hasProperty' | ||
const nbOfRemainingFiles = Object.keys(updatedFiles).length | ||
if (nbOfRemainingFiles === 0) { | ||
assembly.close() | ||
this.#cancelAssembly(newAssembly).catch(() => { | ||
this.client | ||
.updateNumberOfFilesInAssembly(newAssembly, nbOfRemainingFiles) | ||
.catch(() => { | ||
/* ignore potential errors */ | ||
}) | ||
this.uppy.off('file-removed', fileRemovedHandler) | ||
} else { | ||
this.client | ||
.updateNumberOfFilesInAssembly(newAssembly, nbOfRemainingFiles) | ||
.catch(() => { | ||
/* ignore potential errors */ | ||
}) | ||
} | ||
} | ||
@@ -542,0 +535,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50
287940
4268
Updated@uppy/tus@^3.5.5