Comparing version 5.4.17 to 5.4.18
@@ -330,6 +330,8 @@ /* jshint node: true */ | ||
} catch (err) { | ||
this.emit('error', err); | ||
this.emit('typeError', err, val, this._type); | ||
} | ||
}; | ||
this._tap = new Tap(utils.newBuffer(opts.batchSize || 65536)); | ||
this.on('typeError', function (err) { this.emit('error', err); }); | ||
} | ||
@@ -408,3 +410,3 @@ util.inherits(RawEncoder, stream.Transform); | ||
} catch (err) { | ||
this.emit('error', err); | ||
this.emit('typeError', err, val, this._type); | ||
return false; | ||
@@ -462,2 +464,4 @@ } | ||
}); | ||
this.on('typeError', function (err) { this.emit('error', err); }); | ||
} | ||
@@ -500,3 +504,2 @@ util.inherits(BlockEncoder, stream.Duplex); | ||
if (this._writeValue(tap, val)) { | ||
// The value was valid | ||
if (!tap.isValid()) { | ||
@@ -503,0 +506,0 @@ if (pos) { |
{ | ||
"name": "avsc", | ||
"version": "5.4.17", | ||
"version": "5.4.18", | ||
"description": "Avro for JavaScript", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/mtth/avsc", |
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
259803
8067