@@ -250,28 +250,28 @@ module.exports = NodeHelper.create({
250250 : "modules" ) ;
251251 } ,
252252
253- addModule ( folderName , lastOne ) {
254- const modulePath = `${ this . getModuleDir ( ) } /${ folderName } ` ;
253+ addModule ( directoryName , lastOne ) {
254+ const modulePath = `${ this . getModuleDir ( ) } /${ directoryName } ` ;
255255 fs . stat ( modulePath , ( error , stats ) => {
256256 if ( stats . isDirectory ( ) ) {
257257 let currentModule = null ;
258- this . modulesInstalled . push ( folderName ) ;
258+ this . modulesInstalled . push ( directoryName ) ;
259259 for ( const module of this . modulesAvailable ) {
260- if ( module . longname === folderName ) {
260+ if ( module . longname === directoryName ) {
261261 module . installed = true ;
262262 currentModule = module ;
263263 break ;
264264 }
265265 }
266266 if ( ! currentModule ) {
267267 const newModule = {
268- longname : folderName ,
269- name : folderName ,
268+ longname : directoryName ,
269+ name : directoryName ,
270270 isDefaultModule : false ,
271271 installed : true ,
272272 author : "unknown" ,
273273 desc : "" ,
274- id : `local/${ folderName } ` ,
274+ id : `local/${ directoryName } ` ,
275275 url : ""
276276 } ;
277277 this . modulesAvailable . push ( newModule ) ;
@@ -296,13 +296,13 @@ module.exports = NodeHelper.create({
296296 this . pendingUpdateChecks = 0 ;
297297 }
298298 this . pendingUpdateChecks ++ ;
299- Log . debug ( `Queuing update check for ${ folderName } , pending: ${ this . pendingUpdateChecks } ` ) ;
299+ Log . debug ( `Queuing update check for ${ directoryName } , pending: ${ this . pendingUpdateChecks } ` ) ;
300300
301301 // Add to queue instead of executing immediately
302302 this . updateCheckQueue . push ( {
303303 module : currentModule ,
304304 modulePath,
305- folderName
305+ directoryName
306306 } ) ;
307307
308308 // Start processing queue
@@ -322,13 +322,13 @@ module.exports = NodeHelper.create({
322322 currentModule . url = baseUrl . replace ( "git@" , "https://" ) ;
323323 } catch ( error ) {
324324 // Something happened. Skip it.
325- Log . debug ( `Could not get remote URL for module ${ folderName } : ${ error } ` ) ;
325+ Log . debug ( `Could not get remote URL for module ${ directoryName } : ${ error } ` ) ;
326326
327327 }
328328 } ) ;
329329 }
330330 } catch {
331- Log . debug ( `Module ${ folderName } is not managed with git, skipping update check` ) ;
331+ Log . debug ( `Module ${ directoryName } is not managed with git, skipping update check` ) ;
332332 }
333333 }
334334 } ) ;
@@ -353,15 +353,15 @@ module.exports = NodeHelper.create({
353353
354354 if ( data . behind > 0 ) {
355355 check . module . updateAvailable = true ;
356- Log . info ( `Module ${ check . folderName } has updates available (behind ${ data . behind } commits)` ) ;
356+ Log . info ( `Module ${ check . directoryName } has updates available (behind ${ data . behind } commits)` ) ;
357357 }
358358 } catch ( error ) {
359- Log . warn ( `Error checking updates for ${ check . folderName } : ${ error . message || error } ` ) ;
359+ Log . warn ( `Error checking updates for ${ check . directoryName } : ${ error . message || error } ` ) ;
360360 } finally {
361361 this . activeUpdateChecks -- ;
362362 this . pendingUpdateChecks -- ;
363- Log . debug ( `Finished update check for ${ check . folderName } , pending: ${ this . pendingUpdateChecks } , active: ${ this . activeUpdateChecks } , queued: ${ this . updateCheckQueue . length } ` ) ;
364363
364+ Log . debug ( `Finished update check for ${ check . directoryName } , pending: ${ this . pendingUpdateChecks } , active: ${ this . activeUpdateChecks } , queued: ${ this . updateCheckQueue . length } ` ) ;
365365 // Process next item in queue
366366 this . processUpdateCheckQueue ( ) ;
367367 }
0 commit comments