@uppy/thumbnail-generator
Advanced tools
Comparing version 3.0.6 to 3.0.7
# @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 @@ |
@@ -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
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
74506
1224
Updated@uppy/utils@^5.7.1