Skip to content

Commit

Permalink
chore(deps): replace chalk with picocolors
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuzzyma committed Nov 19, 2024
1 parent a86c54c commit 6cf75dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@
"@babel/runtime": "^7.12.5",
"@types/aria-query": "^5.0.1",
"aria-query": "5.3.0",
"chalk": "^4.1.0",
"dom-accessibility-api": "^0.5.9",
"lz-string": "^1.5.0",
"picocolors": "^1.1.1",
"pretty-format": "^27.0.2"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions src/get-user-code-frame.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// We try to load node dependencies
let chalk = null
let picocolors = null
let readFileSync = null
let codeFrameColumns = null

Expand All @@ -11,7 +11,7 @@ try {
module,
'@babel/code-frame',
).codeFrameColumns
chalk = nodeRequire.call(module, 'chalk')
picocolors = nodeRequire.call(module, 'picocolors')
} catch {
// We're in a browser environment
}
Expand Down Expand Up @@ -46,7 +46,7 @@ function getCodeFrame(frame) {
linesBelow: 0,
},
)
return `${chalk.dim(frameLocation)}\n${codeFrame}\n`
return `${picocolors.dim(frameLocation)}\n${codeFrame}\n`
}

function getUserCodeFrame() {
Expand Down

0 comments on commit 6cf75dc

Please sign in to comment.