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

@uppy/thumbnail-generator

Package Overview
Dependencies
Maintainers
5
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/thumbnail-generator - npm Package Compare versions

Comparing version 1.5.1 to 1.5.2

4

lib/exif.js

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

8

lib/index.js

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

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