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

koa

Package Overview
Dependencies
Maintainers
5
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.5.1 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",

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