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

@types/mime-db

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/mime-db - npm Package Compare versions

Comparing version 1.43.0 to 1.43.1

8

mime-db/index.d.ts

@@ -17,9 +17,9 @@ // Type definitions for mime-db 1.43

*/
readonly source?: MimeSource;
readonly source?: MimeSource | undefined;
/** Known extensions associated with this mime type. */
readonly extensions?: ReadonlyArray<string>;
readonly extensions?: ReadonlyArray<string> | undefined;
/** Whether a file of this type can be gzipped. */
readonly compressible?: boolean;
readonly compressible?: boolean | undefined;
/** The default charset associated with this type, if any. */
readonly charset?: string;
readonly charset?: string | undefined;
}

@@ -26,0 +26,0 @@

{
"name": "@types/mime-db",
"version": "1.43.0",
"version": "1.43.1",
"description": "TypeScript definitions for mime-db",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mime-db",
"license": "MIT",

@@ -32,4 +33,4 @@ "contributors": [

"dependencies": {},
"typesPublisherContentHash": "a8bc45dca2b848135fd7b789a960a592abff3864700916e961a97762a5bb14ac",
"typeScriptVersion": "2.8"
"typesPublisherContentHash": "be18a3ce3c8a68d8f2e19a6414ce5e54d4bfa96fc226424e2a95d912f1a064bb",
"typeScriptVersion": "3.6"
}

@@ -9,5 +9,53 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mime-db.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mime-db/index.d.ts)
````ts
// Type definitions for mime-db 1.43
// Project: https://github.com/jshttp/mime-db
// Definitions by: AJP <https://github.com/AJamesPhillips>
// Linus Unnebäck <https://github.com/LinusU>
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace database {
/**
* @see {@link https://github.com/jshttp/mime-db#data-structure}
*/
interface MimeEntry {
/**
* Where the mime type is defined.
* If not set, it's probably a custom media type.
*/
readonly source?: MimeSource | undefined;
/** Known extensions associated with this mime type. */
readonly extensions?: ReadonlyArray<string> | undefined;
/** Whether a file of this type can be gzipped. */
readonly compressible?: boolean | undefined;
/** The default charset associated with this type, if any. */
readonly charset?: string | undefined;
}
/**
* @see {@link https://github.com/jshttp/mime-db#data-structure}
*/
interface MimeDatabase {
readonly [type: string]: MimeEntry;
}
/**
* Sources:
* http://www.iana.org/assignments/media-types/media-types.xhtml
* http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
* http://hg.nginx.org/nginx/raw-file/default/conf/mime.types
*/
type MimeSource = 'iana' | 'apache' | 'nginx';
}
declare const database: database.MimeDatabase;
export = database;
````
### Additional Details
* Last updated: Fri, 24 Apr 2020 22:49:24 GMT
* Last updated: Tue, 06 Jul 2021 22:03:04 GMT
* Dependencies: none

@@ -14,0 +62,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