mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-18 00:55:35 +00:00
Bump vitest and @vitest/browser from ^3.2.4 to ^4.1.6. Vitest 4 reworked the Mock type: ReturnType<typeof vi.fn> now resolves to Mock<Procedure | Constructable>, a union with a constructor signature that TypeScript no longer treats as directly callable (TS2348). Switch the core test-mock helpers to an explicit callable Mock type.
56 lines
1.2 KiB
JSON
56 lines
1.2 KiB
JSON
{
|
|
"name": "@uppy/compressor",
|
|
"description": "Uppy plugin that compresses images before upload, saving up to 60% in size",
|
|
"version": "3.1.0",
|
|
"license": "MIT",
|
|
"keywords": [
|
|
"file uploader",
|
|
"uppy",
|
|
"uppy-plugin",
|
|
"compress",
|
|
"image compression"
|
|
],
|
|
"type": "module",
|
|
"homepage": "https://uppy.io",
|
|
"sideEffects": false,
|
|
"bugs": {
|
|
"url": "https://github.com/transloadit/uppy/issues"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/transloadit/uppy.git"
|
|
},
|
|
"files": [
|
|
"src",
|
|
"lib",
|
|
"dist",
|
|
"CHANGELOG.md"
|
|
],
|
|
"exports": {
|
|
".": "./lib/index.js",
|
|
"./package.json": "./package.json"
|
|
},
|
|
"dependencies": {
|
|
"@transloadit/prettier-bytes": "^0.3.4",
|
|
"@uppy/utils": "workspace:^",
|
|
"compressorjs": "^1.3.0",
|
|
"preact": "^10.29.2",
|
|
"promise-queue": "^2.2.5"
|
|
},
|
|
"peerDependencies": {
|
|
"@uppy/core": "workspace:^"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"devDependencies": {
|
|
"jsdom": "^26.1.0",
|
|
"typescript": "^5.8.3",
|
|
"vitest": "^4.1.6"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc --build tsconfig.build.json",
|
|
"typecheck": "tsc --build",
|
|
"test": "vitest run --environment=jsdom --silent='passed-only'"
|
|
}
|
|
}
|