@uppy/compressor
Advanced tools
Comparing version 2.0.0-beta.3 to 2.0.0-beta.4
{ | ||
"name": "@uppy/compressor", | ||
"description": "Uppy plugin that compresses images before upload, saving up to 60% in size", | ||
"version": "2.0.0-beta.3", | ||
"version": "2.0.0-beta.4", | ||
"license": "MIT", | ||
@@ -26,3 +26,3 @@ "main": "lib/index.js", | ||
"@transloadit/prettier-bytes": "^0.3.0", | ||
"@uppy/utils": "^6.0.0-beta.3", | ||
"@uppy/utils": "^6.0.0-beta.4", | ||
"compressorjs": "^1.2.1", | ||
@@ -33,3 +33,3 @@ "preact": "^10.5.13", | ||
"peerDependencies": { | ||
"@uppy/core": "^4.0.0-beta.3" | ||
"@uppy/core": "^4.0.0-beta.4" | ||
}, | ||
@@ -36,0 +36,0 @@ "publishConfig": { |
@@ -10,3 +10,3 @@ import { describe, expect, it } from 'vitest' | ||
// @ts-expect-error mocked | ||
CompressorPlugin.prototype.compress = async (blob: Blob) => { | ||
CompressorPlugin.prototype.compress = async (blob: File) => { | ||
return { | ||
@@ -13,0 +13,0 @@ name: `${getFileNameAndExtension(blob.name).name}.webp`, |
@@ -76,3 +76,3 @@ import { BasePlugin, Uppy } from '@uppy/core' | ||
totalCompressedSize += compressedSavingsSize | ||
const { name, type, size } = compressedBlob | ||
const { name, type, size } = compressedBlob as File | ||
@@ -79,0 +79,0 @@ const compressedFileName = getFileNameAndExtension(name) |
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
31754
Updated@uppy/utils@^6.0.0-beta.4