Comparing version 0.3.0-beta-6 to 0.3.0-beta-7
@@ -41,8 +41,9 @@ // Generated by CoffeeScript 1.9.3 | ||
clearCache = function(modules) { | ||
clearCache = function(modules, basePath) { | ||
return Object.keys(modules).forEach(function(key) { | ||
var moduleConfig, path; | ||
var fullPath, moduleConfig, path; | ||
moduleConfig = modules[key]; | ||
path = getPath(moduleConfig); | ||
return delete require.cache[path]; | ||
fullPath = getFullPath(path, basePath); | ||
return delete require.cache[require.resolve(fullPath)]; | ||
}); | ||
@@ -59,4 +60,4 @@ }; | ||
modules = config.modules || {}; | ||
if ((opts != null ? opts.clearCache : void 0) === true) { | ||
clearCache(modules); | ||
if ((options != null ? options.clearCache : void 0) === true) { | ||
clearCache(modules, basePath); | ||
} | ||
@@ -63,0 +64,0 @@ Object.keys(modules).forEach(function(key) { |
{ | ||
"name": "amend", | ||
"version": "0.3.0-beta-6", | ||
"version": "0.3.0-beta-7", | ||
"description": "Dependency injection module and IoC container.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
22506
320
4