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

koa-trie-router

Package Overview
Dependencies
Maintainers
6
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-trie-router - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

9

lib/routes.js
var compose = require('koa-compose')
var isGenFun = require('is-gen-fn')
var flatten = require('flatten')
var assert = require('assert')
var METHODS = require('methods').map(function (method) {

@@ -65,3 +67,3 @@ return method.toUpperCase()

// Take out all the falsey middleware
var stack = flatten(generators).filter(Boolean)
var stack = flatten(generators).filter(Boolean).filter(assertGenFun)
if (!stack.length) return

@@ -104,1 +106,6 @@

Route.prototype.del = Route.prototype.delete
function assertGenFun(fn) {
assert(isGenFun(fn), 'all middleware must be generator functions')
return fn
}

3

package.json
{
"name": "koa-trie-router",
"description": "Trie-routing for Koa",
"version": "1.0.7",
"version": "1.0.8",
"author": {

@@ -16,2 +16,3 @@ "name": "Jonathan Ong",

"flatten": "0",
"is-gen-fn": "0",
"routington": "1",

@@ -18,0 +19,0 @@ "koa-compose": "2"

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