cli-highlight
Advanced tools
Comparing version 2.1.2 to 2.1.3
"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) { |
"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
36872
782
+ Addedansi-styles@4.3.0(transitive)
+ Addedchalk@3.0.0(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedsupports-color@7.2.0(transitive)
- Removedchalk@2.4.2(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedsupports-color@5.5.0(transitive)
Updatedchalk@^3.0.0