Socket
Socket
Sign inDemoInstall

@types/sharp

Package Overview
Dependencies
2
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.28.1 to 0.28.2

20

sharp/index.d.ts

@@ -365,2 +365,13 @@ // Type definitions for sharp 0.28

/**
* Perform contrast limiting adaptive histogram equalization (CLAHE)
*
* This will, in general, enhance the clarity of the image by bringing out
* darker details. Please read more about CLAHE here:
* https://en.wikipedia.org/wiki/Adaptive_histogram_equalization#Contrast_Limited_AHE
*
* @param options clahe options
*/
clahe(options: ClaheOptions): Sharp;
/**
* Convolve the image with the specified kernel.

@@ -999,2 +1010,11 @@ * @param kernel the specified kernel

interface ClaheOptions {
/** width of the region */
width: number;
/** height of the region */
height: number;
/** max slope of the cumulative contrast. (optional, default 3) */
maxSlope?: number;
}
interface ThresholdOptions {

@@ -1001,0 +1021,0 @@ /** convert to single channel greyscale. (optional, default true) */

4

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

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

},
"typesPublisherContentHash": "81fbed4146b1f661f5c255312f07175ea85aa51dba9a835ab759ce0b31cf8eae",
"typesPublisherContentHash": "004b86896250d68e419c6b2acf6404102050e009d3d73ccac4832f1b50f06282",
"typeScriptVersion": "3.5"
}

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

### Additional Details
* Last updated: Mon, 10 May 2021 07:31:22 GMT
* Last updated: Tue, 25 May 2021 09:31:23 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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc