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, versions){
// No versioned endpoints
if(ConcreteResolver === resolvers.Fs)
return noVersioned;
// Versioned endpoints
if(
ConcreteResolver === resolvers.GitRemote||
ConcreteResolver === resolvers.GitHub
) {
var lookup = { versions : {} };
mout.array.forEach(versions, function(version){
lookup.versions[version] = { hash: version};
});
return lookup;
}
return fail;
})