bellboy 6.7.1 → 6.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/job.js CHANGED
@@ -89,6 +89,7 @@ var Job = /** @class */ (function () {
89
89
  this.stop = function (message) {
90
90
  _this.stopped = true;
91
91
  if (readStream && (readStream instanceof stream_1.Readable)) {
92
+ readStream.emit('end');
92
93
  readStream.destroy();
93
94
  }
94
95
  errorMessage = message;
package/lib/utils.js CHANGED
@@ -165,7 +165,9 @@ function getValueFromJSONChunk() {
165
165
  return new stream_1.Transform({
166
166
  objectMode: true,
167
167
  transform: function (chunk, encoding, callback) {
168
- this.push(chunk.value);
168
+ if (chunk.value) {
169
+ this.push(chunk.value);
170
+ }
169
171
  callback();
170
172
  }
171
173
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bellboy",
3
- "version": "6.7.1",
3
+ "version": "6.7.3",
4
4
  "description": "Highly performant JavaScript data stream ETL engine.",
5
5
  "main": "lib/index",
6
6
  "types": "lib/index",