@@ -25,7 +25,7 @@ const Config = require('./lib/Config');
25
25
* @param {Boolean } [options.noTypeDefinitions] For TypeScript imports, whether to resolve to `*.js` instead of `*.d.ts`.
26
26
* @return {Object }
27
27
*/
28
- module . exports = function ( options ) {
28
+ module . exports = function ( options ) {
29
29
const config = new Config ( options ) ;
30
30
31
31
if ( ! fs . existsSync ( config . filename ) ) {
@@ -67,7 +67,7 @@ module.exports = function (options) {
67
67
*
68
68
* Params are those of module.exports
69
69
*/
70
- module . exports . toList = function ( options ) {
70
+ module . exports . toList = function ( options ) {
71
71
options . isListForm = true ;
72
72
73
73
return module . exports ( options ) ;
@@ -81,7 +81,7 @@ module.exports.toList = function (options) {
81
81
* @param {Config } config
82
82
* @return {Array }
83
83
*/
84
- module . exports . _getDependencies = function ( config ) {
84
+ module . exports . _getDependencies = function ( config ) {
85
85
let dependencies ;
86
86
const precinctOptions = config . detectiveConfig ;
87
87
precinctOptions . includeCore = false ;
@@ -159,7 +159,7 @@ function traverse(config) {
159
159
if ( config . filter ) {
160
160
debug ( 'using filter function to filter out dependencies' ) ;
161
161
debug ( 'unfiltered number of dependencies: ' + dependencies . length ) ;
162
- dependencies = dependencies . filter ( function ( filePath ) {
162
+ dependencies = dependencies . filter ( function ( filePath ) {
163
163
return config . filter ( filePath , config . filename ) ;
164
164
} ) ;
165
165
debug ( 'filtered number of dependencies: ' + dependencies . length ) ;
0 commit comments