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

koa-dispatch

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-dispatch - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

16

index.js

@@ -119,5 +119,19 @@ /**

var params = params.filter(function (key) { return !!paramifiers[key.name] })
.map(function (key) { return paramifiers[key.name] });
.map(function (key) { return paramifiers[key.name]; }).map(applyArg);
// flatten the functions so we can yield them nicely
return Array.prototype.concat.apply([], params);
}
/**
* @param {Array} fns
* @param {Number} i
* @api private
*/
function applyArg (fns, i) {
return fns.map(function (fn) {
return function () {
return fn.call(this, arguments[i]);
};
});
}

2

package.json

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

"repository": "cartograph/koa-dispatch",
"version": "2.0.0",
"version": "2.0.1",
"keywords": [

@@ -8,0 +8,0 @@ "koa",

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