@expressen/tallahassee
Advanced tools
Comparing version 13.2.1 to 13.2.2
@@ -25,5 +25,5 @@ "use strict"; | ||
Tallahassee.prototype.navigateTo = async function navigateTo(linkUrl, headers = {}, statusCode = 200) { | ||
Tallahassee.prototype.navigateTo = async function navigateTo(uri, headers = {}, statusCode = 200) { | ||
const webPage = this._getWebPage(headers); | ||
return webPage.navigateTo(linkUrl, webPage.originRequestHeaders, statusCode); | ||
return webPage.navigateTo(uri, webPage.isOriginUrl(uri) && webPage.originRequestHeaders, statusCode); | ||
}; | ||
@@ -52,3 +52,3 @@ | ||
} | ||
requestHeaders["set-cookie"] = undefined; | ||
delete requestHeaders["set-cookie"]; | ||
} | ||
@@ -55,0 +55,0 @@ |
@@ -130,3 +130,3 @@ "use strict"; | ||
let headers = requestOptions.headers = normalizeHeaders(requestOptions.headers); | ||
const isLocal = uri.startsWith("/") || parsedUri.hostname === this.originHost; | ||
const isLocal = this.isOriginUrl(uri); | ||
if (isLocal) { | ||
@@ -175,2 +175,6 @@ origin = new Origin(this[kOrigin]); | ||
} | ||
isOriginUrl(uri) { | ||
if (uri.startsWith("/")) return true; | ||
return new URL(uri).hostname === this.originHost; | ||
} | ||
}; |
{ | ||
"name": "@expressen/tallahassee", | ||
"version": "13.2.1", | ||
"version": "13.2.2", | ||
"description": "Lightweight client testing framework", | ||
@@ -39,3 +39,3 @@ "main": "index.js", | ||
"chai": "^4.3.7", | ||
"eslint": "^8.27.0", | ||
"eslint": "^8.28.0", | ||
"express": "^4.18.2", | ||
@@ -42,0 +42,0 @@ "markdown-toc": "^1.2.0", |
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
125639
3570