Previously, the `^` marker was misaligned if the line above contained tabs. Fixes T7282. Note: This commit handles a very subtle edge-case differently: When the passed in column number is larger than the length of the line. Previously, the `^` marker would be faithfully placed at that exact column number. Now, it is placed at the end of the line instead (after the last character of the line to be precise). Ideally, we should define what should happen in edge cases, but that's out of scope for this PR.
17 lines
503 B
JSON
17 lines
503 B
JSON
{
|
|
"name": "babel-code-frame",
|
|
"version": "6.7.5",
|
|
"description": "Generate errors that contain a code frame that point to source locations.",
|
|
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
|
"homepage": "https://babeljs.io/",
|
|
"license": "MIT",
|
|
"repository": "https://github.com/babel/babel/tree/master/packages/babel-code-frame",
|
|
"main": "lib/index.js",
|
|
"dependencies": {
|
|
"babel-runtime": "^5.0.0",
|
|
"chalk": "^1.1.0",
|
|
"esutils": "^2.0.2",
|
|
"js-tokens": "^1.0.2"
|
|
}
|
|
}
|