@parcel/codeframe 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/codeframe.js +2 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/codeframe",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Blazing fast, zero configuration web application bundler",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -28,5 +28,5 @@
28
28
  "devDependencies": {
29
29
  "strip-ansi": "^6.0.0"
30
30
  },
31
- "gitHead": "84da50ae6943bff9741e2fc76d2f4968074cbbd6"
31
+ "gitHead": "28b47e6bdca7de2a06b7cc39a4a0b1df89f3fe15"
32
32
  }
package/src/codeframe.js CHANGED
@@ -121,9 +121,8 @@ export default function codeFrame(
121
121
 
122
122
  // Split input into lines and highlight syntax
123
123
  let lines = code.split(NEWLINE);
124
- let syntaxHighlightedLines = (opts.syntaxHighlighting
125
- ? highlightSyntax(code, opts.language)
126
- : code
124
+ let syntaxHighlightedLines = (
125
+ opts.syntaxHighlighting ? highlightSyntax(code, opts.language) : code
127
126
  )
128
127
  .replace(TAB_REPLACE_REGEX, TAB_REPLACEMENT)
129
128
  .split(NEWLINE);