@uppy/compressor
Advanced tools
Comparing version 2.0.0-beta.8 to 2.0.0
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
32027
Updated@uppy/utils@^6.0.0