From 413b6e9690d615c8a5fbf2f402fce152f62da363 Mon Sep 17 00:00:00 2001 From: BiatuAutMiahn Date: Fri, 9 Aug 2019 01:57:55 -0400 Subject: [PATCH] Debug _normalizeUrl() Added some debug messaging to _normalizeUrl() --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 3119444c28..9c57e37ce2 100644 --- a/src/utils.js +++ b/src/utils.js @@ -1,7 +1,6 @@ const path = require('path'); const fs = require('fs'); const url = require('url'); - const mkdirp = require('mkdirp'); const parseIntStrict = require('parse-int'); @@ -29,6 +28,7 @@ function _getBaseUrl(u, currentBaseUrl = '') { module.exports._getBaseUrl = _getBaseUrl; function _normalizeUrl(src, baseUrl) { + console.warn('_normalizeUrl:'+JSON.stringify({'src':src,'baseUrl': baseUrl},null,2)) if (/^\/\//.test(src)) { src = new URL(baseUrl).protocol + src; }