Socket
Socket
Sign inDemoInstall

koa-architect

Package Overview
Dependencies
17
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.5 to 1.0.6

16

lib/architect.js

@@ -52,9 +52,11 @@

for(let verb in module) {
if (isFunction(module[verb]) || isArray(module[verb])) {
router[verb](module[verb])
} else {
for(let action in module[verb]) {
let route = action.startsWith('/') ? action : '/' + action
route = route === '/index' ? '/' : route
router[verb](route, module[verb][action])
if (verb in router) {
if (isFunction(module[verb]) || isArray(module[verb])) {
router[verb](module[verb])
} else {
for(let action in module[verb]) {
let route = action.startsWith('/') ? action : '/' + action
route = route === '/index' ? '/' : route
router[verb](route, module[verb][action])
}
}

@@ -61,0 +63,0 @@ }

{
"name": "koa-architect",
"version": "1.0.5",
"version": "1.0.6",
"homepage": "https://github.com/nervgh/koa-architect",

@@ -5,0 +5,0 @@ "main": "lib/architect.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc