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

content

Package Overview
Dependencies
Maintainers
4
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

content - npm Package Compare versions

Comparing version 3.0.6 to 4.0.0

14

lib/index.js

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

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