Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function (subDeps, cb) {
console.log(archy({
label: path.basename(cwd),
nodes: subDeps.map(function (dep) {
return '[' + dep.shasum + '] ' + (dep.error ? dep.error.message : dep.pkg.name + '@' + dep.pkg.version)
})
}))
}
])
function printTree(project, usedExtensions, projectExtensions) {
const getParents = (extensionName) =>
usedExtensions
.find(({ name }) => name === extensionName)
.parents
.map(({ name, version }) => ({
label: `${name}@${version}`,
nodes: getParents(name),
}));
const tree = projectExtensions.map(({ name, version }) => ({
label: `${name}@${version}`,
nodes: getParents(name),
}));
return archy({
label: `${project.name}@${project.version}`,
nodes: tree,
});
}
}),
);
const packageInfo = {
label: chalk.underline(moduleName),
nodes: buildedOccurrences,
};
if (monorepoPackageName) {
return archy({
label: chalk.bold(monorepoPackageName),
nodes: [packageInfo],
});
}
return archy(packageInfo);
};