heroku-cli-util
Advanced tools
Comparing version 5.4.10 to 5.4.11
@@ -46,8 +46,10 @@ 'use strict'; | ||
let arrow = process.platform === 'win32' ? '!' : '▸'; | ||
function error (err) { | ||
console.error(bangify(wrap(getErrorMessage(err)), cli.color.red('▸'))); | ||
console.error(bangify(wrap(getErrorMessage(err)), cli.color.red(arrow))); | ||
} | ||
function warn (msg) { | ||
console.error(bangify(wrap(msg), cli.color.yellow('▸'))); | ||
console.error(bangify(wrap(msg), cli.color.yellow(arrow))); | ||
} | ||
@@ -54,0 +56,0 @@ |
'use strict'; | ||
var http = require('http'); | ||
var https = require('https'); | ||
@@ -7,2 +8,3 @@ var tunnel = require('tunnel-agent'); | ||
var q = require('q'); | ||
var URL = require('./url'); | ||
var pjson = require('../package.json'); | ||
@@ -24,3 +26,6 @@ | ||
} | ||
this.host = options.host || 'api.heroku.com'; | ||
var url = URL(options.host || 'https://api.heroku.com'); | ||
this.host = url.host; | ||
this.port = url.port; | ||
this.secure = url.secure; | ||
this.partial = options.partial; | ||
@@ -35,3 +40,9 @@ this.callback = callback; | ||
if (process.env.HEROKU_HTTP_PROXY_HOST) { | ||
this.agent = tunnel.httpsOverHttp({ | ||
var tunnelFunc; | ||
if (this.secure) { | ||
tunnelFunc = tunnel.httpsOverHttp; | ||
} else { | ||
tunnelFunc = tunnel.httpOverHttp; | ||
} | ||
this.agent = tunnelFunc({ | ||
proxy: { | ||
@@ -43,3 +54,7 @@ host: process.env.HEROKU_HTTP_PROXY_HOST, | ||
} else { | ||
this.agent = new https.Agent({ maxSockets: Number(process.env.HEROKU_CLIENT_MAX_SOCKETS) || 5000 }); | ||
if (this.secure) { | ||
this.agent = new https.Agent({ maxSockets: Number(process.env.HEROKU_CLIENT_MAX_SOCKETS) || 5000 }); | ||
} else { | ||
this.agent = new http.Agent({ maxSockets: Number(process.env.HEROKU_CLIENT_MAX_SOCKETS) || 5000 }); | ||
} | ||
} | ||
@@ -97,3 +112,3 @@ } | ||
host: this.host, | ||
port: 443, | ||
port: this.port, | ||
path: this.options.path, | ||
@@ -110,3 +125,7 @@ auth: this.options.auth || ':' + this.options.token, | ||
req = https.request(requestOptions, this.handleResponse.bind(this)); | ||
if (this.secure) { | ||
req = https.request(requestOptions, this.handleResponse.bind(this)); | ||
} else { | ||
req = http.request(requestOptions, this.handleResponse.bind(this)); | ||
} | ||
@@ -113,0 +132,0 @@ this.logRequest(req); |
{ | ||
"name": "heroku-client", | ||
"description": "A wrapper for the Heroku v3 API", | ||
"version": "2.2.2", | ||
"_args": [ | ||
[ | ||
"heroku-client@2.3.0", | ||
"/Users/jdickey/src/github.com/heroku/heroku-cli-util" | ||
] | ||
], | ||
"_from": "heroku-client@2.3.0", | ||
"_id": "heroku-client@2.3.0", | ||
"_inCache": true, | ||
"_location": "/heroku-client", | ||
"_nodeVersion": "4.1.0", | ||
"_npmUser": { | ||
"email": "jeff@dickeyxxx.com", | ||
"name": "dickeyxxx" | ||
}, | ||
"_npmVersion": "3.3.8", | ||
"_phantomChildren": {}, | ||
"_requested": { | ||
"name": "heroku-client", | ||
"raw": "heroku-client@2.3.0", | ||
"rawSpec": "2.3.0", | ||
"scope": null, | ||
"spec": "2.3.0", | ||
"type": "version" | ||
}, | ||
"_requiredBy": [ | ||
"/" | ||
], | ||
"_shasum": "8eff7be85f57fa8ce9d1335269abf971915bc724", | ||
"_shrinkwrap": null, | ||
"_spec": "heroku-client@2.3.0", | ||
"_where": "/Users/jdickey/src/github.com/heroku/heroku-cli-util", | ||
"author": { | ||
@@ -31,2 +60,3 @@ "name": "Jonathan Clem" | ||
}, | ||
"description": "A wrapper for the Heroku v3 API", | ||
"devDependencies": { | ||
@@ -37,2 +67,10 @@ "jasmine-node": "^1.14.5", | ||
}, | ||
"directories": {}, | ||
"dist": { | ||
"shasum": "8eff7be85f57fa8ce9d1335269abf971915bc724", | ||
"tarball": "http://registry.npmjs.org/heroku-client/-/heroku-client-2.3.0.tgz" | ||
}, | ||
"gitHead": "dd4e8d23948e5f12b178a36f0fc16dea8ec5e3ad", | ||
"homepage": "https://github.com/heroku/node-heroku-client#readme", | ||
"installable": true, | ||
"jshintConfig": { | ||
@@ -63,20 +101,2 @@ "curly": true, | ||
"main": "./lib/heroku.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/heroku/node-heroku-client.git" | ||
}, | ||
"scripts": { | ||
"test": "jasmine-node spec && jshint lib spec" | ||
}, | ||
"gitHead": "f9bd2acbe9dae5c57b50c060a41bdf9f90620592", | ||
"homepage": "https://github.com/heroku/node-heroku-client#readme", | ||
"_id": "heroku-client@2.2.2", | ||
"_shasum": "e8d9ca3deb84105f16b041e182ba76da9a04df1b", | ||
"_from": "heroku-client@2.2.2", | ||
"_npmVersion": "2.14.2", | ||
"_nodeVersion": "4.1.0", | ||
"_npmUser": { | ||
"name": "dickeyxxx", | ||
"email": "jeff@dickeyxxx.com" | ||
}, | ||
"maintainers": [ | ||
@@ -96,8 +116,12 @@ { | ||
], | ||
"dist": { | ||
"shasum": "e8d9ca3deb84105f16b041e182ba76da9a04df1b", | ||
"tarball": "http://registry.npmjs.org/heroku-client/-/heroku-client-2.2.2.tgz" | ||
"name": "heroku-client", | ||
"optionalDependencies": {}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/heroku/node-heroku-client.git" | ||
}, | ||
"directories": {}, | ||
"_resolved": "https://registry.npmjs.org/heroku-client/-/heroku-client-2.2.2.tgz" | ||
"scripts": { | ||
"test": "jasmine-node spec && jshint lib spec" | ||
}, | ||
"version": "2.3.0" | ||
} |
@@ -140,3 +140,4 @@ 'use strict'; | ||
makeRequest('/apps', { host: 'api.example.com' }, function() { | ||
expect(https.request.mostRecentCall.args[0].host).toEqual('api.example.com'); | ||
expect(http.request.mostRecentCall.args[0].host).toEqual('api.example.com'); | ||
expect(http.request.mostRecentCall.args[0].port).toEqual(80); | ||
done(); | ||
@@ -143,0 +144,0 @@ }); |
# History | ||
## 1.7.2 / 2015-10-11 | ||
- [update packages] mocha->2.3.3, should->7.1.0 | ||
## 1.7.1 / 2015-03-25 | ||
@@ -4,0 +9,0 @@ - [bug fix] `woman` plural & singular form |
{ | ||
"name": "inflection", | ||
"version": "1.7.1", | ||
"description": "A port of inflection-js to node.js module", | ||
"keywords": [ | ||
"inflection", | ||
"inflections", | ||
"inflection-js", | ||
"pluralize", | ||
"singularize", | ||
"camelize", | ||
"underscore", | ||
"humanize", | ||
"capitalize", | ||
"dasherize", | ||
"titleize", | ||
"demodulize", | ||
"tableize", | ||
"classify", | ||
"foreign_key", | ||
"ordinalize" | ||
"_args": [ | ||
[ | ||
"inflection@1.7.2", | ||
"/Users/jdickey/src/github.com/heroku/heroku-cli-util" | ||
] | ||
], | ||
"_from": "inflection@1.7.2", | ||
"_id": "inflection@1.7.2", | ||
"_inCache": true, | ||
"_location": "/inflection", | ||
"_nodeVersion": "4.1.1", | ||
"_npmUser": { | ||
"email": "ben@dreamerslab.com", | ||
"name": "dreamerslab" | ||
}, | ||
"_npmVersion": "2.14.4", | ||
"_phantomChildren": {}, | ||
"_requested": { | ||
"name": "inflection", | ||
"raw": "inflection@1.7.2", | ||
"rawSpec": "1.7.2", | ||
"scope": null, | ||
"spec": "1.7.2", | ||
"type": "version" | ||
}, | ||
"_requiredBy": [ | ||
"/", | ||
"/heroku-client" | ||
], | ||
"_resolved": "https://registry.npmjs.org/inflection/-/inflection-1.7.2.tgz", | ||
"_shasum": "0d7fa05876d2de827d2f78af90160f2940a1872f", | ||
"_shrinkwrap": null, | ||
"_spec": "inflection@1.7.2", | ||
"_where": "/Users/jdickey/src/github.com/heroku/heroku-cli-util", | ||
"author": { | ||
"name": "dreamerslab", | ||
"email": "ben@dreamerslab.com" | ||
"email": "ben@dreamerslab.com", | ||
"name": "dreamerslab" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/dreamerslab/node.inflection/issues" | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "Marcel Klehr" | ||
}, | ||
{ | ||
"name": "Ryan Schuft", | ||
@@ -33,6 +52,2 @@ "email": "ryan.schuft@gmail.com" | ||
{ | ||
"name": "Ben Lin", | ||
"email": "ben@dreamerslab.com" | ||
}, | ||
{ | ||
"name": "Lance Pollard", | ||
@@ -56,3 +71,4 @@ "email": "lancejpollard@gmail.com" | ||
{ | ||
"name": "Marcel Klehr" | ||
"name": "Ben Lin", | ||
"email": "ben@dreamerslab.com" | ||
}, | ||
@@ -84,10 +100,11 @@ { | ||
"dependencies": {}, | ||
"description": "A port of inflection-js to node.js module", | ||
"devDependencies": { | ||
"mocha": "2.2.1", | ||
"should": "5.2.0" | ||
"mocha": "2.3.3", | ||
"should": "7.1.0" | ||
}, | ||
"main": "./lib/inflection.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/dreamerslab/node.inflection.git" | ||
"directories": {}, | ||
"dist": { | ||
"shasum": "0d7fa05876d2de827d2f78af90160f2940a1872f", | ||
"tarball": "http://registry.npmjs.org/inflection/-/inflection-1.7.2.tgz" | ||
}, | ||
@@ -97,25 +114,25 @@ "engines": [ | ||
], | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "http://en.wikipedia.org/wiki/MIT_License" | ||
} | ||
"gitHead": "3a532b7817cd63eaff9894b64158c306578a0df7", | ||
"homepage": "https://github.com/dreamerslab/node.inflection#readme", | ||
"installable": true, | ||
"keywords": [ | ||
"camelize", | ||
"capitalize", | ||
"classify", | ||
"dasherize", | ||
"demodulize", | ||
"foreign_key", | ||
"humanize", | ||
"inflection", | ||
"inflection-js", | ||
"inflections", | ||
"ordinalize", | ||
"pluralize", | ||
"singularize", | ||
"tableize", | ||
"titleize", | ||
"underscore" | ||
], | ||
"scripts": { | ||
"test": "mocha -R spec" | ||
}, | ||
"gitHead": "92e8a62ada37b747939b1018a723620926d4d8b7", | ||
"bugs": { | ||
"url": "https://github.com/dreamerslab/node.inflection/issues" | ||
}, | ||
"homepage": "https://github.com/dreamerslab/node.inflection#readme", | ||
"_id": "inflection@1.7.1", | ||
"_shasum": "1cf160cd420956d674fd15af6d94291271d38b78", | ||
"_from": "inflection@>=1.7.1 <2.0.0", | ||
"_npmVersion": "2.8.4", | ||
"_nodeVersion": "0.10.38", | ||
"_npmUser": { | ||
"name": "dreamerslab", | ||
"email": "ben@dreamerslab.com" | ||
}, | ||
"license": "MIT", | ||
"main": "./lib/inflection.js", | ||
"maintainers": [ | ||
@@ -127,9 +144,12 @@ { | ||
], | ||
"dist": { | ||
"shasum": "1cf160cd420956d674fd15af6d94291271d38b78", | ||
"tarball": "http://heroku-npm.herokuapp.com/inflection/-/inflection-1.7.1.tgz" | ||
"name": "inflection", | ||
"optionalDependencies": {}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/dreamerslab/node.inflection.git" | ||
}, | ||
"directories": {}, | ||
"_resolved": "https://heroku-npm.herokuapp.com/inflection/-/inflection-1.7.1.tgz", | ||
"readme": "ERROR: No README data found!" | ||
"scripts": { | ||
"test": "mocha -R spec" | ||
}, | ||
"version": "1.7.2" | ||
} |
@@ -26,2 +26,8 @@ # inflection | ||
## Meteor Support | ||
Checkout [Meteor Inflector](https://github.com/katrotz/meteor-inflector) from [Veaceslav Cotruta](https://github.com/katrotz) | ||
## Installation | ||
@@ -28,0 +34,0 @@ |
{ | ||
"name": "heroku-cli-util", | ||
"version": "5.4.10", | ||
"version": "5.4.11", | ||
"description": "Set of helpful CLI utilities", | ||
@@ -27,4 +27,4 @@ "main": "index.js", | ||
"co": "4.6.0", | ||
"heroku-client": "2.2.2", | ||
"inflection": "1.7.1" | ||
"heroku-client": "2.3.0", | ||
"inflection": "1.7.2" | ||
}, | ||
@@ -31,0 +31,0 @@ "bundledDependencies": [ |
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
645960
109
15053
17
10
Updatedheroku-client@2.3.0
Updatedinflection@1.7.2