Skip to content

Commit

Permalink
chore: remove schemaless URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Sep 2, 2021
1 parent 3369333 commit 6422a5a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions packages/cli/bin/cli/get-url.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
'use strict'

const prependHttp = require('prepend-http')

module.exports = input => {
const value = input || process.env.DEPLOY_URL || process.env.DEPLOY_PRIME_URL || process.env.URL
const collection = Array.isArray(value) ? value : value.split(',').map(item => item.trim())
return collection.map(prependHttp)
return Array.isArray(value) ? value : value.split(',').map(item => item.trim())
}
3 changes: 1 addition & 2 deletions packages/cli/bin/view/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

const spinner = require('ora')({ text: '', color: 'gray' })
const indentString = require('indent-string')
const humanizeUrl = require('humanize-url')
const httpStatus = require('http-status')
const logSymbols = require('log-symbols')
const prettyMs = require('pretty-ms')
Expand All @@ -24,7 +23,7 @@ const renderResume = state => {
const allRules = state.data[url]
const statusCode = state.status[url]
const humanStatusCode = gray(`${statusCode} ${httpStatus[statusCode]}`)
let str = `${humanizeUrl(url)} ${humanStatusCode} ${EOL}`
let str = `${url} ${humanStatusCode} ${EOL}`
Object.keys(allRules).forEach(ruleName => {
const rules = allRules[ruleName]
str += `${EOL}${indentString(`${ruleName}`, 2)}${EOL}${EOL}`
Expand Down
1 change: 0 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"cosmiconfig": "~7.0.0",
"github-build": "~1.2.2",
"http-status": "~1.5.0",
"humanize-url": "~2.1.1",
"indent-string": "~4.0.0",
"lodash": "~4.17.21",
"log-symbols": "~4.1.0",
Expand Down

0 comments on commit 6422a5a

Please sign in to comment.