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.22.3 to 0.23.0

23

sharp/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for sharp 0.22
// Type definitions for sharp 0.23
// Project: https://github.com/lovell/sharp

@@ -7,2 +7,3 @@ // Definitions by: François Nguyen <https://github.com/lith-light-g>

// Jamie Woodbury <https://github.com/JamieWoodbury>
// Floris de Bijl <https://github.com/Fdebijl>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -213,3 +214,3 @@ // TypeScript Version: 2.1

*/
composite(images: Array<{ input: string | Buffer } & OverlayOptions>): Sharp;
composite(images: OverlayOptions[]): Sharp;

@@ -784,2 +785,6 @@ //#endregion

nearLossless?: boolean;
/** Use high quality chroma subsampling (optional, default false) */
smartSubsample?: boolean;
/** Level of CPU effort to reduce file size, integer 0-6 (optional, default 4) */
reductionEffort?: number;
}

@@ -903,2 +908,4 @@

interface OverlayOptions {
/** Buffer containing image data, String containing the path to an image file, or Create object */
input?: string | Buffer | {create: Create};
/** how to blend this image with the image below. (optional, default `'over'`) */

@@ -914,4 +921,2 @@ blend?: Blend;

tile?: boolean;
/** set to true to apply only the alpha channel of the overlay image to the input image, giving the appearance of one image being cut out of another. (optional, default false) */
cutout?: boolean;
/** number representing the DPI for vector overlay image. (optional, default 72) */

@@ -921,4 +926,4 @@ density?: number;

raw?: Raw;
/** describes a blank overlay to be created. */
create?: Create;
/** Set to true to avoid premultipling the image below. Equivalent to the --premultiplied vips option. */
premultiplied?: boolean;
}

@@ -935,6 +940,8 @@

depth?: string;
/** Threshold to skip tile generation, a value 0 - 255 for 8-bit images or 0 - 65535 for 16-bit images */
skipBlanks?: number;
/** Tile container, with value fs (filesystem) or zip (compressed file). (optional, default 'fs') */
container?: string;
/** Filesystem layout, possible values are dz, zoomify or google. (optional, default 'dz') */
layout?: string;
layout?: TileLayout;
}

@@ -992,2 +999,4 @@

type TileLayout = 'dz' | 'zoomify' | 'google';
type Blend = 'clear' | 'source' | 'over' | 'in' | 'out' | 'atop' | 'dest' | 'dest-over' | 'dest-in' | 'dest-out' | 'dest-atop' | 'xor' | 'add' | 'saturate' | 'multiply' | 'screen' | 'overlay'

@@ -994,0 +1003,0 @@ | 'darken' | 'lighten' | 'colour-dodge' | 'colour-dodge' | 'colour-burn' | 'colour-burn' | 'hard-light' | 'soft-light' | 'difference' | 'exclusion';

{
"name": "@types/sharp",
"version": "0.22.3",
"version": "0.23.0",
"description": "TypeScript definitions for sharp",

@@ -26,2 +26,7 @@ "license": "MIT",

"githubUsername": "JamieWoodbury"
},
{
"name": "Floris de Bijl",
"url": "https://github.com/Fdebijl",
"githubUsername": "Fdebijl"
}

@@ -40,4 +45,4 @@ ],

},
"typesPublisherContentHash": "abd2f1c465b9da98605d11b6563e98d9fccd2f2b4647d2797974982d42c730a0",
"typesPublisherContentHash": "b4669b495e000a50a9fee9429ee95581815fe32bac313415061f8de4c2392f8b",
"typeScriptVersion": "2.1"
}

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

Additional Details
* Last updated: Wed, 25 Sep 2019 00:03:04 GMT
* Last updated: Tue, 15 Oct 2019 18:51:09 GMT
* Dependencies: @types/node

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by François Nguyen <https://github.com/lith-light-g>, Wooseop Kim <https://github.com/wooseopkim>, Bradley Odell <https://github.com/BTOdell>, and Jamie Woodbury <https://github.com/JamieWoodbury>.
These definitions were written by François Nguyen <https://github.com/lith-light-g>, Wooseop Kim <https://github.com/wooseopkim>, Bradley Odell <https://github.com/BTOdell>, Jamie Woodbury <https://github.com/JamieWoodbury>, and Floris de Bijl <https://github.com/Fdebijl>.
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