File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ var splicer = require('stream-splicer'),
30
30
* @param {boolean } [options.polyglot=false] parse comments with a regex rather than
31
31
* a proper parser. This enables support of non-JavaScript languages but
32
32
* reduces documentation's ability to infer structure of code.
33
+ * @param {boolean } [options.shallow=false] whether to avoid dependency parsing
34
+ * even in JavaScript code. With the polyglot option set, this has no effect.
33
35
* @return {Object } stream of output
34
36
*/
35
37
module . exports = function ( indexes , options ) {
@@ -43,7 +45,7 @@ module.exports = function (indexes, options) {
43
45
shallow ( indexes ) ,
44
46
polyglot ( )
45
47
] : [
46
- dependency ( indexes , options ) ,
48
+ ( options . shallow ? shallow ( indexes ) : dependency ( indexes , options ) ) ,
47
49
filterJS ( ) ,
48
50
parse ( ) ,
49
51
inferName ( ) ,
You can’t perform that action at this time.
0 commit comments