You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

koa

Package Overview
Dependencies
Maintainers
5
Versions
114
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

to
1.6.0

5

History.md
1.6.0 / 2018-02-12
==================
* feat: ignore set/remove header/status when header sent (#1145)
1.5.1 / 2018-01-25

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

@@ -82,2 +82,4 @@

set status(code) {
if (this.headerSent) return;
assert('number' == typeof code, 'status code must be a number');

@@ -233,2 +235,4 @@ assert(statuses[code], 'invalid status code: ' + code);

vary: function(field){
if (this.headerSent) return;
vary(this.res, field);

@@ -435,2 +439,4 @@ },

set: function(field, val){
if (this.headerSent) return;
if (2 == arguments.length) {

@@ -481,2 +487,4 @@ if (Array.isArray(val)) val = val.map(String);

remove: function(field){
if (this.headerSent) return;
this.res.removeHeader(field);

@@ -483,0 +491,0 @@ },

2

package.json
{
"name": "koa",
"version": "1.5.1",
"version": "1.6.0",
"description": "Koa web app framework",

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