Socket
Socket
Sign inDemoInstall

node-superfetch

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-superfetch - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

6

index.js
const FormData = require('form-data');
const arrayBufferToBuffer = require('arraybuffer-to-buffer');
const { URL } = require('url');

@@ -28,3 +29,6 @@ const { METHODS } = require('http');

let raw = null;
if (!this.noResultData) raw = await response.arrayBuffer();
if (!this.noResultData) {
raw = await response.arrayBuffer();
raw = arrayBufferToBuffer(raw);
}
const headers = {};

@@ -31,0 +35,0 @@ for (const [header, value] of response.headers.entries()) headers[header] = value;

3

package.json
{
"name": "node-superfetch",
"version": "0.3.1",
"version": "0.3.2",
"description": "A wrapper for Node.js' fetch API that makes it appear like superagent.",

@@ -38,2 +38,3 @@ "main": "index.js",

"@types/node": "^18.7.18",
"arraybuffer-to-buffer": "^0.0.7",
"eslint": "^8.23.1",

@@ -40,0 +41,0 @@ "eslint-config-amber": "^2.0.4",

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