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

content-disposition-attachment

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

content-disposition-attachment - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

8

index.js

@@ -66,4 +66,6 @@ class ParseError extends Error {

}
// eslint-disable-next-line
const result = this.eat$0(/^(:?([ !\x23-\x5b\x5d-\x7e\x80-\xff]|\r\n(?:[ \t])+)*|\\[\u0000-\u007f])*/)
this.expect(this.eat$0(/^"/), `expect '"'`)
this.expect(this.eat$0(/^"/), 'expect \'"\'')
// eslint-disable-next-line
return result.replace(/\\([\u0000-\u007f])/g, '$1')

@@ -116,3 +118,3 @@ }

const charset = this.expect(this.eat$0(/^(?:UTF-8|ISO-8859-1)/i), 'unsupported charset')
this.expect(this.eat$0(/^'[a-zA-Z-]*'/), `expect ' [ language ] '`)
this.expect(this.eat$0(/^'[a-zA-Z-]*'/), 'expect \' [ language ] \'')
return this.parseValueChars(charset)

@@ -130,3 +132,3 @@ }

let key = this.expect(this.parseToken(), 'expect token')
this.expect(this.eat$0(/^\s*=\s*/), `expect '='`)
this.expect(this.eat$0(/^\s*=\s*/), 'expect \'=\'')
let value

@@ -133,0 +135,0 @@ if (/\*$/.test(key)) {

{
"name": "content-disposition-attachment",
"version": "0.1.1",
"version": "0.1.2",
"description": "A library to parse \"attachment\"s in Content-Disposition.",

@@ -33,6 +33,6 @@ "main": "index.js",

"devDependencies": {
"ava": "^0.25.0",
"ava": "^3.13.0",
"rollup": "^0.55.3",
"standard": "^10.0.3"
"standard": "^14.3.4"
}
}
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