@cypress/request
Advanced tools
Comparing version 2.88.6 to 2.88.7
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "2.88.6", | ||
"version": "2.88.7", | ||
"author": "Mikeal Rogers <mikeal.rogers@gmail.com>", | ||
@@ -13,0 +13,0 @@ "repository": { |
@@ -1073,2 +1073,10 @@ 'use strict' | ||
responseContent.on('error', function (error) { | ||
if (error.code === 'ECONNRESET' && error.message === 'aborted' && self.listenerCount('error') === 0) { | ||
// Node 16 causes aborts to emit errors if there is an error listener. | ||
// Without this short-circuit, it will cause unhandled exceptions since | ||
// there is not always an `error` listener on `self`, but there will | ||
// always be an `error` listener on `responseContent`. | ||
// @see https://github.com/nodejs/node/pull/33172 | ||
return | ||
} | ||
self.emit('error', error) | ||
@@ -1075,0 +1083,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
205248
2439