Comparing version 1.2.8 to 1.2.9
@@ -21,2 +21,3 @@ 'use strict' | ||
if (!request.headers.referer || (request.url.replace(/^\/+/gm, '').length < 4)) { | ||
if (!opts.enableAPI) return res404(response) | ||
var otherUriMatch = request.url.match('^/?api/1/([a-z_-]+)/?$') | ||
@@ -33,6 +34,6 @@ if (!otherUriMatch) return res404(response) | ||
} | ||
} else if (opts.root_url) { | ||
} else if (opts.rootURL) { | ||
uriMatch = rootHtmlUriMatch | ||
uriMatch[2] = '/' + opts.root_url + '/' + request.url.replace(/^\/+/gm, '') | ||
uriMatch[1] = opts.root_schema || 'https' | ||
uriMatch[2] = '/' + opts.rootURL + '/' + request.url.replace(/^\/+/gm, '') | ||
uriMatch[1] = opts.rootSchema || 'https' | ||
} else { | ||
@@ -39,0 +40,0 @@ return res404(response) |
{ | ||
"name": "bfn-proxy", | ||
"version": "1.2.8", | ||
"version": "1.2.9", | ||
"description": "HTTP request proxy middleware for node.js", | ||
@@ -5,0 +5,0 @@ "author": "Blue Fidelity Inc. (https://www.bluefidelity.com/)", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
10487
121
2