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.10 to 6.0.11

.nyc_output/16660.json

71

CHANGELOG.md

@@ -0,1 +1,72 @@

6.0.10 / 2016-05-20
===================
* 6.0.10
* better method of detecting when to clear
* skip clearing if not enabled
6.0.9 / 2016-05-20
==================
* 6.0.9
* return promises for cli.command
6.0.8 / 2016-05-20
==================
* 6.0.8
* clean up prompt rendering
* do not require function to return a promise
* show error message when a promise is not returned
6.0.7 / 2016-05-20
==================
* 6.0.7
* build fix
* mock logging when not tty
6.0.6 / 2016-05-20
==================
* 6.0.6
* added ansi-escapes
6.0.5 / 2016-05-20
==================
* 6.0.5
* fixpack
* update node to 6.2.0
6.0.4 / 2016-05-20
==================
* 6.0.4
* minor bug fix with small screens
* clean up spinner output
* take out co
* use ansi escapes to render spinner more cleanly
6.0.3 / 2016-05-20
==================
* 6.0.3
* update heroku-client
6.0.2 / 2016-05-20
==================
* 6.0.2
* updated deps
* standardify
6.0.1 / 2016-05-19
==================
* 6.0.1
* optimize requires
* updated heroku-client
* changelog
6.0.0 / 2016-05-19

@@ -2,0 +73,0 @@ ==================

2

lib/action.js

@@ -22,3 +22,3 @@ 'use strict'

if (err.body && err.body.id === 'two_factor') done(cli.color.yellow.bold('!'), options)
else done(cli.color.red.bold('!!!'), options)
else done(cli.color.red.bold('!'), options)
throw err

@@ -25,0 +25,0 @@ })

@@ -6,31 +6,8 @@ 'use strict'

function concat (stream, callback) {
var strings = []
stream.on('data', function (data) {
strings.push(data)
})
stream.on('end', function () {
callback(strings.join(''))
})
}
function request (method, url, payload) {
const https = require('https')
const parseUrl = require('url').parse
const got = require('./got')
return new Promise(function (resolve, reject) {
let body = JSON.stringify(payload)
url = parseUrl(url)
let req = https.request({
hostname: url.hostname,
path: url.path,
method: method
}, function (res) {
concat(res, function (data) {
if (res.statusCode >= 200 && res.statusCode < 300) resolve(data)
else reject(data)
})
})
req.setHeader('Content-Length', Buffer.byteLength(body))
req.write(body)
return got(url, {
method: method,
body: JSON.stringify(payload)
})

@@ -37,0 +14,0 @@ }

@@ -36,2 +36,4 @@ 'use strict'

this.stream.write(this.ansi.cursorLeft)
this.stream.write(this.ansi.eraseLine)
this.stream.write(this.ansi.cursorHide)

@@ -38,0 +40,0 @@ this._render()

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

@@ -35,3 +35,2 @@ "bugs": {

"codeclimate-test-reporter": "0.3.1",
"coveralls": "2.11.9",
"hook-std": "0.2.0",

@@ -58,3 +57,2 @@ "jsdoc": "*",

"changelog": "changelog heroku-cli-util all -m > CHANGELOG.md",
"coverage": "nyc report --reporter=text-lcov | codeclimate-test-reporter && nyc report --reporter=text-lcov | coveralls",
"doc": "jsdoc lib",

@@ -61,0 +59,0 @@ "postversion": "npm publish && git push && git push --tags",

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