@uppy/core
Advanced tools
Comparing version 0.30.5 to 1.0.0
@@ -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); |
{ | ||
"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) |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
165302
4284
0