From 1fc12f9192f7ad26221f08d3062a69d67a8fd0ba 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 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;