Socket
Socket
Sign inDemoInstall

@babel/highlight

Package Overview
Dependencies
9
Maintainers
6
Versions
67
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.16.7 to 7.16.10

2

lib/index.js

@@ -109,3 +109,3 @@ "use strict";

function highlight(code, options = {}) {
if (shouldHighlight(options)) {
if (code !== "" && shouldHighlight(options)) {
const chalk = getChalk(options);

@@ -112,0 +112,0 @@ const defs = getDefs(chalk);

{
"name": "@babel/highlight",
"version": "7.16.7",
"version": "7.16.10",
"description": "Syntax highlight JavaScript strings for output in terminals.",

@@ -5,0 +5,0 @@ "author": "The Babel Team (https://babel.dev/team)",

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