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

@types/accepts

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/accepts - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

accepts/LICENSE

12

accepts/index.d.ts

@@ -47,12 +47,10 @@ // Type definitions for accepts 1.3

* Return the first accepted type (and it is returned as the same text as what appears in the `types` array). If nothing in `types` is accepted, then `false` is returned.
* If no types are supplied, return the entire set of acceptable types.
*
* The `types` array can contain full MIME types or file extensions. Any value that is not a full MIME types is passed to `require('mime-types').lookup`.
*/
type(types: string[]): string | false;
type(...types: string[]): string | false;
/**
* Return the types that the request accepts, in the order of the client's preference (most preferred first).
*/
types(): string[];
type(types: string[]): string[] | string | false;
type(...types: string[]): string[] | string | false;
types(types: string[]): string[] | string | false;
types(...types: string[]): string[] | string | false;
}

@@ -59,0 +57,0 @@ }

{
"name": "@types/accepts",
"version": "1.3.2",
"version": "1.3.3",
"description": "TypeScript definitions for accepts",

@@ -9,3 +9,4 @@ "license": "MIT",

"name": "Stefan Reichel",
"url": "https://github.com/bomret"
"url": "https://github.com/bomret",
"githubUsername": "bomret"
}

@@ -20,5 +21,4 @@ ],

"dependencies": {},
"peerDependencies": {},
"typesPublisherContentHash": "b7ab2e8ce71713dad8d66f7a2fae90c6fd87b3fc89f34283a6b3436ab97a4583",
"typesPublisherContentHash": "47f2bd002da383f21b8a5272ef0473e95325833bfe04790f27561d3f19ea2fe1",
"typeScriptVersion": "2.0"
}

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

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/accepts
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/accepts
Additional Details
* Last updated: Tue, 21 Mar 2017 20:18:42 GMT
* Last updated: Mon, 18 Sep 2017 14:08:00 GMT
* Dependencies: none

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