koa-trie-router
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -25,2 +25,3 @@ /** | ||
*/ | ||
/* istanbul ignore next */ | ||
function noop() { | ||
@@ -27,0 +28,0 @@ } |
@@ -10,3 +10,3 @@ | ||
add(key, middleware = []) { | ||
let stack = this.get(key) || [] | ||
let stack = this.get(key) | ||
stack.push(...middleware) | ||
@@ -13,0 +13,0 @@ this.set(key, stack) |
@@ -95,2 +95,3 @@ | ||
/* istanbul ignore if */ | ||
if (!stack.length) { | ||
@@ -97,0 +98,0 @@ return |
{ | ||
"name": "koa-trie-router", | ||
"description": "Trie-routing for Koa", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Jonathan Ong", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13652
278