Socket
Socket
Sign inDemoInstall

@types/sharp

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/sharp - npm Package Compare versions

Comparing version 0.27.0 to 0.27.1

28

sharp/index.d.ts

@@ -434,3 +434,3 @@ // Type definitions for sharp 0.27

* @throws {Error} Invalid parameters
* @returns A promise that fulfills with an object containing informations on the resulting file
* @returns A promise that fulfills with an object containing information on the resulting file
*/

@@ -540,3 +540,3 @@ toFile(fileOut: string): Promise<OutputInfo>;

toFormat(
format: string | AvailableFormatInfo,
format: keyof FormatEnum | AvailableFormatInfo,
options?:

@@ -718,3 +718,3 @@ | OutputOptions

/** Name of decoder used to decompress image data e.g. jpeg, png, webp, gif, svg */
format?: string;
format?: keyof FormatEnum;
/** Total size of image in bytes, for Stream and Buffer input only */

@@ -726,4 +726,4 @@ size?: number;

height?: number;
/** Name of colour space interpretation e.g. srgb, rgb, cmyk, lab, b-w ... */
space?: string;
/** Name of colour space interpretation */
space?: keyof ColourspaceEnum;
/** Number of bands e.g. 3 for sRGB, 4 for CMYK */

@@ -1145,19 +1145,19 @@ channels?: Channels;

interface FormatEnum {
jpeg: AvailableFormatInfo;
png: AvailableFormatInfo;
webp: AvailableFormatInfo;
avif: AvailableFormatInfo;
dz: AvailableFormatInfo;
fits: AvailableFormatInfo;
gif: AvailableFormatInfo;
heif: AvailableFormatInfo;
raw: AvailableFormatInfo;
tiff: AvailableFormatInfo;
dz: AvailableFormatInfo;
input: AvailableFormatInfo;
jpeg: AvailableFormatInfo;
magick: AvailableFormatInfo;
openslide: AvailableFormatInfo;
pdf: AvailableFormatInfo;
png: AvailableFormatInfo;
ppm: AvailableFormatInfo;
fits: AvailableFormatInfo;
gif: AvailableFormatInfo;
raw: AvailableFormatInfo;
svg: AvailableFormatInfo;
pdf: AvailableFormatInfo;
tiff: AvailableFormatInfo;
v: AvailableFormatInfo;
webp: AvailableFormatInfo;
}

@@ -1164,0 +1164,0 @@

{
"name": "@types/sharp",
"version": "0.27.0",
"version": "0.27.1",
"description": "TypeScript definitions for sharp",

@@ -49,4 +49,4 @@ "license": "MIT",

},
"typesPublisherContentHash": "21659b63164e6b79a322cdaf9822f0e5ad8472df95fb079872b81ef2fea5ff91",
"typesPublisherContentHash": "b667fcea66652de429e17d75dd39b87cf7bfd5bbffd9dd912bd9302eef0cba42",
"typeScriptVersion": "3.3"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Mon, 04 Jan 2021 20:50:47 GMT
* Last updated: Thu, 07 Jan 2021 00:27:30 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

@@ -14,0 +14,0 @@ * Global values: none

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