@hapi/accept
Advanced tools
Comparing version 6.0.1 to 6.0.2
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
23531
527
0