Socket
Socket
Sign inDemoInstall

@uppy/tus

Package Overview
Dependencies
Maintainers
5
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/tus - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

12

lib/index.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc