heroku-client
Advanced tools
Comparing version 1.10.0 to 1.10.1
@@ -25,2 +25,3 @@ 'use strict'; | ||
this.log = options.log; | ||
this.debug = options.debug; | ||
this.callback = callback; | ||
@@ -107,2 +108,6 @@ this.deferred = q.defer(); | ||
if (this.debug) { | ||
console.error('--> ' + req.method + ' ' + req.path); | ||
} | ||
this.writeBody(req); | ||
@@ -166,2 +171,5 @@ this.setRequestTimeout(req); | ||
function directResponse(data) { | ||
if (self.debug) { | ||
console.error('<-- ' + data); | ||
} | ||
if (res.statusCode.toString().match(/^2\d{2}$/)) { | ||
@@ -187,2 +195,5 @@ self.handleSuccess(res, data); | ||
} | ||
if (this.debug) { | ||
console.error('<-- ' + res.statusCode + ' ' + res.statusMessage); | ||
} | ||
}; | ||
@@ -199,4 +210,7 @@ | ||
var body = JSON.stringify(this.options.body); | ||
if (this.debug) { | ||
console.error('--> ' + body); | ||
} | ||
req.setHeader('Content-length', body.length); | ||
req.setHeader('Content-length', Buffer.byteLength(body, 'utf8')); | ||
req.write(body); | ||
@@ -203,0 +217,0 @@ } else { |
{ | ||
"name": "heroku-client", | ||
"description": "A wrapper for the Heroku v3 API", | ||
"version": "1.10.0", | ||
"version": "1.10.1", | ||
"author": "Jonathan Clem", | ||
@@ -6,0 +6,0 @@ "bugs": { |
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
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
281205
8031
4