Skip to content

Commit

Permalink
fix: Merge remote-tracking branch 'Krinkle/deps'
Browse files Browse the repository at this point in the history
  • Loading branch information
prantlf committed May 1, 2022
2 parents b9033ef + e3faea1 commit 1396cc0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 231 deletions.
6 changes: 2 additions & 4 deletions lib/util/printers.js
@@ -1,18 +1,16 @@
'use strict'

const clc = require('./cli-color-optional')
const padLeft = require('pad-left')
const padRight = require('pad-right')

function padNumber (number) {
return padLeft(number.toString(), 5, ' ')
return number.toString().padStart(5, ' ')
}

function formatBrowserName (browser) {
const name = browser.name
.replace(/^(\w+).*$/, '$1')
.replace('Headless', '')
return padRight(name, 7, ' ')
return name.padEnd(7, ' ')
}

function printStats (browser, meaning, total, success, failed, skipped) {
Expand Down
7 changes: 2 additions & 5 deletions package.json
Expand Up @@ -23,7 +23,7 @@
}
],
"engines": {
"node": ">= 6"
"node": ">= 8"
},
"main": "index.js",
"files": [
Expand Down Expand Up @@ -52,10 +52,7 @@
]
},
"dependencies": {
"cli-color": "2.0.2",
"mkdirp": "1.0.4",
"pad-left": "2.1.0",
"pad-right": "0.2.2"
"cli-color": "2.0.2"
},
"devDependencies": {
"@semantic-release/changelog": "6.0.1",
Expand Down

0 comments on commit 1396cc0

Please sign in to comment.