Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "gcm-stream", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -67,7 +67,11 @@ "use strict"; | ||
_flush(callback) { | ||
const authTag = this.loopBuffer.mutableGetBufferBySize(this.macLength); | ||
this.decipher.setAuthTag(authTag); | ||
this.decipher.final(); | ||
this.push(null); | ||
callback(); | ||
try { | ||
const authTag = this.loopBuffer.mutableGetBufferBySize(this.macLength); | ||
this.decipher.setAuthTag(authTag); | ||
this.decipher.final(); | ||
} | ||
finally { | ||
this.push(null); | ||
callback(); | ||
} | ||
} | ||
@@ -74,0 +78,0 @@ getValue(value) { |
Sorry, the diff of this file is not supported yet
22927
333