Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cli-highlight

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-highlight - npm Package Compare versions

Comparing version 2.1.8 to 2.1.9

46

dist/theme.js

@@ -8,4 +8,2 @@ "use strict";

var chalk_1 = __importDefault(require("chalk"));
// Always enable at least basic color support, even if not auto-detected
var chalk = new chalk_1.default.Instance({ level: Math.max(chalk_1.default.level, 1) });
/**

@@ -24,7 +22,7 @@ * Identity function for tokens that should not be styled (returns the input string as-is).

*/
keyword: chalk.blue,
keyword: chalk_1.default.blue,
/**
* built-in or library object (constant, class, function)
*/
built_in: chalk.cyan,
built_in: chalk_1.default.cyan,
/**

@@ -34,19 +32,19 @@ * user-defined type in a language with first-class syntactically significant types, like

*/
type: chalk.cyan.dim,
type: chalk_1.default.cyan.dim,
/**
* special identifier for a built-in value ("true", "false", "null")
*/
literal: chalk.blue,
literal: chalk_1.default.blue,
/**
* number, including units and modifiers, if any.
*/
number: chalk.green,
number: chalk_1.default.green,
/**
* literal regular expression
*/
regexp: chalk.red,
regexp: chalk_1.default.red,
/**
* literal string, character
*/
string: chalk.red,
string: chalk_1.default.red,
/**

@@ -63,7 +61,7 @@ * parsed section inside a literal string

*/
class: chalk.blue,
class: chalk_1.default.blue,
/**
* function or method declaration
*/
function: chalk.yellow,
function: chalk_1.default.yellow,
/**

@@ -80,11 +78,11 @@ * name of a class or a function at the place of declaration

*/
comment: chalk.green,
comment: chalk_1.default.green,
/**
* documentation markup within comments
*/
doctag: chalk.green,
doctag: chalk_1.default.green,
/**
* flags, modifiers, annotations, processing instructions, preprocessor directive, etc
*/
meta: chalk.grey,
meta: chalk_1.default.grey,
/**

@@ -105,7 +103,7 @@ * keyword or built-in within meta construct

*/
tag: chalk.grey,
tag: chalk_1.default.grey,
/**
* name of an XML tag, the first word in an s-expression
*/
name: chalk.blue,
name: chalk_1.default.blue,
/**

@@ -119,3 +117,3 @@ * s-expression name from the language standard library

*/
attr: chalk.cyan,
attr: chalk_1.default.cyan,
/**

@@ -140,7 +138,7 @@ * name of an attribute followed by a structured value part, like CSS properties

*/
emphasis: chalk.italic,
emphasis: chalk_1.default.italic,
/**
* strong emphasis in text markup
*/
strong: chalk.bold,
strong: chalk_1.default.bold,
/**

@@ -153,3 +151,3 @@ * mathematical formula in text markup

*/
link: chalk.underline,
link: chalk_1.default.underline,
/**

@@ -190,7 +188,7 @@ * quotation in text markup

*/
addition: chalk.green,
addition: chalk_1.default.green,
/**
* deleted line in a diff
*/
deletion: chalk.red,
deletion: chalk_1.default.red,
/**

@@ -211,7 +209,7 @@ * things not matched by any token

;
theme[key] = style.reduce(function (previous, current) { return (current === 'plain' ? exports.plain : previous[current]); }, chalk);
theme[key] = style.reduce(function (previous, current) { return (current === 'plain' ? exports.plain : previous[current]); }, chalk_1.default);
}
else {
;
theme[key] = chalk[style];
theme[key] = chalk_1.default[style];
}

@@ -218,0 +216,0 @@ }

{
"name": "cli-highlight",
"version": "2.1.8",
"version": "2.1.9",
"description": "Syntax highlighting in your terminal",

@@ -109,4 +109,4 @@ "main": "dist/index.js",

"devDependencies": {
"@commitlint/cli": "^8.2.0",
"@commitlint/config-conventional": "^8.2.0",
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@eclass/semantic-release-surge": "^1.0.7",

@@ -113,0 +113,0 @@ "@sourcegraph/eslint-config": "^0.20.16",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc