@uppy/thumbnail-generator
Advanced tools
Comparing version 1.5.1 to 1.5.2
@@ -533,4 +533,2 @@ // Adapted from https://github.com/exif-js/exif-js | ||
val = +(numerator / denominator); | ||
val.numerator = numerator; | ||
val.denominator = denominator; | ||
return val; | ||
@@ -544,4 +542,2 @@ } else { | ||
vals[n] = +(numerator / denominator); | ||
vals[n].numerator = numerator; | ||
vals[n].denominator = denominator; | ||
} | ||
@@ -548,0 +544,0 @@ |
@@ -37,3 +37,3 @@ var _class, _temp; | ||
_this.onFileAdded = function (file) { | ||
if (!file.preview) { | ||
if (!file.preview && isPreviewSupported(file.type) && !file.isRemote) { | ||
_this.addToQueue(file); | ||
@@ -419,4 +419,4 @@ } | ||
_proto.install = function install() { | ||
this.uppy.on('file-removed', this.onFileRemoved); | ||
this.uppy.on('file-added', this.onFileAdded); | ||
this.uppy.on('file-removed', this.onFileRemoved); | ||
this.uppy.on('restored', this.onRestored); | ||
@@ -430,4 +430,4 @@ | ||
_proto.uninstall = function uninstall() { | ||
this.uppy.off('file-removed', this.onFileRemoved); | ||
this.uppy.off('file-added', this.onFileAdded); | ||
this.uppy.off('file-removed', this.onFileRemoved); | ||
this.uppy.off('restored', this.onRestored); | ||
@@ -441,2 +441,2 @@ | ||
return ThumbnailGenerator; | ||
}(Plugin), _class.VERSION = "1.5.1", _temp); | ||
}(Plugin), _class.VERSION = "1.5.2", _temp); |
{ | ||
"name": "@uppy/thumbnail-generator", | ||
"description": "Uppy plugin that generates small previews of images to show on your upload UI.", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"license": "MIT", | ||
@@ -25,3 +25,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/utils": "^2.1.1" | ||
"@uppy/utils": "^2.1.2" | ||
}, | ||
@@ -31,3 +31,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "18180d577854d1a78588d67eb210528b207bf130" | ||
"gitHead": "2b91a96c95ea1aa32980984904f9877d8a4c4440" | ||
} |
@@ -460,4 +460,2 @@ // Adapted from https://github.com/exif-js/exif-js | ||
val = +(numerator / denominator) | ||
val.numerator = numerator | ||
val.denominator = denominator | ||
return val | ||
@@ -470,4 +468,2 @@ } else { | ||
vals[n] = +(numerator / denominator) | ||
vals[n].numerator = numerator | ||
vals[n].denominator = denominator | ||
} | ||
@@ -474,0 +470,0 @@ return vals |
@@ -305,3 +305,3 @@ const { Plugin } = require('@uppy/core') | ||
onFileAdded = (file) => { | ||
if (!file.preview) { | ||
if (!file.preview && isPreviewSupported(file.type) && !file.isRemote) { | ||
this.addToQueue(file) | ||
@@ -366,4 +366,4 @@ } | ||
install () { | ||
this.uppy.on('file-removed', this.onFileRemoved) | ||
this.uppy.on('file-added', this.onFileAdded) | ||
this.uppy.on('file-removed', this.onFileRemoved) | ||
this.uppy.on('restored', this.onRestored) | ||
@@ -377,4 +377,4 @@ | ||
uninstall () { | ||
this.uppy.off('file-removed', this.onFileRemoved) | ||
this.uppy.off('file-added', this.onFileAdded) | ||
this.uppy.off('file-removed', this.onFileRemoved) | ||
this.uppy.off('restored', this.onRestored) | ||
@@ -381,0 +381,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
84482
2464
Updated@uppy/utils@^2.1.2