@babel/code-frame
Advanced tools
Comparing version 8.0.0-alpha.2 to 8.0.0-alpha.3
import highlight, { shouldHighlight } from '@babel/highlight'; | ||
import _chalk from 'chalk'; | ||
import chalk, { Chalk } from 'chalk'; | ||
const chalk = _chalk; | ||
let chalkWithForcedColor = undefined; | ||
function getChalk(forceColor) { | ||
if (forceColor) { | ||
chalkWithForcedColor ??= new chalk.Instance({ | ||
chalkWithForcedColor ??= new Chalk({ | ||
level: 1 | ||
@@ -10,0 +9,0 @@ }); |
{ | ||
"name": "@babel/code-frame", | ||
"version": "8.0.0-alpha.2", | ||
"version": "8.0.0-alpha.3", | ||
"description": "Generate errors that contain a code frame that point to source locations.", | ||
@@ -19,6 +19,7 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
"dependencies": { | ||
"@babel/highlight": "^8.0.0-alpha.2", | ||
"chalk": "^4.1.2" | ||
"@babel/highlight": "^8.0.0-alpha.3", | ||
"chalk": "^5.3.0" | ||
}, | ||
"devDependencies": { | ||
"import-meta-resolve": "^3.0.0", | ||
"strip-ansi": "^4.0.0" | ||
@@ -25,0 +26,0 @@ }, |
Sorry, the diff of this file is not supported yet
21828
2
146
+ Addedchalk@5.3.0(transitive)
- Removedansi-styles@4.3.0(transitive)
- Removedchalk@4.1.2(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedsupports-color@7.2.0(transitive)
Updatedchalk@^5.3.0