lark-router
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -81,6 +81,6 @@ var rd = require('rd'); | ||
function addRoutePath (router, method, routePath, handler) { | ||
var handler = handler || routePath || method; | ||
var routePath = !!handler ? routePath : '/'; | ||
var method = !!routePath ? method.toLowerCase() : 'get'; | ||
function addRoutePath (router, method, oriRoutePath, oriHandler) { | ||
var handler = oriHandler || oriRoutePath || method; | ||
var routePath = !!oriHandler ? oriRoutePath : '/'; | ||
var method = !!oriRoutePath ? method.toLowerCase() : 'get'; | ||
@@ -87,0 +87,0 @@ if ('function' === typeof handler && 'GeneratorFunction' === handler.constructor.name) { |
{ | ||
"name": "lark-router", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "An koa route initialization and configuration module.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
6350
0