You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@types/body-parser

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/body-parser - npm Package Compare versions

Comparing version
1.19.0
to
1.19.1
+7
-7
body-parser/index.d.ts

@@ -27,3 +27,3 @@ // Type definitions for body-parser 1.19

/** When set to true, then deflated (compressed) bodies will be inflated; when false, deflated bodies are rejected. Defaults to true. */
inflate?: boolean;
inflate?: boolean | undefined;
/**

@@ -34,7 +34,7 @@ * Controls the maximum request body size. If this is a number,

*/
limit?: number | string;
limit?: number | string | undefined;
/**
* The type option is used to determine what media type the middleware will parse
*/
type?: string | string[] | ((req: http.IncomingMessage) => any);
type?: string | string[] | ((req: http.IncomingMessage) => any) | undefined;
/**

@@ -57,3 +57,3 @@ * The verify option, if supplied, is called as verify(req, res, buf, encoding),

*/
strict?: boolean;
strict?: boolean | undefined;
}

@@ -67,3 +67,3 @@

*/
defaultCharset?: string;
defaultCharset?: string | undefined;
}

@@ -76,3 +76,3 @@

*/
extended?: boolean;
extended?: boolean | undefined;
/**

@@ -83,3 +83,3 @@ * The parameterLimit option controls the maximum number of parameters

*/
parameterLimit?: number;
parameterLimit?: number | undefined;
}

@@ -86,0 +86,0 @@

MIT License
Copyright (c) Microsoft Corporation. All rights reserved.
Copyright (c) Microsoft Corporation.

@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

{
"name": "@types/body-parser",
"version": "1.19.0",
"version": "1.19.1",
"description": "TypeScript definitions for body-parser",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/body-parser",
"license": "MIT",

@@ -55,4 +56,4 @@ "contributors": [

},
"typesPublisherContentHash": "4257cff3580f6064eb283c690c28aa3a5347cd3cae2a2e208b8f23c61705724a",
"typeScriptVersion": "2.8"
"typesPublisherContentHash": "390273f9d955dbe97cc87b88bf69634aeb1b9f82e6eafa68118b286638113100",
"typeScriptVersion": "3.6"
}

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

### Additional Details
* Last updated: Mon, 10 Feb 2020 21:19:04 GMT
* Last updated: Tue, 06 Jul 2021 18:05:43 GMT
* Dependencies: [@types/connect](https://npmjs.com/package/@types/connect), [@types/node](https://npmjs.com/package/@types/node)

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

# Credits
These definitions were written by Santi Albo (https://github.com/santialbo), Vilic Vane (https://github.com/vilic), Jonathan Häberle (https://github.com/dreampulse), Gevik Babakhani (https://github.com/blendsdk), Tomasz Łaziuk (https://github.com/tlaziuk), Jason Walton (https://github.com/jwalton), and Piotr Błażejewicz (https://github.com/peterblazejewicz).
These definitions were written by [Santi Albo](https://github.com/santialbo), [Vilic Vane](https://github.com/vilic), [Jonathan Häberle](https://github.com/dreampulse), [Gevik Babakhani](https://github.com/blendsdk), [Tomasz Łaziuk](https://github.com/tlaziuk), [Jason Walton](https://github.com/jwalton), and [Piotr Błażejewicz](https://github.com/peterblazejewicz).