Skip to content

Commit

Permalink
chore: drop cli-colors
Browse files Browse the repository at this point in the history
Refs: #19
  • Loading branch information
RafaelGSS committed Oct 22, 2024
1 parent f78950c commit bbb124a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 148 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Install
run: |
npm install
- name: Run validator
- name: Run test
run: |
npm run test
node setup-test.js
19 changes: 16 additions & 3 deletions ascii.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const clc = require('cli-color')
'use strict'

const util = require('util')

const danger = '\n' +
'\n' +
Expand All @@ -18,11 +20,22 @@ const allGood = '\n' +
'██ ██ ███████ ███████ ██████ ██████ ██████ ██████ ██\n' +
'\n'

const bold = clc.bold
function escapeStyleCode (code) {
return `\u001b[${code}m`
}

function bold (text) {
var left = ''
var right = ''
const formatCodes = util.inspect.colors.bold
left += escapeStyleCode(formatCodes[0])
right = `${escapeStyleCode(formatCodes[1])}${right}`
return `${left}${text}${right}`
}

const vulnerableWarning = bold('The current Node.js version (' + process.version + ') is vulnerable to the following CVEs:')

let separator = '='
var separator = '='
for (let i = 0; i < process.stdout.columns; ++i) {
separator = separator + '='
}
Expand Down
138 changes: 0 additions & 138 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"dependencies": {
"@actions/core": "^1.10.0",
"@pkgjs/nv": "^0.2.1",
"cli-color": "^2.0.3",
"debug": "^4.3.4",
"semver": "^7.3.8",
"undici": "^5.15.1"
Expand Down

0 comments on commit bbb124a

Please sign in to comment.