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 2.0.0 to 2.1.0

9

lib/bfn-proxy.js

@@ -20,3 +20,10 @@ 'use strict'

return function (request, response) {
if (request.url.substring(0, 5) === '/api/') {
var uriPrefix = request.url.substring(0, 5)
if (uriPrefix === '/ping') {
response.writeHead(200, {'content-length': 4, 'content-type': 'text/plain'})
return response.end('PONG')
}
if (uriPrefix === '/http') {
request.url = '/' + request.url
} else if (opts.enableAPI && uriPrefix === '/api/') {
var query = parseURL(request.url, true).query

@@ -23,0 +30,0 @@ if (opts.requireKey && opts.requireKey !== query.key) return res404(response)

2

package.json
{
"name": "bfn-proxy",
"version": "2.0.0",
"version": "2.1.0",
"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