cli-highlight
Advanced tools
Comparing version 2.1.7 to 2.1.8
"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). |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43140
871
+ Addedchalk@4.1.2(transitive)
- Removedchalk@3.0.0(transitive)
Updatedchalk@^4.0.0