Skip to content

Commit

Permalink
(config)[Feature]: Add the possibility to set the shorthandResolver f…
Browse files Browse the repository at this point in the history
…alsy.
  • Loading branch information
Thomas Lacroix committed Nov 6, 2015
1 parent a5dcf9c commit 97aedad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/core/resolverFactory.js
Expand Up @@ -164,6 +164,12 @@ function getConstructor(decEndpoint, options, registryClient) {

// Check if is a shorthand and expand it
addResolver(function () {

// Check if the shorthandResolver is falsy
if (!config.shorthandResolver) {
return;
}

// Skip ssh and/or URL with auth
if (/[:@]/.test(source)) {
return;
Expand Down

0 comments on commit 97aedad

Please sign in to comment.