heroku 8.2.0-beta.2 → 8.2.0-beta.5
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/status.js +2 -2
- package/lib/lib/authorizations/authorizations.js +4 -5
- package/oclif.manifest.json +1 -1
- package/package.json +14 -14
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) - list pipelines you have access to
|
|
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) - disable review apps and/or settings on an existing pipeline
|
|
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
|
package/lib/commands/status.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const color_1 = require("@heroku-cli/color");
|
|
4
4
|
const core_1 = require("@oclif/core");
|
|
5
|
-
const
|
|
5
|
+
const date_fns_1 = require("date-fns");
|
|
6
6
|
const http_call_1 = require("http-call");
|
|
7
7
|
const util_1 = require("../lib/status/util");
|
|
8
8
|
const capitalize = (str) => str.slice(0, 1).toUpperCase() + str.slice(1);
|
|
@@ -33,7 +33,7 @@ class Status extends core_1.Command {
|
|
|
33
33
|
core_1.ux.styledHeader(`${incident.title} ${color_1.default.yellow(incident.created_at)} ${color_1.default.cyan(incident.full_url)}`);
|
|
34
34
|
const padding = (0, util_1.maxBy)(incident.updates, (i) => i.update_type.length).update_type.length + 0;
|
|
35
35
|
for (const u of incident.updates) {
|
|
36
|
-
core_1.ux.log(`${color_1.default.yellow(u.update_type.padEnd(padding))} ${new Date(u.updated_at).toISOString()} (${
|
|
36
|
+
core_1.ux.log(`${color_1.default.yellow(u.update_type.padEnd(padding))} ${new Date(u.updated_at).toISOString()} (${(0, date_fns_1.formatDistanceToNow)(new Date(u.updated_at))} ago)`);
|
|
37
37
|
core_1.ux.log(`${u.contents}\n`);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.display = void 0;
|
|
4
4
|
const core_1 = require("@oclif/core");
|
|
5
|
-
const
|
|
6
|
-
const distanceInWordsToNow = require("date-fns/distance_in_words_to_now");
|
|
5
|
+
const date_fns_1 = require("date-fns");
|
|
7
6
|
function display(auth) {
|
|
8
7
|
const obj = {
|
|
9
8
|
ID: auth.id,
|
|
@@ -18,11 +17,11 @@ function display(auth) {
|
|
|
18
17
|
if (auth.access_token) {
|
|
19
18
|
obj.Token = auth.access_token.token;
|
|
20
19
|
if (auth.updated_at) {
|
|
21
|
-
obj['Updated at'] = `${addSeconds(auth.updated_at, 0)} (${
|
|
20
|
+
obj['Updated at'] = `${(0, date_fns_1.addSeconds)(new Date(auth.updated_at), 0)} (${(0, date_fns_1.formatDistanceToNow)(new Date(auth.updated_at))} ago)`;
|
|
22
21
|
}
|
|
23
22
|
if (auth.access_token.expires_in) {
|
|
24
|
-
const date = addSeconds(new Date(), auth.access_token.expires_in);
|
|
25
|
-
obj['Expires at'] = `${date} (in ${
|
|
23
|
+
const date = (0, date_fns_1.addSeconds)(new Date(), auth.access_token.expires_in);
|
|
24
|
+
obj['Expires at'] = `${date} (in ${(0, date_fns_1.formatDistanceToNow)(date)})`;
|
|
26
25
|
}
|
|
27
26
|
}
|
|
28
27
|
core_1.ux.styledObject(obj, [
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "heroku",
|
|
3
3
|
"description": "CLI to interact with Heroku",
|
|
4
|
-
"version": "8.2.0-beta.
|
|
4
|
+
"version": "8.2.0-beta.5",
|
|
5
5
|
"author": "Jeff Dickey @jdxcode",
|
|
6
6
|
"bin": "./bin/run",
|
|
7
7
|
"bugs": "https://github.com/heroku/cli/issues",
|
|
@@ -9,17 +9,17 @@
|
|
|
9
9
|
"@heroku-cli/color": "1.1.14",
|
|
10
10
|
"@heroku-cli/command": "^10.0.0",
|
|
11
11
|
"@heroku-cli/notifications": "^1.2.2",
|
|
12
|
-
"@heroku-cli/plugin-addons-v5": "^8.
|
|
13
|
-
"@heroku-cli/plugin-apps-v5": "^8.
|
|
14
|
-
"@heroku-cli/plugin-certs-v5": "^8.
|
|
15
|
-
"@heroku-cli/plugin-ci-v5": "^8.
|
|
16
|
-
"@heroku-cli/plugin-container-registry-v5": "^8.
|
|
17
|
-
"@heroku-cli/plugin-orgs-v5": "^8.
|
|
18
|
-
"@heroku-cli/plugin-pg-v5": "^8.2.0-beta.
|
|
12
|
+
"@heroku-cli/plugin-addons-v5": "^8.2.0-beta.3",
|
|
13
|
+
"@heroku-cli/plugin-apps-v5": "^8.2.0-beta.3",
|
|
14
|
+
"@heroku-cli/plugin-certs-v5": "^8.2.0-beta.3",
|
|
15
|
+
"@heroku-cli/plugin-ci-v5": "^8.2.0-beta.3",
|
|
16
|
+
"@heroku-cli/plugin-container-registry-v5": "^8.2.0-beta.3",
|
|
17
|
+
"@heroku-cli/plugin-orgs-v5": "^8.2.0-beta.3",
|
|
18
|
+
"@heroku-cli/plugin-pg-v5": "^8.2.0-beta.3",
|
|
19
19
|
"@heroku-cli/plugin-ps": "^8.1.7",
|
|
20
20
|
"@heroku-cli/plugin-ps-exec": "^2.4.0",
|
|
21
|
-
"@heroku-cli/plugin-redis-v5": "^8.
|
|
22
|
-
"@heroku-cli/plugin-spaces": "^8.
|
|
21
|
+
"@heroku-cli/plugin-redis-v5": "^8.2.0-beta.3",
|
|
22
|
+
"@heroku-cli/plugin-spaces": "^8.2.0-beta.3",
|
|
23
23
|
"@heroku-cli/schema": "^1.0.25",
|
|
24
24
|
"@heroku/buildpack-registry": "^1.0.1",
|
|
25
25
|
"@heroku/eventsource": "^1.0.7",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"mocha": "^5.2.0",
|
|
97
97
|
"nock": "^10.0.6",
|
|
98
98
|
"nyc": "^15.1.0",
|
|
99
|
-
"oclif": "3.
|
|
99
|
+
"oclif": "3.11.3",
|
|
100
100
|
"open": "^8.4.2",
|
|
101
101
|
"proxyquire": "^2.1.0",
|
|
102
102
|
"qqjs": "0.3.11",
|
|
@@ -315,8 +315,8 @@
|
|
|
315
315
|
"build": "rm -rf lib && tsc",
|
|
316
316
|
"postpublish": "rm -f oclif.manifest.json",
|
|
317
317
|
"prepack": "yarn run build && oclif manifest",
|
|
318
|
-
"pretest": "
|
|
319
|
-
"test": "nyc mocha --forbid-only \"test/**/*.unit.test.ts\"",
|
|
318
|
+
"pretest": "tsc -p test --noEmit",
|
|
319
|
+
"test": "yarn prepack && nyc mocha --forbid-only \"test/**/*.unit.test.ts\"",
|
|
320
320
|
"test:acceptance": "mocha --forbid-only \"test/**/*.acceptance.test.ts\" && node ./bin/bats-test-runner",
|
|
321
321
|
"test:integration": "mocha --forbid-only \"test/**/*.integration.test.ts\"",
|
|
322
322
|
"test:smoke": "mocha --forbid-only \"test/**/smoke.acceptance.test.ts\"",
|
|
@@ -324,5 +324,5 @@
|
|
|
324
324
|
"version": "oclif readme --multi && git add README.md ../../docs"
|
|
325
325
|
},
|
|
326
326
|
"types": "lib/index.d.ts",
|
|
327
|
-
"gitHead": "
|
|
327
|
+
"gitHead": "1fdd18d9f3cf694d39763a514cc01f054ca72748"
|
|
328
328
|
}
|