Socket
Socket
Sign inDemoInstall

heroku-cli-util

Package Overview
Dependencies
Maintainers
19
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

heroku-cli-util - npm Package Compare versions

Comparing version 6.0.0 to 6.0.1

.nyc_output/11269.json

10

CHANGELOG.md

@@ -0,1 +1,10 @@

6.0.0 / 2016-05-19
==================
* 6.0.0
* updated heroku-client
* optimize lodash requires
* loosely define dependencies
* updated deps
5.10.12 / 2016-05-18

@@ -184,2 +193,1 @@ ====================

* ignore test directory from npm
* updated jshintrc

6

lib/command.js

@@ -6,5 +6,2 @@ 'use strict';

let cli = require('..');
let url = require('url');
let spawn = require('child_process').spawn;
let exec = require('child_process').exec;

@@ -44,2 +41,3 @@ function apiMiddleware (response, cb) {

function setupHttpProxy() {
const url = require('url');
cli.hush(`proxy set to ${httpsProxy}`);

@@ -67,2 +65,3 @@ let proxy = url.parse(httpsProxy);

function login () {
const spawn = require('child_process').spawn;
return new Promise(function (fulfill, error) {

@@ -78,2 +77,3 @@ spawn('heroku', ['login'], {stdio: 'inherit'})

function getNewAPIKey () {
const exec = require('child_process').exec;
return new Promise(function (fulfill, reject) {

@@ -80,0 +80,0 @@ exec('heroku auth:token', function (error, stdout, stderr) {

'use strict';
let urlLib = require('url');
let gotDelegate = require('got');
let tunnel = require('tunnel-agent');
let fs = require('fs');
let path = require('path');
let hush = require('./console').hush;

@@ -22,2 +17,4 @@

function findTunnel(urlParsed) {
let tunnel = require('tunnel-agent');
if (urlParsed.protocol === 'https:') {

@@ -61,2 +58,4 @@ return tunnel.httpsOverHttp;

if (cert_dir) {
const fs = require('fs');
const path = require('path');
return fs.readdirSync(cert_dir).map(f => path.join(cert_dir, f));

@@ -76,2 +75,3 @@ } else {

return filenames.map(function(filename) {
const fs = require('fs');
hush(' ' + filename);

@@ -83,2 +83,4 @@ return fs.readFileSync(filename);

function addToOpts(url, opts) {
const urlLib = require('url');
let urlParsed = urlLib.parse(url);

@@ -101,3 +103,7 @@ let proxy = findProxy(urlParsed);

let loadErrors;
function got(url, opts) {
const gotDelegate = require('got');
loadErrors();
return gotDelegate(url, addToOpts(url, opts));

@@ -107,2 +113,4 @@ }

got.stream = function (url, opts) {
const gotDelegate = require('got');
loadErrors();
return gotDelegate.stream(url, addToOpts(url, opts));

@@ -130,14 +138,18 @@ };

const errors = [
"HTTPError",
"MaxRedirectsError",
"ParseError",
"ReadError",
"RequestError"
];
loadErrors = () => {
const gotDelegate = require('got');
errors.forEach(el => {
got[el] = gotDelegate[el];
});
const errors = [
"HTTPError",
"MaxRedirectsError",
"ParseError",
"ReadError",
"RequestError"
];
errors.forEach(el => {
got[el] = gotDelegate[el];
});
};
module.exports = got;
'use strict';
let https = require('https');
let parseUrl = require('url').parse;
const GLOBAL_CRED = 'b66ca6f60fe049d6bedfe3e2ccb28d8c';

@@ -20,2 +17,5 @@ const ROLLBAR_URL = 'https://api.rollbar.com/api/1/item/';

function request (method, url, payload) {
const https = require('https');
const parseUrl = require('url').parse;
return new Promise(function (fulfill, reject) {

@@ -22,0 +22,0 @@ let body = JSON.stringify(payload);

'use strict';
let cp = require('child_process');
function toggle (onoff) {
const cp = require('child_process');
if (exports.platform !== 'darwin') return;

@@ -7,0 +6,0 @@ try {

{
"name": "heroku-cli-util",
"description": "Set of helpful CLI utilities",
"version": "6.0.0",
"version": "6.0.1",
"author": "Jeff Dickey (@dickeyxxx)",

@@ -15,3 +15,3 @@ "bugs": {

"got": "^6.3.0",
"heroku-client": "3.0.0-alpha2",
"heroku-client": "3.0.0-alpha3",
"lodash.ary": "4.0.1",

@@ -56,3 +56,4 @@ "lodash.defaults": "4.0.1",

"postversion": "npm publish && git push && git push --tags",
"preversion": "npm test && changelog heroku-cli-util all -m > CHANGELOG.md && git add CHANGELOG.md",
"changelog": "changelog heroku-cli-util all -m > CHANGELOG.md",
"preversion": "npm test",
"test": "nyc mocha && jshint ."

@@ -59,0 +60,0 @@ },

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