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 11coverage /
22hast-util-raw.js
33hast-util-raw.min.js
4+ * .json
5+ * .md
Original file line number Diff line number Diff line change 4040 "browserify" : " ^16.0.0" ,
4141 "hastscript" : " ^5.0.0" ,
4242 "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" ,
5050 "tinyify" : " ^2.0.0" ,
51- "unified" : " ^8 .0.0" ,
51+ "unified" : " ^9 .0.0" ,
5252 "unist-builder" : " ^2.0.0" ,
53- "xo" : " ^0.27 .0"
53+ "xo" : " ^0.32 .0"
5454 },
5555 "scripts" : {
56- "format" : " remark . -qfo && prettier --write \" **/*.js \" && xo --fix" ,
56+ "format" : " remark . -qfo && prettier . --write && xo --fix" ,
5757 "build-bundle" : " browserify index.js -s hastUtilRaw > hast-util-raw.js" ,
5858 "build-mangle" : " browserify index.js -s hastUtilRaw -p tinyify > hast-util-raw.min.js" ,
5959 "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')
99var stringify = require ( 'rehype-stringify' )
1010var raw = require ( '.' )
1111
12- test ( 'raw' , function ( t ) {
12+ test ( 'raw' , function ( t ) {
1313 t . throws (
14- function ( ) {
14+ function ( ) {
1515 raw ( u ( 'unknown' ) )
1616 } ,
1717 / ^ 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) {
169169 t . end ( )
170170} )
171171
172- test ( 'integration' , function ( t ) {
172+ test ( 'integration' , function ( t ) {
173173 unified ( )
174174 . use ( parse )
175- . use ( remark2rehype , { allowDangerousHTML : true } )
176- . use ( function ( ) {
175+ . use ( remark2rehype , { allowDangerousHtml : true } )
176+ . use ( function ( ) {
177177 return raw
178178 } )
179- . use ( function ( ) {
179+ . use ( function ( ) {
180180 return transformer
181181 function transformer ( tree ) {
182182 t . deepEqual (
@@ -556,7 +556,7 @@ test('integration', function(t) {
556556 '<p>Hello, world!' ,
557557 ''
558558 ] . join ( '\n' ) ,
559- function ( err , file ) {
559+ function ( err , file ) {
560560 t . ifErr ( err , 'should not fail' )
561561
562562 t . equal (
You can’t perform that action at this time.
0 commit comments