diff --git a/lib/core/resolverFactory.js b/lib/core/resolverFactory.js index 9de177705..f015fb485 100644 --- a/lib/core/resolverFactory.js +++ b/lib/core/resolverFactory.js @@ -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;