Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@expressen/tallahassee

Package Overview
Dependencies
Maintainers
12
Versions
207
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@expressen/tallahassee - npm Package Compare versions

Comparing version 13.2.1 to 13.2.2

6

index.js

@@ -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",

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