Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.spread(function(ConcreteResolver, source, repositoryPackageName) {
if(packageName != repositoryPackageName)
return { redirect: endpoint + ':' + repositoryPackageName };
if(
ConcreteResolver === resolvers.GitRemote ||
ConcreteResolver === resolvers.GitHub ||
ConcreteResolver === resolvers.Fs
)
return undefined;
return fail;
})
.then(resolve)