@uppy/tus
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -156,3 +156,3 @@ var _class, _temp; | ||
* | ||
* @param {Object} file for use with upload | ||
* @param {object} file for use with upload | ||
* @param {integer} current file in a queue | ||
@@ -516,7 +516,11 @@ * @param {integer} total number of files in a queue | ||
if (fileIDs.length === 0) { | ||
this.uppy.log('Tus: no files to upload!'); | ||
this.uppy.log('[Tus] No files to upload'); | ||
return Promise.resolve(); | ||
} | ||
this.uppy.log('Tus is uploading...'); | ||
if (this.opts.limit === 0) { | ||
this.uppy.log('[Tus] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/tus/#limit-0', 'warning'); | ||
} | ||
this.uppy.log('[Tus] Uploading...'); | ||
var filesToUpload = fileIDs.map(function (fileID) { | ||
@@ -558,2 +562,2 @@ return _this10.uppy.getFile(fileID); | ||
return Tus; | ||
}(Plugin), _class.VERSION = "1.3.0", _temp); | ||
}(Plugin), _class.VERSION = "1.4.0", _temp); |
{ | ||
"name": "@uppy/tus", | ||
"description": "Resumable uploads for Uppy using Tus.io", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"license": "MIT", | ||
@@ -25,13 +25,10 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/companion-client": "1.2.0", | ||
"@uppy/utils": "1.2.0", | ||
"@uppy/companion-client": "^1.3.0", | ||
"@uppy/utils": "^1.3.0", | ||
"tus-js-client": "^1.8.0-0" | ||
}, | ||
"devDependencies": { | ||
"@uppy/core": "1.2.0" | ||
}, | ||
"peerDependencies": { | ||
"@uppy/core": "^1.0.0" | ||
}, | ||
"gitHead": "bd2beedcffbaa840de7069860e341f02268ddbb1" | ||
"gitHead": "056a7114a15fc7480a4014342d7f2c19305dc96c" | ||
} |
@@ -35,7 +35,7 @@ const { Plugin } = require('@uppy/core') | ||
on (event, fn) { | ||
events.push([ event, fn ]) | ||
events.push([event, fn]) | ||
return emitter.on(event, fn) | ||
}, | ||
remove () { | ||
events.forEach(([ event, fn ]) => { | ||
events.forEach(([event, fn]) => { | ||
emitter.off(event, fn) | ||
@@ -123,3 +123,3 @@ }) | ||
* | ||
* @param {Object} file for use with upload | ||
* @param {object} file for use with upload | ||
* @param {integer} current file in a queue | ||
@@ -453,7 +453,14 @@ * @param {integer} total number of files in a queue | ||
if (fileIDs.length === 0) { | ||
this.uppy.log('Tus: no files to upload!') | ||
this.uppy.log('[Tus] No files to upload') | ||
return Promise.resolve() | ||
} | ||
this.uppy.log('Tus is uploading...') | ||
if (this.opts.limit === 0) { | ||
this.uppy.log( | ||
'[Tus] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/tus/#limit-0', | ||
'warning' | ||
) | ||
} | ||
this.uppy.log('[Tus] Uploading...') | ||
const filesToUpload = fileIDs.map((fileID) => this.uppy.getFile(fileID)) | ||
@@ -460,0 +467,0 @@ |
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
34320
0
890
+ Added@uppy/companion-client@1.10.2(transitive)
+ Added@uppy/utils@1.3.0(transitive)
+ Addedqs-stringify@1.2.1(transitive)
- Removed@uppy/companion-client@1.2.0(transitive)
- Removed@uppy/utils@1.2.0(transitive)
Updated@uppy/utils@^1.3.0