neverbounce
Advanced tools
Comparing version 4.1.5 to 4.1.6
module.exports = { | ||
apiKey: 'secret_5e354a697f5769f6ee1d1ad20fac74d2', | ||
apiKey: 'secret_a72f87112290e0cfe843645cc3356b78', | ||
}; |
{ | ||
"name": "neverbounce", | ||
"version": "4.1.5", | ||
"version": "4.1.6", | ||
"description": "An API wrapper for the NeverBounce API", | ||
@@ -5,0 +5,0 @@ "engines" : { |
@@ -62,6 +62,12 @@ 'use strict'; | ||
res.setEncoding('utf8'); | ||
res.on('data', (chunks) => { | ||
return this.parseResponse(chunks, res.headers, res.statusCode) | ||
let rawData = ''; | ||
res.on('data', (chunk) => { | ||
rawData += chunk; | ||
}); | ||
res.on('end', () => { | ||
return this.parseResponse(rawData, res.headers, res.statusCode) | ||
.then(resp => resolve(resp), err => reject(err)); | ||
}); | ||
}) | ||
}); | ||
@@ -68,0 +74,0 @@ |
Sorry, the diff of this file is not supported yet
62504
1469
37