New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.4.2 to 1.5.0

dist/index.d.ts

11

package.json
{
"name": "react-fetch-hook",
"version": "1.4.2",
"version": "1.5.0",
"description": "React fetch hook",

@@ -9,5 +9,7 @@ "main": "./dist/index.js",

"flow:check": "flow check",
"typescript": "tsc -p tsconfig.json --noEmit",
"copy:ts": "cp ./src/index.d.ts ./dist/index.d.ts",
"test": "jest --silent",
"prettier": "prettier \"*/**/*.js\" --ignore-path ./.prettierignore --write && git add . && git status",
"build": "npm run build:clean && npm run build:lib && npm run build:flow",
"build": "npm run build:clean && npm run build:lib && npm run build:flow && npm run copy:ts",
"build:clean": "rimraf dist",

@@ -71,5 +73,6 @@ "build:lib": "cross-env BABEL_ENV=production babel src --out-dir dist --ignore '**/__tests__/**'",

"react-test-renderer": "^16.8.0",
"react-testing-library": "^5.4.0",
"rimraf": "^2.6.2"
"react-testing-library": "^6.0.0",
"rimraf": "^2.6.2",
"typescript": "^3.4.5"
}
}

@@ -9,2 +9,4 @@ # react-fetch-hook

Both **Flow** and **TS** types included.
```javascript

@@ -28,2 +30,7 @@ import React from "react";

<a href="https://lessmess.agency/?utm_source=react-fetch-hook">
<img src="https://lessmess.agency/badges/sponsored_by_lessmess.svg"
alt="Sponsored by Lessmess" width="236" height="54">
</a>
## Installation

@@ -97,3 +104,4 @@

```javascript
import {createTrigger, useTrigger} from "react-use-trigger";
import createTrigger from "react-use-trigger";
import useTrigger from "react-use-trigger/useTrigger";

@@ -122,3 +130,3 @@ const requestTrigger = createTrigger();

### `useFetch`
### `usePromise`
```javascript

@@ -125,0 +133,0 @@ usePromise<T, I: $ReadOnlyArray<mixed>>(

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