@12core/chromafi
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -10,15 +10,2 @@ # Changelog | ||
## [v3.0.0](https://github.com/little-core-labs/chromafi/compare/v3.0.0...v3.0.0) | ||
### Merged | ||
- Cleanup [`#1`](https://github.com/little-core-labs/chromafi/pull/1) | ||
- Moving husky to devDependencies [`#9`](https://github.com/little-core-labs/chromafi/pull/9) | ||
- Fix indents [`#2`](https://github.com/little-core-labs/chromafi/pull/2) | ||
- Mark/Highlight Portions of Code [`#1`](https://github.com/little-core-labs/chromafi/pull/1) | ||
### Commits | ||
- new maintainer [`e4ba1e5`](https://github.com/little-core-labs/chromafi/commit/e4ba1e5fbf29c32b6e30d62543f0687df08ebace) | ||
- chore(): upgrade deps [`9f1a59b`](https://github.com/little-core-labs/chromafi/commit/9f1a59be51e51a68772178cb4c787d2e9fdc0ba0) | ||
- Adding code [`804ca4a`](https://github.com/little-core-labs/chromafi/commit/804ca4ab2efbab7f2a53d8b0c91bb088a0ff0934) | ||
## 3.0.1 |
12
index.js
@@ -383,3 +383,5 @@ const hljs = require('highlight.js') | ||
value = stripIndent(value) | ||
value = decorate(value, opts) | ||
if (!opts || false !== opts.decorate) { | ||
value = decorate(value, opts) | ||
} | ||
return value | ||
@@ -390,3 +392,5 @@ } | ||
value = syntaxHlStr(opts.lang, value, opts) | ||
value = decorate(value, opts) | ||
if (!opts || false !== opts.decorate) { | ||
value = decorate(value, opts) | ||
} | ||
return value | ||
@@ -397,3 +401,5 @@ } | ||
value = syntaxHlJson(value, opts) | ||
value = decorate(value, opts) | ||
if (!opts || false !== opts.decorate) { | ||
value = decorate(value, opts) | ||
} | ||
return value | ||
@@ -400,0 +406,0 @@ } |
{ | ||
"name": "@12core/chromafi", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "🦅 cli syntax highlighting: any function - any object - 176 languages", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
906
1830666
1