New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rfc2231

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

rfc2231 - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

4

lib/rfc2231.js

@@ -111,3 +111,3 @@ /*global unescape*/

rfc2231.encodeAndFoldParameters = function (decodedParameters, maxFragmentLength) {
rfc2231.encodeAndFoldParameters = function (decodedParameters, maxFragmentLength, forceUtf8) {
var encodedParameters = {};

@@ -121,3 +121,3 @@ maxFragmentLength = maxFragmentLength || 60;

i;
if (canBeLatin1EncodedRegExp.test(value)) {
if (!forceUtf8 && canBeLatin1EncodedRegExp.test(value)) {
encodedValue = "iso-8859-1''";

@@ -124,0 +124,0 @@ for (i = 0 ; i < value.length ; i += 1) {

{
"name": "rfc2231",
"version": "1.0.0",
"description": "Encode and decode rfc2231/rfc6266",
"version": "1.1.0",
"description": "Encode and decode rfc2231/rfc5987",
"main": "lib/rfc2231.js",

@@ -6,0 +6,0 @@ "directories": {

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