Skip to content

Commit

Permalink
chore(deps): bump filesize from 4.0.0 to 10.1.2 (#2890)
Browse files Browse the repository at this point in the history
* ---
updated-dependencies:
- dependency-name: filesize
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update usage of filesize

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Eric Black <eblack@salesforce.com>
  • Loading branch information
dependabot[bot] and eablack authored Jun 17, 2024
1 parent 2568e55 commit 22e2951
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/apps-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@heroku-cli/command": "^9.0.2",
"@heroku/heroku-cli-util": "^8.0.13",
"@oclif/core": "^2.8.11",
"filesize": "^4.0.0",
"filesize": "^10.1.2",
"fs-extra": "^7.0.1",
"inquirer": "^8.2.6",
"js-yaml": "^3.12.1",
Expand Down
14 changes: 7 additions & 7 deletions packages/apps-v5/src/commands/apps/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const cli = require('@heroku/heroku-cli-util')

async function run(context, heroku) {
const filesize = require('filesize')
const {filesize} = require('filesize')
const util = require('util')
const {countBy, snakeCase} = require('lodash')

Expand Down Expand Up @@ -70,7 +70,7 @@ async function run(context, heroku) {
if (info.app.archived_at) data['Archived At'] = cli.formatDate(new Date(info.app.archived_at))
if (info.app.cron_finished_at) data['Cron Finished At'] = cli.formatDate(new Date(info.app.cron_finished_at))
if (info.app.cron_next_run) data['Cron Next Run'] = cli.formatDate(new Date(info.app.cron_next_run))
if (info.app.database_size) data['Database Size'] = filesize(info.app.database_size, {round: 0})
if (info.app.database_size) data['Database Size'] = filesize(info.app.database_size, {standard: 'jedec', round: 0})
if (info.app.create_status !== 'complete') data['Create Status'] = info.app.create_status
if (info.app.space) data.Space = info.app.space.name
if (info.app.space && info.app.internal_routing) data['Internal Routing'] = info.app.internal_routing
Expand All @@ -79,8 +79,8 @@ async function run(context, heroku) {
data['Auto Cert Mgmt'] = info.app.acm
data['Git URL'] = info.app.git_url
data['Web URL'] = info.app.web_url
data['Repo Size'] = filesize(info.app.repo_size, {round: 0})
data['Slug Size'] = filesize(info.app.slug_size, {round: 0})
data['Repo Size'] = filesize(info.app.repo_size, {standard: 'jedec', round: 0})
data['Slug Size'] = filesize(info.app.slug_size, {standard: 'jedec', round: 0})
data.Owner = info.app.owner.email
data.Region = info.app.region.name
data.Dynos = countBy(info.dynos, 'type')
Expand Down Expand Up @@ -116,14 +116,14 @@ async function run(context, heroku) {
if (info.app.archived_at) print('archived_at', cli.formatDate(new Date(info.app.archived_at)))
if (info.app.cron_finished_at) print('cron_finished_at', cli.formatDate(new Date(info.app.cron_finished_at)))
if (info.app.cron_next_run) print('cron_next_run', cli.formatDate(new Date(info.app.cron_next_run)))
if (info.app.database_size) print('database_size', filesize(info.app.database_size, {round: 0}))
if (info.app.database_size) print('database_size', filesize(info.app.database_size, {standard: 'jedec', round: 0}))
if (info.app.create_status !== 'complete') print('create_status', info.app.create_status)
if (info.pipeline_coupling) print('pipeline', `${info.pipeline_coupling.pipeline.name}:${info.pipeline_coupling.stage}`)

print('git_url', info.app.git_url)
print('web_url', info.app.web_url)
print('repo_size', filesize(info.app.repo_size, {round: 0}))
print('slug_size', filesize(info.app.slug_size, {round: 0}))
print('repo_size', filesize(info.app.repo_size, {standard: 'jedec', round: 0}))
print('slug_size', filesize(info.app.slug_size, {standard: 'jedec', round: 0}))
print('owner', info.app.owner.email)
print('region', info.app.region.name)
print('dynos', util.inspect(countBy(info.dynos, 'type')))
Expand Down
2 changes: 1 addition & 1 deletion packages/pg-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@heroku/heroku-cli-util": "^8.0.13",
"bytes": "^3.1.0",
"debug": "^4.1.1",
"filesize": "^4.0.0",
"filesize": "^10.1.2",
"lodash": "^4.17.21",
"mkdirp": "^0.5.2",
"node-notifier": "^10.0.0",
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,7 @@ __metadata:
"@oclif/plugin-legacy": ^1.3.0
chai: ^4.2.0
chai-as-promised: ^7.1.1
filesize: ^4.0.0
filesize: ^10.1.2
fs-extra: ^7.0.1
inquirer: ^8.2.6
js-yaml: ^3.12.1
Expand Down Expand Up @@ -1494,7 +1494,7 @@ __metadata:
chai-as-promised: ^7.1.1
cross-env: ^7.0.2
debug: ^4.1.1
filesize: ^4.0.0
filesize: ^10.1.2
heroku-client: ^3.0.7
lodash: ^4.17.21
mkdirp: ^0.5.2
Expand Down Expand Up @@ -9836,10 +9836,10 @@ __metadata:
languageName: node
linkType: hard

"filesize@npm:^4.0.0":
version: 4.0.0
resolution: "filesize@npm:4.0.0"
checksum: 712e4527240e40cf02d25007f2fe540b9f4b70f3fb57b25fa4eadf645ccfcc09d74f13228c6291ac02730af2ada181e430e416c4ab9ac6fef5a1fa7ec1ff9d1f
"filesize@npm:^10.1.2":
version: 10.1.2
resolution: "filesize@npm:10.1.2"
checksum: 584cd30415e27e19effd27da7178b7b95dbab065d7b954a5cd763318db55afc12f36077aeea3c22c94849d66d0c82ea48e644c66d339f224e8e928e666aa3e4a
languageName: node
linkType: hard

Expand Down

0 comments on commit 22e2951

Please sign in to comment.