@immjs/express-subdomain
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -22,6 +22,6 @@ "use strict"; | ||
const currentRelevantSubdomain = relevantSubdomains[i]; | ||
if (currentSubdomain === '@' && currentRelevantSubdomain == undefined) { | ||
if (currentSubdomain === '@' && currentRelevantSubdomain === undefined) { | ||
break; | ||
} | ||
if (currentSubdomain === '*') { | ||
if (currentSubdomain === '*' && currentRelevantSubdomain !== undefined) { | ||
req._subdomainLevel = req.subdomains.length; | ||
@@ -28,0 +28,0 @@ break; |
@@ -35,6 +35,6 @@ import express from "express"; | ||
if (currentSubdomain === '@' && currentRelevantSubdomain == undefined) { | ||
if (currentSubdomain === '@' && currentRelevantSubdomain === undefined) { | ||
break; | ||
} | ||
if (currentSubdomain === '*') { | ||
if (currentSubdomain === '*' && currentRelevantSubdomain !== undefined) { | ||
req._subdomainLevel = req.subdomains.length; | ||
@@ -41,0 +41,0 @@ break; |
{ | ||
"name": "@immjs/express-subdomain", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
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
20182