From 97aedad249052b54a4fde6ad24c85390d4e3b181 Mon Sep 17 00:00:00 2001 From: Thomas Lacroix Date: Fri, 6 Nov 2015 13:19:28 +0100 Subject: [PATCH] (config)[Feature]: Add the possibility to set the shorthandResolver falsy. --- lib/core/resolverFactory.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/core/resolverFactory.js b/lib/core/resolverFactory.js index 7b62d3c7e..582a91e21 100644 --- a/lib/core/resolverFactory.js +++ b/lib/core/resolverFactory.js @@ -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;