@heroku-cli/command
Advanced tools
Comparing version
@@ -0,1 +1,9 @@ | ||
<a name="8.1.23"></a> | ||
## [8.1.23](https://github.com/heroku/heroku-cli-command/compare/v8.1.22...v8.1.23) (2018-06-01) | ||
### Bug Fixes | ||
* allow specifying Authorization for header ([#42](https://github.com/heroku/heroku-cli-command/issues/42)) ([a522961](https://github.com/heroku/heroku-cli-command/commit/a522961)) | ||
<a name="8.1.22"></a> | ||
@@ -2,0 +10,0 @@ ## [8.1.22](https://github.com/heroku/heroku-cli-command/compare/v8.1.21...v8.1.22) (2018-05-31) |
@@ -69,3 +69,3 @@ "use strict"; | ||
opts.headers = opts.headers || {}; | ||
if (!opts.headers.authorization) { | ||
if (!Object.keys(opts.headers).find(h => h.toLowerCase() === 'authorization')) { | ||
opts.headers.authorization = `Bearer ${self.auth}`; | ||
@@ -72,0 +72,0 @@ } |
@@ -20,8 +20,7 @@ /// <reference types="node" /> | ||
styledObject(obj: any, keys?: string[] | undefined): void; | ||
readonly styledHeader: (header: string) => void; | ||
readonly styledJSON: (obj: any) => void; | ||
readonly styledHeader: typeof import("../node_modules/cli-ux/lib/styled/header").default; | ||
readonly styledJSON: typeof import("../node_modules/cli-ux/lib/styled/json").default; | ||
readonly table: typeof CLI.Table.default; | ||
readonly open: (target: string, opts?: { | ||
app?: string | string[] | undefined; | ||
} | undefined) => Promise<{}>; | ||
readonly open: typeof import("../node_modules/cli-ux/lib/open").default; | ||
readonly wait: (ms?: number | undefined) => Promise<{}>; | ||
done(): Promise<void>; | ||
@@ -28,0 +27,0 @@ trace(format: string, ...args: string[]): void; |
{ | ||
"name": "@heroku-cli/command", | ||
"description": "base class for Heroku CLI commands", | ||
"version": "8.1.22", | ||
"version": "8.1.23", | ||
"author": "Jeff Dickey @jdxcode", | ||
@@ -10,3 +10,3 @@ "bugs": "https://github.com/heroku/heroku-cli-command/issues", | ||
"@oclif/errors": "^1.1.2", | ||
"cli-ux": "^4.4.0", | ||
"cli-ux": "^4.6.0", | ||
"debug": "^3.1.0", | ||
@@ -22,4 +22,4 @@ "fs-extra": "^6.0.1", | ||
"@heroku-cli/tslint": "^1.1.4", | ||
"@oclif/command": "^1.4.31", | ||
"@oclif/config": "^1.6.21", | ||
"@oclif/command": "^1.4.32", | ||
"@oclif/config": "^1.6.27", | ||
"@oclif/tslint": "^1.1.2", | ||
@@ -31,3 +31,3 @@ "@types/ansi-styles": "^3.2.0", | ||
"@types/nock": "^9.1.3", | ||
"@types/node": "^10.1.4", | ||
"@types/node": "^10.3.0", | ||
"@types/opn": "^5.1.0", | ||
@@ -38,3 +38,3 @@ "@types/proxyquire": "^1.3.28", | ||
"chai": "^4.1.2", | ||
"fancy-test": "^1.0.8", | ||
"fancy-test": "^1.1.4", | ||
"mocha": "^5.2.0", | ||
@@ -41,0 +41,0 @@ "nock": "^9.3.0", |
55526
0.83%1217
-0.08%Updated