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

fetches

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetches - npm Package Compare versions

Comparing version 1.0.1-23.0 to 1.0.1-24.0

9

lib/module.js

@@ -7,2 +7,3 @@ 'use strict';

var _get = _interopDefault(require('lodash.get'));
var isPlainObject = _interopDefault(require('is-plain-object'));

@@ -33,4 +34,8 @@ var isArray = _interopDefault(require('is-array'));

var isFormData = function isFormData(value) {
return _get(value, 'constructor.name', '') === 'FormData';
};
var isMergeableObject = function isMergeableObject(param) {
if (param.constructor.name === 'FormData') {
if (isFormData(param)) {
return false;

@@ -286,3 +291,3 @@ }

if (data.contructor.name === 'FormData') {
if (isFormData(data)) {
finalOptions.body = data;

@@ -289,0 +294,0 @@ delete finalOptions.headers['content-type'];

{
"name": "fetches",
"version": "1.0.1-23.0",
"version": "1.0.1-24.0",
"description": "Smart and Modern fetch wrapper.",

@@ -5,0 +5,0 @@ "main": "./lib/module.js",

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