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

react-fetch-hook

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-fetch-hook - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2

8

index.js

@@ -8,6 +8,6 @@ var usePromise = require('./usePromise')

) {
return usePromise(function (p, o, s) {
if ((s.depends || o.depends || [])
.reduce(function (acc, dep) { return acc || !dep },
false)) return Promise.resolve()
var blocked = ((specialOptions && specialOptions.depends) ||
(options && options.depends) || [])
.reduce(function (acc, dep) { return acc || !dep }, false)
return usePromise(!blocked && function (p, o, s) {
return fetch(p, o)

@@ -14,0 +14,0 @@ .then((s && s.formatter) || (o && o.formatter) || function (response) {

{
"name": "react-fetch-hook",
"version": "1.6.1",
"version": "1.6.2",
"description": "React fetch hook",

@@ -12,2 +12,3 @@ "scripts": {

"lint": "eslint '**/*.{js,jsx}' --quiet",
"run:example:depends": "parcel ./examples/depends/index.html",
"prepublish": "npm run flow:check && npm run typescript && npm run lint && npm run size && npm run test"

@@ -106,2 +107,3 @@ },

"jest-fetch-mock": "^2.1.0",
"parcel-bundler": "^1.12.3",
"pre-commit": "^1.2.2",

@@ -108,0 +110,0 @@ "react": "^16.8.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