Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function inflate(strdata, onData) {
var data = new Buffer(strdata);
zlib.inflate(data, function (error, buffer) {
if (error) throw new Error('Invalid compressed data. ' + error);
onData(buffer);
});
};
function(err, buf) {
if (err) throw err;
if (!Buffer.isBuffer(buf))
buf = new Buffer(buf, 'binary');
var inflated = zlib.inflate(buf);
this(null,inflated);
},
function(err, buf) {