nodejitsu-api
Advanced tools
Comparing version 0.6.1 to 0.6.2
@@ -283,2 +283,5 @@ 'use strict'; | ||
req.on('response', function (res) { | ||
var statusCode = res.statusCode, | ||
error; | ||
// | ||
@@ -288,4 +291,5 @@ // TODO: clean this up. This is an extraneous case that offsets the main | ||
// | ||
if (failCodes[res.statusCode]) { | ||
var error = new Error('Nodejitsu Error (' + statusCode + '): ' + failCodes[statusCode]); | ||
if (failCodes[statusCode]) { | ||
error = new Error('Nodejitsu Error (' + statusCode + '): ' + failCodes[statusCode]); | ||
error.statusCode = statusCode; | ||
@@ -292,0 +296,0 @@ error.result = ''; |
{ | ||
"name": "nodejitsu-api", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "nodejitsu API client wrapper", | ||
@@ -5,0 +5,0 @@ "keywords": ["nodejitsu", "nodejitsu-api"], |
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
68551
1554
1