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.17.6 to 0.17.7

26

sharp/index.d.ts

@@ -385,3 +385,3 @@ // Type definitions for sharp 0.17

*/
webp(options?: OutputOptions): SharpInstance;
webp(options?: WebpOptions): SharpInstance;
/**

@@ -393,3 +393,3 @@ * Use these TIFF options for output image.

*/
tiff(options?: OutputOptions): SharpInstance;
tiff(options?: TiffOptions): SharpInstance;
/**

@@ -503,2 +503,24 @@ * Force output to be raw, uncompressed uint8 pixel data.

interface WebpOptions extends OutputOptions {
/** Quality of alpha layer, number from 0-100 (optional, default 100) */
alphaQuality?: number;
/** Use lossless compression mode (optional, default false) */
lossless?: boolean;
/** Use near_lossless compression mode (optional, default false) */
nearLossless?: boolean;
}
interface TiffOptions extends OutputOptions {
/** Compression options: lzw, deflate, jpeg (optional, default 'jpeg') */
compression?: string;
/** Compression predictor options: none, horizontal, float (optional, default 'horizontal') */
predictor?: string;
/** Horizontal resolution in pixels/mm (optional, default 1.0) */
xres?: number;
/** Vertical resolution in pixels/mm (optional, default 1.0) */
yres?: number;
/** Squash 8-bit images down to 1 bit (optional, default false) */
squash?: boolean;
}
interface PngOptions {

@@ -505,0 +527,0 @@ /** Use progressive (interlace) scan (optional, default false) */

4

sharp/package.json
{
"name": "@types/sharp",
"version": "0.17.6",
"version": "0.17.7",
"description": "TypeScript definitions for sharp",

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

},
"typesPublisherContentHash": "d484e87eac41e0ba59d277b940a104e882cdff37f689b202b3bd5c2b283e0875",
"typesPublisherContentHash": "f227093fd170386a47dfa8f6ed8fdc0e538a06ffc892e7e07d3f145fc1bfe132",
"typeScriptVersion": "2.0"
}

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

Additional Details
* Last updated: Sun, 03 Dec 2017 16:31:01 GMT
* Last updated: Fri, 09 Mar 2018 00:09:08 GMT
* Dependencies: stream, node

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

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