UNPKG

@hyper-fetch/react

Version:

React hooks and utils for the hyper-fetch

87 lines (86 loc) 2.2 kB
{ "name": "@hyper-fetch/react", "version": "6.0.1", "private": false, "description": "React hooks and utils for the hyper-fetch", "author": "Maciej Pyrc <m.pyrc@interia.pl>", "homepage": "https://hyperfetch.bettertyped.com/", "license": "Apache-2.0", "main": "dist/index.cjs.js", "module": "dist/index.esm.js", "types": "dist/index.d.ts", "source": "src/index.ts", "scripts": { "clean": "npx rimraf dist", "test": "jest --watchAll --maxWorkers=3", "test-pipeline": "jest --watchAll=false --maxWorkers=1 --no-cache", "start": "yarn build && npx run-when-changed --watch 'src/**/*.ts' --exec 'yarn build'", "build": "yarn clean && node ../../scripts/build.js", "postbuild": "rollup -c '../../rollup.config.js'", "lint": "eslint . --ext .js,.jsx,.tsx,.ts --fix", "format": "prettier --write .", "typecheck": "tsc --noEmit --emitDeclarationOnly false", "tests": "yarn lint-staged", "release": "yarn semantic-release --extends ../../release.config.js -t 'react-hyper-fetch-v${version}'" }, "peerDependencies": { "@hyper-fetch/core": "*", "@hyper-fetch/sockets": "*", "react": ">= 16.8.0" }, "peerDependenciesMeta": { "@hyper-fetch/sockets": { "optional": true } }, "dependencies": { "@better-hooks/lifecycle": "^1.1.1", "@better-hooks/performance": "^1.1.1" }, "lint-staged": { "*.{js,jsx,ts,tsx}": [ "yarn jest --passWithNoTests" ] }, "eslintConfig": { "extends": [ "react-app", "react-app/jest" ] }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.com/" }, "repository": { "type": "git", "url": "git+https://github.com/BetterTyped/hyper-fetch.git", "directory": "packages/react" }, "bugs": { "url": "https://github.com/BetterTyped/hyper-fetch/issues" }, "keywords": [ "react", "hyper-fetch", "fetch", "xhr", "queue", "cache", "persist", "hooks", "useFetch", "useSubmit", "useCache", "useQueue", "graphql", "swr", "dispatcher", "websockets", "ajax", "sse", "sockets", "events", "usewebsockets" ] }