@dynacom/core
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -50,3 +50,3 @@ const fs = require('fs'); | ||
let pattern = null; | ||
for (domainIndex; domainIndex < this.domains.length; domainIndex++) { | ||
while (domainIndex < this.domains.length) { | ||
let domainPattern = null; | ||
@@ -58,2 +58,3 @@ if (domainPattern = this.domains[domainIndex].pattern.match(domainString)) { | ||
} | ||
domainIndex++; | ||
} | ||
@@ -67,3 +68,3 @@ request.setDomain(null !== index ? this.domains[index] : null, index, pattern); | ||
if (null != request.domain.routes) { | ||
for (routeIndex; routeIndex < request.domain.routes.length; routeIndex++) { | ||
while (routeIndex < request.domain.routes.length) { | ||
if (request.domain.routes[routeIndex].method.includes(method)) { | ||
@@ -77,2 +78,3 @@ let routePattern = null; | ||
} | ||
routeIndex++; | ||
} | ||
@@ -79,0 +81,0 @@ } |
@@ -14,3 +14,3 @@ { | ||
"name": "@dynacom/core", | ||
"version": "1.0.3" | ||
"version": "1.0.4" | ||
} |
17572
418