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

koa-mount

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-mount - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

6

index.js

@@ -37,4 +37,4 @@

var downstream = app.middleware
? compose(app.middleware)(upstream)
: app(upstream);
? compose(app.middleware)
: app;

@@ -50,3 +50,3 @@ return function *(){

debug('enter %s -> %s', prev, this.path);
yield downstream;
yield downstream.call(this, upstream);
debug('leave %s -> %s', prev, this.path);

@@ -53,0 +53,0 @@

@@ -5,3 +5,3 @@ {

"repository": "koajs/mount",
"version": "1.1.0",
"version": "1.2.0",
"keywords": [

@@ -17,3 +17,3 @@ "koa",

"devDependencies": {
"koa": "0.0.1",
"koa": "koajs/koa",
"should": "~1.2.2",

@@ -25,5 +25,5 @@ "mocha": "~1.12.1",

"dependencies": {
"koa-compose": "~1.0.0",
"koa-compose": "2.0.0",
"debug": "*"
}
}

@@ -34,7 +34,5 @@

a.use(function(next){
return function *(){
yield next;
this.body = 'Hello';
}
a.use(function *(next){
yield next;
this.body = 'Hello';
});

@@ -46,7 +44,5 @@

b.use(function(next){
return function *(){
yield next;
this.body = 'World';
}
b.use(function *(next){
yield next;
this.body = 'World';
});

@@ -87,14 +83,10 @@

function hello(next){
return function *(){
yield next;
this.body = 'Hello';
}
function *hello(next){
yield next;
this.body = 'Hello';
}
function world(next){
return function *(){
yield next;
this.body = 'World';
}
function *world(next){
yield next;
this.body = 'World';
}

@@ -101,0 +93,0 @@

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