Socket
Socket
Sign inDemoInstall

babel-code-frame

Package Overview
Dependencies
9
Maintainers
5
Versions
54
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.0-alpha.18 to 7.0.0-alpha.19

13

lib/index.js

@@ -6,6 +6,4 @@ "use strict";

exports.default = function (rawLines, lineNumber, colNumber, opts) {
if (opts === void 0) {
opts = {};
}
exports.default = function (rawLines, lineNumber, colNumber) {
var opts = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};

@@ -178,7 +176,4 @@ if (!deprecationWarningShown) {

function codeFrameColumns(rawLines, loc, opts) {
if (opts === void 0) {
opts = {};
}
function codeFrameColumns(rawLines, loc) {
var opts = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
var highlighted = opts.highlightCode && _chalk2.default.supportsColor || opts.forceColor;

@@ -185,0 +180,0 @@ var chalk = _chalk2.default;

{
"name": "babel-code-frame",
"version": "7.0.0-alpha.18",
"version": "7.0.0-alpha.19",
"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