@parcel/codeframe 2.0.0-dev.1429 → 2.0.0-dev.1431
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/codeframe.js +38 -38
- package/package.json +2 -2
package/lib/codeframe.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var $
|
|
1
|
+
var $cecYx$chalk = require("chalk");
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
function $parcel$interopDefault(a) {
|
|
@@ -34625,41 +34625,41 @@ $9baaebd05a4e0c25$var$emphasize.highlight = $9baaebd05a4e0c25$var$highlight;
|
|
|
34625
34625
|
$9baaebd05a4e0c25$var$emphasize.highlightAuto = $9baaebd05a4e0c25$var$highlightAuto;
|
|
34626
34626
|
// Default style sheet.
|
|
34627
34627
|
var $9baaebd05a4e0c25$var$defaultSheet = {
|
|
34628
|
-
comment: $
|
|
34629
|
-
quote: $
|
|
34630
|
-
keyword: $
|
|
34631
|
-
"selector-tag": $
|
|
34632
|
-
addition: $
|
|
34633
|
-
number: $
|
|
34634
|
-
string: $
|
|
34635
|
-
"meta meta-string": $
|
|
34636
|
-
literal: $
|
|
34637
|
-
doctag: $
|
|
34638
|
-
regexp: $
|
|
34639
|
-
title: $
|
|
34640
|
-
section: $
|
|
34641
|
-
name: $
|
|
34642
|
-
"selector-id": $
|
|
34643
|
-
"selector-class": $
|
|
34644
|
-
attribute: $
|
|
34645
|
-
attr: $
|
|
34646
|
-
variable: $
|
|
34647
|
-
"template-variable": $
|
|
34648
|
-
"class title": $
|
|
34649
|
-
type: $
|
|
34650
|
-
symbol: $
|
|
34651
|
-
bullet: $
|
|
34652
|
-
subst: $
|
|
34653
|
-
meta: $
|
|
34654
|
-
"meta keyword": $
|
|
34655
|
-
"selector-attr": $
|
|
34656
|
-
"selector-pseudo": $
|
|
34657
|
-
link: $
|
|
34658
|
-
/* eslint-disable camelcase */ built_in: $
|
|
34659
|
-
/* eslint-enable camelcase */ deletion: $
|
|
34660
|
-
emphasis: $
|
|
34661
|
-
strong: $
|
|
34662
|
-
formula: $
|
|
34628
|
+
comment: $cecYx$chalk.gray,
|
|
34629
|
+
quote: $cecYx$chalk.gray,
|
|
34630
|
+
keyword: $cecYx$chalk.green,
|
|
34631
|
+
"selector-tag": $cecYx$chalk.green,
|
|
34632
|
+
addition: $cecYx$chalk.green,
|
|
34633
|
+
number: $cecYx$chalk.cyan,
|
|
34634
|
+
string: $cecYx$chalk.cyan,
|
|
34635
|
+
"meta meta-string": $cecYx$chalk.cyan,
|
|
34636
|
+
literal: $cecYx$chalk.cyan,
|
|
34637
|
+
doctag: $cecYx$chalk.cyan,
|
|
34638
|
+
regexp: $cecYx$chalk.cyan,
|
|
34639
|
+
title: $cecYx$chalk.blue,
|
|
34640
|
+
section: $cecYx$chalk.blue,
|
|
34641
|
+
name: $cecYx$chalk.blue,
|
|
34642
|
+
"selector-id": $cecYx$chalk.blue,
|
|
34643
|
+
"selector-class": $cecYx$chalk.blue,
|
|
34644
|
+
attribute: $cecYx$chalk.yellow,
|
|
34645
|
+
attr: $cecYx$chalk.yellow,
|
|
34646
|
+
variable: $cecYx$chalk.yellow,
|
|
34647
|
+
"template-variable": $cecYx$chalk.yellow,
|
|
34648
|
+
"class title": $cecYx$chalk.yellow,
|
|
34649
|
+
type: $cecYx$chalk.yellow,
|
|
34650
|
+
symbol: $cecYx$chalk.magenta,
|
|
34651
|
+
bullet: $cecYx$chalk.magenta,
|
|
34652
|
+
subst: $cecYx$chalk.magenta,
|
|
34653
|
+
meta: $cecYx$chalk.magenta,
|
|
34654
|
+
"meta keyword": $cecYx$chalk.magenta,
|
|
34655
|
+
"selector-attr": $cecYx$chalk.magenta,
|
|
34656
|
+
"selector-pseudo": $cecYx$chalk.magenta,
|
|
34657
|
+
link: $cecYx$chalk.magenta,
|
|
34658
|
+
/* eslint-disable camelcase */ built_in: $cecYx$chalk.red,
|
|
34659
|
+
/* eslint-enable camelcase */ deletion: $cecYx$chalk.red,
|
|
34660
|
+
emphasis: $cecYx$chalk.italic,
|
|
34661
|
+
strong: $cecYx$chalk.bold,
|
|
34662
|
+
formula: $cecYx$chalk.inverse
|
|
34663
34663
|
};
|
|
34664
34664
|
// Highlight `value` as `language`.
|
|
34665
34665
|
function $9baaebd05a4e0c25$var$highlight(language, value, sheet) {
|
|
@@ -35297,8 +35297,8 @@ function $5a7d0d8c3f859e1e$export$2e2bcd8739ae039(code, highlights, inputOpts =
|
|
|
35297
35297
|
// Highlights messages and prefixes when colors are enabled
|
|
35298
35298
|
const highlighter = (s, bold)=>{
|
|
35299
35299
|
if (opts.useColor) {
|
|
35300
|
-
let redString = (0, ($parcel$interopDefault($
|
|
35301
|
-
return bold ? (0, ($parcel$interopDefault($
|
|
35300
|
+
let redString = (0, ($parcel$interopDefault($cecYx$chalk))).red(s);
|
|
35301
|
+
return bold ? (0, ($parcel$interopDefault($cecYx$chalk))).bold(redString) : redString;
|
|
35302
35302
|
}
|
|
35303
35303
|
return s;
|
|
35304
35304
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parcel/codeframe",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.1431+10d19ff8a",
|
|
4
4
|
"description": "Blazing fast, zero configuration web application bundler",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"slice-ansi": "^4.0.0",
|
|
35
35
|
"string-width": "^4.2.0"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "10d19ff8a34dd8f479847aadf9865be48a8fad84"
|
|
38
38
|
}
|