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

@types/content-type

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/content-type - npm Package Compare versions

Comparing version 1.0.33 to 1.1.0

content-type/LICENSE

8

content-type/index.d.ts

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

// Type definitions for content-type v1.0.1
// Type definitions for content-type 1.1
// Project: https://www.npmjs.com/package/content-type

@@ -6,2 +6,4 @@ // Definitions by: Hiroki Horiuchi <https://github.com/horiuchi>

import * as express from 'express';
declare var ct: ct.StaticFunctions;

@@ -12,5 +14,3 @@ export = ct;

interface StaticFunctions {
parse(string: string): MediaType;
parse(req: { headers: any; }): MediaType;
parse(res: { getHeader(key: string): string; }): MediaType;
parse(input: express.Request | express.Response | string): MediaType;
format(obj: MediaType): string;

@@ -17,0 +17,0 @@ }

{
"name": "@types/content-type",
"version": "1.0.33",
"description": "TypeScript definitions for content-type v1.0.1",
"version": "1.1.0",
"description": "TypeScript definitions for content-type",
"license": "MIT",
"author": "Hiroki Horiuchi <https://github.com/horiuchi>",
"contributors": [
{
"name": "Hiroki Horiuchi",
"url": "https://github.com/horiuchi"
}
],
"main": "",

@@ -13,6 +18,8 @@ "repository": {

"scripts": {},
"dependencies": {},
"dependencies": {
"@types/express": "*"
},
"peerDependencies": {},
"typings": "index.d.ts",
"typesPublisherContentHash": "3f37bffdab54a261b348c146a965b1f628ea5aae499ea42c79408f4eb2592ee7"
"typesPublisherContentHash": "d38a492f03c7b0e3c8340a4fc992032dd04c46676f4e9f7db402bbe8c7be0dae",
"typeScriptVersion": "2.0"
}

@@ -5,15 +5,13 @@ # Installation

# Summary
This package contains type definitions for content-type v1.0.1 (https://www.npmjs.com/package/content-type).
This package contains type definitions for content-type (https://www.npmjs.com/package/content-type).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/content-type
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/content-type
Additional Details
* Last updated: Thu, 27 Oct 2016 07:21:34 GMT
* File structure: ProperModule
* Library Dependencies: none
* Module Dependencies: none
* Global values: ct
* Last updated: Fri, 23 Jun 2017 14:03:03 GMT
* Dependencies: express
* Global values: none
# Credits
These definitions were written by Hiroki Horiuchi <https://github.com/horiuchi>.
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