@uniformdev/redirect
Advanced tools
Comparing version 19.36.0 to 19.36.1-alpha.0
@@ -861,4 +861,7 @@ "use strict"; | ||
} | ||
const protocol = redirectDefinition.targetPreserveIncomingProtocol ? processedUrl.protocol : processedTarget.protocol; | ||
const domain = redirectDefinition.targetPreserveIncomingDomain ? processedUrl.domain : processedTarget.domain; | ||
let protocol = redirectDefinition.targetPreserveIncomingProtocol ? processedUrl.protocol : processedTarget.protocol; | ||
const domain = protocol !== "" ? redirectDefinition.targetPreserveIncomingDomain ? processedUrl.domain : processedTarget.domain : ""; | ||
if (domain === "" && protocol !== "") { | ||
protocol = ""; | ||
} | ||
const port = redirectDefinition.targetPreserveIncomingDomain ? processedUrl.port : processedTarget.port; | ||
@@ -865,0 +868,0 @@ const query = redirectDefinition.sourceRetainQuerystring && redirectDefinition.targetMergeQuerystring ? this.mergeQueryStrings(processedUrl.query, processedTarget.query) : !redirectDefinition.targetMergeQuerystring && redirectDefinition.sourceRetainQuerystring ? processedUrl.query : processedTarget.query; |
@@ -534,4 +534,7 @@ import "./chunk-TLYAXJ7N.mjs"; | ||
} | ||
const protocol = redirectDefinition.targetPreserveIncomingProtocol ? processedUrl.protocol : processedTarget.protocol; | ||
const domain = redirectDefinition.targetPreserveIncomingDomain ? processedUrl.domain : processedTarget.domain; | ||
let protocol = redirectDefinition.targetPreserveIncomingProtocol ? processedUrl.protocol : processedTarget.protocol; | ||
const domain = protocol !== "" ? redirectDefinition.targetPreserveIncomingDomain ? processedUrl.domain : processedTarget.domain : ""; | ||
if (domain === "" && protocol !== "") { | ||
protocol = ""; | ||
} | ||
const port = redirectDefinition.targetPreserveIncomingDomain ? processedUrl.port : processedTarget.port; | ||
@@ -538,0 +541,0 @@ const query = redirectDefinition.sourceRetainQuerystring && redirectDefinition.targetMergeQuerystring ? this.mergeQueryStrings(processedUrl.query, processedTarget.query) : !redirectDefinition.targetMergeQuerystring && redirectDefinition.sourceRetainQuerystring ? processedUrl.query : processedTarget.query; |
@@ -861,4 +861,7 @@ "use strict"; | ||
} | ||
const protocol = redirectDefinition.targetPreserveIncomingProtocol ? processedUrl.protocol : processedTarget.protocol; | ||
const domain = redirectDefinition.targetPreserveIncomingDomain ? processedUrl.domain : processedTarget.domain; | ||
let protocol = redirectDefinition.targetPreserveIncomingProtocol ? processedUrl.protocol : processedTarget.protocol; | ||
const domain = protocol !== "" ? redirectDefinition.targetPreserveIncomingDomain ? processedUrl.domain : processedTarget.domain : ""; | ||
if (domain === "" && protocol !== "") { | ||
protocol = ""; | ||
} | ||
const port = redirectDefinition.targetPreserveIncomingDomain ? processedUrl.port : processedTarget.port; | ||
@@ -865,0 +868,0 @@ const query = redirectDefinition.sourceRetainQuerystring && redirectDefinition.targetMergeQuerystring ? this.mergeQueryStrings(processedUrl.query, processedTarget.query) : !redirectDefinition.targetMergeQuerystring && redirectDefinition.sourceRetainQuerystring ? processedUrl.query : processedTarget.query; |
{ | ||
"name": "@uniformdev/redirect", | ||
"version": "19.36.0", | ||
"version": "19.36.1-alpha.0+a6b7449c1", | ||
"description": "Uniform redirect client", | ||
@@ -35,3 +35,3 @@ "license": "SEE LICENSE IN LICENSE.txt", | ||
"dependencies": { | ||
"@uniformdev/context": "19.36.0", | ||
"@uniformdev/context": "19.36.1-alpha.0+a6b7449c1", | ||
"p-limit": "^3.1.0", | ||
@@ -43,3 +43,3 @@ "rfdc": "^1.3.0" | ||
}, | ||
"gitHead": "3ae246a7f0f39adeaf04ecba4c7e48c478c019ad" | ||
"gitHead": "a6b7449c13066f2bdef2d5209c230986507fb454" | ||
} |
Sorry, the diff of this file is not supported yet
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
172688
4059
2
1
- Removed@uniformdev/context@19.36.0(transitive)
- Removeddequal@2.0.3(transitive)
- Removedjs-cookie@3.0.5(transitive)
- Removedmitt@3.0.1(transitive)