Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fast-gateway

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-gateway - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

2

index.js

@@ -10,2 +10,3 @@ /* eslint-disable no-useless-call */

const send = require('@polka/send-type')
const TRANSFER_ENCODING_HEADER_NAME = 'transfer-encoding'

@@ -107,3 +108,2 @@ const gateway = (opts) => {

const onResponse = async (req, res, stream) => {
const TRANSFER_ENCODING_HEADER_NAME = 'transfer-encoding'
const chunked = stream.headers[TRANSFER_ENCODING_HEADER_NAME]

@@ -110,0 +110,0 @@ ? stream.headers[TRANSFER_ENCODING_HEADER_NAME].endsWith('chunked')

{
"name": "fast-gateway",
"version": "2.1.1",
"version": "2.1.2",
"description": "A Node.js API Gateway for the masses!",

@@ -30,4 +30,4 @@ "main": "index.js",

"@polka/send-type": "^0.5.2",
"fast-proxy": "^1.4.0",
"http-cache-middleware": "^1.2.3",
"fast-proxy": "^1.4.1",
"http-cache-middleware": "^1.2.5",
"restana": "^4.0.7",

@@ -41,3 +41,3 @@ "stream-to-array": "^2.3.0"

"express-jwt": "^5.3.1",
"express-rate-limit": "^5.0.0",
"express-rate-limit": "^5.1.1",
"helmet": "^3.21.2",

@@ -44,0 +44,0 @@ "mocha": "^7.0.1",

@@ -112,5 +112,5 @@ # fast-gateway

const toArray = require('stream-to-array')
const TRANSFER_ENCODING_HEADER_NAME = 'transfer-encoding'
const onResponse = async (req, res, stream) => {
const TRANSFER_ENCODING_HEADER_NAME = 'transfer-encoding'
const chunked = stream.headers[TRANSFER_ENCODING_HEADER_NAME]

@@ -324,2 +324,5 @@ ? stream.headers[TRANSFER_ENCODING_HEADER_NAME].endsWith('chunked')

- fast-gateway: **18069.77** reqs/secs
- k-fastify-gateway: 9763.61 reqs/secs
- k-fastify-gateway: 9763.61 reqs/secs
## Sponsors
- Kindly sponsored by [ShareNow](https://www.share-now.com/), a company that promotes innovation!
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