Comparing version 3.0.6 to 4.0.0
@@ -29,3 +29,3 @@ 'use strict'; | ||
if (!match) { | ||
return Boom.badRequest('Invalid content-type header'); | ||
throw Boom.badRequest('Invalid content-type header'); | ||
} | ||
@@ -38,3 +38,3 @@ | ||
return Boom.badRequest('Invalid content-type header: multipart missing boundary'); | ||
throw Boom.badRequest('Invalid content-type header: multipart missing boundary'); | ||
} | ||
@@ -71,3 +71,3 @@ | ||
if (!header) { | ||
return Boom.badRequest('Missing content-disposition header'); | ||
throw Boom.badRequest('Missing content-disposition header'); | ||
} | ||
@@ -77,3 +77,3 @@ | ||
if (!match) { | ||
return Boom.badRequest('Invalid content-disposition header format'); | ||
throw Boom.badRequest('Invalid content-disposition header format'); | ||
} | ||
@@ -83,3 +83,3 @@ | ||
if (!parameters) { | ||
return Boom.badRequest('Invalid content-disposition header missing parameters'); | ||
throw Boom.badRequest('Invalid content-disposition header missing parameters'); | ||
} | ||
@@ -110,7 +110,7 @@ | ||
if (leftovers) { | ||
return Boom.badRequest('Invalid content-disposition header format includes invalid parameters'); | ||
throw Boom.badRequest('Invalid content-disposition header format includes invalid parameters'); | ||
} | ||
if (!result.name) { | ||
return Boom.badRequest('Invalid content-disposition header missing name parameter'); | ||
throw Boom.badRequest('Invalid content-disposition header missing name parameter'); | ||
} | ||
@@ -117,0 +117,0 @@ |
{ | ||
"name": "content", | ||
"description": "HTTP Content-* headers parsing", | ||
"version": "3.0.6", | ||
"version": "4.0.0", | ||
"repository": "git://github.com/hapijs/content", | ||
@@ -15,3 +15,3 @@ "main": "lib/index.js", | ||
"engines": { | ||
"node": ">=4.5.0" | ||
"node": ">=8.0.0" | ||
}, | ||
@@ -22,3 +22,3 @@ "dependencies": { | ||
"devDependencies": { | ||
"code": "4.x.x", | ||
"code": "5.x.x", | ||
"lab": "14.x.x" | ||
@@ -25,0 +25,0 @@ }, |
@@ -9,3 +9,3 @@ # content | ||
Lead Maintainer - [Rui Quelhas](https://github.com/ruiquelhas) | ||
Lead Maintainer - [Eran Hammer](https://github.com/hueniverse) | ||
@@ -12,0 +12,0 @@ ## Table of Contents |
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
7873