New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

testcafe-hammerhead

Package Overview
Dependencies
Maintainers
3
Versions
351
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

testcafe-hammerhead - npm Package Compare versions

Comparing version 9.3.8 to 9.3.9

2

lib/proxy/index.js

@@ -242,4 +242,2 @@ 'use strict';

url = urlUtils.convertHostToLowerCase(url);
return urlUtils.getProxyUrl(url, {

@@ -246,0 +244,0 @@ proxyHostname: this.server1Info.hostname,

19

lib/request-pipeline/destination-request/index.js

@@ -61,7 +61,2 @@ 'use strict';

// Utils
function isDNSErr(err) {
return err.message && /ECONNREFUSED|ENOTFOUND/.test(err.message);
}
// DestinationRequest

@@ -79,2 +74,3 @@

_this.hasResponse = false;
_this.aborted = false;
_this.opts = opts;

@@ -164,2 +160,11 @@ _this.isHttps = opts.protocol === 'https:';

DestinationRequest.prototype._abort = function _abort() {
this.aborted = true;
this.req.abort();
};
DestinationRequest.prototype._isDNSErr = function _isDNSErr(err) {
return err.message && /ECONNREFUSED|ENOTFOUND/.test(err.message) || !this.aborted && !this.hasResponse && err.code && /ECONNRESET/.test(err.code);
};
DestinationRequest.prototype._onTimeout = function _onTimeout() {

@@ -169,3 +174,3 @@ // NOTE: this handler is also called if we get an error response (for example, 404). So, we should check

if (!this.hasResponse) {
this.req.abort();
this._abort();
this.emit('fatalError', (0, _messages.getText)(_messages.MESSAGE.destRequestTimeout, this.opts.url));

@@ -179,3 +184,3 @@ }

this._send();
} else if (isDNSErr(err)) this.emit('fatalError', (0, _messages.getText)(_messages.MESSAGE.cantResolveUrl, this.opts.url));else this.emit('error');
} else if (this._isDNSErr(err)) this.emit('fatalError', (0, _messages.getText)(_messages.MESSAGE.cantResolveUrl, this.opts.url));else this.emit('error');
};

@@ -182,0 +187,0 @@

@@ -9,3 +9,2 @@ 'use strict';

exports.sameOriginCheck = sameOriginCheck;
exports.convertHostToLowerCase = convertHostToLowerCase;
exports.getProxyUrl = getProxyUrl;

@@ -12,0 +11,0 @@ exports.getDomain = getDomain;

{
"name": "testcafe-hammerhead",
"description": "A powerful web-proxy used as a core for the TestCafe testing framework (https://github.com/DevExpress/testcafe).",
"version": "9.3.8",
"version": "9.3.9",
"homepage": "https://github.com/DevExpress/testcafe-hammerhead",

@@ -6,0 +6,0 @@ "bugs": {

Sorry, the diff of this file is too big to display

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