Comparing version 1.0.2 to 2.0.0
{ | ||
"name": "proxy", | ||
"version": "1.0.2", | ||
"version": "2.0.0", | ||
"description": "An HTTP proxy written with Node.js (think Squid)", | ||
"main": "proxy.js", | ||
"scripts": { | ||
"test": "mocha --reporter spec", | ||
"start": "node ./bin/proxy.js" | ||
}, | ||
"bin": "./bin/proxy.js", | ||
"main": "./dist/proxy.js", | ||
"types": "./dist/proxy.d.ts", | ||
"files": [ | ||
"dist" | ||
], | ||
"keywords": [ | ||
@@ -27,36 +26,31 @@ "http", | ||
"type": "git", | ||
"url": "git://github.com/TooTallNate/proxy.git" | ||
"url": "https://github.com/TooTallNate/proxy-agents.git", | ||
"directory": "packages/proxy" | ||
}, | ||
"license": "MIT", | ||
"dependencies": { | ||
"args": "5.0.1", | ||
"basic-auth-parser": "0.0.2", | ||
"debug": "^4.1.1" | ||
"args": "^5.0.3", | ||
"basic-auth-parser": "0.0.2-1", | ||
"debug": "^4.3.4" | ||
}, | ||
"devDependencies": { | ||
"@types/mocha": "^5.2.7", | ||
"@types/node": "^10.5.3", | ||
"@typescript-eslint/eslint-plugin": "1.6.0", | ||
"@typescript-eslint/parser": "1.1.0", | ||
"cpy-cli": "^2.0.0", | ||
"eslint": "5.16.0", | ||
"eslint-config-airbnb": "17.1.0", | ||
"eslint-config-prettier": "4.1.0", | ||
"eslint-import-resolver-typescript": "1.1.1", | ||
"eslint-plugin-import": "2.16.0", | ||
"eslint-plugin-jsx-a11y": "6.2.1", | ||
"eslint-plugin-react": "7.12.4", | ||
"mocha": "6", | ||
"pkg": "^4.3.5", | ||
"rimraf": "^3.0.0", | ||
"typescript": "^3.6.4" | ||
"@types/args": "^5.0.0", | ||
"@types/debug": "^4.1.7", | ||
"@types/jest": "^29.5.1", | ||
"@types/node": "^14.18.43", | ||
"async-listen": "^2.1.0", | ||
"jest": "^29.5.0", | ||
"ts-jest": "^29.1.0", | ||
"typescript": "^5.0.4", | ||
"tsconfig": "0.0.0" | ||
}, | ||
"pkg": { | ||
"targets": [ | ||
"node8-alpine-x64", | ||
"node8-linux-x64", | ||
"node8-macos-x64", | ||
"node8-win-x64" | ||
] | ||
"engines": { | ||
"node": ">= 14" | ||
}, | ||
"scripts": { | ||
"build": "tsc", | ||
"test": "jest --env node --verbose --bail", | ||
"lint": "eslint . --ext .ts", | ||
"pack": "node ../../scripts/pack.mjs" | ||
} | ||
} | ||
} |
proxy | ||
===== | ||
### An HTTP proxy written with Node.js (think Squid) | ||
[![Build Status](https://github.com/TooTallNate/proxy/workflows/Node%20CI/badge.svg)](https://github.com/TooTallNate/proxy/actions?workflow=Node+CI) | ||
@@ -21,20 +20,2 @@ This module provides standard "HTTP proxy" logic. You can script your own server | ||
Installation | ||
------------ | ||
Install with `npm`: | ||
``` bash | ||
$ npm install proxy | ||
``` | ||
If you would like to have the `proxy(1)` CLI program in your `$PATH`, then | ||
install "globally": | ||
``` bash | ||
$ npm install -g proxy | ||
``` | ||
Examples | ||
@@ -48,8 +29,8 @@ -------- | ||
``` js | ||
var http = require('http'); | ||
var setup = require('proxy'); | ||
```ts | ||
import * as http from 'http'; | ||
import { createProxy } from 'proxy'; | ||
var server = setup(http.createServer()); | ||
server.listen(3128, function () { | ||
const server = createProxy(http.createServer()); | ||
server.listen(3128, () => { | ||
var port = server.address().port; | ||
@@ -56,0 +37,0 @@ console.log('HTTP(s) proxy server listening on port %d', port); |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Potential vulnerability
Supply chain riskInitial human review suggests the presence of a vulnerability in this package. It is pending further analysis and confirmation.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
Network access
Supply chain riskThis module accesses the network.
Found 3 instances in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
51008
9
15
895
2
118
+ Addedargs@5.0.3(transitive)
+ Addedbasic-auth-parser@0.0.2-1(transitive)
- Removedargs@5.0.1(transitive)
- Removedbasic-auth-parser@0.0.2(transitive)
Updatedargs@^5.0.3
Updatedbasic-auth-parser@0.0.2-1
Updateddebug@^4.3.4