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.1.0 to 0.1.1

2

index.js

@@ -81,3 +81,3 @@ const fetch = require('node-fetch');

if (typeof headersOrName === 'object' && !value) this.headers = { ...this.headers, ...headersOrName };
else if (typeof headerOrName === 'string' && value) this.headers[headersOrName] = value;
else if (typeof headersOrName === 'string' && value) this.headers[headersOrName] = value;
else throw new TypeError('The "headers" parameter must be either an object or a header field.');

@@ -84,0 +84,0 @@ return this;

{
"name": "node-superfetch",
"version": "0.1.0",
"version": "0.1.1",
"description": "A wrapper for node-fetch that makes it appear like superagent.",

@@ -5,0 +5,0 @@ "main": "index.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