heroku 9.3.0-alpha.3 → 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.
@@ -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, argv, args } = await this.parse(AccessIndex);
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-callback-reference, unicorn/no-array-method-this-argument
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-callback-reference, unicorn/no-array-method-this-argument
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
  }
@@ -13,7 +13,7 @@ class Versions extends command_1.Command {
13
13
  }
14
14
  const registry = new buildpack_registry_1.BuildpackRegistry();
15
15
  true_myth_1.Result.match({
16
- Ok: _ => { },
16
+ Ok: () => { },
17
17
  Err: err => {
18
18
  this.error(`Could not find the buildpack.\n${err}`);
19
19
  },
@@ -10,7 +10,7 @@ class OrgsOpen extends command_1.Command {
10
10
  await open(url);
11
11
  }
12
12
  async run() {
13
- const { flags, argv, args } = await this.parse(OrgsOpen);
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);