Comparing version 2.0.3 to 2.0.4
@@ -1105,6 +1105,2 @@ 'use strict' | ||
} | ||
/* istanbul ignore next */ | ||
const onClose = function () { | ||
assert(false, 'socket should not close without error') | ||
} | ||
const onFinished = function (err) { | ||
@@ -1127,3 +1123,2 @@ if (finished) { | ||
.removeListener('error', onFinished) | ||
.removeListener('close', onClose) | ||
body | ||
@@ -1170,3 +1165,2 @@ .removeListener('data', onData) | ||
.on('error', onFinished) | ||
.on('close', onFinished) | ||
} | ||
@@ -1173,0 +1167,0 @@ |
{ | ||
"name": "undici", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "An HTTP/1.1 client, written from scratch for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
350518
70
11453
52