heroku 8.2.0-beta.1 → 8.2.0-beta.11
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 +4 -0
- package/lib/commands/status.js +2 -2
- package/lib/lib/authorizations/authorizations.js +4 -5
- package/oclif.manifest.json +1 -1
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -37,10 +37,12 @@ For other issues, [submit a support ticket](https://help.heroku.com/).
|
|
|
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
39
|
* [`heroku auth`](docs/auth.md) - check 2fa status
|
|
40
|
+
* [`heroku authorizations`](docs/authorizations.md) - OAuth authorizations
|
|
40
41
|
* [`heroku autocomplete`](docs/autocomplete.md) - display autocomplete installation instructions
|
|
41
42
|
* [`heroku buildpacks`](docs/buildpacks.md) - scripts used to compile apps
|
|
42
43
|
* [`heroku certs`](docs/certs.md) - a topic for the ssl plugin
|
|
43
44
|
* [`heroku ci`](docs/ci.md) - run an application test suite on Heroku
|
|
45
|
+
* [`heroku clients`](docs/clients.md) - OAuth clients on the platform
|
|
44
46
|
* [`heroku config`](docs/config.md) - environment variables of apps
|
|
45
47
|
* [`heroku container`](docs/container.md) - Use containers to build and deploy Heroku apps
|
|
46
48
|
* [`heroku domains`](docs/domains.md) - custom domains for apps
|
|
@@ -60,11 +62,13 @@ For other issues, [submit a support ticket](https://help.heroku.com/).
|
|
|
60
62
|
* [`heroku pipelines`](docs/pipelines.md) - list pipelines you have access to
|
|
61
63
|
* [`heroku plugins`](docs/plugins.md) - List installed plugins.
|
|
62
64
|
* [`heroku ps`](docs/ps.md) - Client tools for Heroku Exec
|
|
65
|
+
* [`heroku psql`](docs/psql.md) - open a psql shell to the database
|
|
63
66
|
* [`heroku redis`](docs/redis.md) - manage heroku redis instances
|
|
64
67
|
* [`heroku regions`](docs/regions.md) - list available regions for deployment
|
|
65
68
|
* [`heroku releases`](docs/releases.md) - display the releases for an app
|
|
66
69
|
* [`heroku reviewapps`](docs/reviewapps.md) - disable review apps and/or settings on an existing pipeline
|
|
67
70
|
* [`heroku run`](docs/run.md) - run a one-off process inside a Heroku dyno
|
|
71
|
+
* [`heroku sessions`](docs/sessions.md) - OAuth sessions
|
|
68
72
|
* [`heroku spaces`](docs/spaces.md) - manage heroku private spaces
|
|
69
73
|
* [`heroku status`](docs/status.md) - display current status of the Heroku platform
|
|
70
74
|
* [`heroku teams`](docs/teams.md) - manage teams
|
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.11",
|
|
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",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"shell-quote": "^1.6.1",
|
|
59
59
|
"tmp": "^0.0.33",
|
|
60
60
|
"true-myth": "2.2.3",
|
|
61
|
+
"tslib": "1.14.1",
|
|
61
62
|
"urijs": "^1.19.11",
|
|
62
63
|
"uuid": "3.3.2",
|
|
63
64
|
"valid-url": "^1.0.9",
|
|
@@ -95,14 +96,13 @@
|
|
|
95
96
|
"mocha": "^5.2.0",
|
|
96
97
|
"nock": "^10.0.6",
|
|
97
98
|
"nyc": "^15.1.0",
|
|
98
|
-
"oclif": "3.
|
|
99
|
+
"oclif": "3.11.3",
|
|
99
100
|
"open": "^8.4.2",
|
|
100
101
|
"proxyquire": "^2.1.0",
|
|
101
102
|
"qqjs": "0.3.11",
|
|
102
103
|
"read-pkg": "^4.0.1",
|
|
103
104
|
"sinon": "^7.2.4",
|
|
104
105
|
"ts-node": "^10.9.1",
|
|
105
|
-
"tslib": "1.14.1",
|
|
106
106
|
"typescript": "4.8.4"
|
|
107
107
|
},
|
|
108
108
|
"engines": {
|
|
@@ -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 && cd ../.. && yarn build",
|
|
319
|
+
"test": "yarn pretest && 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": "9d84949bca8a7238513b290957d19e2dbe6d4165"
|
|
328
328
|
}
|