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

libqp

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libqp - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

21

lib/libqp.js

@@ -95,3 +95,3 @@ 'use strict';

if (str.length < lineLength) {
if (str.length <= lineLength) {
return str;

@@ -207,3 +207,3 @@ }

if(this.options.lineLength !== false){
if (this.options.lineLength !== false) {
this.options.lineLength = this.options.lineLength || 76;

@@ -283,3 +283,3 @@ }

Decoder.prototype._transform = function(chunk, encoding, done) {
var qp, _self = this;
var qp, buf, _self = this;

@@ -302,5 +302,5 @@ chunk = chunk.toString('ascii');

if (qp) {
qp = decode(qp);
this.outputBytes += qp.length;
this.push(qp);
buf = decode(qp);
this.outputBytes += buf.length;
this.push(buf);
}

@@ -312,8 +312,9 @@

Decoder.prototype._flush = function(done) {
var qp = decode(this._curLine);
if (qp) {
this.outputBytes += qp.length;
this.push(qp);
var qp, buf;
if (this._curLine) {
buf = decode(this._curLine);
this.outputBytes += buf.length;
this.push(buf);
}
done();
};
{
"name": "libqp",
"version": "0.1.0",
"version": "0.1.1",
"description": "Encode and decode quoted-printable strings according to rfc2045",

@@ -5,0 +5,0 @@ "main": "lib/libqp.js",

@@ -100,3 +100,3 @@ # libqp

var fs = require('fs');
var encoded = fs.createReadStream(encoded.txt');
var encoded = fs.createReadStream('encoded.txt');
var dest = fs.createReadStream('dest.txt');

@@ -103,0 +103,0 @@ var decoder = new libqp.Decoder();

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