Skip to content

Commit

Permalink
Allow to disable shorthand resolver (#2507)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerun committed Mar 28, 2018
1 parent bb17839 commit 50ee729
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/core/resolverFactory.js
Expand Up @@ -176,6 +176,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 50ee729

Please sign in to comment.