Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@immjs/express-subdomain

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@immjs/express-subdomain - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

4

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc