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

@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 4.1.0 to 4.1.1

18

lib/index.js

@@ -99,2 +99,8 @@ 'use strict';

if ($1 === '__proto__') {
throw Boom.badRequest('Invalid content-disposition header format includes invalid parameters');
}
let value;
if ($2) {

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

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

@@ -114,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;
});

@@ -118,0 +132,0 @@

2

package.json
{
"name": "@hapi/content",
"description": "HTTP Content-* headers parsing",
"version": "4.1.0",
"version": "4.1.1",
"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