Skip to content

Commit

Permalink
.dependencies 0.17 backwards compat
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed May 19, 2016
1 parent cb64f9f commit 3526261
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ function setSerializedDeps(serializedDeps) {
var depMap = deps[dep] = {};
var serializedDepMap = serializedDeps[dep];
Object.keys(serializedDepMap).forEach(function(dep) {
depMap[dep] = new PackageName(serializedDepMap[dep]);
if (typeof serializedDepMap[dep] == 'string')
depMap[dep] = new PackageName(serializedDepMap[dep]);
});
});
return deps;
Expand Down

0 comments on commit 3526261

Please sign in to comment.