Socket
Socket
Sign inDemoInstall

fast-proxy

Package Overview
Dependencies
7
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.1.0

index.d.ts

6

index.js

@@ -25,3 +25,3 @@ 'use strict'

module.exports = (opts) => {
function fastProxy (opts = {}) {
const { request, close } = buildRequest({

@@ -184,1 +184,5 @@ ...opts

}
module.exports = fastProxy
module.exports.default = fastProxy
module.exports.fastProxy = fastProxy

22

package.json
{
"name": "fast-proxy",
"version": "2.0.0",
"version": "2.1.0",
"description": "Forward your HTTP request to another server.",
"main": "index.js",
"types": "index.d.ts",
"scripts": {

@@ -24,2 +25,3 @@ "lint": "npx standard",

"README.md",
"index.d.ts",
"index.js",

@@ -38,15 +40,15 @@ "lib/"

"devDependencies": {
"0http": "^3.0.0",
"0http": "^3.1.1",
"body-parser": "^1.19.0",
"chai": "^4.3.0",
"follow-redirects": "^1.13.3",
"chai": "^4.3.4",
"follow-redirects": "^1.14.4",
"h2url": "^0.2.0",
"http-proxy": "^1.18.1",
"mocha": "^8.3.0",
"nock": "^13.0.9",
"mocha": "^8.4.0",
"nock": "^13.1.3",
"nyc": "^15.1.0",
"pem": "^1.14.4",
"restana": "^4.8.1",
"restana": "^4.9.1",
"standard": "^16.0.3",
"supertest": "^6.1.3"
"supertest": "^6.1.6"
},

@@ -56,6 +58,6 @@ "dependencies": {

"pump": "^3.0.0",
"semver": "^7.3.4",
"semver": "^7.3.5",
"tiny-lru": "^7.0.6",
"undici": "^3.3.3"
"undici": "^3.3.6"
}
}

@@ -41,2 +41,11 @@ # fast-proxy

Using imports:
```ts
import fastProxy from 'fast-proxy'
const { proxy, close } = fastProxy({
base: 'http://127.0.0.1:3000'
})
```
## Benchmarks

@@ -160,2 +169,2 @@ Please see: https://github.com/jkyberneees/nodejs-proxy-benchmarks

## License
MIT
MIT
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc