Socket
Socket
Sign inDemoInstall

heroku-client

Package Overview
Dependencies
Maintainers
3
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

heroku-client - npm Package Compare versions

Comparing version 1.10.0 to 1.10.1

16

lib/request.js

@@ -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 {

2

package.json
{
"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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc