mendel-development
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -22,9 +22,8 @@ /* Copyright 2015, Yahoo Inc. | ||
if (!avoidMendelify(row.deps[key])) { | ||
var depMatch = variationMatches(variations, key); | ||
if (depMatch) { | ||
row.deps[depMatch.file] = depsValue( | ||
row.deps[key], variations, expose | ||
); | ||
delete row.deps[key]; | ||
} | ||
var value = row.deps[key]; | ||
delete row.deps[key]; | ||
var newKey = pathOrVariationMatch(key, variations); | ||
var newValue = depsValue(value, variations, expose); | ||
row.deps[newKey] = newValue; | ||
} | ||
@@ -49,2 +48,10 @@ }); | ||
function pathOrVariationMatch(path, variations) { | ||
var match = variationMatches(variations, path); | ||
if (match) { | ||
return match.file; | ||
} | ||
return path; | ||
} | ||
function depsValue(path, variations, expose) { | ||
@@ -55,3 +62,3 @@ var exposedModule = exposeKey(expose, path); | ||
} | ||
return variationMatches(variations, path).file; | ||
return pathOrVariationMatch(path, variations); | ||
} | ||
@@ -58,0 +65,0 @@ |
{ | ||
"name": "mendel-development", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Mendel shared dependencies for build and development", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8999
249