Socket
Socket
Sign inDemoInstall

@uppy/thumbnail-generator

Package Overview
Dependencies
Maintainers
6
Versions
86
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 3.0.6 to 3.0.7

7

CHANGELOG.md
# @uppy/thumbnail-generator
## 3.0.7
Released: 2024-02-19
Included in: Uppy v3.22.0
- @uppy/thumbnail-generator: fix broken previews after cropping (evgenia karunus / #4926)
## 3.0.2

@@ -4,0 +11,0 @@

4

lib/index.js

@@ -8,3 +8,3 @@ import { UIPlugin } from '@uppy/core';

const packageJson = {
"version": "3.0.6"
"version": "3.0.7"
};

@@ -337,2 +337,3 @@ /**

} else {
this.uppy.on('thumbnail:request', this.onFileAdded);
this.uppy.on('file-added', this.onFileAdded);

@@ -352,2 +353,3 @@ this.uppy.on('restored', this.onRestored);

} else {
this.uppy.off('thumbnail:request', this.onFileAdded);
this.uppy.off('file-added', this.onFileAdded);

@@ -354,0 +356,0 @@ this.uppy.off('restored', this.onRestored);

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

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

"dependencies": {
"@uppy/utils": "^5.5.2",
"@uppy/utils": "^5.7.1",
"exifr": "^7.0.0"

@@ -32,7 +32,7 @@ },

"namespace-emitter": "2.0.1",
"vitest": "^0.34.5"
"vitest": "^1.2.1"
},
"peerDependencies": {
"@uppy/core": "^3.6.0"
"@uppy/core": "^3.9.0"
}
}

@@ -376,2 +376,3 @@ import { UIPlugin } from '@uppy/core'

} else {
this.uppy.on('thumbnail:request', this.onFileAdded)
this.uppy.on('file-added', this.onFileAdded)

@@ -394,2 +395,3 @@ this.uppy.on('restored', this.onRestored)

} else {
this.uppy.off('thumbnail:request', this.onFileAdded)
this.uppy.off('file-added', this.onFileAdded)

@@ -396,0 +398,0 @@ this.uppy.off('restored', this.onRestored)

@@ -55,3 +55,3 @@ import { afterEach, beforeEach, describe, it, expect, vi } from 'vitest'

expect(core.on).toHaveBeenCalledTimes(4)
expect(core.on).toHaveBeenCalledTimes(5)
expect(core.on).toHaveBeenCalledWith('file-added', plugin.onFileAdded)

@@ -72,7 +72,7 @@ })

expect(core.on).toHaveBeenCalledTimes(4)
expect(core.on).toHaveBeenCalledTimes(5)
plugin.uninstall()
expect(core.off).toHaveBeenCalledTimes(4)
expect(core.off).toHaveBeenCalledTimes(5)
expect(core.off).toHaveBeenCalledWith('file-added', plugin.onFileAdded)

@@ -79,0 +79,0 @@ })

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