react-fetch-hook
Advanced tools
Comparing version 1.6.1 to 1.6.2
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14506
35