heroku 8.11.2 → 8.11.3-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -3
- package/lib/commands/authorizations/create.js +5 -1
- package/lib/commands/authorizations/info.js +5 -1
- package/lib/commands/authorizations/revoke.js +5 -1
- package/lib/commands/authorizations/rotate.js +5 -1
- package/lib/commands/authorizations/update.js +5 -1
- package/oclif.manifest.json +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -56,16 +56,13 @@ For other issues, [submit a support ticket](https://help.heroku.com/).
|
|
|
56
56
|
* [`heroku logs`](docs/logs.md) - display recent log output
|
|
57
57
|
* [`heroku maintenance`](docs/maintenance.md) - enable/disable access to app
|
|
58
58
|
* [`heroku members`](docs/members.md) - manage organization members
|
|
59
|
-
* [`heroku notifications`](docs/notifications.md) - display notifications
|
|
60
59
|
* [`heroku orgs`](docs/orgs.md) - manage organizations
|
|
61
60
|
* [`heroku pg`](docs/pg.md) - manage postgresql databases
|
|
62
61
|
* [`heroku pipelines`](docs/pipelines.md) - manage pipelines
|
|
63
62
|
* [`heroku plugins`](docs/plugins.md) - List installed plugins.
|
|
64
63
|
* [`heroku ps`](docs/ps.md) - Client tools for Heroku Exec
|
|
65
|
-
* [`heroku psql`](docs/psql.md) - open a psql shell to the database
|
|
66
64
|
* [`heroku redis`](docs/redis.md) - manage heroku redis instances
|
|
67
65
|
* [`heroku regions`](docs/regions.md) - list available regions for deployment
|
|
68
|
-
* [`heroku releases`](docs/releases.md) - display the releases for an app
|
|
69
66
|
* [`heroku reviewapps`](docs/reviewapps.md) - manage reviewapps in pipelines
|
|
70
67
|
* [`heroku run`](docs/run.md) - run a one-off process inside a Heroku dyno
|
|
71
68
|
* [`heroku sessions`](docs/sessions.md) - OAuth sessions
|
|
@@ -8,7 +8,7 @@ class AuthorizationsCreate extends command_1.Command {
|
|
|
8
8
|
async run() {
|
|
9
9
|
const { flags } = await this.parse(AuthorizationsCreate);
|
|
10
10
|
core_1.ux.action.start('Creating OAuth Authorization');
|
|
11
|
-
const { body: auth } = await this.heroku.post('/oauth/authorizations', {
|
|
11
|
+
const { body: auth, headers } = await this.heroku.post('/oauth/authorizations', {
|
|
12
12
|
body: {
|
|
13
13
|
description: flags.description,
|
|
14
14
|
scope: flags.scope ? flags.scope.split(',') : undefined,
|
|
@@ -16,6 +16,10 @@ class AuthorizationsCreate extends command_1.Command {
|
|
|
16
16
|
},
|
|
17
17
|
});
|
|
18
18
|
core_1.ux.action.stop();
|
|
19
|
+
const apiWarnings = headers['warning-message'] || '';
|
|
20
|
+
if (apiWarnings) {
|
|
21
|
+
core_1.ux.warn(apiWarnings);
|
|
22
|
+
}
|
|
19
23
|
if (flags.short) {
|
|
20
24
|
core_1.ux.log(auth.access_token && auth.access_token.token);
|
|
21
25
|
}
|
|
@@ -6,7 +6,11 @@ const authorizations_1 = require("../../lib/authorizations/authorizations");
|
|
|
6
6
|
class AuthorizationsInfo extends command_1.Command {
|
|
7
7
|
async run() {
|
|
8
8
|
const { args, flags } = await this.parse(AuthorizationsInfo);
|
|
9
|
-
const { body: authentication } = await this.heroku.get(`/oauth/authorizations/${args.id}`);
|
|
9
|
+
const { body: authentication, headers } = await this.heroku.get(`/oauth/authorizations/${args.id}`);
|
|
10
|
+
const apiWarnings = headers['warning-message'] || '';
|
|
11
|
+
if (apiWarnings) {
|
|
12
|
+
core_1.ux.warn(apiWarnings);
|
|
13
|
+
}
|
|
10
14
|
if (flags.json) {
|
|
11
15
|
core_1.ux.styledJSON(authentication);
|
|
12
16
|
}
|
|
@@ -7,7 +7,11 @@ class AuthorizationsRevoke extends command_1.Command {
|
|
|
7
7
|
async run() {
|
|
8
8
|
const { args } = await this.parse(AuthorizationsRevoke);
|
|
9
9
|
core_1.ux.action.start('Revoking OAuth Authorization');
|
|
10
|
-
const { body: auth } = await this.heroku.delete(`/oauth/authorizations/${encodeURIComponent(args.id)}`);
|
|
10
|
+
const { body: auth, headers } = await this.heroku.delete(`/oauth/authorizations/${encodeURIComponent(args.id)}`);
|
|
11
|
+
const apiWarnings = headers['warning-message'] || '';
|
|
12
|
+
if (apiWarnings) {
|
|
13
|
+
core_1.ux.warn(apiWarnings);
|
|
14
|
+
}
|
|
11
15
|
core_1.ux.action.stop(`done, revoked authorization from ${color_1.default.cyan(auth.description)}`);
|
|
12
16
|
}
|
|
13
17
|
}
|
|
@@ -7,7 +7,11 @@ class AuthorizationsRotate extends command_1.Command {
|
|
|
7
7
|
async run() {
|
|
8
8
|
const { args } = await this.parse(AuthorizationsRotate);
|
|
9
9
|
core_1.ux.action.start('Rotating OAuth Authorization');
|
|
10
|
-
const { body: authorization } = await this.heroku.post(`/oauth/authorizations/${encodeURIComponent(args.id)}/actions/regenerate-tokens`);
|
|
10
|
+
const { body: authorization, headers } = await this.heroku.post(`/oauth/authorizations/${encodeURIComponent(args.id)}/actions/regenerate-tokens`);
|
|
11
|
+
const apiWarnings = headers['warning-message'] || '';
|
|
12
|
+
if (apiWarnings) {
|
|
13
|
+
core_1.ux.warn(apiWarnings);
|
|
14
|
+
}
|
|
11
15
|
core_1.ux.action.stop();
|
|
12
16
|
(0, authorizations_1.display)(authorization);
|
|
13
17
|
}
|
|
@@ -14,12 +14,16 @@ class AuthorizationsUpdate extends command_1.Command {
|
|
|
14
14
|
secret: flags['client-secret'],
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
const { body: authentication } = await this.heroku.patch(`/oauth/authorizations/${args.id}`, {
|
|
17
|
+
const { body: authentication, headers } = await this.heroku.patch(`/oauth/authorizations/${args.id}`, {
|
|
18
18
|
body: {
|
|
19
19
|
description: flags.description,
|
|
20
20
|
client,
|
|
21
21
|
},
|
|
22
22
|
});
|
|
23
|
+
const apiWarnings = headers['warning-message'] || '';
|
|
24
|
+
if (apiWarnings) {
|
|
25
|
+
core_1.ux.warn(apiWarnings);
|
|
26
|
+
}
|
|
23
27
|
core_1.ux.action.stop();
|
|
24
28
|
(0, authorizations_1.display)(authentication);
|
|
25
29
|
}
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "heroku",
|
|
3
3
|
"description": "CLI to interact with Heroku",
|
|
4
|
-
"version": "8.11.
|
|
4
|
+
"version": "8.11.3-beta.0",
|
|
5
5
|
"author": "Jeff Dickey @jdxcode",
|
|
6
6
|
"bin": "./bin/run",
|
|
7
7
|
"bugs": "https://github.com/heroku/cli/issues",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@heroku-cli/color": "
|
|
9
|
+
"@heroku-cli/color": "2.0.1",
|
|
10
10
|
"@heroku-cli/command": "^10.0.0",
|
|
11
11
|
"@heroku-cli/command-v9": "npm:@heroku-cli/command@^9.0.2",
|
|
12
12
|
"@heroku-cli/notifications": "^1.2.4",
|
|
13
13
|
"@heroku-cli/plugin-addons-v5": "^8.11.2",
|
|
14
14
|
"@heroku-cli/plugin-apps-v5": "^8.11.2",
|
|
15
|
-
"@heroku-cli/plugin-certs-v5": "^8.11.
|
|
16
|
-
"@heroku-cli/plugin-ci-v5": "^8.11.
|
|
15
|
+
"@heroku-cli/plugin-certs-v5": "^8.11.3-beta.0",
|
|
16
|
+
"@heroku-cli/plugin-ci-v5": "^8.11.3-beta.0",
|
|
17
17
|
"@heroku-cli/plugin-container-registry-v5": "^8.11.2",
|
|
18
18
|
"@heroku-cli/plugin-orgs-v5": "^8.11.2",
|
|
19
19
|
"@heroku-cli/plugin-pg-v5": "^8.11.2",
|
|
@@ -359,5 +359,5 @@
|
|
|
359
359
|
"version": "oclif readme --multi && git add README.md ../../docs"
|
|
360
360
|
},
|
|
361
361
|
"types": "lib/index.d.ts",
|
|
362
|
-
"gitHead": "
|
|
362
|
+
"gitHead": "18d9c3c27e48a0f24082169630276b25fee784a7"
|
|
363
363
|
}
|