File tree Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,10 @@ var yellow = ansiColor(33, 39)
20
20
var green = ansiColor ( 32 , 39 )
21
21
22
22
// ANSI color regex.
23
- /* eslint-disable-next-line no-control-regex */
24
- var colorExpression = / (?: (?: \u001B \[ ) | \u009B ) (?: \d { 1 , 3 } ) ? (?: (?: ; \d { 0 , 3 } ) * ) ? [ A - M | f - m ] | \u001B [ A - M ] / g
23
+ /* eslint-disable no-control-regex */
24
+ var colorExpression =
25
+ / (?: (?: \u001B \[ ) | \u009B ) (?: \d { 1 , 3 } ) ? (?: (?: ; \d { 0 , 3 } ) * ) ? [ A - M | f - m ] | \u001B [ A - M ] / g
26
+ /* eslint-enable no-control-regex */
25
27
26
28
/**
27
29
* Inspects a node, without using color.
Original file line number Diff line number Diff line change 48
48
"@types/tape" : " ^4.0.0" ,
49
49
"c8" : " ^7.0.0" ,
50
50
"chalk" : " ^4.0.0" ,
51
- "hastscript" : " ^6 .0.0" ,
51
+ "hastscript" : " ^7 .0.0" ,
52
52
"prettier" : " ^2.0.0" ,
53
53
"remark-cli" : " ^9.0.0" ,
54
54
"remark-preset-wooorm" : " ^8.0.0" ,
55
55
"retext" : " ^7.0.0" ,
56
56
"rimraf" : " ^3.0.0" ,
57
- "strip-ansi" : " ^6 .0.0" ,
57
+ "strip-ansi" : " ^7 .0.0" ,
58
58
"tape" : " ^5.0.0" ,
59
59
"type-coverage" : " ^2.0.0" ,
60
60
"typescript" : " ^4.0.0" ,
61
- "unist-builder" : " ^2 .0.0" ,
62
- "xast-util-from-xml" : " ^1 .0.0" ,
63
- "xastscript" : " ^2 .0.0" ,
64
- "xo" : " ^0.38 .0"
61
+ "unist-builder" : " ^3 .0.0" ,
62
+ "xast-util-from-xml" : " ^2 .0.0" ,
63
+ "xastscript" : " ^3 .0.0" ,
64
+ "xo" : " ^0.39 .0"
65
65
},
66
66
"scripts" : {
67
67
"prepack" : " npm run build && npm run format" ,
Original file line number Diff line number Diff line change 1
1
import test from 'tape'
2
2
import chalk from 'chalk'
3
3
import strip from 'strip-ansi'
4
- import u from 'unist-builder'
5
- import h from 'hastscript'
6
- import x from 'xastscript'
4
+ import { u } from 'unist-builder'
5
+ import { h } from 'hastscript'
6
+ import { x } from 'xastscript'
7
7
// @ts -ignore remove when typed.
8
8
import retext from 'retext'
9
9
// @ts -ignore remove when typed.
10
- import fromXml from 'xast-util-from-xml'
10
+ import { fromXml } from 'xast-util-from-xml'
11
11
import { inspect , inspectColor , inspectNoColor } from './index.js'
12
12
13
13
var chalkEnabled = new chalk . Instance ( { level : 1 } )
You can’t perform that action at this time.
0 commit comments