File tree Expand file tree Collapse file tree 3 files changed +19
-17
lines changed Expand file tree Collapse file tree 3 files changed +19
-17
lines changed Original file line number Diff line number Diff line change 1
1
coverage /
2
2
hast-util-raw.js
3
3
hast-util-raw.min.js
4
+ * .json
5
+ * .md
Original file line number Diff line number Diff line change 40
40
"browserify" : " ^16.0.0" ,
41
41
"hastscript" : " ^5.0.0" ,
42
42
"nyc" : " ^15.0.0" ,
43
- "prettier" : " ^1 .0.0" ,
44
- "rehype-stringify" : " ^6 .0.0" ,
45
- "remark-cli" : " ^7 .0.0" ,
46
- "remark-parse" : " ^7 .0.0" ,
47
- "remark-preset-wooorm" : " ^6 .0.0" ,
48
- "remark-rehype" : " ^5 .0.0" ,
49
- "tape" : " ^4 .0.0" ,
43
+ "prettier" : " ^2 .0.0" ,
44
+ "rehype-stringify" : " ^8 .0.0" ,
45
+ "remark-cli" : " ^8 .0.0" ,
46
+ "remark-parse" : " ^8 .0.0" ,
47
+ "remark-preset-wooorm" : " ^7 .0.0" ,
48
+ "remark-rehype" : " ^7 .0.0" ,
49
+ "tape" : " ^5 .0.0" ,
50
50
"tinyify" : " ^2.0.0" ,
51
- "unified" : " ^8 .0.0" ,
51
+ "unified" : " ^9 .0.0" ,
52
52
"unist-builder" : " ^2.0.0" ,
53
- "xo" : " ^0.27 .0"
53
+ "xo" : " ^0.32 .0"
54
54
},
55
55
"scripts" : {
56
- "format" : " remark . -qfo && prettier --write \" **/*.js \" && xo --fix" ,
56
+ "format" : " remark . -qfo && prettier . --write && xo --fix" ,
57
57
"build-bundle" : " browserify index.js -s hastUtilRaw > hast-util-raw.js" ,
58
58
"build-mangle" : " browserify index.js -s hastUtilRaw -p tinyify > hast-util-raw.min.js" ,
59
59
"build" : " npm run build-bundle && npm run build-mangle" ,
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ var remark2rehype = require('remark-rehype')
9
9
var stringify = require ( 'rehype-stringify' )
10
10
var raw = require ( '.' )
11
11
12
- test ( 'raw' , function ( t ) {
12
+ test ( 'raw' , function ( t ) {
13
13
t . throws (
14
- function ( ) {
14
+ function ( ) {
15
15
raw ( u ( 'unknown' ) )
16
16
} ,
17
17
/ ^ E r r o r : C a n n o t c o m p i l e ` u n k n o w n ` n o d e $ / ,
@@ -169,14 +169,14 @@ test('raw', function(t) {
169
169
t . end ( )
170
170
} )
171
171
172
- test ( 'integration' , function ( t ) {
172
+ test ( 'integration' , function ( t ) {
173
173
unified ( )
174
174
. use ( parse )
175
- . use ( remark2rehype , { allowDangerousHTML : true } )
176
- . use ( function ( ) {
175
+ . use ( remark2rehype , { allowDangerousHtml : true } )
176
+ . use ( function ( ) {
177
177
return raw
178
178
} )
179
- . use ( function ( ) {
179
+ . use ( function ( ) {
180
180
return transformer
181
181
function transformer ( tree ) {
182
182
t . deepEqual (
@@ -556,7 +556,7 @@ test('integration', function(t) {
556
556
'<p>Hello, world!' ,
557
557
''
558
558
] . join ( '\n' ) ,
559
- function ( err , file ) {
559
+ function ( err , file ) {
560
560
t . ifErr ( err , 'should not fail' )
561
561
562
562
t . equal (
You can’t perform that action at this time.
0 commit comments