babel-code-frame
Advanced tools
Comparing version 7.0.0-alpha.19 to 7.0.0-alpha.20
@@ -6,4 +6,6 @@ "use strict"; | ||
exports.default = function (rawLines, lineNumber, colNumber) { | ||
var opts = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; | ||
exports.default = function (rawLines, lineNumber, colNumber, opts) { | ||
if (opts === void 0) { | ||
opts = {}; | ||
} | ||
@@ -176,4 +178,7 @@ if (!deprecationWarningShown) { | ||
function codeFrameColumns(rawLines, loc) { | ||
var opts = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; | ||
function codeFrameColumns(rawLines, loc, opts) { | ||
if (opts === void 0) { | ||
opts = {}; | ||
} | ||
var highlighted = opts.highlightCode && _chalk2.default.supportsColor || opts.forceColor; | ||
@@ -180,0 +185,0 @@ var chalk = _chalk2.default; |
{ | ||
"name": "babel-code-frame", | ||
"version": "7.0.0-alpha.19", | ||
"version": "7.0.0-alpha.20", | ||
"description": "Generate errors that contain a code frame that point to source locations.", | ||
@@ -5,0 +5,0 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
187
9188