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

image-conversion

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

image-conversion - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

index.d.ts

7

package.json
{
"name": "image-conversion",
"version": "2.0.2",
"version": "2.0.3",
"description": "A simple and easy-to-use JS image convert tools, which can specify size to compress the image.",

@@ -10,3 +10,6 @@ "main": "index.js",

"src",
"index.js"
"index.d.ts",
"index.js",
"tsconfig.json",
"webpack.config.js"
],

@@ -13,0 +16,0 @@ "keywords": [

@@ -31,3 +31,3 @@ import canvastoDataURL from './canvastoDataURL';

*/
async function compress(file: File, config: ICompressConfig = {}) {
async function compress(file: File, config: ICompressConfig = {}): Promise<Blob> {
if (!(file instanceof Blob)) {

@@ -82,3 +82,3 @@ throw new Error('compress(): First arg must be a Blob object or a File object.');

*/
async function compressAccurately(file: Blob, config: compressAccuratelyConfig = {}) {
async function compressAccurately(file: Blob, config: compressAccuratelyConfig = {}): Promise<Blob> {
if (!(file instanceof Blob)) {

@@ -85,0 +85,0 @@ throw new Error('compressAccurately(): First arg must be a Blob object or a File object.');

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