New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fetchagent

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetchagent - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

8

lib/fetchagent.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc