@sitecore-jss/sitecore-jss-proxy
Advanced tools
Comparing version 11.0.2 to 11.0.3
@@ -380,8 +380,10 @@ "use strict"; | ||
result = config.pathRewriteExcludePredicate(originalUrl); | ||
if (config.debug && result) { | ||
console.log("DEBUG: URL " + originalUrl + " did not match the proxy exclude function, and will be treated as a layout service route to render."); | ||
if (!noDebug && config.debug) { | ||
if (result) { | ||
console.log("DEBUG: URL " + originalUrl + " did not match the proxy exclude function, and will be treated as a layout service route to render."); | ||
} | ||
else { | ||
console.log("DEBUG: URL " + originalUrl + " matched the proxy exclude function and will be served verbatim as received."); | ||
} | ||
} | ||
else { | ||
console.log("DEBUG: URL " + originalUrl + " matched the proxy exclude function and will be served verbatim as received."); | ||
} | ||
return result; | ||
@@ -388,0 +390,0 @@ } |
{ | ||
"name": "@sitecore-jss/sitecore-jss-proxy", | ||
"version": "11.0.2", | ||
"version": "11.0.3", | ||
"description": "Proxy middleware for express.js server.", | ||
@@ -44,3 +44,3 @@ "main": "dist/index.js", | ||
"types": "types/index.d.ts", | ||
"gitHead": "27c6ca8667107122315895885854cd5abce528bf" | ||
"gitHead": "b297630702fb5843ca8cbcd377100e271f9b7236" | ||
} |
173886
23
523