Socket
Socket
Sign inDemoInstall

cli-highlight

Package Overview
Dependencies
36
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.2 to 2.1.3

11

dist/cli.js
"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
var fs = require("mz/fs");
var path = require("path");
var fs = __importStar(require("mz/fs"));
var path = __importStar(require("path"));
var yargs = require("yargs");

@@ -6,0 +13,0 @@ var index_1 = require("./index");

@@ -5,5 +5,12 @@ "use strict";

}
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
var hljs = require("highlight.js");
var parse5 = require("parse5");
var hljs = __importStar(require("highlight.js"));
var parse5 = __importStar(require("parse5"));
var theme_1 = require("./theme");

@@ -10,0 +17,0 @@ function colorizeNode(node, theme, context) {

13

dist/theme.js
"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
var chalk_1 = require("chalk");
// Always enable colors, even if not auto-detected
var chalk = new chalk_1.default.constructor({ enabled: true });
var chalk_1 = __importStar(require("chalk"));
// Always enable at least basic color support, even if not auto-detected
var chalk = new chalk_1.default.Instance({ level: Math.min(chalk_1.default.level, 1 /* Basic */) });
/**

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

{
"name": "cli-highlight",
"version": "2.1.2",
"version": "2.1.3",
"description": "Syntax highlighting in your terminal",

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

"dependencies": {
"chalk": "^2.3.0",
"chalk": "^3.0.0",
"highlight.js": "^9.6.0",

@@ -105,4 +105,4 @@ "mz": "^2.4.0",

"typedoc": "^0.14.2",
"typescript": "^3.3.3333"
"typescript": "~3.6.4"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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