Socket
Socket
Sign inDemoInstall

babel-code-frame

Package Overview
Dependencies
9
Maintainers
4
Versions
54
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.0-alpha.16 to 7.0.0-alpha.17

13

lib/index.js

@@ -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.16",
"version": "7.0.0-alpha.17",
"description": "Generate errors that contain a code frame that point to source locations.",

@@ -5,0 +5,0 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc