New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.2.1 to 1.2.3

2

index.js

@@ -8,3 +8,3 @@ "use strict";

let subdomains = subdomain.split('.').reverse();
const invalidSymbol = ['*', '@'].every((v) => (subdomains.includes(v)) === (subdomains[0] === v));
const invalidSymbol = ['*', '@'].find((v) => (subdomains.includes(v)) !== (subdomains[0] === v));
if (invalidSymbol)

@@ -11,0 +11,0 @@ throw new Error(`There can not be any subdomains beyond '${invalidSymbol}'`);

@@ -17,3 +17,3 @@ import express from "express";

const invalidSymbol = ['*', '@'].every((v) => (subdomains.includes(v)) === (subdomains[0] === v))
const invalidSymbol = ['*', '@'].find((v) => (subdomains.includes(v)) !== (subdomains[0] === v))

@@ -20,0 +20,0 @@ if (invalidSymbol) throw new Error(`There can not be any subdomains beyond '${invalidSymbol}'`);

{
"name": "@immjs/express-subdomain",
"version": "1.2.1",
"version": "1.2.3",
"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