Skip to content

Commit

Permalink
Ignore dependencies that are objects
Browse files Browse the repository at this point in the history
  • Loading branch information
kriszyp committed Mar 12, 2011
1 parent eec13fe commit dc3482e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ var scan = function scan(catalog, name) {
if (!packageDatum)
throw name;
try {
if (packageDatum.dependencies) {
if (packageDatum.dependencies && packageDatum.dependencies.forEach) {
packageDatum.dependencies.forEach(function (dependency) {
scan(catalog, dependency);
});
Expand Down

0 comments on commit dc3482e

Please sign in to comment.