You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

koa

Package Overview
Dependencies
Maintainers
11
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa - npm Package Compare versions

Comparing version
2.16.3
to
2.16.4
+11
-1
lib/request.js

@@ -260,3 +260,13 @@

if (!host) return '';
return splitCommaSeparatedValues(host, 1)[0];
host = splitCommaSeparatedValues(host, 1)[0];
// Host header may contain userinfo (e.g., "user@host") which is invalid per RFC 7230.
// Use URL parser to correctly extract the host portion.
if (host.includes('@')) {
try {
host = new URL(`http://${host}`).host;
} catch (e) {
return '';
}
}
return host;
},

@@ -263,0 +273,0 @@

+9
-8
{
"name": "koa",
"version": "2.16.3",
"version": "2.16.4",
"publishConfig": {

@@ -28,2 +28,9 @@ "access": "public",

},
"scripts": {
"test": "jest --forceExit",
"lint": "eslint --ignore-path .gitignore .",
"authors": "git log --format='%aN <%aE>' | sort -u > AUTHORS",
"build": "gen-esm-wrapper . ./dist/koa.mjs",
"prepare": "npm run build"
},
"repository": "koajs/koa",

@@ -86,9 +93,3 @@ "keywords": [

"testEnvironment": "node"
},
"scripts": {
"test": "jest --forceExit",
"lint": "eslint --ignore-path .gitignore .",
"authors": "git log --format='%aN <%aE>' | sort -u > AUTHORS",
"build": "gen-esm-wrapper . ./dist/koa.mjs"
}
}
}