fetchagent
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -107,3 +107,3 @@ /* global Headers */ | ||
function send(body) { | ||
if (_instanceof(body, Blob) || _instanceof(body, FormData) || typeof body !== 'object') { | ||
if (_instanceof(body, 'Blob') || _instanceof(body, 'FormData') || typeof body !== 'object') { | ||
init.body = body; | ||
@@ -148,4 +148,8 @@ } else { | ||
function _instanceof(object, constructor) { | ||
function _instanceof(object, constructorName) { | ||
if (typeof globalThis === 'undefined') { | ||
return false; | ||
} | ||
const constructor = globalThis[constructorName]; | ||
return typeof constructor === 'function' && object instanceof constructor; | ||
} |
{ | ||
"name": "fetchagent", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Flex API for global fetch", | ||
@@ -5,0 +5,0 @@ "author": { |
5693
133