Socket
Socket
Sign inDemoInstall

@hapi/accept

Package Overview
Dependencies
Maintainers
7
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hapi/accept - npm Package Compare versions

Comparing version 6.0.1 to 6.0.2

3

lib/index.d.ts

@@ -79,6 +79,7 @@ /**

* @param header - the HTTP Accept header content.
* @param preferences - an optional array of media-type strings in order of server preference.
*
* @return an array of strings of media-types sorted from the most to the least desired.
*/
export function mediaTypes(header?: string): string[];
export function mediaTypes(header?: string, preferences?: string[]): string[];

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

{
"name": "@hapi/accept",
"description": "HTTP Accept-* headers parsing",
"version": "6.0.1",
"version": "6.0.2",
"repository": "git://github.com/hapijs/accept",

@@ -6,0 +6,0 @@ "main": "lib/index.js",

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