Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uppy/core

Package Overview
Dependencies
Maintainers
5
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/core - npm Package Compare versions

Comparing version 0.30.5 to 1.0.0

11

lib/index.js

@@ -69,3 +69,5 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };

resetFilter: 'Reset filter',
loading: 'Loading...'
loading: 'Loading...',
authenticateWithTitle: 'Please authenticate with %{pluginName} to select files',
authenticateWith: 'Connect to %{pluginName}'
}

@@ -102,2 +104,3 @@

this.i18n = this.translator.translate.bind(this.translator);
this.i18nArray = this.translator.translateArray.bind(this.translator);

@@ -751,2 +754,8 @@ // Container for different types of plugins

// hot fix, because:
// uploadedSize ended up larger than totalSize, resulting in 1325% total
if (totalProgress > 100) {
totalProgress = 100;
}
this.setState({ totalProgress: totalProgress });

@@ -753,0 +762,0 @@ this.emit('progress', totalProgress);

4

package.json
{
"name": "@uppy/core",
"description": "Core module for the extensible JavaScript file upload widget with support for drag&drop, resumable uploads, previews, restrictions, file processing/encoding, remote providers like Instagram, Dropbox, Google Drive, S3 and more :dog:",
"version": "0.30.5",
"version": "1.0.0",
"license": "MIT",

@@ -32,3 +32,3 @@ "main": "lib/index.js",

},
"gitHead": "0f95529cc56175c017e149dd3a122a3bcf9325b7"
"gitHead": "25d4b3678b9bebb2127798b9185a0b2083a9dac1"
}

@@ -56,3 +56,5 @@ const Translator = require('@uppy/utils/lib/Translator')

resetFilter: 'Reset filter',
loading: 'Loading...'
loading: 'Loading...',
authenticateWithTitle: 'Please authenticate with %{pluginName} to select files',
authenticateWith: 'Connect to %{pluginName}'
}

@@ -87,2 +89,3 @@ }

this.i18n = this.translator.translate.bind(this.translator)
this.i18nArray = this.translator.translateArray.bind(this.translator)

@@ -701,6 +704,12 @@ // Container for different types of plugins

const totalProgress = totalSize === 0
let totalProgress = totalSize === 0
? 0
: Math.round(uploadedSize / totalSize * 100)
// hot fix, because:
// uploadedSize ended up larger than totalSize, resulting in 1325% total
if (totalProgress > 100) {
totalProgress = 100
}
this.setState({ totalProgress })

@@ -707,0 +716,0 @@ this.emit('progress', totalProgress)

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