remix-auth-email-link
Advanced tools
Comparing version 1.5.1 to 1.5.2
@@ -130,3 +130,3 @@ "use strict"; | ||
getDomainURL(request) { | ||
var _a; | ||
var _a, _b; | ||
const host = (_a = request.headers.get('X-Forwarded-Host')) !== null && _a !== void 0 ? _a : request.headers.get('host'); | ||
@@ -136,5 +136,5 @@ if (!host) { | ||
} | ||
const protocol = host.includes('localhost') || host.includes('127.0.0.1') | ||
const protocol = (_b = request.headers.get('X-Forwarded-Proto')) !== null && _b !== void 0 ? _b : (host.includes('localhost') || host.includes('127.0.0.1') | ||
? 'http' | ||
: 'https'; | ||
: 'https'); | ||
return `${protocol}://${host}`; | ||
@@ -141,0 +141,0 @@ } |
{ | ||
"name": "remix-auth-email-link", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"main": "./build/index.js", | ||
@@ -5,0 +5,0 @@ "types": "./build/index.d.ts", |
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
30557