Socket
Socket
Sign inDemoInstall

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.7 to 2.1.8

24

dist/theme.js
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.parse = exports.stringify = exports.toJson = exports.fromJson = exports.DEFAULT_THEME = exports.plain = void 0;
var chalk_1 = __importStar(require("chalk"));
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 /* Basic */) });
var chalk = new chalk_1.default.Instance({ level: Math.max(chalk_1.default.level, 1) });
/**

@@ -27,0 +11,0 @@ * Identity function for tokens that should not be styled (returns the input string as-is).

4

package.json
{
"name": "cli-highlight",
"version": "2.1.7",
"version": "2.1.8",
"description": "Syntax highlighting in your terminal",

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

"dependencies": {
"chalk": "^3.0.0",
"chalk": "^4.0.0",
"highlight.js": "^10.0.0",

@@ -104,0 +104,0 @@ "mz": "^2.4.0",

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