undici 4.8.2 → 4.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -171,7 +171,7 @@ async function fetch (...args) {
171
171
 
172
172
  // 3. If response is a network error, then reject p with a TypeError
173
173
  // and terminate these substeps.
174
- if (response.status === 0) {
174
+ if (response.type === 'error') {
175
175
  p.reject(
176
176
  Object.assign(new TypeError('fetch failed'), { cause: response.error })
177
177
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "undici",
3
- "version": "4.8.2",
3
+ "version": "4.9.0",
4
4
  "description": "An HTTP/1.1 client, written from scratch for Node.js",
5
5
  "homepage": "https://undici.nodejs.org",
6
6
  "bugs": {