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

@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.7 to 0.17.8

10

sharp/index.d.ts
// Type definitions for sharp 0.17
// Project: https://github.com/lovell/sharp
// Definitions by: François Nguyen <https://github.com/lith-light-g>
// Wooseop Kim <https://github.com/wooseopkim>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -362,6 +363,13 @@

* Write output to a Buffer. JPEG, PNG, WebP, and RAW output are supported. By default, the format will match the input image, except GIF and SVG input which become PNG output.
* @param options resolve options
* @returns A promise that fulfills with the resulting Buffer
*/
toBuffer(): Promise<Buffer>;
toBuffer(options?: { resolveWithObject: false }): Promise<Buffer>;
/**
* Write output to a Buffer. JPEG, PNG, WebP, and RAW output are supported. By default, the format will match the input image, except GIF and SVG input which become PNG output.
* @param options resolve options
* @returns A promise that fulfills with an object containing the Buffer data and an info object containing the output image format, size (bytes), width, height and channels
*/
toBuffer(options: { resolveWithObject: true }): Promise<{ data: Buffer, info: OutputInfo }>;
/**
* Use these JPEG options for output image.

@@ -368,0 +376,0 @@ * @param options Output options.

9

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

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

"githubUsername": "lith-light-g"
},
{
"name": "Wooseop Kim",
"url": "https://github.com/wooseopkim",
"githubUsername": "wooseopkim"
}

@@ -23,4 +28,4 @@ ],

},
"typesPublisherContentHash": "f227093fd170386a47dfa8f6ed8fdc0e538a06ffc892e7e07d3f145fc1bfe132",
"typesPublisherContentHash": "0dbce2c89fe7cce8f9e617b9b7665d0ca0c2a30109775190556bd14d4f8ab963",
"typeScriptVersion": "2.0"
}

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

Additional Details
* Last updated: Fri, 09 Mar 2018 00:09:08 GMT
* Last updated: Mon, 09 Apr 2018 17:46:20 GMT
* Dependencies: stream, node

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

# Credits
These definitions were written by François Nguyen <https://github.com/lith-light-g>.
These definitions were written by François Nguyen <https://github.com/lith-light-g>, Wooseop Kim <https://github.com/wooseopkim>.
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