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.6.7 to 1.7.0

5

lib/index.js

@@ -115,2 +115,3 @@ var _class, _temp;

_this.defaultThumbnailDimension = 200;
_this.thumbnailType = _this.opts.thumbnailType || 'image/jpeg';
_this.defaultLocale = {

@@ -196,3 +197,3 @@ strings: {

return _this2.canvasToBlob(resizedImage, 'image/jpeg', 80);
return _this2.canvasToBlob(resizedImage, _this2.thumbnailType, 80);
}).then(function (blob) {

@@ -468,2 +469,2 @@ // bug in the compatibility data

return ThumbnailGenerator;
}(Plugin), _class.VERSION = "1.6.7", _temp);
}(Plugin), _class.VERSION = "1.7.0", _temp);

6

package.json
{
"name": "@uppy/thumbnail-generator",
"description": "Uppy plugin that generates small previews of images to show on your upload UI.",
"version": "1.6.7",
"version": "1.7.0",
"license": "MIT",

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

"dependencies": {
"@uppy/utils": "^3.2.3",
"@uppy/utils": "^3.2.4",
"exifr": "^5.0.2",

@@ -33,3 +33,3 @@ "math-log2": "^1.0.1"

},
"gitHead": "7bf5ca55a74eed7a7fcc71285dfb98350ac2e08e"
"gitHead": "84f7b4d37daa4c1dc98138a169189412af2ae498"
}

@@ -24,2 +24,3 @@ const { Plugin } = require('@uppy/core')

this.defaultThumbnailDimension = 200
this.thumbnailType = this.opts.thumbnailType || 'image/jpeg'

@@ -96,3 +97,3 @@ this.defaultLocale = {

const resizedImage = this.resizeImage(rotatedImage, dimensions.width, dimensions.height)
return this.canvasToBlob(resizedImage, 'image/jpeg', 80)
return this.canvasToBlob(resizedImage, this.thumbnailType, 80)
})

@@ -99,0 +100,0 @@ .then(blob => {

Sorry, the diff of this file is not supported yet

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