Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lifeomic/axios-fetch

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lifeomic/axios-fetch - npm Package Compare versions

Comparing version 1.5.1 to 1.5.2

2

package.json
{
"name": "@lifeomic/axios-fetch",
"version": "1.5.1",
"version": "1.5.2",
"description": "A WebAPI Fetch implementation backed by an Axios client",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -24,5 +24,4 @@ const { Response, Headers } = require('node-fetch');

method: init.method || 'GET',
data: init.body instanceof FormData ? init.body : String(init.body),
data: typeof init.body === 'undefined' || init.body instanceof FormData ? init.body : String(init.body),
headers: lowerCasedHeaders,
validateStatus: () => true,
// Force the response to an arraybuffer type. Without this, the Response

@@ -35,3 +34,8 @@ // object will try to guess the content type and add headers that weren't in

const result = await axios.request(config);
let result;
try {
result = await axios.request(config);
} catch (err) {
result = err.response;
}

@@ -38,0 +42,0 @@ const headers = new Headers(result.headers);

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