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

content

Package Overview
Dependencies
Maintainers
1
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 1.0.0 to 1.0.1

2

lib/index.js

@@ -98,3 +98,3 @@ // Load modules

else {
result[$1] = $4 || $5;
result[$1] = $4 || $5 || '';
}

@@ -101,0 +101,0 @@

{
"name": "content",
"description": "HTTP Content-* headers parsing",
"version": "1.0.0",
"version": "1.0.1",
"repository": "git://github.com/hapijs/content",

@@ -6,0 +6,0 @@ "main": "index",

@@ -1,2 +0,2 @@

#content
# content

@@ -3,0 +3,0 @@ HTTP Content-* headers parsing.

@@ -75,2 +75,18 @@ // Load modules

it('parses header', function (done) {
var header = 'form-data; name="file"; filename=file.jpg';
expect(Content.disposition(header)).to.deep.equal({ name: 'file', filename: 'file.jpg' });
done();
});
it('parses header (empty filename)', function (done) {
var header = 'form-data; name="file"; filename=""';
expect(Content.disposition(header)).to.deep.equal({ name: 'file', filename: '' });
done();
});
it('handles language filename', function (done) {

@@ -77,0 +93,0 @@

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