heroku 9.3.0-alpha.2 → 9.3.0-alpha.4
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/lib/commands/access/index.js +1 -1
- package/lib/commands/apps/errors.js +1 -1
- package/lib/commands/buildpacks/add.js +1 -1
- package/lib/commands/buildpacks/info.js +1 -1
- package/lib/commands/buildpacks/set.js +1 -1
- package/lib/commands/buildpacks/versions.js +1 -1
- package/lib/commands/orgs/open.js +1 -1
- package/lib/file.js +0 -2
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
|
@@ -48,7 +48,7 @@ function buildCollaboratorsArray(collaboratorsRaw, admins) {
|
|
|
48
48
|
class AccessIndex extends command_1.Command {
|
|
49
49
|
async run() {
|
|
50
50
|
var _a, _b;
|
|
51
|
-
const { flags
|
|
51
|
+
const { flags } = await this.parse(AccessIndex);
|
|
52
52
|
const { app: appName, json } = flags;
|
|
53
53
|
const { body: app } = await this.heroku.get(`/apps/${appName}`);
|
|
54
54
|
let { body: collaborators } = await this.heroku.get(`/apps/${appName}/collaborators`);
|
|
@@ -37,7 +37,7 @@ const sumErrors = (errors) => {
|
|
|
37
37
|
class Errors extends command_1.Command {
|
|
38
38
|
async run() {
|
|
39
39
|
const { flags } = await this.parse(Errors);
|
|
40
|
-
const hours = Number.parseInt(flags.hours);
|
|
40
|
+
const hours = Number.parseInt(flags.hours, 10);
|
|
41
41
|
const NOW = new Date().toISOString();
|
|
42
42
|
const YESTERDAY = new Date(Date.now() - (hours * 60 * 60 * 1000)).toISOString();
|
|
43
43
|
const DATE_QUERY = `start_time=${YESTERDAY}&end_time=${NOW}&step=1h`;
|
|
@@ -17,7 +17,7 @@ class Add extends command_1.Command {
|
|
|
17
17
|
spliceIndex = buildpacks.length;
|
|
18
18
|
}
|
|
19
19
|
else {
|
|
20
|
-
// eslint-disable-next-line unicorn/no-array-
|
|
20
|
+
// eslint-disable-next-line unicorn/no-array-method-this-argument
|
|
21
21
|
const foundIndex = buildpackCommand.findIndex(buildpacks, flags.index);
|
|
22
22
|
spliceIndex = (foundIndex === -1) ? buildpacks.length : foundIndex;
|
|
23
23
|
}
|
|
@@ -9,7 +9,7 @@ class Info extends command_1.Command {
|
|
|
9
9
|
const { args } = await this.parse(Info);
|
|
10
10
|
const registry = new buildpack_registry_1.BuildpackRegistry();
|
|
11
11
|
true_myth_1.Result.match({
|
|
12
|
-
Ok:
|
|
12
|
+
Ok: () => { },
|
|
13
13
|
Err: err => {
|
|
14
14
|
this.error(`Could not publish the buildpack.\n${err}`);
|
|
15
15
|
},
|
|
@@ -17,7 +17,7 @@ class Set extends command_1.Command {
|
|
|
17
17
|
spliceIndex = 0;
|
|
18
18
|
}
|
|
19
19
|
else {
|
|
20
|
-
// eslint-disable-next-line unicorn/no-array-
|
|
20
|
+
// eslint-disable-next-line unicorn/no-array-method-this-argument
|
|
21
21
|
const foundIndex = buildpackCommand.findIndex(buildpacks, flags.index);
|
|
22
22
|
spliceIndex = (foundIndex === -1) ? buildpacks.length : foundIndex;
|
|
23
23
|
}
|
|
@@ -10,7 +10,7 @@ class OrgsOpen extends command_1.Command {
|
|
|
10
10
|
await open(url);
|
|
11
11
|
}
|
|
12
12
|
async run() {
|
|
13
|
-
const { flags
|
|
13
|
+
const { flags } = await this.parse(OrgsOpen);
|
|
14
14
|
const team = flags.team;
|
|
15
15
|
const { body: org } = await this.heroku.get(`/teams/${team}`);
|
|
16
16
|
await OrgsOpen.openUrl(`https://dashboard.heroku.com/teams/${org.name}`);
|
package/lib/file.js
CHANGED
|
@@ -9,7 +9,6 @@ function exists(f) {
|
|
|
9
9
|
}
|
|
10
10
|
exports.exists = exists;
|
|
11
11
|
async function stat(file) {
|
|
12
|
-
// debug('stat', file)
|
|
13
12
|
return deps_1.default.fs.stat(file);
|
|
14
13
|
}
|
|
15
14
|
exports.stat = stat;
|
|
@@ -42,7 +41,6 @@ async function removeEmptyDirs(dir) {
|
|
|
42
41
|
throw error;
|
|
43
42
|
}
|
|
44
43
|
const dirs = files.filter(f => f.stat.isDirectory()).map(f => f.path);
|
|
45
|
-
// eslint-disable-next-line unicorn/no-array-callback-reference
|
|
46
44
|
for (const p of dirs.map(removeEmptyDirs))
|
|
47
45
|
await p;
|
|
48
46
|
files = await ls(dir);
|
package/oclif.manifest.json
CHANGED
|
@@ -13779,5 +13779,5 @@
|
|
|
13779
13779
|
]
|
|
13780
13780
|
}
|
|
13781
13781
|
},
|
|
13782
|
-
"version": "9.3.0-alpha.
|
|
13782
|
+
"version": "9.3.0-alpha.4"
|
|
13783
13783
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "heroku",
|
|
3
3
|
"description": "CLI to interact with Heroku",
|
|
4
|
-
"version": "9.3.0-alpha.
|
|
4
|
+
"version": "9.3.0-alpha.4",
|
|
5
5
|
"author": "Heroku",
|
|
6
6
|
"bin": "./bin/run",
|
|
7
7
|
"bugs": "https://github.com/heroku/cli/issues",
|
|
@@ -388,5 +388,5 @@
|
|
|
388
388
|
"version": "oclif readme --multi && git add README.md ../../docs"
|
|
389
389
|
},
|
|
390
390
|
"types": "lib/index.d.ts",
|
|
391
|
-
"gitHead": "
|
|
391
|
+
"gitHead": "3f8aaf9e0a33a8aa7906f4b84ade7ec2f5a934b4"
|
|
392
392
|
}
|