Comparing version 0.4.0 to 0.4.1
@@ -258,9 +258,9 @@ var util = require('util'), | ||
name = name.toLowerCase(); | ||
if (curReq._msg.headers[name] !== undefined) | ||
curReq._msg.headers[name].push(val); | ||
if (self._state.requests[0]._msg.headers[name] !== undefined) | ||
self._state.requests[0]._msg.headers[name].push(val); | ||
else | ||
curReq._msg.headers[name] = [val]; | ||
self._state.requests[0]._msg.headers[name] = [val]; | ||
}); | ||
self._state.parser.on('data', function(str) { | ||
curReq._msg.emit('data', str); | ||
self._state.requests[0]._msg.emit('data', str); | ||
}); | ||
@@ -267,0 +267,0 @@ } |
@@ -16,8 +16,3 @@ var inherits = require('util').inherits, | ||
var MIMEParser = module.exports = function() { | ||
this._state = PARSE_HEADER_NAME; | ||
this._hdrname = ''; | ||
this._hdrval = ''; | ||
this._sawCR = false; | ||
this._sawLF = false; | ||
this._needUnfold = false; | ||
this.finish(); | ||
}; | ||
@@ -24,0 +19,0 @@ inherits(MIMEParser, EventEmitter); |
{ "name": "imap", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"author": "Brian White <mscdex@mscdex.net>", | ||
@@ -4,0 +4,0 @@ "description": "An IMAP module for node.js that makes communicating with IMAP servers easy", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2
105850
2045