@uniformdev/redirect
Advanced tools
Comparing version 19.36.1-alpha.0 to 19.36.1-alpha.4
@@ -861,8 +861,8 @@ "use strict"; | ||
} | ||
let protocol = redirectDefinition.targetPreserveIncomingProtocol ? processedUrl.protocol : processedTarget.protocol; | ||
const domain = protocol !== "" ? redirectDefinition.targetPreserveIncomingDomain ? processedUrl.domain : processedTarget.domain : ""; | ||
let protocol = redirectDefinition.targetPreserveIncomingProtocol || processedTarget.protocol === "" ? processedUrl.protocol : processedTarget.protocol; | ||
const domain = protocol !== "" ? redirectDefinition.targetPreserveIncomingDomain || processedTarget.domain === "" ? processedUrl.domain : processedTarget.domain : ""; | ||
if (domain === "" && protocol !== "") { | ||
protocol = ""; | ||
} | ||
const port = redirectDefinition.targetPreserveIncomingDomain ? processedUrl.port : processedTarget.port; | ||
const port = domain === "" ? "" : redirectDefinition.targetPreserveIncomingDomain || processedTarget.domain === "" ? processedUrl.port : processedTarget.port; | ||
const query = redirectDefinition.sourceRetainQuerystring && redirectDefinition.targetMergeQuerystring ? this.mergeQueryStrings(processedUrl.query, processedTarget.query) : !redirectDefinition.targetMergeQuerystring && redirectDefinition.sourceRetainQuerystring ? processedUrl.query : processedTarget.query; | ||
@@ -869,0 +869,0 @@ const fragment = redirectDefinition.sourceRetainQuerystring && redirectDefinition.targetMergeQuerystring ? this.mergeQueryStrings(processedUrl.fragment, processedTarget.fragment) : !redirectDefinition.targetMergeQuerystring && redirectDefinition.sourceRetainQuerystring ? processedUrl.fragment : processedTarget.fragment; |
@@ -534,8 +534,8 @@ import "./chunk-TLYAXJ7N.mjs"; | ||
} | ||
let protocol = redirectDefinition.targetPreserveIncomingProtocol ? processedUrl.protocol : processedTarget.protocol; | ||
const domain = protocol !== "" ? redirectDefinition.targetPreserveIncomingDomain ? processedUrl.domain : processedTarget.domain : ""; | ||
let protocol = redirectDefinition.targetPreserveIncomingProtocol || processedTarget.protocol === "" ? processedUrl.protocol : processedTarget.protocol; | ||
const domain = protocol !== "" ? redirectDefinition.targetPreserveIncomingDomain || processedTarget.domain === "" ? processedUrl.domain : processedTarget.domain : ""; | ||
if (domain === "" && protocol !== "") { | ||
protocol = ""; | ||
} | ||
const port = redirectDefinition.targetPreserveIncomingDomain ? processedUrl.port : processedTarget.port; | ||
const port = domain === "" ? "" : redirectDefinition.targetPreserveIncomingDomain || processedTarget.domain === "" ? processedUrl.port : processedTarget.port; | ||
const query = redirectDefinition.sourceRetainQuerystring && redirectDefinition.targetMergeQuerystring ? this.mergeQueryStrings(processedUrl.query, processedTarget.query) : !redirectDefinition.targetMergeQuerystring && redirectDefinition.sourceRetainQuerystring ? processedUrl.query : processedTarget.query; | ||
@@ -542,0 +542,0 @@ const fragment = redirectDefinition.sourceRetainQuerystring && redirectDefinition.targetMergeQuerystring ? this.mergeQueryStrings(processedUrl.fragment, processedTarget.fragment) : !redirectDefinition.targetMergeQuerystring && redirectDefinition.sourceRetainQuerystring ? processedUrl.fragment : processedTarget.fragment; |
@@ -861,8 +861,8 @@ "use strict"; | ||
} | ||
let protocol = redirectDefinition.targetPreserveIncomingProtocol ? processedUrl.protocol : processedTarget.protocol; | ||
const domain = protocol !== "" ? redirectDefinition.targetPreserveIncomingDomain ? processedUrl.domain : processedTarget.domain : ""; | ||
let protocol = redirectDefinition.targetPreserveIncomingProtocol || processedTarget.protocol === "" ? processedUrl.protocol : processedTarget.protocol; | ||
const domain = protocol !== "" ? redirectDefinition.targetPreserveIncomingDomain || processedTarget.domain === "" ? processedUrl.domain : processedTarget.domain : ""; | ||
if (domain === "" && protocol !== "") { | ||
protocol = ""; | ||
} | ||
const port = redirectDefinition.targetPreserveIncomingDomain ? processedUrl.port : processedTarget.port; | ||
const port = domain === "" ? "" : redirectDefinition.targetPreserveIncomingDomain || processedTarget.domain === "" ? processedUrl.port : processedTarget.port; | ||
const query = redirectDefinition.sourceRetainQuerystring && redirectDefinition.targetMergeQuerystring ? this.mergeQueryStrings(processedUrl.query, processedTarget.query) : !redirectDefinition.targetMergeQuerystring && redirectDefinition.sourceRetainQuerystring ? processedUrl.query : processedTarget.query; | ||
@@ -869,0 +869,0 @@ const fragment = redirectDefinition.sourceRetainQuerystring && redirectDefinition.targetMergeQuerystring ? this.mergeQueryStrings(processedUrl.fragment, processedTarget.fragment) : !redirectDefinition.targetMergeQuerystring && redirectDefinition.sourceRetainQuerystring ? processedUrl.fragment : processedTarget.fragment; |
{ | ||
"name": "@uniformdev/redirect", | ||
"version": "19.36.1-alpha.0+a6b7449c1", | ||
"version": "19.36.1-alpha.4+99b59c404", | ||
"description": "Uniform redirect client", | ||
@@ -35,3 +35,3 @@ "license": "SEE LICENSE IN LICENSE.txt", | ||
"dependencies": { | ||
"@uniformdev/context": "19.36.1-alpha.0+a6b7449c1", | ||
"@uniformdev/context": "19.36.1-alpha.4+99b59c404", | ||
"p-limit": "^3.1.0", | ||
@@ -43,3 +43,3 @@ "rfdc": "^1.3.0" | ||
}, | ||
"gitHead": "a6b7449c13066f2bdef2d5209c230986507fb454" | ||
"gitHead": "99b59c4046213b258e6610258c603878c490a0b9" | ||
} |
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
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
173176