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 2.0.0-alpha.6 to 2.0.0-alpha.7

10

History.md

@@ -5,2 +5,3 @@

* fix: subdomains should be [] if the host is an ip (#808)
* don't pre-bound onerror [breaking change] (#800)

@@ -15,5 +16,10 @@ * fix `ctx.flushHeaders()` to use `res.flushHeaders()` instead of `res.writeHead()` (#795)

2.0.0-alpha.6 / 2016-08-29
==================
2.0.0-alpha.7 / 2016-09-07
==================
* fix: subdomains should be [] if the host is an ip (#808)
2.0.0-alpha.6 / 2016-08-29
==================
* don't pre-bound onerror [breaking change]

@@ -20,0 +26,0 @@

@@ -8,2 +8,3 @@

const net = require('net');
const contentType = require('content-type');

@@ -408,3 +409,5 @@ const stringify = require('url').format;

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

@@ -411,0 +414,0 @@ .reverse()

2

package.json
{
"name": "koa",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"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