Skip to content

Commit 06a3450

Browse files
committed
fixup! deps: move from byte-size to pretty-bytes
1 parent e7d6d7b commit 06a3450

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

lib/view.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ class View extends BaseCommand {
315315
tags.push(`${style.bright(color.green(t))}: ${version}`)
316316
})
317317
const unpackedSize = manifest.dist.unpackedSize &&
318-
prettyBytes(manifest.dist.unpackedSize).split(' ')
318+
prettyBytes(manifest.dist.unpackedSize)
319319
const licenseField = manifest.license || 'Proprietary'
320320
const info = {
321321
name: color.green(manifest.name),
@@ -356,7 +356,7 @@ class View extends BaseCommand {
356356
manifest.dist.integrity && color.yellow(manifest.dist.integrity),
357357
fileCount:
358358
manifest.dist.fileCount && color.yellow(manifest.dist.fileCount),
359-
unpackedSize: unpackedSize && color.yellow(unpackedSize[0]) + ' ' + unpackedSize[1],
359+
unpackedSize: unpackedSize && color.yellow(unpackedSize),
360360
}
361361
if (info.license.toLowerCase().trim() === 'proprietary')
362362
info.license = style.bright(color.red(info.license))

tap-snapshots/test/lib/view.js.test.cjs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ dist
7777
.tarball:http://hm.blue.com/1.0.0.tgz
7878
.shasum:123
7979
.integrity:---
80-
.unpackedSize:[33m1[39m B
80+
.unpackedSize:[33m1 B[39m
8181
8282
dist-tags:
8383
latest: 1.0.0
@@ -94,7 +94,7 @@ dist
9494
.tarball:http://hm.blue.com/1.0.0.tgz
9595
.shasum:123
9696
.integrity:---
97-
.unpackedSize:[33m1[39m B
97+
.unpackedSize:[33m1 B[39m
9898
9999
dist-tags:
100100
latest: 1.0.0
@@ -118,7 +118,7 @@ dist
118118
.tarball:http://hm.green.com/1.0.0.tgz
119119
.shasum:123
120120
.integrity:---
121-
.unpackedSize:[33m1[39m B
121+
.unpackedSize:[33m1 B[39m
122122
123123
dependencies:
124124
red: 1.0.0
@@ -178,7 +178,7 @@ dist
178178
.tarball:http://hm.orange.com/1.0.0.tgz
179179
.shasum:123
180180
.integrity:---
181-
.unpackedSize:[33m1[39m B
181+
.unpackedSize:[33m1 B[39m
182182
183183
dist-tags:
184184
latest: 1.0.0
@@ -200,7 +200,7 @@ dist
200200
.tarball:http://hm.green.com/1.0.0.tgz
201201
.shasum:123
202202
.integrity:---
203-
.unpackedSize:[33m1[39m B
203+
.unpackedSize:[33m1 B[39m
204204
205205
dependencies:
206206
red: 1.0.0
@@ -223,7 +223,7 @@ dist
223223
.tarball:http://hm.pink.com/1.0.0.tgz
224224
.shasum:123
225225
.integrity:---
226-
.unpackedSize:[33m1[39m B
226+
.unpackedSize:[33m1 B[39m
227227
228228
dist-tags:
229229
latest: 1.0.0
@@ -238,7 +238,7 @@ dist
238238
.tarball:http://hm.black.com/1.0.0.tgz
239239
.shasum:123
240240
.integrity:---
241-
.unpackedSize:[33m1[39m B
241+
.unpackedSize:[33m1 B[39m
242242
243243
dependencies:
244244
0: 1.0.0
@@ -280,7 +280,7 @@ dist
280280
.tarball:http://hm.cyan.com/1.0.0.tgz
281281
.shasum:123
282282
.integrity:---
283-
.unpackedSize:[33m1[39m B
283+
.unpackedSize:[33m1 B[39m
284284
285285
dist-tags:
286286
latest: 1.0.0
@@ -297,7 +297,7 @@ dist
297297
.tarball:http://hm.blue.com/1.0.0.tgz
298298
.shasum:123
299299
.integrity:---
300-
.unpackedSize:[33m1[39m B
300+
.unpackedSize:[33m1 B[39m
301301
302302
dist-tags:
303303
latest: 1.0.0
@@ -401,7 +401,7 @@ dist
401401
.tarball:http://hm.green.com/1.0.0.tgz
402402
.shasum:123
403403
.integrity:---
404-
.unpackedSize:[33m1[39m B
404+
.unpackedSize:[33m1 B[39m
405405
406406
dependencies:
407407
red: 1.0.0
@@ -421,7 +421,7 @@ dist
421421
.tarball:http://hm.orange.com/1.0.0.tgz
422422
.shasum:123
423423
.integrity:---
424-
.unpackedSize:[33m1[39m B
424+
.unpackedSize:[33m1 B[39m
425425
426426
dist-tags:
427427
latest: 1.0.0
@@ -469,7 +469,7 @@ dist
469469
.tarball:http://hm.green.com/1.0.0.tgz
470470
.shasum:123
471471
.integrity:---
472-
.unpackedSize:[33m1[39m B
472+
.unpackedSize:[33m1 B[39m
473473
474474
dependencies:
475475
red: 1.0.0
@@ -496,7 +496,7 @@ dist
496496
.tarball:http://hm.pink.com/1.0.0.tgz
497497
.shasum:123
498498
.integrity:---
499-
.unpackedSize:[33m1[39m B
499+
.unpackedSize:[33m1 B[39m
500500
501501
dist-tags:
502502
latest: 1.0.0

0 commit comments

Comments
 (0)