Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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.8 to 2.0.0

2

lib/index.d.ts
import { BasePlugin, Uppy } from '@uppy/core';
import CompressorJS from 'compressorjs';
import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile';
import type { PluginOpts } from '@uppy/core/lib/BasePlugin';
import type { PluginOpts } from '@uppy/core/lib/BasePlugin.js';
declare module '@uppy/core' {

@@ -6,0 +6,0 @@ interface UppyEventMap<M extends Meta, B extends Body> {

@@ -1,4 +0,4 @@

function _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; }
function _classPrivateFieldLooseBase(e, t) { if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance"); return e; }
var id = 0;
function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; }
function _classPrivateFieldLooseKey(e) { return "__private_" + id++ + "_" + e; }
import { BasePlugin } from '@uppy/core';

@@ -5,0 +5,0 @@ // eslint-disable-next-line @typescript-eslint/ban-ts-comment

{
"name": "@uppy/compressor",
"description": "Uppy plugin that compresses images before upload, saving up to 60% in size",
"version": "2.0.0-beta.8",
"version": "2.0.0",
"license": "MIT",

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

"@transloadit/prettier-bytes": "^0.3.4",
"@uppy/utils": "^6.0.0-beta.7",
"@uppy/utils": "^6.0.0",
"compressorjs": "^1.2.1",

@@ -33,3 +33,3 @@ "preact": "^10.5.13",

"peerDependencies": {
"@uppy/core": "^4.0.0-beta.8"
"@uppy/core": "^4.0.0"
},

@@ -41,4 +41,3 @@ "publishConfig": {

"vitest": "^1.2.1"
},
"stableVersion": "1.1.2"
}
}

@@ -19,4 +19,4 @@ import { describe, expect, it } from 'vitest'

// eslint-disable-next-line no-restricted-globals
const sampleImage = fs.readFileSync(
// eslint-disable-next-line no-restricted-globals
path.join(__dirname, '../../../../e2e/cypress/fixtures/images/image.jpg'),

@@ -23,0 +23,0 @@ )

@@ -10,3 +10,3 @@ import { BasePlugin, Uppy } from '@uppy/core'

import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'
import type { PluginOpts } from '@uppy/core/lib/BasePlugin'
import type { PluginOpts } from '@uppy/core/lib/BasePlugin.js'

@@ -13,0 +13,0 @@ import locale from './locale.ts'

Sorry, the diff of this file is not supported yet

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