Socket
Socket
Sign inDemoInstall

@hapi/content

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hapi/content - npm Package Compare versions

Comparing version 5.0.1 to 5.0.2

14

lib/index.js

@@ -103,2 +103,4 @@ 'use strict';

let value;
if ($2) {

@@ -110,3 +112,3 @@ if (!$3) {

try {
result[$1] = decodeURIComponent($3.split('\'')[2]);
value = decodeURIComponent($3.split('\'')[2]);
}

@@ -118,4 +120,12 @@ catch (err) {

else {
result[$1] = $4 || $5 || '';
value = $4 || $5 || '';
}
if ($1 === 'name' &&
value === '__proto__') {
throw Boom.badRequest('Invalid content-disposition header format includes invalid parameters');
}
result[$1] = value;
});

@@ -122,0 +132,0 @@

2

package.json
{
"name": "@hapi/content",
"description": "HTTP Content-* headers parsing",
"version": "5.0.1",
"version": "5.0.2",
"repository": "git://github.com/hapijs/content",

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