Comparing version 0.2.2 to 0.2.3
@@ -70,2 +70,3 @@ var WritableStream = require('stream').Writable | ||
self.emit('finish'); | ||
self._realFinish = false; | ||
}); | ||
@@ -76,2 +77,3 @@ return; | ||
self.emit('finish'); | ||
self._realFinish = false; | ||
}); | ||
@@ -84,2 +86,6 @@ } | ||
Dicer.prototype._write = function(data, encoding, cb) { | ||
// ignore unexpected data (e.g. extra trailer data after finished) | ||
if (!this._hparser || !this._bparser) | ||
return cb(); | ||
if (this._headerFirst && this._isPreamble) { | ||
@@ -210,2 +216,3 @@ if (!this._part) { | ||
self.emit('finish'); | ||
self._realFinish = false; | ||
} | ||
@@ -212,0 +219,0 @@ }); |
{ "name": "dicer", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"author": "Brian White <mscdex@mscdex.net>", | ||
@@ -4,0 +4,0 @@ "description": "A very fast streaming multipart parser for node.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59357
60
1623
6