heroku 8.11.1 → 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 +1 -4
- package/lib/commands/auth/token.js +2 -1
- 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/lib/commands/domains/index.d.ts +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +18 -15
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ For other issues, [submit a support ticket](https://help.heroku.com/).
|
|
|
36
36
|
* [`heroku access`](docs/access.md) - manage user access to apps
|
|
37
37
|
* [`heroku addons`](docs/addons.md) - tools and services for developing, extending, and operating your app
|
|
38
38
|
* [`heroku apps`](docs/apps.md) - manage apps on Heroku
|
|
39
|
-
* [`heroku auth`](docs/auth.md) -
|
|
39
|
+
* [`heroku auth`](docs/auth.md) - manage authentication for your Heroku account
|
|
40
40
|
* [`heroku authorizations`](docs/authorizations.md) - OAuth authorizations
|
|
41
41
|
* [`heroku autocomplete`](docs/autocomplete.md) - display autocomplete installation instructions
|
|
42
42
|
* [`heroku buildpacks`](docs/buildpacks.md) - scripts used to compile apps
|
|
@@ -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
|
|
@@ -11,10 +11,11 @@ class AuthToken extends command_1.Command {
|
|
|
11
11
|
try {
|
|
12
12
|
const { body: tokens } = await this.heroku.get('/oauth/authorizations', { retryAuth: false });
|
|
13
13
|
const token = tokens.find((t) => t.access_token && t.access_token.token === this.heroku.auth);
|
|
14
|
+
const isInternal = token ? token.user.email.includes('@heroku.com') : false;
|
|
14
15
|
if (token && token.access_token.expires_in) {
|
|
15
16
|
const d = new Date();
|
|
16
17
|
d.setSeconds(d.getSeconds() + token.access_token.expires_in);
|
|
17
|
-
this.warn(`token will expire ${(0, date_fns_1.formatRelative)(d, new Date())}\
|
|
18
|
+
this.warn(`token will expire ${(0, date_fns_1.formatRelative)(d, new Date())}\n${isInternal ? 'All tokens expire one year after we generate it.' : `To generate a long-lived token, use ${color_1.default.cmd('heroku authorizations:create')}.`}`);
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
21
|
catch (error) {
|
|
@@ -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
|
}
|
|
@@ -7,8 +7,8 @@ export default class DomainsIndex extends Command {
|
|
|
7
7
|
extended: import("@oclif/core/lib/interfaces").Flag<boolean>;
|
|
8
8
|
'no-header': import("@oclif/core/lib/interfaces").Flag<boolean>;
|
|
9
9
|
sort: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
10
|
-
columns: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
11
10
|
filter: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
11
|
+
columns: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
12
12
|
csv: import("@oclif/core/lib/interfaces").Flag<boolean>;
|
|
13
13
|
output: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
14
14
|
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
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
|
-
"@heroku-cli/plugin-addons-v5": "^8.11.
|
|
14
|
-
"@heroku-cli/plugin-apps-v5": "^8.11.
|
|
15
|
-
"@heroku-cli/plugin-certs-v5": "^8.11.
|
|
16
|
-
"@heroku-cli/plugin-ci-v5": "^8.11.
|
|
17
|
-
"@heroku-cli/plugin-container-registry-v5": "^8.11.
|
|
18
|
-
"@heroku-cli/plugin-orgs-v5": "^8.11.
|
|
19
|
-
"@heroku-cli/plugin-pg-v5": "^8.11.
|
|
13
|
+
"@heroku-cli/plugin-addons-v5": "^8.11.2",
|
|
14
|
+
"@heroku-cli/plugin-apps-v5": "^8.11.2",
|
|
15
|
+
"@heroku-cli/plugin-certs-v5": "^8.11.3-beta.0",
|
|
16
|
+
"@heroku-cli/plugin-ci-v5": "^8.11.3-beta.0",
|
|
17
|
+
"@heroku-cli/plugin-container-registry-v5": "^8.11.2",
|
|
18
|
+
"@heroku-cli/plugin-orgs-v5": "^8.11.2",
|
|
19
|
+
"@heroku-cli/plugin-pg-v5": "^8.11.2",
|
|
20
20
|
"@heroku-cli/plugin-ps": "^8.1.7",
|
|
21
21
|
"@heroku-cli/plugin-ps-exec": "^2.4.0",
|
|
22
22
|
"@heroku-cli/plugin-redis-v5": "^8.11.1",
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
"got": "^9.6.0",
|
|
58
58
|
"heroku-cli-util": "^8.0.12",
|
|
59
59
|
"http-call": "5.3.0",
|
|
60
|
-
"inquirer": "^
|
|
60
|
+
"inquirer": "^8.2.6",
|
|
61
61
|
"lodash": "^4.17.21",
|
|
62
62
|
"netrc-parser": "3.1.6",
|
|
63
63
|
"node-fetch": "^2.6.7",
|
|
64
64
|
"phoenix": "^1.6.14",
|
|
65
65
|
"rollbar": "^2.26.2",
|
|
66
|
-
"semver": "
|
|
66
|
+
"semver": "7.6.0",
|
|
67
67
|
"shell-escape": "^0.2.0",
|
|
68
68
|
"shell-quote": "^1.8.1",
|
|
69
69
|
"tmp": "^0.0.33",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@types/fs-extra": "^5.0.5",
|
|
85
85
|
"@types/glob": "^7.1.1",
|
|
86
86
|
"@types/got": "^9.6.7",
|
|
87
|
-
"@types/inquirer": "
|
|
87
|
+
"@types/inquirer": "^8.2.10",
|
|
88
88
|
"@types/lodash": "^4.14.123",
|
|
89
89
|
"@types/mocha": "^5.2.6",
|
|
90
90
|
"@types/nock": "^9.3.1",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"chai": "^4.2.0",
|
|
105
105
|
"globby": "^10.0.2",
|
|
106
106
|
"lodash": "^4.17.11",
|
|
107
|
-
"mocha": "^
|
|
107
|
+
"mocha": "^9.2.2",
|
|
108
108
|
"nock": "^10.0.6",
|
|
109
109
|
"nyc": "^15.1.0",
|
|
110
110
|
"oclif": "3.11.3",
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
"watch-extensions": "ts",
|
|
144
144
|
"recursive": true,
|
|
145
145
|
"reporter": "spec",
|
|
146
|
-
"timeout":
|
|
146
|
+
"timeout": 360000
|
|
147
147
|
},
|
|
148
148
|
"oclif": {
|
|
149
149
|
"additionalHelpFlags": [
|
|
@@ -194,6 +194,9 @@
|
|
|
194
194
|
"apps": {
|
|
195
195
|
"description": "manage apps on Heroku"
|
|
196
196
|
},
|
|
197
|
+
"auth": {
|
|
198
|
+
"description": "manage authentication for your Heroku account"
|
|
199
|
+
},
|
|
197
200
|
"authorizations": {
|
|
198
201
|
"description": "OAuth authorizations"
|
|
199
202
|
},
|
|
@@ -356,5 +359,5 @@
|
|
|
356
359
|
"version": "oclif readme --multi && git add README.md ../../docs"
|
|
357
360
|
},
|
|
358
361
|
"types": "lib/index.d.ts",
|
|
359
|
-
"gitHead": "
|
|
362
|
+
"gitHead": "18d9c3c27e48a0f24082169630276b25fee784a7"
|
|
360
363
|
}
|