Merge pull request #3084 from Gared/fix_npm_node7

Updated npm to 4.0.2 and removed recursive searching for ep-plugins
pull/3000/head
Stefan 2016-12-20 00:07:26 +01:00 committed by GitHub
commit 368bbe4836
2 changed files with 4 additions and 3 deletions

View File

@ -28,7 +28,7 @@
"log4js" : "0.6.35",
"cheerio" : "0.20.0",
"async-stacktrace" : "0.0.2",
"npm" : "2.7.6",
"npm" : "4.0.2",
"ejs" : "2.4.1",
"graceful-fs" : "4.1.3",
"slide" : "1.1.6",

View File

@ -117,13 +117,14 @@ exports.getPackages = function (cb) {
delete packages[name].parent;
}
if (deps[name].dependencies !== undefined) flatten(deps[name].dependencies);
// I don't think we need recursion
//if (deps[name].dependencies !== undefined) flatten(deps[name].dependencies);
});
}
var tmp = {};
tmp[data.name] = data;
flatten(tmp);
flatten(tmp[undefined].dependencies);
cb(null, packages);
});
};