File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
1
var fs = require ( 'fs-extra' ) ;
2
2
var esprima = require ( 'esprima' ) ;
3
- var _ = require ( 'lodash' ) ;
4
3
var util = require ( 'util' ) ;
5
4
var stringifyObject = require ( "stringify-object" ) ;
6
5
@@ -47,7 +46,7 @@ exports.ConfigFile = function(filePath) {
47
46
48
47
that . type = 'empty' ;
49
48
if ( program . type === 'Program' ) {
50
- _ . forEach ( program . body , function ( statement ) {
49
+ program . body . forEach ( function ( statement ) {
51
50
52
51
if ( statement . expression && statement . expression . type === 'CallExpression' ) {
53
52
var call = statement . expression ;
@@ -58,7 +57,7 @@ exports.ConfigFile = function(filePath) {
58
57
return false ;
59
58
}
60
59
} else if ( statement . type === 'VariableDeclaration' ) {
61
- _ . forEach ( statement . declarations , function ( declarator ) {
60
+ statement . declarations . forEach ( function ( declarator ) {
62
61
if ( declarator . id . name === 'require' ) {
63
62
that . type = 'var' ;
64
63
that . readObjectExpression ( declarator . init , callback ) ;
Original file line number Diff line number Diff line change 30
30
},
31
31
"dependencies" : {
32
32
"esprima" : " ~1.0.4" ,
33
- "lodash" : " ~2.0.0" ,
34
33
"stringify-object" : " ~0.1.7" ,
35
34
"fs-extra" : " ~0.6.4"
36
35
}
You can’t perform that action at this time.
0 commit comments