Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

koa

Package Overview
Dependencies
Maintainers
9
Versions
105
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 1.2.3 to 1.2.4

5

History.md
1.2.4 / 2016-09-07
==================
* fix: should get subdomains from hostname instead (#809)
1.2.3 / 2016-09-07

@@ -3,0 +8,0 @@ ==================

6

lib/request.js

@@ -421,5 +421,5 @@

var offset = this.app.subdomainOffset;
var host = this.host || '';
if (net.isIP(host)) return [];
return host
var hostname = this.hostname;
if (net.isIP(hostname)) return [];
return hostname
.split('.')

@@ -426,0 +426,0 @@ .reverse()

{
"name": "koa",
"version": "1.2.3",
"version": "1.2.4",
"description": "Koa web app framework",

@@ -5,0 +5,0 @@ "main": "lib/application.js",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc