fast-gateway
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -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! |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33755
326
Updatedfast-proxy@^1.4.1
Updatedhttp-cache-middleware@^1.2.5