whatwg-fetch
Advanced tools
Comparing version 3.6.8 to 3.6.9
@@ -171,2 +171,3 @@ (function (global, factory) { | ||
function consumed(body) { | ||
if (body._noBody) return | ||
if (body.bodyUsed) { | ||
@@ -241,2 +242,3 @@ return Promise.reject(new TypeError('Already read')) | ||
if (!body) { | ||
this._noBody = true; | ||
this._bodyText = ''; | ||
@@ -243,0 +245,0 @@ } else if (typeof body === 'string') { |
@@ -165,2 +165,3 @@ /* eslint-disable no-prototype-builtins */ | ||
function consumed(body) { | ||
if (body._noBody) return | ||
if (body.bodyUsed) { | ||
@@ -235,2 +236,3 @@ return Promise.reject(new TypeError('Already read')) | ||
if (!body) { | ||
this._noBody = true; | ||
this._bodyText = '' | ||
@@ -237,0 +239,0 @@ } else if (typeof body === 'string') { |
{ | ||
"name": "whatwg-fetch", | ||
"description": "A window.fetch polyfill.", | ||
"version": "3.6.8", | ||
"version": "3.6.9", | ||
"main": "./dist/fetch.umd.js", | ||
@@ -6,0 +6,0 @@ "module": "./fetch.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
55944
1103