Comparing version 1.1.0 to 1.2.0
@@ -49,6 +49,9 @@ /** | ||
}, function (err, response, body) { | ||
if (response) { | ||
var statusCode = response.statusCode; | ||
if (!err && (statusCode < 200 || statusCode > 302)) | ||
err = new Error(body); | ||
if (err) err.statusCode = statusCode; | ||
} | ||
if (err) return callback(err); | ||
if (response.statusCode < 200) return callback(body); | ||
if (response.statusCode > 302) return callback(body); | ||
if (response.headers['content-type'] === 'application/json') { | ||
@@ -55,0 +58,0 @@ try { |
@@ -12,3 +12,3 @@ { | ||
"keywords": "fastly, api, client", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"homepage": "https://github.com/thisandagain/fastly", | ||
@@ -15,0 +15,0 @@ "repository": { |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
6734
90
1