blitline-s3
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -62,6 +62,10 @@ 'use strict'; | ||
}, function (res) { | ||
res.setEncoding('utf8'); | ||
var chunks = []; | ||
res.on('data', function (chunk) { | ||
return chunks.push(chunk); | ||
}); | ||
res.on('end', function () { | ||
try { | ||
var jsonString = chunk.toString('utf8'); | ||
var data = JSON.parse(jsonString); | ||
var data = JSON.parse(chunks.join('')); | ||
data.results = JSON.parse(data.results); | ||
@@ -73,3 +77,2 @@ resolve(data); | ||
}); | ||
res.on('end', reject); | ||
}).on('error', reject); | ||
@@ -76,0 +79,0 @@ req.setTimeout(TIMEOUT, reject); |
{ | ||
"name": "blitline-s3", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Post Blitline jobs that uploads to s3 and do polling for the jobs.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
6561
116