react-fetch-hook
Advanced tools
Comparing version 1.7.1 to 1.7.2
{ | ||
"name": "react-fetch-hook", | ||
"version": "1.7.1", | ||
"version": "1.7.2", | ||
"description": "React fetch hook", | ||
@@ -14,4 +14,3 @@ "scripts": { | ||
"run:example:depends": "parcel ./examples/depends/index.html", | ||
"run:example:pagination": "parcel ./examples/pagination/index.html --no-cache", | ||
"prepublish": "npm run flow:check && npm run typescript && npm run lint && npm run size && npm run test" | ||
"run:example:pagination": "parcel ./examples/pagination/index.html --no-cache" | ||
}, | ||
@@ -35,11 +34,5 @@ "eslintConfig": { | ||
], | ||
"limit": "397 B", | ||
"path": "index.js" | ||
}, | ||
{ | ||
"ignore": [ | ||
"react" | ||
], | ||
"limit": "227 B", | ||
"path": "usePaginatedRequest.js" | ||
"limit": "408 B", | ||
"path": "index.js", | ||
"running": false | ||
} | ||
@@ -59,7 +52,2 @@ ], | ||
], | ||
"pre-commit": [ | ||
"lint", | ||
"flow:check", | ||
"test" | ||
], | ||
"repository": { | ||
@@ -112,3 +100,2 @@ "type": "git", | ||
"parcel-bundler": "^1.12.3", | ||
"pre-commit": "^1.2.2", | ||
"react": "^16.8.0", | ||
@@ -115,0 +102,0 @@ "react-dom": "^16.8.0", |
# react-fetch-hook | ||
[![Build Status](https://travis-ci.org/ilyalesik/react-fetch-hook.svg?branch=master)](https://travis-ci.org/ilyalesik/react-fetch-hook) | ||
[![CircleCI](https://circleci.com/gh/ilyalesik/react-fetch-hook.svg?style=shield)](https://circleci.com/gh/ilyalesik/react-fetch-hook) | ||
[![npm version](https://img.shields.io/npm/v/react-fetch-hook.svg)](https://www.npmjs.com/package/react-fetch-hook) | ||
@@ -9,3 +9,3 @@ [![npm downloads](https://img.shields.io/npm/dt/react-fetch-hook.svg)](https://www.npmjs.com/package/react-fetch-hook) | ||
* **Tiny** (397 B). Calculated by [size-limit](https://github.com/ai/size-limit) | ||
* **Tiny** (408 B). Calculated by [size-limit](https://github.com/ai/size-limit) | ||
* Both **Flow** and **TypeScript** types included | ||
@@ -12,0 +12,0 @@ |
@@ -9,3 +9,3 @@ function flattenInput () { | ||
} | ||
} else if (input instanceof URL) { | ||
} else if (typeof URL !== 'undefined' && input instanceof URL) { | ||
res = res.concat(input.toJSON()) | ||
@@ -12,0 +12,0 @@ } else if (input instanceof Object) { |
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
36
14517