@babel/code-frame
Advanced tools
Comparing version 8.0.0-alpha.1 to 8.0.0-alpha.2
import highlight, { shouldHighlight } from '@babel/highlight'; | ||
import chalk from 'chalk'; | ||
import _chalk from 'chalk'; | ||
const chalk = _chalk; | ||
let chalkWithForcedColor = undefined; | ||
function getChalk(forceColor) { | ||
if (forceColor) { | ||
chalkWithForcedColor ??= new chalk.constructor({ | ||
enabled: true, | ||
chalkWithForcedColor ??= new chalk.Instance({ | ||
level: 1 | ||
@@ -10,0 +10,0 @@ }); |
{ | ||
"name": "@babel/code-frame", | ||
"version": "8.0.0-alpha.1", | ||
"version": "8.0.0-alpha.2", | ||
"description": "Generate errors that contain a code frame that point to source locations.", | ||
@@ -19,4 +19,4 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
"dependencies": { | ||
"@babel/highlight": "^8.0.0-alpha.1", | ||
"chalk": "^2.4.2" | ||
"@babel/highlight": "^8.0.0-alpha.2", | ||
"chalk": "^4.1.2" | ||
}, | ||
@@ -23,0 +23,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
22026
+ Addedansi-styles@4.3.0(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedsupports-color@7.2.0(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedsupports-color@5.5.0(transitive)
Updatedchalk@^4.1.2