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

@types/multer

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/multer - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

14

multer/index.d.ts

@@ -167,2 +167,12 @@ // Type definitions for multer 1.4

/**
* a function to control which files should be uploaded and which should be skipped
* pass a boolean to indicate if the file should be accepted
* pass an error if something goes wrong
*/
interface FileFilterCallback {
(error: Error): void;
(error: null, acceptFile: boolean): void;
}
/** Options for initializing a Multer instance. */

@@ -212,3 +222,3 @@ interface Options {

* @param file Object containing information about the processed file.
* @param callback Callback to accept or deny the file.
* @param callback a function to control which files should be uploaded and which should be skipped.
*/

@@ -218,3 +228,3 @@ fileFilter?(

file: Express.Multer.File,
callback: (error: Error | null, acceptFile: boolean) => void
callback: FileFilterCallback,
): void;

@@ -221,0 +231,0 @@ }

4

multer/package.json
{
"name": "@types/multer",
"version": "1.4.0",
"version": "1.4.1",
"description": "TypeScript definitions for multer",

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

},
"typesPublisherContentHash": "4fdef18195bb50db06c46659e9e36ea0cc8a48f795296ebe25249431a9fd4fcb",
"typesPublisherContentHash": "34b95067ce521b81d3ae08376d23fcc6b134f7d821405a0df7bba030438c45cf",
"typeScriptVersion": "2.8"
}

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

### Additional Details
* Last updated: Mon, 27 Jan 2020 22:09:38 GMT
* Last updated: Thu, 06 Feb 2020 17:33:08 GMT
* Dependencies: [@types/express](https://npmjs.com/package/@types/express)

@@ -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