Skip to content

Commit

Permalink
fixup! deps: move from byte-size to pretty-bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Jul 22, 2021
1 parent e7d6d7b commit 06a3450
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions lib/view.js
Expand Up @@ -315,7 +315,7 @@ class View extends BaseCommand {
tags.push(`${style.bright(color.green(t))}: ${version}`)
})
const unpackedSize = manifest.dist.unpackedSize &&
prettyBytes(manifest.dist.unpackedSize).split(' ')
prettyBytes(manifest.dist.unpackedSize)
const licenseField = manifest.license || 'Proprietary'
const info = {
name: color.green(manifest.name),
Expand Down Expand Up @@ -356,7 +356,7 @@ class View extends BaseCommand {
manifest.dist.integrity && color.yellow(manifest.dist.integrity),
fileCount:
manifest.dist.fileCount && color.yellow(manifest.dist.fileCount),
unpackedSize: unpackedSize && color.yellow(unpackedSize[0]) + ' ' + unpackedSize[1],
unpackedSize: unpackedSize && color.yellow(unpackedSize),
}
if (info.license.toLowerCase().trim() === 'proprietary')
info.license = style.bright(color.red(info.license))
Expand Down
26 changes: 13 additions & 13 deletions tap-snapshots/test/lib/view.js.test.cjs
Expand Up @@ -77,7 +77,7 @@ dist
.tarball:http://hm.blue.com/1.0.0.tgz
.shasum:123
.integrity:---
.unpackedSize:[33m1[39m B
.unpackedSize:[33m1 B[39m
dist-tags:
latest: 1.0.0
Expand All @@ -94,7 +94,7 @@ dist
.tarball:http://hm.blue.com/1.0.0.tgz
.shasum:123
.integrity:---
.unpackedSize:[33m1[39m B
.unpackedSize:[33m1 B[39m
dist-tags:
latest: 1.0.0
Expand All @@ -118,7 +118,7 @@ dist
.tarball:http://hm.green.com/1.0.0.tgz
.shasum:123
.integrity:---
.unpackedSize:[33m1[39m B
.unpackedSize:[33m1 B[39m
dependencies:
red: 1.0.0
Expand Down Expand Up @@ -178,7 +178,7 @@ dist
.tarball:http://hm.orange.com/1.0.0.tgz
.shasum:123
.integrity:---
.unpackedSize:[33m1[39m B
.unpackedSize:[33m1 B[39m
dist-tags:
latest: 1.0.0
Expand All @@ -200,7 +200,7 @@ dist
.tarball:http://hm.green.com/1.0.0.tgz
.shasum:123
.integrity:---
.unpackedSize:[33m1[39m B
.unpackedSize:[33m1 B[39m
dependencies:
red: 1.0.0
Expand All @@ -223,7 +223,7 @@ dist
.tarball:http://hm.pink.com/1.0.0.tgz
.shasum:123
.integrity:---
.unpackedSize:[33m1[39m B
.unpackedSize:[33m1 B[39m
dist-tags:
latest: 1.0.0
Expand All @@ -238,7 +238,7 @@ dist
.tarball:http://hm.black.com/1.0.0.tgz
.shasum:123
.integrity:---
.unpackedSize:[33m1[39m B
.unpackedSize:[33m1 B[39m
dependencies:
0: 1.0.0
Expand Down Expand Up @@ -280,7 +280,7 @@ dist
.tarball:http://hm.cyan.com/1.0.0.tgz
.shasum:123
.integrity:---
.unpackedSize:[33m1[39m B
.unpackedSize:[33m1 B[39m
dist-tags:
latest: 1.0.0
Expand All @@ -297,7 +297,7 @@ dist
.tarball:http://hm.blue.com/1.0.0.tgz
.shasum:123
.integrity:---
.unpackedSize:[33m1[39m B
.unpackedSize:[33m1 B[39m
dist-tags:
latest: 1.0.0
Expand Down Expand Up @@ -401,7 +401,7 @@ dist
.tarball:http://hm.green.com/1.0.0.tgz
.shasum:123
.integrity:---
.unpackedSize:[33m1[39m B
.unpackedSize:[33m1 B[39m
dependencies:
red: 1.0.0
Expand All @@ -421,7 +421,7 @@ dist
.tarball:http://hm.orange.com/1.0.0.tgz
.shasum:123
.integrity:---
.unpackedSize:[33m1[39m B
.unpackedSize:[33m1 B[39m
dist-tags:
latest: 1.0.0
Expand Down Expand Up @@ -469,7 +469,7 @@ dist
.tarball:http://hm.green.com/1.0.0.tgz
.shasum:123
.integrity:---
.unpackedSize:[33m1[39m B
.unpackedSize:[33m1 B[39m
dependencies:
red: 1.0.0
Expand All @@ -496,7 +496,7 @@ dist
.tarball:http://hm.pink.com/1.0.0.tgz
.shasum:123
.integrity:---
.unpackedSize:[33m1[39m B
.unpackedSize:[33m1 B[39m
dist-tags:
latest: 1.0.0
Expand Down

0 comments on commit 06a3450

Please sign in to comment.