Socket
Socket
Sign inDemoInstall

@uppy/compressor

Package Overview
Dependencies
Maintainers
5
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/compressor - npm Package Compare versions

Comparing version 2.0.0-beta.3 to 2.0.0-beta.4

6

package.json
{
"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

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