File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 34
34
"hat" : " 0.0.3" ,
35
35
"highlight.js" : " ^8.4.0" ,
36
36
"jsdoc-inline-lex" : " ^1.0.1" ,
37
+ "map-stream" : " 0.0.5" ,
37
38
"micromatch" : " ^2.1.6" ,
38
39
"module-deps" : " ^3.7.3" ,
39
40
"queue-async" : " ^1.0.7" ,
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var through = require ( 'through ' ) ;
3
+ var mapStream = require ( 'map-stream ' ) ;
4
4
5
5
/**
6
6
* Exclude given access levels from the generated documentation: this allows
@@ -14,9 +14,11 @@ var through = require('through');
14
14
*/
15
15
module . exports = function ( levels ) {
16
16
levels = levels || [ 'private' ] ;
17
- return through ( function ( comment ) {
17
+ return mapStream ( function ( comment , callback ) {
18
18
if ( levels . indexOf ( comment . access ) === - 1 ) {
19
- this . push ( comment ) ;
19
+ callback ( null , comment ) ;
20
+ } else {
21
+ callback ( ) ;
20
22
}
21
23
} ) ;
22
24
} ;
You can’t perform that action at this time.
0 commit comments