module-lookup-amd
Advanced tools
Comparing version 8.0.4 to 8.0.5
15
index.js
@@ -33,5 +33,5 @@ 'use strict'; | ||
debug('config: ', config); | ||
debug('partial: ', depPath); | ||
debug('filename: ', filename); | ||
debug(`config: ${config}`); | ||
debug(`partial: ${depPath}`); | ||
debug(`filename: ${filename}`); | ||
@@ -48,3 +48,3 @@ if (typeof config === 'string') { | ||
debug('configPath: ', configPath); | ||
debug(`configPath: ${configPath}`); | ||
@@ -99,4 +99,3 @@ if (!config.baseUrl) { | ||
// Need to guard against jquery.min being treated as a real file | ||
if (path.extname(resolved) && fileExists(resolved, fileSystem)) { | ||
if (path.extname(resolved) && fileExists(resolved)) { | ||
debug(`${resolved} already has an extension and is a real file`); | ||
@@ -136,5 +135,5 @@ return resolved; | ||
function fileExists(filepath = '', fileSystem = fs) { | ||
function fileExists(filepath = '') { | ||
try { | ||
return fileSystem.statSync(filepath).isFile(); | ||
return fs.statSync(filepath).isFile(); | ||
} catch (error) { | ||
@@ -141,0 +140,0 @@ // Check exception. If ENOENT - no such file or directory ok, file doesn't exist. |
{ | ||
"name": "module-lookup-amd", | ||
"version": "8.0.4", | ||
"version": "8.0.5", | ||
"description": "Resolve aliased dependency paths using a RequireJS config", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
11161