Socket
Socket
Sign inDemoInstall

cli-highlight

Package Overview
Dependencies
27
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.10 to 2.1.11

7

dist/index.d.ts

@@ -16,9 +16,2 @@ import { Theme } from './theme';

/**
* The continuation is an optional mode stack representing unfinished parsing. When present,
* the function will restart parsing from this state instead of initializing a new one.
*
* See http://highlightjs.readthedocs.io/en/latest/api.html
*/
continuation?: any;
/**
* Optional array of language names and aliases restricting detection to only those languages.

@@ -25,0 +18,0 @@ */

2

dist/index.js

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

if (options.language) {
html = hljs.highlight(options.language, code, options.ignoreIllegals, options.continuation).value;
html = hljs.highlight(code, { language: options.language, ignoreIllegals: options.ignoreIllegals }).value;
}

@@ -90,0 +90,0 @@ else {

{
"name": "cli-highlight",
"version": "2.1.10",
"version": "2.1.11",
"description": "Syntax highlighting in your terminal",

@@ -102,3 +102,3 @@ "main": "dist/index.js",

"chalk": "^4.0.0",
"highlight.js": "^10.0.0",
"highlight.js": "^10.7.1",
"mz": "^2.4.0",

@@ -115,3 +115,2 @@ "parse5": "^5.1.1",

"@sourcegraph/prettierrc": "^3.0.3",
"@types/highlight.js": "^9.12.1",
"@types/jest": "^24.0.9",

@@ -118,0 +117,0 @@ "@types/mz": "0.0.32",

Sorry, the diff of this file is not supported yet

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