Socket
Socket
Sign inDemoInstall

autofetch

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autofetch - npm Package Compare versions

Comparing version 1.2.8 to 1.3.0

2

package.json
{
"name": "autofetch",
"version": "1.2.8",
"version": "1.3.0",
"description": "fetch for node",

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

@@ -12,2 +12,8 @@ # autoFetch

## Why Not `isomorphic-fetch`
- More api for node env
- Headers.keys
- Headers.values
- global baseHost,callback,headers,queries and url params
## Usage

@@ -32,2 +38,3 @@ ```js

````
## Contribution
PR and issue welcome
"use strict";
const realFetch = require('isomorphic-fetch/fetch-npm-node.js');
global.Headers.prototype.keys = global.Headers.prototype.keys ||
function () {
return Object.keys(this._headers || {});
};
global.Headers.prototype.values = global.Headers.prototype.values ||
function () {
return Object.keys(this._headers || {}).map((key) => this._headers[k]);
};
const { fetchDecorator } = require('./../dist/utils');

@@ -5,0 +16,0 @@

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