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

@types/whatwg-mimetype

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/whatwg-mimetype - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

2

whatwg-mimetype/index.d.ts

@@ -21,3 +21,3 @@ // Type definitions for whatwg-mimetype 2.1

isXML(): boolean;
isJavaScript(opts?: { allowParameters?: boolean }): boolean;
isJavaScript(opts?: { allowParameters?: boolean | undefined }): boolean;
}
{
"name": "@types/whatwg-mimetype",
"version": "2.1.0",
"version": "2.1.1",
"description": "TypeScript definitions for whatwg-mimetype",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/whatwg-mimetype",
"license": "MIT",

@@ -14,10 +15,12 @@ "contributors": [

"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/whatwg-mimetype"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "f4d99e06b944112498a8a22337dc2cd9646c79c712656cc028afba93fc9cecfe",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "1773c9700df35045d5fa552cee75f3234657d9f11a9e3e30f29812496a331465",
"typeScriptVersion": "3.6"
}

@@ -8,6 +8,32 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/whatwg-mimetype
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/whatwg-mimetype.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/whatwg-mimetype/index.d.ts)
````ts
// Type definitions for whatwg-mimetype 2.1
// Project: https://github.com/jsdom/whatwg-mimetype#readme
// Definitions by: Pete Johanson <https://github.com/petejohanson>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
Additional Details
* Last updated: Fri, 06 Apr 2018 21:34:16 GMT
export = MIMEType;
declare class MIMEType {
type: string;
subtype: string;
readonly essence: string;
readonly parameters: Map<string, string>;
static parse(s: string): MIMEType | null;
constructor(s: string);
isHTML(): boolean;
isXML(): boolean;
isJavaScript(opts?: { allowParameters?: boolean | undefined }): boolean;
}
````
### Additional Details
* Last updated: Fri, 02 Jul 2021 18:05:36 GMT
* Dependencies: none

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

# Credits
These definitions were written by Pete Johanson <https://github.com/petejohanson>.
These definitions were written by [Pete Johanson](https://github.com/petejohanson).

Sorry, the diff of this file is not supported yet

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