New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bfn-proxy

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bfn-proxy - npm Package Compare versions

Comparing version 1.2.8 to 1.2.9

7

lib/bfn-proxy.js

@@ -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/)",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc