@ladjs/proxy
Advanced tools
Comparing version 3.0.4 to 4.0.0
15
index.js
@@ -16,3 +16,4 @@ const process = require('node:process'); | ||
logger: console, | ||
port: process.env.PROXY_PORT || null, | ||
port: process.env.PROXY_PORT || 0, | ||
serverHost: process.env.PROXY_HOST || '::', | ||
certbot: { | ||
@@ -81,4 +82,12 @@ name: process.env.CERTBOT_WELL_KNOWN_NAME || null, | ||
async listen(port) { | ||
await util.promisify(this.server.listen).bind(this.server)(port); | ||
async listen( | ||
port = this.config.port, | ||
host = this.config.serverHost, | ||
...args | ||
) { | ||
await util.promisify(this.server.listen).bind(this.server)( | ||
port, | ||
host, | ||
...args | ||
); | ||
} | ||
@@ -85,0 +94,0 @@ |
{ | ||
"name": "@ladjs/proxy", | ||
"description": "Proxy for Lad", | ||
"version": "3.0.4", | ||
"version": "4.0.0", | ||
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)", | ||
@@ -18,19 +18,19 @@ "bugs": { | ||
"lodash": "^4.17.21", | ||
"router": "^1.3.7", | ||
"router": "^1.3.8", | ||
"url-parse": "^1.5.10" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^17.4.2", | ||
"@commitlint/config-conventional": "^17.4.2", | ||
"ava": "^5.1.1", | ||
"@commitlint/cli": "^17.5.1", | ||
"@commitlint/config-conventional": "^17.4.4", | ||
"ava": "^5.2.0", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^8.33.0", | ||
"eslint": "^8.36.0", | ||
"eslint-config-xo-lass": "^2.0.1", | ||
"fixpack": "^4.0.0", | ||
"husky": "^8.0.3", | ||
"lint-staged": "^13.1.0", | ||
"lint-staged": "^13.2.0", | ||
"nyc": "^15.1.0", | ||
"remark-cli": "^11.0.0", | ||
"remark-preset-github": "^4.0.4", | ||
"sinon": "^15.0.1", | ||
"sinon": "^15.0.3", | ||
"supertest": "^6.3.3", | ||
@@ -37,0 +37,0 @@ "xo": "^0.53.1" |
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
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
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
7013
87
5
Updatedrouter@^1.3.8