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)
2020var green = ansiColor ( 32 , 39 )
2121
2222// 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 */
2527
2628/**
2729 * Inspects a node, without using color.
Original file line number Diff line number Diff line change 4848 "@types/tape" : " ^4.0.0" ,
4949 "c8" : " ^7.0.0" ,
5050 "chalk" : " ^4.0.0" ,
51- "hastscript" : " ^6 .0.0" ,
51+ "hastscript" : " ^7 .0.0" ,
5252 "prettier" : " ^2.0.0" ,
5353 "remark-cli" : " ^9.0.0" ,
5454 "remark-preset-wooorm" : " ^8.0.0" ,
5555 "retext" : " ^7.0.0" ,
5656 "rimraf" : " ^3.0.0" ,
57- "strip-ansi" : " ^6 .0.0" ,
57+ "strip-ansi" : " ^7 .0.0" ,
5858 "tape" : " ^5.0.0" ,
5959 "type-coverage" : " ^2.0.0" ,
6060 "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"
6565 },
6666 "scripts" : {
6767 "prepack" : " npm run build && npm run format" ,
Original file line number Diff line number Diff line change 11import test from 'tape'
22import chalk from 'chalk'
33import 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'
77// @ts -ignore remove when typed.
88import retext from 'retext'
99// @ts -ignore remove when typed.
10- import fromXml from 'xast-util-from-xml'
10+ import { fromXml } from 'xast-util-from-xml'
1111import { inspect , inspectColor , inspectNoColor } from './index.js'
1212
1313var chalkEnabled = new chalk . Instance ( { level : 1 } )
You can’t perform that action at this time.
0 commit comments